Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25bbb2bf65 | ||
|
|
143a7b3400 | ||
|
|
6f08307187 | ||
|
|
e915fe10cd | ||
|
|
949c6555a8 | ||
|
|
55ce8a3d14 | ||
|
|
bb602506ac | ||
|
|
bd54b5cd5c |
24
CHANGELOG
24
CHANGELOG
@@ -1,3 +1,27 @@
|
||||
2022-07-15 Version: 1.36.1180
|
||||
- Add open file detect api.
|
||||
|
||||
2022-07-15 Version: 1.36.1179
|
||||
- Support Security Group Batch Manager Rules.
|
||||
|
||||
2022-07-13 Version: 1.36.1178
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-12 Version: 1.36.1177
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-11 Version: 1.36.1176
|
||||
- Support Storage And Network Features For LaunchTemplate.
|
||||
|
||||
2022-07-11 Version: 1.36.1175
|
||||
- Add new api for rule.
|
||||
|
||||
2022-07-11 Version: 1.36.1174
|
||||
- Add open file detect api.
|
||||
|
||||
2022-07-08 Version: 1.36.1173
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
2022-07-08 Version: 1.36.1172
|
||||
- Automatically generate sdk tasks.
|
||||
|
||||
|
||||
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_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ANTIDDOS_PUBLIC_LIBRARY)
|
||||
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
@@ -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_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeBgpPackByIpResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DdosbgpInfo
|
||||
{
|
||||
std::string ddosbgpInstanceId;
|
||||
std::string ip;
|
||||
int elasticThreshold;
|
||||
int baseThreshold;
|
||||
long expireTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeBgpPackByIpResult();
|
||||
explicit DescribeBgpPackByIpResult(const std::string &payload);
|
||||
~DescribeBgpPackByIpResult();
|
||||
DdosbgpInfo getDdosbgpInfo()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DdosbgpInfo ddosbgpInfo_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
@@ -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_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCreditResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DdosCredit
|
||||
{
|
||||
int score;
|
||||
std::string scoreLevel;
|
||||
int blackholeTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeDdosCreditResult();
|
||||
explicit DescribeDdosCreditResult(const std::string &payload);
|
||||
~DescribeDdosCreditResult();
|
||||
DdosCredit getDdosCredit()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DdosCredit ddosCredit_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
@@ -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_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosThresholdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Threshold
|
||||
{
|
||||
int elasticBps;
|
||||
int maxBps;
|
||||
int pps;
|
||||
int bps;
|
||||
std::string internetIp;
|
||||
std::string instanceId;
|
||||
std::string ddosType;
|
||||
bool isAuto;
|
||||
int maxPps;
|
||||
};
|
||||
|
||||
|
||||
DescribeDdosThresholdResult();
|
||||
explicit DescribeDdosThresholdResult(const std::string &payload);
|
||||
~DescribeDdosThresholdResult();
|
||||
std::vector<Threshold> getThresholds()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Threshold> thresholds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
@@ -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_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Region
|
||||
{
|
||||
std::string regionNo;
|
||||
std::string regionName;
|
||||
std::string regionEnName;
|
||||
std::string regionNoAlias;
|
||||
};
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
std::vector<Region> getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Region> regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
@@ -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_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDdosStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDdosStatusResult();
|
||||
explicit ModifyDdosStatusResult(const std::string &payload);
|
||||
~ModifyDdosStatusResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
52
antiddos-public/src/model/DescribeCapResult.cc
Normal file
52
antiddos-public/src/model/DescribeCapResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/antiddos-public/model/DescribeCapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
DescribeCapResult::DescribeCapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCapResult::DescribeCapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCapResult::~DescribeCapResult()
|
||||
{}
|
||||
|
||||
void DescribeCapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto capUrlNode = value["CapUrl"];
|
||||
if(!capUrlNode["Url"].isNull())
|
||||
capUrl_.url = capUrlNode["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeCapResult::CapUrl DescribeCapResult::getCapUrl()const
|
||||
{
|
||||
return capUrl_;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeRegionsResult.cc
Normal file
63
antiddos-public/src/model/DescribeRegionsResult.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/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionEnName"].isNull())
|
||||
regionsObject.regionEnName = valueRegionsRegion["RegionEnName"].asString();
|
||||
if(!valueRegionsRegion["RegionName"].isNull())
|
||||
regionsObject.regionName = valueRegionsRegion["RegionName"].asString();
|
||||
if(!valueRegionsRegion["RegionNoAlias"].isNull())
|
||||
regionsObject.regionNoAlias = valueRegionsRegion["RegionNoAlias"].asString();
|
||||
if(!valueRegionsRegion["RegionNo"].isNull())
|
||||
regionsObject.regionNo = valueRegionsRegion["RegionNo"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
44
antiddos-public/src/model/ModifyDdosStatusResult.cc
Normal file
44
antiddos-public/src/model/ModifyDdosStatusResult.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/ModifyDdosStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
ModifyDdosStatusResult::ModifyDdosStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDdosStatusResult::ModifyDdosStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDdosStatusResult::~ModifyDdosStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyDdosStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
@@ -72,6 +72,8 @@ public:
|
||||
void setAutoReleaseTime(const std::string &autoReleaseTime);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSchedulerOptionsFenceId() const;
|
||||
void setSchedulerOptionsFenceId(const std::string &schedulerOptionsFenceId);
|
||||
std::string getPeriodUnit() const;
|
||||
void setPeriodUnit(const std::string &periodUnit);
|
||||
bool getAutoRenew() const;
|
||||
@@ -107,6 +109,7 @@ private:
|
||||
std::string ownerAccount_;
|
||||
std::string autoReleaseTime_;
|
||||
long ownerId_;
|
||||
std::string schedulerOptionsFenceId_;
|
||||
std::string periodUnit_;
|
||||
bool autoRenew_;
|
||||
int networkAttributesSlbUdpTimeout_;
|
||||
|
||||
@@ -28,6 +28,23 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Permissions {
|
||||
std::string policy;
|
||||
std::string priority;
|
||||
std::string ipProtocol;
|
||||
std::string destCidrIp;
|
||||
std::string ipv6DestCidrIp;
|
||||
std::string destGroupId;
|
||||
std::string destPrefixListId;
|
||||
std::string portRange;
|
||||
std::string sourceCidrIp;
|
||||
std::string ipv6SourceCidrIp;
|
||||
std::string sourcePortRange;
|
||||
std::string destGroupOwnerAccount;
|
||||
long destGroupOwnerId;
|
||||
std::string nicType;
|
||||
std::string description;
|
||||
};
|
||||
AuthorizeSecurityGroupEgressRequest();
|
||||
~AuthorizeSecurityGroupEgressRequest();
|
||||
std::string getNicType() const;
|
||||
@@ -46,12 +63,14 @@ public:
|
||||
void setDescription(const std::string &description);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<Permissions> getPermissions() const;
|
||||
void setPermissions(const std::vector<Permissions> &permissions);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getIpv6DestCidrIp() const;
|
||||
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
|
||||
std::string getIpv6SourceCidrIp() const;
|
||||
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getPortRange() const;
|
||||
void setPortRange(const std::string &portRange);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -66,10 +85,10 @@ public:
|
||||
void setDestGroupId(const std::string &destGroupId);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDestGroupOwnerAccount() const;
|
||||
void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount);
|
||||
std::string getPriority() const;
|
||||
void setPriority(const std::string &priority);
|
||||
std::string getDestGroupOwnerAccount() const;
|
||||
void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount);
|
||||
std::string getDestCidrIp() const;
|
||||
void setDestCidrIp(const std::string &destCidrIp);
|
||||
long getDestGroupOwnerId() const;
|
||||
@@ -84,9 +103,10 @@ private:
|
||||
std::string securityGroupId_;
|
||||
std::string description_;
|
||||
std::string regionId_;
|
||||
std::vector<Permissions> permissions_;
|
||||
std::string policy_;
|
||||
std::string ipv6DestCidrIp_;
|
||||
std::string ipv6SourceCidrIp_;
|
||||
std::string policy_;
|
||||
std::string portRange_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ipProtocol_;
|
||||
@@ -94,8 +114,8 @@ private:
|
||||
std::string sourceCidrIp_;
|
||||
std::string destGroupId_;
|
||||
long ownerId_;
|
||||
std::string destGroupOwnerAccount_;
|
||||
std::string priority_;
|
||||
std::string destGroupOwnerAccount_;
|
||||
std::string destCidrIp_;
|
||||
long destGroupOwnerId_;
|
||||
};
|
||||
|
||||
@@ -28,6 +28,23 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Permissions {
|
||||
std::string policy;
|
||||
std::string priority;
|
||||
std::string ipProtocol;
|
||||
std::string sourceCidrIp;
|
||||
std::string ipv6SourceCidrIp;
|
||||
std::string sourceGroupId;
|
||||
std::string sourcePrefixListId;
|
||||
std::string portRange;
|
||||
std::string destCidrIp;
|
||||
std::string ipv6DestCidrIp;
|
||||
std::string sourcePortRange;
|
||||
std::string sourceGroupOwnerAccount;
|
||||
long sourceGroupOwnerId;
|
||||
std::string nicType;
|
||||
std::string description;
|
||||
};
|
||||
AuthorizeSecurityGroupRequest();
|
||||
~AuthorizeSecurityGroupRequest();
|
||||
std::string getNicType() const;
|
||||
@@ -50,12 +67,14 @@ public:
|
||||
void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<Permissions> getPermissions() const;
|
||||
void setPermissions(const std::vector<Permissions> &permissions);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getIpv6SourceCidrIp() const;
|
||||
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
|
||||
std::string getIpv6DestCidrIp() const;
|
||||
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getPortRange() const;
|
||||
void setPortRange(const std::string &portRange);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -86,9 +105,10 @@ private:
|
||||
long sourceGroupOwnerId_;
|
||||
std::string sourceGroupOwnerAccount_;
|
||||
std::string regionId_;
|
||||
std::vector<Permissions> permissions_;
|
||||
std::string policy_;
|
||||
std::string ipv6SourceCidrIp_;
|
||||
std::string ipv6DestCidrIp_;
|
||||
std::string policy_;
|
||||
std::string portRange_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ipProtocol_;
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
void setTimeout(long timeout);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getContentEncoding() const;
|
||||
void setContentEncoding(const std::string &contentEncoding);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
@@ -63,6 +65,7 @@ private:
|
||||
std::string commandContent_;
|
||||
long timeout_;
|
||||
std::string regionId_;
|
||||
std::string contentEncoding_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
std::string description;
|
||||
std::string securityGroupId;
|
||||
std::string primaryIpAddress;
|
||||
std::string instanceType;
|
||||
std::string networkInterfaceTrafficMode;
|
||||
};
|
||||
struct DataDisk {
|
||||
std::string performanceLevel;
|
||||
@@ -53,6 +55,9 @@ public:
|
||||
std::string category;
|
||||
bool deleteWithInstance;
|
||||
std::string encrypted;
|
||||
std::string autoSnapshotPolicyId;
|
||||
long provisionedIops;
|
||||
bool burstingEnabled;
|
||||
};
|
||||
CreateLaunchTemplateRequest();
|
||||
~CreateLaunchTemplateRequest();
|
||||
@@ -80,6 +85,8 @@ public:
|
||||
void setTemplateTag(const std::vector<TemplateTag> &templateTag);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getSystemDiskAutoSnapshotPolicyId() const;
|
||||
void setSystemDiskAutoSnapshotPolicyId(const std::string &systemDiskAutoSnapshotPolicyId);
|
||||
int getPeriod() const;
|
||||
void setPeriod(int period);
|
||||
int getIpv6AddressCount() const;
|
||||
@@ -94,6 +101,8 @@ public:
|
||||
void setSpotStrategy(const std::string &spotStrategy);
|
||||
std::string getPrivateIpAddress() const;
|
||||
void setPrivateIpAddress(const std::string &privateIpAddress);
|
||||
bool getSystemDiskBurstingEnabled() const;
|
||||
void setSystemDiskBurstingEnabled(bool systemDiskBurstingEnabled);
|
||||
std::string getInstanceName() const;
|
||||
void setInstanceName(const std::string &instanceName);
|
||||
std::string getInternetChargeType() const;
|
||||
@@ -152,6 +161,8 @@ public:
|
||||
void setSecurityGroupIds(const std::vector<std::string> &securityGroupIds);
|
||||
std::vector<DataDisk> getDataDisk() const;
|
||||
void setDataDisk(const std::vector<DataDisk> &dataDisk);
|
||||
long getSystemDiskProvisionedIops() const;
|
||||
void setSystemDiskProvisionedIops(long systemDiskProvisionedIops);
|
||||
int getSystemDiskSize() const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::string getVpcId() const;
|
||||
@@ -172,6 +183,7 @@ private:
|
||||
int systemDiskIops_;
|
||||
std::vector<TemplateTag> templateTag_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string systemDiskAutoSnapshotPolicyId_;
|
||||
int period_;
|
||||
int ipv6AddressCount_;
|
||||
std::string templateResourceGroupId_;
|
||||
@@ -179,6 +191,7 @@ private:
|
||||
std::string vSwitchId_;
|
||||
std::string spotStrategy_;
|
||||
std::string privateIpAddress_;
|
||||
bool systemDiskBurstingEnabled_;
|
||||
std::string instanceName_;
|
||||
std::string internetChargeType_;
|
||||
std::string zoneId_;
|
||||
@@ -208,6 +221,7 @@ private:
|
||||
int spotDuration_;
|
||||
std::vector<std::string> securityGroupIds_;
|
||||
std::vector<DataDisk> dataDisk_;
|
||||
long systemDiskProvisionedIops_;
|
||||
int systemDiskSize_;
|
||||
std::string vpcId_;
|
||||
std::string systemDiskDescription_;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
std::string description;
|
||||
std::string securityGroupId;
|
||||
std::string primaryIpAddress;
|
||||
std::string instanceType;
|
||||
std::string networkInterfaceTrafficMode;
|
||||
};
|
||||
struct DataDisk {
|
||||
std::string performanceLevel;
|
||||
@@ -49,6 +51,9 @@ public:
|
||||
std::string category;
|
||||
bool deleteWithInstance;
|
||||
std::string encrypted;
|
||||
long provisionedIops;
|
||||
bool burstingEnabled;
|
||||
std::string autoSnapshotPolicyId;
|
||||
};
|
||||
CreateLaunchTemplateVersionRequest();
|
||||
~CreateLaunchTemplateVersionRequest();
|
||||
@@ -74,6 +79,8 @@ public:
|
||||
void setSystemDiskIops(int systemDiskIops);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getSystemDiskAutoSnapshotPolicyId() const;
|
||||
void setSystemDiskAutoSnapshotPolicyId(const std::string &systemDiskAutoSnapshotPolicyId);
|
||||
int getPeriod() const;
|
||||
void setPeriod(int period);
|
||||
std::string getLaunchTemplateId() const;
|
||||
@@ -88,6 +95,8 @@ public:
|
||||
void setSpotStrategy(const std::string &spotStrategy);
|
||||
std::string getPrivateIpAddress() const;
|
||||
void setPrivateIpAddress(const std::string &privateIpAddress);
|
||||
bool getSystemDiskBurstingEnabled() const;
|
||||
void setSystemDiskBurstingEnabled(bool systemDiskBurstingEnabled);
|
||||
std::string getInstanceName() const;
|
||||
void setInstanceName(const std::string &instanceName);
|
||||
std::string getInternetChargeType() const;
|
||||
@@ -146,6 +155,8 @@ public:
|
||||
void setSecurityGroupIds(const std::vector<std::string> &securityGroupIds);
|
||||
std::vector<DataDisk> getDataDisk() const;
|
||||
void setDataDisk(const std::vector<DataDisk> &dataDisk);
|
||||
long getSystemDiskProvisionedIops() const;
|
||||
void setSystemDiskProvisionedIops(long systemDiskProvisionedIops);
|
||||
int getSystemDiskSize() const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::string getVpcId() const;
|
||||
@@ -165,6 +176,7 @@ private:
|
||||
std::string hostName_;
|
||||
int systemDiskIops_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string systemDiskAutoSnapshotPolicyId_;
|
||||
int period_;
|
||||
std::string launchTemplateId_;
|
||||
int ipv6AddressCount_;
|
||||
@@ -172,6 +184,7 @@ private:
|
||||
std::string vSwitchId_;
|
||||
std::string spotStrategy_;
|
||||
std::string privateIpAddress_;
|
||||
bool systemDiskBurstingEnabled_;
|
||||
std::string instanceName_;
|
||||
std::string internetChargeType_;
|
||||
std::string zoneId_;
|
||||
@@ -201,6 +214,7 @@ private:
|
||||
int spotDuration_;
|
||||
std::vector<std::string> securityGroupIds_;
|
||||
std::vector<DataDisk> dataDisk_;
|
||||
long systemDiskProvisionedIops_;
|
||||
int systemDiskSize_;
|
||||
std::string vpcId_;
|
||||
std::string systemDiskDescription_;
|
||||
|
||||
@@ -48,6 +48,8 @@ public:
|
||||
void setContentEncoding(const std::string &contentEncoding);
|
||||
long getPageSize() const;
|
||||
void setPageSize(long pageSize);
|
||||
bool getLatest() const;
|
||||
void setLatest(bool latest);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
@@ -67,6 +69,7 @@ private:
|
||||
std::string provider_;
|
||||
std::string contentEncoding_;
|
||||
long pageSize_;
|
||||
bool latest_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -34,6 +34,15 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Command
|
||||
{
|
||||
struct ParameterDefinition
|
||||
{
|
||||
std::string defaultValue;
|
||||
std::string description;
|
||||
bool required;
|
||||
std::string parameterName;
|
||||
std::vector<std::string> possibleValues;
|
||||
};
|
||||
std::vector<Command::ParameterDefinition> parameterDefinitions;
|
||||
std::string description;
|
||||
std::string category;
|
||||
std::vector<std::string> parameterNames;
|
||||
|
||||
@@ -34,6 +34,22 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Image
|
||||
{
|
||||
struct DetectionOptions
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
std::string riskCode;
|
||||
std::string value;
|
||||
std::string riskLevel;
|
||||
std::string name;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<Item> items;
|
||||
};
|
||||
struct Features
|
||||
{
|
||||
std::string nvmeSupport;
|
||||
};
|
||||
struct DiskDeviceMapping
|
||||
{
|
||||
std::string snapshotId;
|
||||
@@ -61,6 +77,8 @@ namespace AlibabaCloud
|
||||
std::string oSName;
|
||||
bool isPublic;
|
||||
std::string imageId;
|
||||
DetectionOptions detectionOptions;
|
||||
Features features;
|
||||
std::vector<Image::Tag> tags;
|
||||
std::string oSNameEn;
|
||||
bool loginAsNonRootSupported;
|
||||
|
||||
@@ -55,8 +55,11 @@ namespace AlibabaCloud
|
||||
std::string invocationStatus;
|
||||
std::string parameters;
|
||||
bool timed;
|
||||
std::string commandDescription;
|
||||
long timeout;
|
||||
std::vector<Invocation::InvokeInstance> invokeInstances;
|
||||
std::string commandContent;
|
||||
std::string workingDir;
|
||||
std::string repeatMode;
|
||||
std::string invokeStatus;
|
||||
std::string commandType;
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
struct DataDisk
|
||||
{
|
||||
std::string snapshotId;
|
||||
bool burstingEnabled;
|
||||
std::string description;
|
||||
std::string category;
|
||||
std::string performanceLevel;
|
||||
@@ -46,16 +47,20 @@ namespace AlibabaCloud
|
||||
int size;
|
||||
std::string encrypted;
|
||||
bool deleteWithInstance;
|
||||
std::string autoSnapshotPolicyId;
|
||||
std::string diskName;
|
||||
long provisionedIops;
|
||||
};
|
||||
struct NetworkInterface
|
||||
{
|
||||
std::string networkInterfaceTrafficMode;
|
||||
std::string description;
|
||||
std::vector<std::string> securityGroupIds1;
|
||||
std::string vSwitchId;
|
||||
std::string securityGroupId;
|
||||
std::string networkInterfaceName;
|
||||
std::string primaryIpAddress;
|
||||
std::string instanceType;
|
||||
};
|
||||
struct InstanceTag
|
||||
{
|
||||
@@ -71,7 +76,9 @@ namespace AlibabaCloud
|
||||
int systemDiskSize;
|
||||
std::string systemDiskDescription;
|
||||
std::string instanceChargeType;
|
||||
long systemDiskProvisionedIops;
|
||||
int spotDuration;
|
||||
std::string systemDiskAutoSnapshotPolicyId;
|
||||
std::string ramRoleName;
|
||||
std::string systemDiskPerformanceLevel;
|
||||
std::string networkType;
|
||||
@@ -96,6 +103,7 @@ namespace AlibabaCloud
|
||||
std::string internetChargeType;
|
||||
std::string deploymentSetId;
|
||||
std::string instanceName;
|
||||
bool systemDiskBurstingEnabled;
|
||||
bool systemDiskDeleteWithInstance;
|
||||
bool enableVmOsConfig;
|
||||
int internetMaxBandwidthOut;
|
||||
|
||||
@@ -64,6 +64,8 @@ public:
|
||||
void setArchitecture(const std::string &architecture);
|
||||
std::string getLicenseType() const;
|
||||
void setLicenseType(const std::string &licenseType);
|
||||
std::string getDetectionStrategy() const;
|
||||
void setDetectionStrategy(const std::string &detectionStrategy);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getRoleName() const;
|
||||
@@ -85,6 +87,7 @@ private:
|
||||
std::vector<Tag> tag_;
|
||||
std::string architecture_;
|
||||
std::string licenseType_;
|
||||
std::string detectionStrategy_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string roleName_;
|
||||
std::string oSType_;
|
||||
|
||||
@@ -28,6 +28,9 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Features {
|
||||
std::string nvmeSupport;
|
||||
};
|
||||
ModifyImageAttributeRequest();
|
||||
~ModifyImageAttributeRequest();
|
||||
long getResourceOwnerId() const;
|
||||
@@ -36,6 +39,8 @@ public:
|
||||
void setImageId(const std::string &imageId);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
Features getFeatures() const;
|
||||
void setFeatures(const Features &features);
|
||||
std::string getBootMode() const;
|
||||
void setBootMode(const std::string &bootMode);
|
||||
std::string getRegionId() const;
|
||||
@@ -59,6 +64,7 @@ private:
|
||||
long resourceOwnerId_;
|
||||
std::string imageId_;
|
||||
std::string description_;
|
||||
Features features_;
|
||||
std::string bootMode_;
|
||||
std::string regionId_;
|
||||
std::string imageName_;
|
||||
|
||||
@@ -28,6 +28,23 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Permissions {
|
||||
std::string policy;
|
||||
std::string priority;
|
||||
std::string ipProtocol;
|
||||
std::string destCidrIp;
|
||||
std::string ipv6DestCidrIp;
|
||||
std::string destGroupId;
|
||||
std::string destPrefixListId;
|
||||
std::string portRange;
|
||||
std::string sourceCidrIp;
|
||||
std::string ipv6SourceCidrIp;
|
||||
std::string sourcePortRange;
|
||||
std::string destGroupOwnerAccount;
|
||||
std::string destGroupOwnerId;
|
||||
std::string nicType;
|
||||
std::string description;
|
||||
};
|
||||
RevokeSecurityGroupEgressRequest();
|
||||
~RevokeSecurityGroupEgressRequest();
|
||||
std::string getNicType() const;
|
||||
@@ -46,12 +63,14 @@ public:
|
||||
void setDescription(const std::string &description);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<Permissions> getPermissions() const;
|
||||
void setPermissions(const std::vector<Permissions> &permissions);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getIpv6DestCidrIp() const;
|
||||
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
|
||||
std::string getIpv6SourceCidrIp() const;
|
||||
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getPortRange() const;
|
||||
void setPortRange(const std::string &portRange);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -66,10 +85,10 @@ public:
|
||||
void setDestGroupId(const std::string &destGroupId);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDestGroupOwnerAccount() const;
|
||||
void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount);
|
||||
std::string getPriority() const;
|
||||
void setPriority(const std::string &priority);
|
||||
std::string getDestGroupOwnerAccount() const;
|
||||
void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount);
|
||||
std::string getDestCidrIp() const;
|
||||
void setDestCidrIp(const std::string &destCidrIp);
|
||||
long getDestGroupOwnerId() const;
|
||||
@@ -84,9 +103,10 @@ private:
|
||||
std::string securityGroupId_;
|
||||
std::string description_;
|
||||
std::string regionId_;
|
||||
std::vector<Permissions> permissions_;
|
||||
std::string policy_;
|
||||
std::string ipv6DestCidrIp_;
|
||||
std::string ipv6SourceCidrIp_;
|
||||
std::string policy_;
|
||||
std::string portRange_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ipProtocol_;
|
||||
@@ -94,8 +114,8 @@ private:
|
||||
std::string sourceCidrIp_;
|
||||
std::string destGroupId_;
|
||||
long ownerId_;
|
||||
std::string destGroupOwnerAccount_;
|
||||
std::string priority_;
|
||||
std::string destGroupOwnerAccount_;
|
||||
std::string destCidrIp_;
|
||||
long destGroupOwnerId_;
|
||||
};
|
||||
|
||||
@@ -28,6 +28,23 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Permissions {
|
||||
std::string policy;
|
||||
std::string priority;
|
||||
std::string ipProtocol;
|
||||
std::string sourceCidrIp;
|
||||
std::string ipv6SourceCidrIp;
|
||||
std::string sourceGroupId;
|
||||
std::string sourcePrefixListId;
|
||||
std::string portRange;
|
||||
std::string destCidrIp;
|
||||
std::string ipv6DestCidrIp;
|
||||
std::string sourcePortRange;
|
||||
std::string sourceGroupOwnerAccount;
|
||||
long sourceGroupOwnerId;
|
||||
std::string nicType;
|
||||
std::string description;
|
||||
};
|
||||
RevokeSecurityGroupRequest();
|
||||
~RevokeSecurityGroupRequest();
|
||||
std::string getNicType() const;
|
||||
@@ -50,12 +67,14 @@ public:
|
||||
void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getIpv6DestCidrIp() const;
|
||||
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
|
||||
std::string getIpv6SourceCidrIp() const;
|
||||
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
|
||||
std::vector<Permissions> getPermissions() const;
|
||||
void setPermissions(const std::vector<Permissions> &permissions);
|
||||
std::string getPolicy() const;
|
||||
void setPolicy(const std::string &policy);
|
||||
std::string getIpv6SourceCidrIp() const;
|
||||
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
|
||||
std::string getIpv6DestCidrIp() const;
|
||||
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
|
||||
std::string getPortRange() const;
|
||||
void setPortRange(const std::string &portRange);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -86,9 +105,10 @@ private:
|
||||
long sourceGroupOwnerId_;
|
||||
std::string sourceGroupOwnerAccount_;
|
||||
std::string regionId_;
|
||||
std::string ipv6DestCidrIp_;
|
||||
std::string ipv6SourceCidrIp_;
|
||||
std::vector<Permissions> permissions_;
|
||||
std::string policy_;
|
||||
std::string ipv6SourceCidrIp_;
|
||||
std::string ipv6DestCidrIp_;
|
||||
std::string portRange_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ipProtocol_;
|
||||
|
||||
@@ -201,6 +201,15 @@ void AllocateDedicatedHostsRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AllocateDedicatedHostsRequest::getSchedulerOptionsFenceId() const {
|
||||
return schedulerOptionsFenceId_;
|
||||
}
|
||||
|
||||
void AllocateDedicatedHostsRequest::setSchedulerOptionsFenceId(const std::string &schedulerOptionsFenceId) {
|
||||
schedulerOptionsFenceId_ = schedulerOptionsFenceId;
|
||||
setParameter(std::string("SchedulerOptions.FenceId"), schedulerOptionsFenceId);
|
||||
}
|
||||
|
||||
std::string AllocateDedicatedHostsRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
@@ -97,6 +97,40 @@ void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string ®ionI
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<AuthorizeSecurityGroupEgressRequest::Permissions> AuthorizeSecurityGroupEgressRequest::getPermissions() const {
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupEgressRequest::setPermissions(const std::vector<AuthorizeSecurityGroupEgressRequest::Permissions> &permissions) {
|
||||
permissions_ = permissions;
|
||||
for(int dep1 = 0; dep1 != permissions.size(); dep1++) {
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Policy", permissions[dep1].policy);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Priority", permissions[dep1].priority);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", permissions[dep1].ipProtocol);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", permissions[dep1].destCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6DestCidrIp", permissions[dep1].ipv6DestCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestGroupId", permissions[dep1].destGroupId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestPrefixListId", permissions[dep1].destPrefixListId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".PortRange", permissions[dep1].portRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", permissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6SourceCidrIp", permissions[dep1].ipv6SourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", permissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestGroupOwnerAccount", permissions[dep1].destGroupOwnerAccount);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestGroupOwnerId", std::to_string(permissions[dep1].destGroupOwnerId));
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".NicType", permissions[dep1].nicType);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Description", permissions[dep1].description);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getIpv6DestCidrIp() const {
|
||||
return ipv6DestCidrIp_;
|
||||
}
|
||||
@@ -115,15 +149,6 @@ void AuthorizeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string
|
||||
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getPortRange() const {
|
||||
return portRange_;
|
||||
}
|
||||
@@ -187,15 +212,6 @@ void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const {
|
||||
return destGroupOwnerAccount_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
|
||||
destGroupOwnerAccount_ = destGroupOwnerAccount;
|
||||
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
@@ -205,6 +221,15 @@ void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string &priorit
|
||||
setParameter(std::string("Priority"), priority);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const {
|
||||
return destGroupOwnerAccount_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
|
||||
destGroupOwnerAccount_ = destGroupOwnerAccount;
|
||||
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp() const {
|
||||
return destCidrIp_;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,40 @@ void AuthorizeSecurityGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<AuthorizeSecurityGroupRequest::Permissions> AuthorizeSecurityGroupRequest::getPermissions() const {
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setPermissions(const std::vector<AuthorizeSecurityGroupRequest::Permissions> &permissions) {
|
||||
permissions_ = permissions;
|
||||
for(int dep1 = 0; dep1 != permissions.size(); dep1++) {
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Policy", permissions[dep1].policy);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Priority", permissions[dep1].priority);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", permissions[dep1].ipProtocol);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", permissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6SourceCidrIp", permissions[dep1].ipv6SourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceGroupId", permissions[dep1].sourceGroupId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePrefixListId", permissions[dep1].sourcePrefixListId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".PortRange", permissions[dep1].portRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", permissions[dep1].destCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6DestCidrIp", permissions[dep1].ipv6DestCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", permissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceGroupOwnerAccount", permissions[dep1].sourceGroupOwnerAccount);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceGroupOwnerId", std::to_string(permissions[dep1].sourceGroupOwnerId));
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".NicType", permissions[dep1].nicType);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Description", permissions[dep1].description);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getIpv6SourceCidrIp() const {
|
||||
return ipv6SourceCidrIp_;
|
||||
}
|
||||
@@ -133,15 +167,6 @@ void AuthorizeSecurityGroupRequest::setIpv6DestCidrIp(const std::string &ipv6Des
|
||||
setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getPortRange() const {
|
||||
return portRange_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,15 @@ void CreateCommandRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateCommandRequest::getContentEncoding() const {
|
||||
return contentEncoding_;
|
||||
}
|
||||
|
||||
void CreateCommandRequest::setContentEncoding(const std::string &contentEncoding) {
|
||||
contentEncoding_ = contentEncoding;
|
||||
setParameter(std::string("ContentEncoding"), contentEncoding);
|
||||
}
|
||||
|
||||
std::string CreateCommandRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -143,6 +143,15 @@ void CreateLaunchTemplateRequest::setTag(const std::vector<CreateLaunchTemplateR
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getSystemDiskAutoSnapshotPolicyId() const {
|
||||
return systemDiskAutoSnapshotPolicyId_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setSystemDiskAutoSnapshotPolicyId(const std::string &systemDiskAutoSnapshotPolicyId) {
|
||||
systemDiskAutoSnapshotPolicyId_ = systemDiskAutoSnapshotPolicyId;
|
||||
setParameter(std::string("SystemDisk.AutoSnapshotPolicyId"), systemDiskAutoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
@@ -206,6 +215,15 @@ void CreateLaunchTemplateRequest::setPrivateIpAddress(const std::string &private
|
||||
setParameter(std::string("PrivateIpAddress"), privateIpAddress);
|
||||
}
|
||||
|
||||
bool CreateLaunchTemplateRequest::getSystemDiskBurstingEnabled() const {
|
||||
return systemDiskBurstingEnabled_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setSystemDiskBurstingEnabled(bool systemDiskBurstingEnabled) {
|
||||
systemDiskBurstingEnabled_ = systemDiskBurstingEnabled;
|
||||
setParameter(std::string("SystemDisk.BurstingEnabled"), systemDiskBurstingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
@@ -400,6 +418,8 @@ void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<CreateLa
|
||||
setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
|
||||
setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
|
||||
setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
|
||||
setParameter(networkInterfaceObjStr + ".InstanceType", networkInterfaceObj.instanceType);
|
||||
setParameter(networkInterfaceObjStr + ".NetworkInterfaceTrafficMode", networkInterfaceObj.networkInterfaceTrafficMode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -483,9 +503,21 @@ void CreateLaunchTemplateRequest::setDataDisk(const std::vector<CreateLaunchTemp
|
||||
setParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
|
||||
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
|
||||
setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
|
||||
setParameter(dataDiskObjStr + ".AutoSnapshotPolicyId", dataDiskObj.autoSnapshotPolicyId);
|
||||
setParameter(dataDiskObjStr + ".ProvisionedIops", std::to_string(dataDiskObj.provisionedIops));
|
||||
setParameter(dataDiskObjStr + ".BurstingEnabled", dataDiskObj.burstingEnabled ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
long CreateLaunchTemplateRequest::getSystemDiskProvisionedIops() const {
|
||||
return systemDiskProvisionedIops_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setSystemDiskProvisionedIops(long systemDiskProvisionedIops) {
|
||||
systemDiskProvisionedIops_ = systemDiskProvisionedIops;
|
||||
setParameter(std::string("SystemDisk.ProvisionedIops"), std::to_string(systemDiskProvisionedIops));
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateRequest::getSystemDiskSize() const {
|
||||
return systemDiskSize_;
|
||||
}
|
||||
|
||||
@@ -129,6 +129,15 @@ void CreateLaunchTemplateVersionRequest::setTag(const std::vector<CreateLaunchTe
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getSystemDiskAutoSnapshotPolicyId() const {
|
||||
return systemDiskAutoSnapshotPolicyId_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setSystemDiskAutoSnapshotPolicyId(const std::string &systemDiskAutoSnapshotPolicyId) {
|
||||
systemDiskAutoSnapshotPolicyId_ = systemDiskAutoSnapshotPolicyId;
|
||||
setParameter(std::string("SystemDisk.AutoSnapshotPolicyId"), systemDiskAutoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateVersionRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
@@ -192,6 +201,15 @@ void CreateLaunchTemplateVersionRequest::setPrivateIpAddress(const std::string &
|
||||
setParameter(std::string("PrivateIpAddress"), privateIpAddress);
|
||||
}
|
||||
|
||||
bool CreateLaunchTemplateVersionRequest::getSystemDiskBurstingEnabled() const {
|
||||
return systemDiskBurstingEnabled_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setSystemDiskBurstingEnabled(bool systemDiskBurstingEnabled) {
|
||||
systemDiskBurstingEnabled_ = systemDiskBurstingEnabled;
|
||||
setParameter(std::string("SystemDisk.BurstingEnabled"), systemDiskBurstingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
@@ -386,6 +404,8 @@ void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<C
|
||||
setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
|
||||
setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
|
||||
setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
|
||||
setParameter(networkInterfaceObjStr + ".InstanceType", networkInterfaceObj.instanceType);
|
||||
setParameter(networkInterfaceObjStr + ".NetworkInterfaceTrafficMode", networkInterfaceObj.networkInterfaceTrafficMode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -469,9 +489,21 @@ void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector<CreateLau
|
||||
setParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
|
||||
setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
|
||||
setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
|
||||
setParameter(dataDiskObjStr + ".ProvisionedIops", std::to_string(dataDiskObj.provisionedIops));
|
||||
setParameter(dataDiskObjStr + ".BurstingEnabled", dataDiskObj.burstingEnabled ? "true" : "false");
|
||||
setParameter(dataDiskObjStr + ".AutoSnapshotPolicyId", dataDiskObj.autoSnapshotPolicyId);
|
||||
}
|
||||
}
|
||||
|
||||
long CreateLaunchTemplateVersionRequest::getSystemDiskProvisionedIops() const {
|
||||
return systemDiskProvisionedIops_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setSystemDiskProvisionedIops(long systemDiskProvisionedIops) {
|
||||
systemDiskProvisionedIops_ = systemDiskProvisionedIops;
|
||||
setParameter(std::string("SystemDisk.ProvisionedIops"), std::to_string(systemDiskProvisionedIops));
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateVersionRequest::getSystemDiskSize() const {
|
||||
return systemDiskSize_;
|
||||
}
|
||||
|
||||
@@ -106,6 +106,15 @@ void DescribeCommandsRequest::setPageSize(long pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribeCommandsRequest::getLatest() const {
|
||||
return latest_;
|
||||
}
|
||||
|
||||
void DescribeCommandsRequest::setLatest(bool latest) {
|
||||
latest_ = latest;
|
||||
setParameter(std::string("Latest"), latest ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeCommandsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,23 @@ void DescribeCommandsResult::parse(const std::string &payload)
|
||||
commandsObject.name = valueCommandsCommand["Name"].asString();
|
||||
if(!valueCommandsCommand["EnableParameter"].isNull())
|
||||
commandsObject.enableParameter = valueCommandsCommand["EnableParameter"].asString() == "true";
|
||||
auto allParameterDefinitionsNode = valueCommandsCommand["ParameterDefinitions"]["ParameterDefinition"];
|
||||
for (auto valueCommandsCommandParameterDefinitionsParameterDefinition : allParameterDefinitionsNode)
|
||||
{
|
||||
Command::ParameterDefinition parameterDefinitionsObject;
|
||||
if(!valueCommandsCommandParameterDefinitionsParameterDefinition["Required"].isNull())
|
||||
parameterDefinitionsObject.required = valueCommandsCommandParameterDefinitionsParameterDefinition["Required"].asString() == "true";
|
||||
if(!valueCommandsCommandParameterDefinitionsParameterDefinition["Description"].isNull())
|
||||
parameterDefinitionsObject.description = valueCommandsCommandParameterDefinitionsParameterDefinition["Description"].asString();
|
||||
if(!valueCommandsCommandParameterDefinitionsParameterDefinition["DefaultValue"].isNull())
|
||||
parameterDefinitionsObject.defaultValue = valueCommandsCommandParameterDefinitionsParameterDefinition["DefaultValue"].asString();
|
||||
if(!valueCommandsCommandParameterDefinitionsParameterDefinition["ParameterName"].isNull())
|
||||
parameterDefinitionsObject.parameterName = valueCommandsCommandParameterDefinitionsParameterDefinition["ParameterName"].asString();
|
||||
auto allPossibleValues = value["PossibleValues"]["PossibleValue"];
|
||||
for (auto value : allPossibleValues)
|
||||
parameterDefinitionsObject.possibleValues.push_back(value.asString());
|
||||
commandsObject.parameterDefinitions.push_back(parameterDefinitionsObject);
|
||||
}
|
||||
auto allParameterNames = value["ParameterNames"]["ParameterName"];
|
||||
for (auto value : allParameterNames)
|
||||
commandsObject.parameterNames.push_back(value.asString());
|
||||
|
||||
@@ -131,6 +131,26 @@ void DescribeImagesResult::parse(const std::string &payload)
|
||||
tagsObject.tagKey = valueImagesImageTagsTag["TagKey"].asString();
|
||||
imagesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto detectionOptionsNode = value["DetectionOptions"];
|
||||
if(!detectionOptionsNode["Status"].isNull())
|
||||
imagesObject.detectionOptions.status = detectionOptionsNode["Status"].asString();
|
||||
auto allItemsNode = detectionOptionsNode["Items"]["Item"];
|
||||
for (auto detectionOptionsNodeItemsItem : allItemsNode)
|
||||
{
|
||||
Image::DetectionOptions::Item itemObject;
|
||||
if(!detectionOptionsNodeItemsItem["Name"].isNull())
|
||||
itemObject.name = detectionOptionsNodeItemsItem["Name"].asString();
|
||||
if(!detectionOptionsNodeItemsItem["Value"].isNull())
|
||||
itemObject.value = detectionOptionsNodeItemsItem["Value"].asString();
|
||||
if(!detectionOptionsNodeItemsItem["RiskLevel"].isNull())
|
||||
itemObject.riskLevel = detectionOptionsNodeItemsItem["RiskLevel"].asString();
|
||||
if(!detectionOptionsNodeItemsItem["RiskCode"].isNull())
|
||||
itemObject.riskCode = detectionOptionsNodeItemsItem["RiskCode"].asString();
|
||||
imagesObject.detectionOptions.items.push_back(itemObject);
|
||||
}
|
||||
auto featuresNode = value["Features"];
|
||||
if(!featuresNode["NvmeSupport"].isNull())
|
||||
imagesObject.features.nvmeSupport = featuresNode["NvmeSupport"].asString();
|
||||
images_.push_back(imagesObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -65,10 +65,16 @@ void DescribeInvocationsResult::parse(const std::string &payload)
|
||||
invocationsObject.commandContent = valueInvocationsInvocation["CommandContent"].asString();
|
||||
if(!valueInvocationsInvocation["CommandName"].isNull())
|
||||
invocationsObject.commandName = valueInvocationsInvocation["CommandName"].asString();
|
||||
if(!valueInvocationsInvocation["CommandDescription"].isNull())
|
||||
invocationsObject.commandDescription = valueInvocationsInvocation["CommandDescription"].asString();
|
||||
if(!valueInvocationsInvocation["InvokeId"].isNull())
|
||||
invocationsObject.invokeId = valueInvocationsInvocation["InvokeId"].asString();
|
||||
if(!valueInvocationsInvocation["Username"].isNull())
|
||||
invocationsObject.username = valueInvocationsInvocation["Username"].asString();
|
||||
if(!valueInvocationsInvocation["WorkingDir"].isNull())
|
||||
invocationsObject.workingDir = valueInvocationsInvocation["WorkingDir"].asString();
|
||||
if(!valueInvocationsInvocation["Timeout"].isNull())
|
||||
invocationsObject.timeout = std::stol(valueInvocationsInvocation["Timeout"].asString());
|
||||
auto allInvokeInstancesNode = valueInvocationsInvocation["InvokeInstances"]["InvokeInstance"];
|
||||
for (auto valueInvocationsInvocationInvokeInstancesInvokeInstance : allInvokeInstancesNode)
|
||||
{
|
||||
|
||||
@@ -112,6 +112,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.hostName = launchTemplateDataNode["HostName"].asString();
|
||||
if(!launchTemplateDataNode["SystemDisk.Iops"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskIops = std::stoi(launchTemplateDataNode["SystemDisk.Iops"].asString());
|
||||
if(!launchTemplateDataNode["SystemDisk.AutoSnapshotPolicyId"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskAutoSnapshotPolicyId = launchTemplateDataNode["SystemDisk.AutoSnapshotPolicyId"].asString();
|
||||
if(!launchTemplateDataNode["InternetMaxBandwidthOut"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.internetMaxBandwidthOut = std::stoi(launchTemplateDataNode["InternetMaxBandwidthOut"].asString());
|
||||
if(!launchTemplateDataNode["InternetMaxBandwidthIn"].isNull())
|
||||
@@ -136,6 +138,10 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.zoneId = launchTemplateDataNode["ZoneId"].asString();
|
||||
if(!launchTemplateDataNode["Ipv6AddressCount"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.ipv6AddressCount = std::stoi(launchTemplateDataNode["Ipv6AddressCount"].asString());
|
||||
if(!launchTemplateDataNode["SystemDisk.ProvisionedIops"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskProvisionedIops = std::stol(launchTemplateDataNode["SystemDisk.ProvisionedIops"].asString());
|
||||
if(!launchTemplateDataNode["SystemDisk.BurstingEnabled"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.systemDiskBurstingEnabled = launchTemplateDataNode["SystemDisk.BurstingEnabled"].asString() == "true";
|
||||
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
|
||||
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
|
||||
{
|
||||
@@ -158,6 +164,12 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
dataDiskObject.deleteWithInstance = launchTemplateDataNodeDataDisksDataDisk["DeleteWithInstance"].asString() == "true";
|
||||
if(!launchTemplateDataNodeDataDisksDataDisk["Encrypted"].isNull())
|
||||
dataDiskObject.encrypted = launchTemplateDataNodeDataDisksDataDisk["Encrypted"].asString();
|
||||
if(!launchTemplateDataNodeDataDisksDataDisk["ProvisionedIops"].isNull())
|
||||
dataDiskObject.provisionedIops = std::stol(launchTemplateDataNodeDataDisksDataDisk["ProvisionedIops"].asString());
|
||||
if(!launchTemplateDataNodeDataDisksDataDisk["BurstingEnabled"].isNull())
|
||||
dataDiskObject.burstingEnabled = launchTemplateDataNodeDataDisksDataDisk["BurstingEnabled"].asString() == "true";
|
||||
if(!launchTemplateDataNodeDataDisksDataDisk["AutoSnapshotPolicyId"].isNull())
|
||||
dataDiskObject.autoSnapshotPolicyId = launchTemplateDataNodeDataDisksDataDisk["AutoSnapshotPolicyId"].asString();
|
||||
launchTemplateVersionSetsObject.launchTemplateData.dataDisks.push_back(dataDiskObject);
|
||||
}
|
||||
auto allNetworkInterfacesNode = launchTemplateDataNode["NetworkInterfaces"]["NetworkInterface"];
|
||||
@@ -174,6 +186,10 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
networkInterfaceObject.primaryIpAddress = launchTemplateDataNodeNetworkInterfacesNetworkInterface["PrimaryIpAddress"].asString();
|
||||
if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["SecurityGroupId"].isNull())
|
||||
networkInterfaceObject.securityGroupId = launchTemplateDataNodeNetworkInterfacesNetworkInterface["SecurityGroupId"].asString();
|
||||
if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["InstanceType"].isNull())
|
||||
networkInterfaceObject.instanceType = launchTemplateDataNodeNetworkInterfacesNetworkInterface["InstanceType"].asString();
|
||||
if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["NetworkInterfaceTrafficMode"].isNull())
|
||||
networkInterfaceObject.networkInterfaceTrafficMode = launchTemplateDataNodeNetworkInterfacesNetworkInterface["NetworkInterfaceTrafficMode"].asString();
|
||||
auto allSecurityGroupIds1 = value["SecurityGroupIds"]["SecurityGroupId"];
|
||||
for (auto value : allSecurityGroupIds1)
|
||||
networkInterfaceObject.securityGroupIds1.push_back(value.asString());
|
||||
|
||||
@@ -138,6 +138,15 @@ void ImportImageRequest::setLicenseType(const std::string &licenseType) {
|
||||
setParameter(std::string("LicenseType"), licenseType);
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getDetectionStrategy() const {
|
||||
return detectionStrategy_;
|
||||
}
|
||||
|
||||
void ImportImageRequest::setDetectionStrategy(const std::string &detectionStrategy) {
|
||||
detectionStrategy_ = detectionStrategy;
|
||||
setParameter(std::string("DetectionStrategy"), detectionStrategy);
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,15 @@ void ModifyImageAttributeRequest::setDescription(const std::string &description)
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
ModifyImageAttributeRequest::Features ModifyImageAttributeRequest::getFeatures() const {
|
||||
return features_;
|
||||
}
|
||||
|
||||
void ModifyImageAttributeRequest::setFeatures(const ModifyImageAttributeRequest::Features &features) {
|
||||
features_ = features;
|
||||
setParameter(std::string("Features") + ".NvmeSupport", features.nvmeSupport);
|
||||
}
|
||||
|
||||
std::string ModifyImageAttributeRequest::getBootMode() const {
|
||||
return bootMode_;
|
||||
}
|
||||
|
||||
@@ -97,6 +97,40 @@ void RevokeSecurityGroupEgressRequest::setRegionId(const std::string ®ionId)
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<RevokeSecurityGroupEgressRequest::Permissions> RevokeSecurityGroupEgressRequest::getPermissions() const {
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupEgressRequest::setPermissions(const std::vector<RevokeSecurityGroupEgressRequest::Permissions> &permissions) {
|
||||
permissions_ = permissions;
|
||||
for(int dep1 = 0; dep1 != permissions.size(); dep1++) {
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Policy", permissions[dep1].policy);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Priority", permissions[dep1].priority);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", permissions[dep1].ipProtocol);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", permissions[dep1].destCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6DestCidrIp", permissions[dep1].ipv6DestCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestGroupId", permissions[dep1].destGroupId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestPrefixListId", permissions[dep1].destPrefixListId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".PortRange", permissions[dep1].portRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", permissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6SourceCidrIp", permissions[dep1].ipv6SourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", permissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestGroupOwnerAccount", permissions[dep1].destGroupOwnerAccount);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestGroupOwnerId", permissions[dep1].destGroupOwnerId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".NicType", permissions[dep1].nicType);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Description", permissions[dep1].description);
|
||||
}
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getIpv6DestCidrIp() const {
|
||||
return ipv6DestCidrIp_;
|
||||
}
|
||||
@@ -115,15 +149,6 @@ void RevokeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string &ip
|
||||
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getPortRange() const {
|
||||
return portRange_;
|
||||
}
|
||||
@@ -187,15 +212,6 @@ void RevokeSecurityGroupEgressRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const {
|
||||
return destGroupOwnerAccount_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
|
||||
destGroupOwnerAccount_ = destGroupOwnerAccount;
|
||||
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
@@ -205,6 +221,15 @@ void RevokeSecurityGroupEgressRequest::setPriority(const std::string &priority)
|
||||
setParameter(std::string("Priority"), priority);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const {
|
||||
return destGroupOwnerAccount_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
|
||||
destGroupOwnerAccount_ = destGroupOwnerAccount;
|
||||
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupEgressRequest::getDestCidrIp() const {
|
||||
return destCidrIp_;
|
||||
}
|
||||
|
||||
@@ -115,13 +115,38 @@ void RevokeSecurityGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupRequest::getIpv6DestCidrIp() const {
|
||||
return ipv6DestCidrIp_;
|
||||
std::vector<RevokeSecurityGroupRequest::Permissions> RevokeSecurityGroupRequest::getPermissions() const {
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) {
|
||||
ipv6DestCidrIp_ = ipv6DestCidrIp;
|
||||
setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp);
|
||||
void RevokeSecurityGroupRequest::setPermissions(const std::vector<RevokeSecurityGroupRequest::Permissions> &permissions) {
|
||||
permissions_ = permissions;
|
||||
for(int dep1 = 0; dep1 != permissions.size(); dep1++) {
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Policy", permissions[dep1].policy);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Priority", permissions[dep1].priority);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", permissions[dep1].ipProtocol);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", permissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6SourceCidrIp", permissions[dep1].ipv6SourceCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceGroupId", permissions[dep1].sourceGroupId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePrefixListId", permissions[dep1].sourcePrefixListId);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".PortRange", permissions[dep1].portRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", permissions[dep1].destCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Ipv6DestCidrIp", permissions[dep1].ipv6DestCidrIp);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", permissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceGroupOwnerAccount", permissions[dep1].sourceGroupOwnerAccount);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceGroupOwnerId", std::to_string(permissions[dep1].sourceGroupOwnerId));
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".NicType", permissions[dep1].nicType);
|
||||
setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Description", permissions[dep1].description);
|
||||
}
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupRequest::getIpv6SourceCidrIp() const {
|
||||
@@ -133,13 +158,13 @@ void RevokeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string &ipv6Sour
|
||||
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupRequest::getPolicy() const {
|
||||
return policy_;
|
||||
std::string RevokeSecurityGroupRequest::getIpv6DestCidrIp() const {
|
||||
return ipv6DestCidrIp_;
|
||||
}
|
||||
|
||||
void RevokeSecurityGroupRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
void RevokeSecurityGroupRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) {
|
||||
ipv6DestCidrIp_ = ipv6DestCidrIp;
|
||||
setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp);
|
||||
}
|
||||
|
||||
std::string RevokeSecurityGroupRequest::getPortRange() const {
|
||||
|
||||
@@ -23,6 +23,10 @@ set(iot_public_header
|
||||
set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/AddDataForApiSourceRequest.h
|
||||
include/alibabacloud/iot/model/AddDataForApiSourceResult.h
|
||||
include/alibabacloud/iot/model/AttachDestinationRequest.h
|
||||
include/alibabacloud/iot/model/AttachDestinationResult.h
|
||||
include/alibabacloud/iot/model/AttachParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/AttachParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/BatchAddDataForApiSourceRequest.h
|
||||
include/alibabacloud/iot/model/BatchAddDataForApiSourceResult.h
|
||||
include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h
|
||||
@@ -131,6 +135,8 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/CreateDataAPIServiceResult.h
|
||||
include/alibabacloud/iot/model/CreateDataSourceItemRequest.h
|
||||
include/alibabacloud/iot/model/CreateDataSourceItemResult.h
|
||||
include/alibabacloud/iot/model/CreateDestinationRequest.h
|
||||
include/alibabacloud/iot/model/CreateDestinationResult.h
|
||||
include/alibabacloud/iot/model/CreateDeviceDistributeJobRequest.h
|
||||
include/alibabacloud/iot/model/CreateDeviceDistributeJobResult.h
|
||||
include/alibabacloud/iot/model/CreateDeviceDynamicGroupRequest.h
|
||||
@@ -167,6 +173,10 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobResult.h
|
||||
include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h
|
||||
include/alibabacloud/iot/model/CreateOTAVerifyJobResult.h
|
||||
include/alibabacloud/iot/model/CreateParserRequest.h
|
||||
include/alibabacloud/iot/model/CreateParserResult.h
|
||||
include/alibabacloud/iot/model/CreateParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/CreateParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/CreateProductRequest.h
|
||||
include/alibabacloud/iot/model/CreateProductResult.h
|
||||
include/alibabacloud/iot/model/CreateProductDistributeJobRequest.h
|
||||
@@ -207,6 +217,10 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/DeleteConsumerGroupResult.h
|
||||
include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationRequest.h
|
||||
include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationResult.h
|
||||
include/alibabacloud/iot/model/DeleteDataSourceItemRequest.h
|
||||
include/alibabacloud/iot/model/DeleteDataSourceItemResult.h
|
||||
include/alibabacloud/iot/model/DeleteDestinationRequest.h
|
||||
include/alibabacloud/iot/model/DeleteDestinationResult.h
|
||||
include/alibabacloud/iot/model/DeleteDeviceRequest.h
|
||||
include/alibabacloud/iot/model/DeleteDeviceResult.h
|
||||
include/alibabacloud/iot/model/DeleteDeviceDistributeJobRequest.h
|
||||
@@ -237,6 +251,10 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/DeleteOTAFirmwareResult.h
|
||||
include/alibabacloud/iot/model/DeleteOTAModuleRequest.h
|
||||
include/alibabacloud/iot/model/DeleteOTAModuleResult.h
|
||||
include/alibabacloud/iot/model/DeleteParserRequest.h
|
||||
include/alibabacloud/iot/model/DeleteParserResult.h
|
||||
include/alibabacloud/iot/model/DeleteParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/DeleteParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/DeleteProductRequest.h
|
||||
include/alibabacloud/iot/model/DeleteProductResult.h
|
||||
include/alibabacloud/iot/model/DeleteProductTagsRequest.h
|
||||
@@ -267,6 +285,10 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/DeleteThingModelResult.h
|
||||
include/alibabacloud/iot/model/DeleteTopicRouteTableRequest.h
|
||||
include/alibabacloud/iot/model/DeleteTopicRouteTableResult.h
|
||||
include/alibabacloud/iot/model/DetachDestinationRequest.h
|
||||
include/alibabacloud/iot/model/DetachDestinationResult.h
|
||||
include/alibabacloud/iot/model/DetachParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/DetachParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/DisableDeviceTunnelRequest.h
|
||||
include/alibabacloud/iot/model/DisableDeviceTunnelResult.h
|
||||
include/alibabacloud/iot/model/DisableDeviceTunnelShareRequest.h
|
||||
@@ -291,6 +313,8 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h
|
||||
include/alibabacloud/iot/model/GetDataAPIServiceDetailRequest.h
|
||||
include/alibabacloud/iot/model/GetDataAPIServiceDetailResult.h
|
||||
include/alibabacloud/iot/model/GetDestinationRequest.h
|
||||
include/alibabacloud/iot/model/GetDestinationResult.h
|
||||
include/alibabacloud/iot/model/GetDeviceShadowRequest.h
|
||||
include/alibabacloud/iot/model/GetDeviceShadowResult.h
|
||||
include/alibabacloud/iot/model/GetDeviceStatusRequest.h
|
||||
@@ -311,6 +335,10 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/GetGatewayBySubDeviceResult.h
|
||||
include/alibabacloud/iot/model/GetLoraNodesTaskRequest.h
|
||||
include/alibabacloud/iot/model/GetLoraNodesTaskResult.h
|
||||
include/alibabacloud/iot/model/GetParserRequest.h
|
||||
include/alibabacloud/iot/model/GetParserResult.h
|
||||
include/alibabacloud/iot/model/GetParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/GetParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/GetRuleRequest.h
|
||||
include/alibabacloud/iot/model/GetRuleResult.h
|
||||
include/alibabacloud/iot/model/GetRuleActionRequest.h
|
||||
@@ -355,6 +383,8 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/ListAnalyticsDataResult.h
|
||||
include/alibabacloud/iot/model/ListDataSourceItemRequest.h
|
||||
include/alibabacloud/iot/model/ListDataSourceItemResult.h
|
||||
include/alibabacloud/iot/model/ListDestinationRequest.h
|
||||
include/alibabacloud/iot/model/ListDestinationResult.h
|
||||
include/alibabacloud/iot/model/ListDeviceDistributeJobRequest.h
|
||||
include/alibabacloud/iot/model/ListDeviceDistributeJobResult.h
|
||||
include/alibabacloud/iot/model/ListDistributedDeviceRequest.h
|
||||
@@ -377,6 +407,12 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/ListOTATaskByJobResult.h
|
||||
include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceRequest.h
|
||||
include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceResult.h
|
||||
include/alibabacloud/iot/model/ListParserRequest.h
|
||||
include/alibabacloud/iot/model/ListParserResult.h
|
||||
include/alibabacloud/iot/model/ListParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/ListParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/ListParserDestinationRequest.h
|
||||
include/alibabacloud/iot/model/ListParserDestinationResult.h
|
||||
include/alibabacloud/iot/model/ListProductByTagsRequest.h
|
||||
include/alibabacloud/iot/model/ListProductByTagsResult.h
|
||||
include/alibabacloud/iot/model/ListProductTagsRequest.h
|
||||
@@ -403,6 +439,8 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/PubResult.h
|
||||
include/alibabacloud/iot/model/PubBroadcastRequest.h
|
||||
include/alibabacloud/iot/model/PubBroadcastResult.h
|
||||
include/alibabacloud/iot/model/PublishScriptRequest.h
|
||||
include/alibabacloud/iot/model/PublishScriptResult.h
|
||||
include/alibabacloud/iot/model/PublishStudioAppRequest.h
|
||||
include/alibabacloud/iot/model/PublishStudioAppResult.h
|
||||
include/alibabacloud/iot/model/PublishThingModelRequest.h
|
||||
@@ -623,6 +661,8 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/ReupgradeOTATaskResult.h
|
||||
include/alibabacloud/iot/model/SaveDevicePropRequest.h
|
||||
include/alibabacloud/iot/model/SaveDevicePropResult.h
|
||||
include/alibabacloud/iot/model/SaveScriptRequest.h
|
||||
include/alibabacloud/iot/model/SaveScriptResult.h
|
||||
include/alibabacloud/iot/model/SetDeviceDesiredPropertyRequest.h
|
||||
include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h
|
||||
include/alibabacloud/iot/model/SetDeviceGroupTagsRequest.h
|
||||
@@ -643,8 +683,12 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/SpeechByCombinationResult.h
|
||||
include/alibabacloud/iot/model/SpeechBySynthesisRequest.h
|
||||
include/alibabacloud/iot/model/SpeechBySynthesisResult.h
|
||||
include/alibabacloud/iot/model/StartParserRequest.h
|
||||
include/alibabacloud/iot/model/StartParserResult.h
|
||||
include/alibabacloud/iot/model/StartRuleRequest.h
|
||||
include/alibabacloud/iot/model/StartRuleResult.h
|
||||
include/alibabacloud/iot/model/StopParserRequest.h
|
||||
include/alibabacloud/iot/model/StopParserResult.h
|
||||
include/alibabacloud/iot/model/StopRuleRequest.h
|
||||
include/alibabacloud/iot/model/StopRuleResult.h
|
||||
include/alibabacloud/iot/model/SubscribeTopicRequest.h
|
||||
@@ -669,6 +713,8 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/UnbindSceneRuleFromEdgeInstanceResult.h
|
||||
include/alibabacloud/iot/model/UpdateConsumerGroupRequest.h
|
||||
include/alibabacloud/iot/model/UpdateConsumerGroupResult.h
|
||||
include/alibabacloud/iot/model/UpdateDestinationRequest.h
|
||||
include/alibabacloud/iot/model/UpdateDestinationResult.h
|
||||
include/alibabacloud/iot/model/UpdateDeviceGroupRequest.h
|
||||
include/alibabacloud/iot/model/UpdateDeviceGroupResult.h
|
||||
include/alibabacloud/iot/model/UpdateDeviceShadowRequest.h
|
||||
@@ -685,6 +731,10 @@ set(iot_public_header_model
|
||||
include/alibabacloud/iot/model/UpdateJobResult.h
|
||||
include/alibabacloud/iot/model/UpdateOTAModuleRequest.h
|
||||
include/alibabacloud/iot/model/UpdateOTAModuleResult.h
|
||||
include/alibabacloud/iot/model/UpdateParserRequest.h
|
||||
include/alibabacloud/iot/model/UpdateParserResult.h
|
||||
include/alibabacloud/iot/model/UpdateParserDataSourceRequest.h
|
||||
include/alibabacloud/iot/model/UpdateParserDataSourceResult.h
|
||||
include/alibabacloud/iot/model/UpdateProductRequest.h
|
||||
include/alibabacloud/iot/model/UpdateProductResult.h
|
||||
include/alibabacloud/iot/model/UpdateProductFilterConfigRequest.h
|
||||
@@ -720,6 +770,10 @@ set(iot_src
|
||||
src/IotClient.cc
|
||||
src/model/AddDataForApiSourceRequest.cc
|
||||
src/model/AddDataForApiSourceResult.cc
|
||||
src/model/AttachDestinationRequest.cc
|
||||
src/model/AttachDestinationResult.cc
|
||||
src/model/AttachParserDataSourceRequest.cc
|
||||
src/model/AttachParserDataSourceResult.cc
|
||||
src/model/BatchAddDataForApiSourceRequest.cc
|
||||
src/model/BatchAddDataForApiSourceResult.cc
|
||||
src/model/BatchAddDeviceGroupRelationsRequest.cc
|
||||
@@ -828,6 +882,8 @@ set(iot_src
|
||||
src/model/CreateDataAPIServiceResult.cc
|
||||
src/model/CreateDataSourceItemRequest.cc
|
||||
src/model/CreateDataSourceItemResult.cc
|
||||
src/model/CreateDestinationRequest.cc
|
||||
src/model/CreateDestinationResult.cc
|
||||
src/model/CreateDeviceDistributeJobRequest.cc
|
||||
src/model/CreateDeviceDistributeJobResult.cc
|
||||
src/model/CreateDeviceDynamicGroupRequest.cc
|
||||
@@ -864,6 +920,10 @@ set(iot_src
|
||||
src/model/CreateOTAStaticUpgradeJobResult.cc
|
||||
src/model/CreateOTAVerifyJobRequest.cc
|
||||
src/model/CreateOTAVerifyJobResult.cc
|
||||
src/model/CreateParserRequest.cc
|
||||
src/model/CreateParserResult.cc
|
||||
src/model/CreateParserDataSourceRequest.cc
|
||||
src/model/CreateParserDataSourceResult.cc
|
||||
src/model/CreateProductRequest.cc
|
||||
src/model/CreateProductResult.cc
|
||||
src/model/CreateProductDistributeJobRequest.cc
|
||||
@@ -904,6 +964,10 @@ set(iot_src
|
||||
src/model/DeleteConsumerGroupResult.cc
|
||||
src/model/DeleteConsumerGroupSubscribeRelationRequest.cc
|
||||
src/model/DeleteConsumerGroupSubscribeRelationResult.cc
|
||||
src/model/DeleteDataSourceItemRequest.cc
|
||||
src/model/DeleteDataSourceItemResult.cc
|
||||
src/model/DeleteDestinationRequest.cc
|
||||
src/model/DeleteDestinationResult.cc
|
||||
src/model/DeleteDeviceRequest.cc
|
||||
src/model/DeleteDeviceResult.cc
|
||||
src/model/DeleteDeviceDistributeJobRequest.cc
|
||||
@@ -934,6 +998,10 @@ set(iot_src
|
||||
src/model/DeleteOTAFirmwareResult.cc
|
||||
src/model/DeleteOTAModuleRequest.cc
|
||||
src/model/DeleteOTAModuleResult.cc
|
||||
src/model/DeleteParserRequest.cc
|
||||
src/model/DeleteParserResult.cc
|
||||
src/model/DeleteParserDataSourceRequest.cc
|
||||
src/model/DeleteParserDataSourceResult.cc
|
||||
src/model/DeleteProductRequest.cc
|
||||
src/model/DeleteProductResult.cc
|
||||
src/model/DeleteProductTagsRequest.cc
|
||||
@@ -964,6 +1032,10 @@ set(iot_src
|
||||
src/model/DeleteThingModelResult.cc
|
||||
src/model/DeleteTopicRouteTableRequest.cc
|
||||
src/model/DeleteTopicRouteTableResult.cc
|
||||
src/model/DetachDestinationRequest.cc
|
||||
src/model/DetachDestinationResult.cc
|
||||
src/model/DetachParserDataSourceRequest.cc
|
||||
src/model/DetachParserDataSourceResult.cc
|
||||
src/model/DisableDeviceTunnelRequest.cc
|
||||
src/model/DisableDeviceTunnelResult.cc
|
||||
src/model/DisableDeviceTunnelShareRequest.cc
|
||||
@@ -988,6 +1060,8 @@ set(iot_src
|
||||
src/model/GenerateOTAUploadURLResult.cc
|
||||
src/model/GetDataAPIServiceDetailRequest.cc
|
||||
src/model/GetDataAPIServiceDetailResult.cc
|
||||
src/model/GetDestinationRequest.cc
|
||||
src/model/GetDestinationResult.cc
|
||||
src/model/GetDeviceShadowRequest.cc
|
||||
src/model/GetDeviceShadowResult.cc
|
||||
src/model/GetDeviceStatusRequest.cc
|
||||
@@ -1008,6 +1082,10 @@ set(iot_src
|
||||
src/model/GetGatewayBySubDeviceResult.cc
|
||||
src/model/GetLoraNodesTaskRequest.cc
|
||||
src/model/GetLoraNodesTaskResult.cc
|
||||
src/model/GetParserRequest.cc
|
||||
src/model/GetParserResult.cc
|
||||
src/model/GetParserDataSourceRequest.cc
|
||||
src/model/GetParserDataSourceResult.cc
|
||||
src/model/GetRuleRequest.cc
|
||||
src/model/GetRuleResult.cc
|
||||
src/model/GetRuleActionRequest.cc
|
||||
@@ -1052,6 +1130,8 @@ set(iot_src
|
||||
src/model/ListAnalyticsDataResult.cc
|
||||
src/model/ListDataSourceItemRequest.cc
|
||||
src/model/ListDataSourceItemResult.cc
|
||||
src/model/ListDestinationRequest.cc
|
||||
src/model/ListDestinationResult.cc
|
||||
src/model/ListDeviceDistributeJobRequest.cc
|
||||
src/model/ListDeviceDistributeJobResult.cc
|
||||
src/model/ListDistributedDeviceRequest.cc
|
||||
@@ -1074,6 +1154,12 @@ set(iot_src
|
||||
src/model/ListOTATaskByJobResult.cc
|
||||
src/model/ListOTAUnfinishedTaskByDeviceRequest.cc
|
||||
src/model/ListOTAUnfinishedTaskByDeviceResult.cc
|
||||
src/model/ListParserRequest.cc
|
||||
src/model/ListParserResult.cc
|
||||
src/model/ListParserDataSourceRequest.cc
|
||||
src/model/ListParserDataSourceResult.cc
|
||||
src/model/ListParserDestinationRequest.cc
|
||||
src/model/ListParserDestinationResult.cc
|
||||
src/model/ListProductByTagsRequest.cc
|
||||
src/model/ListProductByTagsResult.cc
|
||||
src/model/ListProductTagsRequest.cc
|
||||
@@ -1100,6 +1186,8 @@ set(iot_src
|
||||
src/model/PubResult.cc
|
||||
src/model/PubBroadcastRequest.cc
|
||||
src/model/PubBroadcastResult.cc
|
||||
src/model/PublishScriptRequest.cc
|
||||
src/model/PublishScriptResult.cc
|
||||
src/model/PublishStudioAppRequest.cc
|
||||
src/model/PublishStudioAppResult.cc
|
||||
src/model/PublishThingModelRequest.cc
|
||||
@@ -1320,6 +1408,8 @@ set(iot_src
|
||||
src/model/ReupgradeOTATaskResult.cc
|
||||
src/model/SaveDevicePropRequest.cc
|
||||
src/model/SaveDevicePropResult.cc
|
||||
src/model/SaveScriptRequest.cc
|
||||
src/model/SaveScriptResult.cc
|
||||
src/model/SetDeviceDesiredPropertyRequest.cc
|
||||
src/model/SetDeviceDesiredPropertyResult.cc
|
||||
src/model/SetDeviceGroupTagsRequest.cc
|
||||
@@ -1340,8 +1430,12 @@ set(iot_src
|
||||
src/model/SpeechByCombinationResult.cc
|
||||
src/model/SpeechBySynthesisRequest.cc
|
||||
src/model/SpeechBySynthesisResult.cc
|
||||
src/model/StartParserRequest.cc
|
||||
src/model/StartParserResult.cc
|
||||
src/model/StartRuleRequest.cc
|
||||
src/model/StartRuleResult.cc
|
||||
src/model/StopParserRequest.cc
|
||||
src/model/StopParserResult.cc
|
||||
src/model/StopRuleRequest.cc
|
||||
src/model/StopRuleResult.cc
|
||||
src/model/SubscribeTopicRequest.cc
|
||||
@@ -1366,6 +1460,8 @@ set(iot_src
|
||||
src/model/UnbindSceneRuleFromEdgeInstanceResult.cc
|
||||
src/model/UpdateConsumerGroupRequest.cc
|
||||
src/model/UpdateConsumerGroupResult.cc
|
||||
src/model/UpdateDestinationRequest.cc
|
||||
src/model/UpdateDestinationResult.cc
|
||||
src/model/UpdateDeviceGroupRequest.cc
|
||||
src/model/UpdateDeviceGroupResult.cc
|
||||
src/model/UpdateDeviceShadowRequest.cc
|
||||
@@ -1382,6 +1478,10 @@ set(iot_src
|
||||
src/model/UpdateJobResult.cc
|
||||
src/model/UpdateOTAModuleRequest.cc
|
||||
src/model/UpdateOTAModuleResult.cc
|
||||
src/model/UpdateParserRequest.cc
|
||||
src/model/UpdateParserResult.cc
|
||||
src/model/UpdateParserDataSourceRequest.cc
|
||||
src/model/UpdateParserDataSourceResult.cc
|
||||
src/model/UpdateProductRequest.cc
|
||||
src/model/UpdateProductResult.cc
|
||||
src/model/UpdateProductFilterConfigRequest.cc
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
#include "IotExport.h"
|
||||
#include "model/AddDataForApiSourceRequest.h"
|
||||
#include "model/AddDataForApiSourceResult.h"
|
||||
#include "model/AttachDestinationRequest.h"
|
||||
#include "model/AttachDestinationResult.h"
|
||||
#include "model/AttachParserDataSourceRequest.h"
|
||||
#include "model/AttachParserDataSourceResult.h"
|
||||
#include "model/BatchAddDataForApiSourceRequest.h"
|
||||
#include "model/BatchAddDataForApiSourceResult.h"
|
||||
#include "model/BatchAddDeviceGroupRelationsRequest.h"
|
||||
@@ -132,6 +136,8 @@
|
||||
#include "model/CreateDataAPIServiceResult.h"
|
||||
#include "model/CreateDataSourceItemRequest.h"
|
||||
#include "model/CreateDataSourceItemResult.h"
|
||||
#include "model/CreateDestinationRequest.h"
|
||||
#include "model/CreateDestinationResult.h"
|
||||
#include "model/CreateDeviceDistributeJobRequest.h"
|
||||
#include "model/CreateDeviceDistributeJobResult.h"
|
||||
#include "model/CreateDeviceDynamicGroupRequest.h"
|
||||
@@ -168,6 +174,10 @@
|
||||
#include "model/CreateOTAStaticUpgradeJobResult.h"
|
||||
#include "model/CreateOTAVerifyJobRequest.h"
|
||||
#include "model/CreateOTAVerifyJobResult.h"
|
||||
#include "model/CreateParserRequest.h"
|
||||
#include "model/CreateParserResult.h"
|
||||
#include "model/CreateParserDataSourceRequest.h"
|
||||
#include "model/CreateParserDataSourceResult.h"
|
||||
#include "model/CreateProductRequest.h"
|
||||
#include "model/CreateProductResult.h"
|
||||
#include "model/CreateProductDistributeJobRequest.h"
|
||||
@@ -208,6 +218,10 @@
|
||||
#include "model/DeleteConsumerGroupResult.h"
|
||||
#include "model/DeleteConsumerGroupSubscribeRelationRequest.h"
|
||||
#include "model/DeleteConsumerGroupSubscribeRelationResult.h"
|
||||
#include "model/DeleteDataSourceItemRequest.h"
|
||||
#include "model/DeleteDataSourceItemResult.h"
|
||||
#include "model/DeleteDestinationRequest.h"
|
||||
#include "model/DeleteDestinationResult.h"
|
||||
#include "model/DeleteDeviceRequest.h"
|
||||
#include "model/DeleteDeviceResult.h"
|
||||
#include "model/DeleteDeviceDistributeJobRequest.h"
|
||||
@@ -238,6 +252,10 @@
|
||||
#include "model/DeleteOTAFirmwareResult.h"
|
||||
#include "model/DeleteOTAModuleRequest.h"
|
||||
#include "model/DeleteOTAModuleResult.h"
|
||||
#include "model/DeleteParserRequest.h"
|
||||
#include "model/DeleteParserResult.h"
|
||||
#include "model/DeleteParserDataSourceRequest.h"
|
||||
#include "model/DeleteParserDataSourceResult.h"
|
||||
#include "model/DeleteProductRequest.h"
|
||||
#include "model/DeleteProductResult.h"
|
||||
#include "model/DeleteProductTagsRequest.h"
|
||||
@@ -268,6 +286,10 @@
|
||||
#include "model/DeleteThingModelResult.h"
|
||||
#include "model/DeleteTopicRouteTableRequest.h"
|
||||
#include "model/DeleteTopicRouteTableResult.h"
|
||||
#include "model/DetachDestinationRequest.h"
|
||||
#include "model/DetachDestinationResult.h"
|
||||
#include "model/DetachParserDataSourceRequest.h"
|
||||
#include "model/DetachParserDataSourceResult.h"
|
||||
#include "model/DisableDeviceTunnelRequest.h"
|
||||
#include "model/DisableDeviceTunnelResult.h"
|
||||
#include "model/DisableDeviceTunnelShareRequest.h"
|
||||
@@ -292,6 +314,8 @@
|
||||
#include "model/GenerateOTAUploadURLResult.h"
|
||||
#include "model/GetDataAPIServiceDetailRequest.h"
|
||||
#include "model/GetDataAPIServiceDetailResult.h"
|
||||
#include "model/GetDestinationRequest.h"
|
||||
#include "model/GetDestinationResult.h"
|
||||
#include "model/GetDeviceShadowRequest.h"
|
||||
#include "model/GetDeviceShadowResult.h"
|
||||
#include "model/GetDeviceStatusRequest.h"
|
||||
@@ -312,6 +336,10 @@
|
||||
#include "model/GetGatewayBySubDeviceResult.h"
|
||||
#include "model/GetLoraNodesTaskRequest.h"
|
||||
#include "model/GetLoraNodesTaskResult.h"
|
||||
#include "model/GetParserRequest.h"
|
||||
#include "model/GetParserResult.h"
|
||||
#include "model/GetParserDataSourceRequest.h"
|
||||
#include "model/GetParserDataSourceResult.h"
|
||||
#include "model/GetRuleRequest.h"
|
||||
#include "model/GetRuleResult.h"
|
||||
#include "model/GetRuleActionRequest.h"
|
||||
@@ -356,6 +384,8 @@
|
||||
#include "model/ListAnalyticsDataResult.h"
|
||||
#include "model/ListDataSourceItemRequest.h"
|
||||
#include "model/ListDataSourceItemResult.h"
|
||||
#include "model/ListDestinationRequest.h"
|
||||
#include "model/ListDestinationResult.h"
|
||||
#include "model/ListDeviceDistributeJobRequest.h"
|
||||
#include "model/ListDeviceDistributeJobResult.h"
|
||||
#include "model/ListDistributedDeviceRequest.h"
|
||||
@@ -378,6 +408,12 @@
|
||||
#include "model/ListOTATaskByJobResult.h"
|
||||
#include "model/ListOTAUnfinishedTaskByDeviceRequest.h"
|
||||
#include "model/ListOTAUnfinishedTaskByDeviceResult.h"
|
||||
#include "model/ListParserRequest.h"
|
||||
#include "model/ListParserResult.h"
|
||||
#include "model/ListParserDataSourceRequest.h"
|
||||
#include "model/ListParserDataSourceResult.h"
|
||||
#include "model/ListParserDestinationRequest.h"
|
||||
#include "model/ListParserDestinationResult.h"
|
||||
#include "model/ListProductByTagsRequest.h"
|
||||
#include "model/ListProductByTagsResult.h"
|
||||
#include "model/ListProductTagsRequest.h"
|
||||
@@ -404,6 +440,8 @@
|
||||
#include "model/PubResult.h"
|
||||
#include "model/PubBroadcastRequest.h"
|
||||
#include "model/PubBroadcastResult.h"
|
||||
#include "model/PublishScriptRequest.h"
|
||||
#include "model/PublishScriptResult.h"
|
||||
#include "model/PublishStudioAppRequest.h"
|
||||
#include "model/PublishStudioAppResult.h"
|
||||
#include "model/PublishThingModelRequest.h"
|
||||
@@ -624,6 +662,8 @@
|
||||
#include "model/ReupgradeOTATaskResult.h"
|
||||
#include "model/SaveDevicePropRequest.h"
|
||||
#include "model/SaveDevicePropResult.h"
|
||||
#include "model/SaveScriptRequest.h"
|
||||
#include "model/SaveScriptResult.h"
|
||||
#include "model/SetDeviceDesiredPropertyRequest.h"
|
||||
#include "model/SetDeviceDesiredPropertyResult.h"
|
||||
#include "model/SetDeviceGroupTagsRequest.h"
|
||||
@@ -644,8 +684,12 @@
|
||||
#include "model/SpeechByCombinationResult.h"
|
||||
#include "model/SpeechBySynthesisRequest.h"
|
||||
#include "model/SpeechBySynthesisResult.h"
|
||||
#include "model/StartParserRequest.h"
|
||||
#include "model/StartParserResult.h"
|
||||
#include "model/StartRuleRequest.h"
|
||||
#include "model/StartRuleResult.h"
|
||||
#include "model/StopParserRequest.h"
|
||||
#include "model/StopParserResult.h"
|
||||
#include "model/StopRuleRequest.h"
|
||||
#include "model/StopRuleResult.h"
|
||||
#include "model/SubscribeTopicRequest.h"
|
||||
@@ -670,6 +714,8 @@
|
||||
#include "model/UnbindSceneRuleFromEdgeInstanceResult.h"
|
||||
#include "model/UpdateConsumerGroupRequest.h"
|
||||
#include "model/UpdateConsumerGroupResult.h"
|
||||
#include "model/UpdateDestinationRequest.h"
|
||||
#include "model/UpdateDestinationResult.h"
|
||||
#include "model/UpdateDeviceGroupRequest.h"
|
||||
#include "model/UpdateDeviceGroupResult.h"
|
||||
#include "model/UpdateDeviceShadowRequest.h"
|
||||
@@ -686,6 +732,10 @@
|
||||
#include "model/UpdateJobResult.h"
|
||||
#include "model/UpdateOTAModuleRequest.h"
|
||||
#include "model/UpdateOTAModuleResult.h"
|
||||
#include "model/UpdateParserRequest.h"
|
||||
#include "model/UpdateParserResult.h"
|
||||
#include "model/UpdateParserDataSourceRequest.h"
|
||||
#include "model/UpdateParserDataSourceResult.h"
|
||||
#include "model/UpdateProductRequest.h"
|
||||
#include "model/UpdateProductResult.h"
|
||||
#include "model/UpdateProductFilterConfigRequest.h"
|
||||
@@ -728,6 +778,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddDataForApiSourceResult> AddDataForApiSourceOutcome;
|
||||
typedef std::future<AddDataForApiSourceOutcome> AddDataForApiSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::AddDataForApiSourceRequest&, const AddDataForApiSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDataForApiSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::AttachDestinationResult> AttachDestinationOutcome;
|
||||
typedef std::future<AttachDestinationOutcome> AttachDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::AttachDestinationRequest&, const AttachDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::AttachParserDataSourceResult> AttachParserDataSourceOutcome;
|
||||
typedef std::future<AttachParserDataSourceOutcome> AttachParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::AttachParserDataSourceRequest&, const AttachParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchAddDataForApiSourceResult> BatchAddDataForApiSourceOutcome;
|
||||
typedef std::future<BatchAddDataForApiSourceOutcome> BatchAddDataForApiSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::BatchAddDataForApiSourceRequest&, const BatchAddDataForApiSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchAddDataForApiSourceAsyncHandler;
|
||||
@@ -890,6 +946,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDataSourceItemResult> CreateDataSourceItemOutcome;
|
||||
typedef std::future<CreateDataSourceItemOutcome> CreateDataSourceItemOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateDataSourceItemRequest&, const CreateDataSourceItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataSourceItemAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDestinationResult> CreateDestinationOutcome;
|
||||
typedef std::future<CreateDestinationOutcome> CreateDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateDestinationRequest&, const CreateDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDeviceDistributeJobResult> CreateDeviceDistributeJobOutcome;
|
||||
typedef std::future<CreateDeviceDistributeJobOutcome> CreateDeviceDistributeJobOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateDeviceDistributeJobRequest&, const CreateDeviceDistributeJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceDistributeJobAsyncHandler;
|
||||
@@ -944,6 +1003,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateOTAVerifyJobResult> CreateOTAVerifyJobOutcome;
|
||||
typedef std::future<CreateOTAVerifyJobOutcome> CreateOTAVerifyJobOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateOTAVerifyJobRequest&, const CreateOTAVerifyJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateOTAVerifyJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateParserResult> CreateParserOutcome;
|
||||
typedef std::future<CreateParserOutcome> CreateParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateParserRequest&, const CreateParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateParserDataSourceResult> CreateParserDataSourceOutcome;
|
||||
typedef std::future<CreateParserDataSourceOutcome> CreateParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateParserDataSourceRequest&, const CreateParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateProductResult> CreateProductOutcome;
|
||||
typedef std::future<CreateProductOutcome> CreateProductOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::CreateProductRequest&, const CreateProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProductAsyncHandler;
|
||||
@@ -1004,6 +1069,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteConsumerGroupSubscribeRelationResult> DeleteConsumerGroupSubscribeRelationOutcome;
|
||||
typedef std::future<DeleteConsumerGroupSubscribeRelationOutcome> DeleteConsumerGroupSubscribeRelationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteConsumerGroupSubscribeRelationRequest&, const DeleteConsumerGroupSubscribeRelationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConsumerGroupSubscribeRelationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDataSourceItemResult> DeleteDataSourceItemOutcome;
|
||||
typedef std::future<DeleteDataSourceItemOutcome> DeleteDataSourceItemOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteDataSourceItemRequest&, const DeleteDataSourceItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDataSourceItemAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDestinationResult> DeleteDestinationOutcome;
|
||||
typedef std::future<DeleteDestinationOutcome> DeleteDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteDestinationRequest&, const DeleteDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
|
||||
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
|
||||
@@ -1049,6 +1120,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteOTAModuleResult> DeleteOTAModuleOutcome;
|
||||
typedef std::future<DeleteOTAModuleOutcome> DeleteOTAModuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteOTAModuleRequest&, const DeleteOTAModuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteOTAModuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteParserResult> DeleteParserOutcome;
|
||||
typedef std::future<DeleteParserOutcome> DeleteParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteParserRequest&, const DeleteParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteParserDataSourceResult> DeleteParserDataSourceOutcome;
|
||||
typedef std::future<DeleteParserDataSourceOutcome> DeleteParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteParserDataSourceRequest&, const DeleteParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteProductResult> DeleteProductOutcome;
|
||||
typedef std::future<DeleteProductOutcome> DeleteProductOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteProductRequest&, const DeleteProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProductAsyncHandler;
|
||||
@@ -1094,6 +1171,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteTopicRouteTableResult> DeleteTopicRouteTableOutcome;
|
||||
typedef std::future<DeleteTopicRouteTableOutcome> DeleteTopicRouteTableOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteTopicRouteTableRequest&, const DeleteTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTopicRouteTableAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachDestinationResult> DetachDestinationOutcome;
|
||||
typedef std::future<DetachDestinationOutcome> DetachDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DetachDestinationRequest&, const DetachDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachParserDataSourceResult> DetachParserDataSourceOutcome;
|
||||
typedef std::future<DetachParserDataSourceOutcome> DetachParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DetachParserDataSourceRequest&, const DetachParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableDeviceTunnelResult> DisableDeviceTunnelOutcome;
|
||||
typedef std::future<DisableDeviceTunnelOutcome> DisableDeviceTunnelOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DisableDeviceTunnelRequest&, const DisableDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDeviceTunnelAsyncHandler;
|
||||
@@ -1130,6 +1213,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDataAPIServiceDetailResult> GetDataAPIServiceDetailOutcome;
|
||||
typedef std::future<GetDataAPIServiceDetailOutcome> GetDataAPIServiceDetailOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetDataAPIServiceDetailRequest&, const GetDataAPIServiceDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataAPIServiceDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDestinationResult> GetDestinationOutcome;
|
||||
typedef std::future<GetDestinationOutcome> GetDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetDestinationRequest&, const GetDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeviceShadowResult> GetDeviceShadowOutcome;
|
||||
typedef std::future<GetDeviceShadowOutcome> GetDeviceShadowOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetDeviceShadowRequest&, const GetDeviceShadowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceShadowAsyncHandler;
|
||||
@@ -1160,6 +1246,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetLoraNodesTaskResult> GetLoraNodesTaskOutcome;
|
||||
typedef std::future<GetLoraNodesTaskOutcome> GetLoraNodesTaskOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetLoraNodesTaskRequest&, const GetLoraNodesTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLoraNodesTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetParserResult> GetParserOutcome;
|
||||
typedef std::future<GetParserOutcome> GetParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetParserRequest&, const GetParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetParserDataSourceResult> GetParserDataSourceOutcome;
|
||||
typedef std::future<GetParserDataSourceOutcome> GetParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetParserDataSourceRequest&, const GetParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRuleResult> GetRuleOutcome;
|
||||
typedef std::future<GetRuleOutcome> GetRuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::GetRuleRequest&, const GetRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRuleAsyncHandler;
|
||||
@@ -1226,6 +1318,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListDataSourceItemResult> ListDataSourceItemOutcome;
|
||||
typedef std::future<ListDataSourceItemOutcome> ListDataSourceItemOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListDataSourceItemRequest&, const ListDataSourceItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataSourceItemAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDestinationResult> ListDestinationOutcome;
|
||||
typedef std::future<ListDestinationOutcome> ListDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListDestinationRequest&, const ListDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDeviceDistributeJobResult> ListDeviceDistributeJobOutcome;
|
||||
typedef std::future<ListDeviceDistributeJobOutcome> ListDeviceDistributeJobOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListDeviceDistributeJobRequest&, const ListDeviceDistributeJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeviceDistributeJobAsyncHandler;
|
||||
@@ -1259,6 +1354,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListOTAUnfinishedTaskByDeviceResult> ListOTAUnfinishedTaskByDeviceOutcome;
|
||||
typedef std::future<ListOTAUnfinishedTaskByDeviceOutcome> ListOTAUnfinishedTaskByDeviceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListOTAUnfinishedTaskByDeviceRequest&, const ListOTAUnfinishedTaskByDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOTAUnfinishedTaskByDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListParserResult> ListParserOutcome;
|
||||
typedef std::future<ListParserOutcome> ListParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListParserRequest&, const ListParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListParserDataSourceResult> ListParserDataSourceOutcome;
|
||||
typedef std::future<ListParserDataSourceOutcome> ListParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListParserDataSourceRequest&, const ListParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListParserDestinationResult> ListParserDestinationOutcome;
|
||||
typedef std::future<ListParserDestinationOutcome> ListParserDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListParserDestinationRequest&, const ListParserDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParserDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProductByTagsResult> ListProductByTagsOutcome;
|
||||
typedef std::future<ListProductByTagsOutcome> ListProductByTagsOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ListProductByTagsRequest&, const ListProductByTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductByTagsAsyncHandler;
|
||||
@@ -1298,6 +1402,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PubBroadcastResult> PubBroadcastOutcome;
|
||||
typedef std::future<PubBroadcastOutcome> PubBroadcastOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::PubBroadcastRequest&, const PubBroadcastOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PubBroadcastAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishScriptResult> PublishScriptOutcome;
|
||||
typedef std::future<PublishScriptOutcome> PublishScriptOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::PublishScriptRequest&, const PublishScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishStudioAppResult> PublishStudioAppOutcome;
|
||||
typedef std::future<PublishStudioAppOutcome> PublishStudioAppOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::PublishStudioAppRequest&, const PublishStudioAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishStudioAppAsyncHandler;
|
||||
@@ -1628,6 +1735,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SaveDevicePropResult> SaveDevicePropOutcome;
|
||||
typedef std::future<SaveDevicePropOutcome> SaveDevicePropOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::SaveDevicePropRequest&, const SaveDevicePropOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveDevicePropAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveScriptResult> SaveScriptOutcome;
|
||||
typedef std::future<SaveScriptOutcome> SaveScriptOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::SaveScriptRequest&, const SaveScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetDeviceDesiredPropertyResult> SetDeviceDesiredPropertyOutcome;
|
||||
typedef std::future<SetDeviceDesiredPropertyOutcome> SetDeviceDesiredPropertyOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::SetDeviceDesiredPropertyRequest&, const SetDeviceDesiredPropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDeviceDesiredPropertyAsyncHandler;
|
||||
@@ -1658,9 +1768,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SpeechBySynthesisResult> SpeechBySynthesisOutcome;
|
||||
typedef std::future<SpeechBySynthesisOutcome> SpeechBySynthesisOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::SpeechBySynthesisRequest&, const SpeechBySynthesisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SpeechBySynthesisAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartParserResult> StartParserOutcome;
|
||||
typedef std::future<StartParserOutcome> StartParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::StartParserRequest&, const StartParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartRuleResult> StartRuleOutcome;
|
||||
typedef std::future<StartRuleOutcome> StartRuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::StartRuleRequest&, const StartRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopParserResult> StopParserOutcome;
|
||||
typedef std::future<StopParserOutcome> StopParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::StopParserRequest&, const StopParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopRuleResult> StopRuleOutcome;
|
||||
typedef std::future<StopRuleOutcome> StopRuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::StopRuleRequest&, const StopRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopRuleAsyncHandler;
|
||||
@@ -1697,6 +1813,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateConsumerGroupResult> UpdateConsumerGroupOutcome;
|
||||
typedef std::future<UpdateConsumerGroupOutcome> UpdateConsumerGroupOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateConsumerGroupRequest&, const UpdateConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateConsumerGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDestinationResult> UpdateDestinationOutcome;
|
||||
typedef std::future<UpdateDestinationOutcome> UpdateDestinationOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateDestinationRequest&, const UpdateDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDestinationAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDeviceGroupResult> UpdateDeviceGroupOutcome;
|
||||
typedef std::future<UpdateDeviceGroupOutcome> UpdateDeviceGroupOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateDeviceGroupRequest&, const UpdateDeviceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceGroupAsyncHandler;
|
||||
@@ -1721,6 +1840,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateOTAModuleResult> UpdateOTAModuleOutcome;
|
||||
typedef std::future<UpdateOTAModuleOutcome> UpdateOTAModuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateOTAModuleRequest&, const UpdateOTAModuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateOTAModuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateParserResult> UpdateParserOutcome;
|
||||
typedef std::future<UpdateParserOutcome> UpdateParserOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateParserRequest&, const UpdateParserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateParserAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateParserDataSourceResult> UpdateParserDataSourceOutcome;
|
||||
typedef std::future<UpdateParserDataSourceOutcome> UpdateParserDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateParserDataSourceRequest&, const UpdateParserDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateParserDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProductResult> UpdateProductOutcome;
|
||||
typedef std::future<UpdateProductOutcome> UpdateProductOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::UpdateProductRequest&, const UpdateProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProductAsyncHandler;
|
||||
@@ -1774,6 +1899,12 @@ namespace AlibabaCloud
|
||||
AddDataForApiSourceOutcome addDataForApiSource(const Model::AddDataForApiSourceRequest &request)const;
|
||||
void addDataForApiSourceAsync(const Model::AddDataForApiSourceRequest& request, const AddDataForApiSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddDataForApiSourceOutcomeCallable addDataForApiSourceCallable(const Model::AddDataForApiSourceRequest& request) const;
|
||||
AttachDestinationOutcome attachDestination(const Model::AttachDestinationRequest &request)const;
|
||||
void attachDestinationAsync(const Model::AttachDestinationRequest& request, const AttachDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachDestinationOutcomeCallable attachDestinationCallable(const Model::AttachDestinationRequest& request) const;
|
||||
AttachParserDataSourceOutcome attachParserDataSource(const Model::AttachParserDataSourceRequest &request)const;
|
||||
void attachParserDataSourceAsync(const Model::AttachParserDataSourceRequest& request, const AttachParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachParserDataSourceOutcomeCallable attachParserDataSourceCallable(const Model::AttachParserDataSourceRequest& request) const;
|
||||
BatchAddDataForApiSourceOutcome batchAddDataForApiSource(const Model::BatchAddDataForApiSourceRequest &request)const;
|
||||
void batchAddDataForApiSourceAsync(const Model::BatchAddDataForApiSourceRequest& request, const BatchAddDataForApiSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchAddDataForApiSourceOutcomeCallable batchAddDataForApiSourceCallable(const Model::BatchAddDataForApiSourceRequest& request) const;
|
||||
@@ -1936,6 +2067,9 @@ namespace AlibabaCloud
|
||||
CreateDataSourceItemOutcome createDataSourceItem(const Model::CreateDataSourceItemRequest &request)const;
|
||||
void createDataSourceItemAsync(const Model::CreateDataSourceItemRequest& request, const CreateDataSourceItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataSourceItemOutcomeCallable createDataSourceItemCallable(const Model::CreateDataSourceItemRequest& request) const;
|
||||
CreateDestinationOutcome createDestination(const Model::CreateDestinationRequest &request)const;
|
||||
void createDestinationAsync(const Model::CreateDestinationRequest& request, const CreateDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDestinationOutcomeCallable createDestinationCallable(const Model::CreateDestinationRequest& request) const;
|
||||
CreateDeviceDistributeJobOutcome createDeviceDistributeJob(const Model::CreateDeviceDistributeJobRequest &request)const;
|
||||
void createDeviceDistributeJobAsync(const Model::CreateDeviceDistributeJobRequest& request, const CreateDeviceDistributeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDeviceDistributeJobOutcomeCallable createDeviceDistributeJobCallable(const Model::CreateDeviceDistributeJobRequest& request) const;
|
||||
@@ -1990,6 +2124,12 @@ namespace AlibabaCloud
|
||||
CreateOTAVerifyJobOutcome createOTAVerifyJob(const Model::CreateOTAVerifyJobRequest &request)const;
|
||||
void createOTAVerifyJobAsync(const Model::CreateOTAVerifyJobRequest& request, const CreateOTAVerifyJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateOTAVerifyJobOutcomeCallable createOTAVerifyJobCallable(const Model::CreateOTAVerifyJobRequest& request) const;
|
||||
CreateParserOutcome createParser(const Model::CreateParserRequest &request)const;
|
||||
void createParserAsync(const Model::CreateParserRequest& request, const CreateParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateParserOutcomeCallable createParserCallable(const Model::CreateParserRequest& request) const;
|
||||
CreateParserDataSourceOutcome createParserDataSource(const Model::CreateParserDataSourceRequest &request)const;
|
||||
void createParserDataSourceAsync(const Model::CreateParserDataSourceRequest& request, const CreateParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateParserDataSourceOutcomeCallable createParserDataSourceCallable(const Model::CreateParserDataSourceRequest& request) const;
|
||||
CreateProductOutcome createProduct(const Model::CreateProductRequest &request)const;
|
||||
void createProductAsync(const Model::CreateProductRequest& request, const CreateProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateProductOutcomeCallable createProductCallable(const Model::CreateProductRequest& request) const;
|
||||
@@ -2050,6 +2190,12 @@ namespace AlibabaCloud
|
||||
DeleteConsumerGroupSubscribeRelationOutcome deleteConsumerGroupSubscribeRelation(const Model::DeleteConsumerGroupSubscribeRelationRequest &request)const;
|
||||
void deleteConsumerGroupSubscribeRelationAsync(const Model::DeleteConsumerGroupSubscribeRelationRequest& request, const DeleteConsumerGroupSubscribeRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConsumerGroupSubscribeRelationOutcomeCallable deleteConsumerGroupSubscribeRelationCallable(const Model::DeleteConsumerGroupSubscribeRelationRequest& request) const;
|
||||
DeleteDataSourceItemOutcome deleteDataSourceItem(const Model::DeleteDataSourceItemRequest &request)const;
|
||||
void deleteDataSourceItemAsync(const Model::DeleteDataSourceItemRequest& request, const DeleteDataSourceItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDataSourceItemOutcomeCallable deleteDataSourceItemCallable(const Model::DeleteDataSourceItemRequest& request) const;
|
||||
DeleteDestinationOutcome deleteDestination(const Model::DeleteDestinationRequest &request)const;
|
||||
void deleteDestinationAsync(const Model::DeleteDestinationRequest& request, const DeleteDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDestinationOutcomeCallable deleteDestinationCallable(const Model::DeleteDestinationRequest& request) const;
|
||||
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
|
||||
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
|
||||
@@ -2095,6 +2241,12 @@ namespace AlibabaCloud
|
||||
DeleteOTAModuleOutcome deleteOTAModule(const Model::DeleteOTAModuleRequest &request)const;
|
||||
void deleteOTAModuleAsync(const Model::DeleteOTAModuleRequest& request, const DeleteOTAModuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteOTAModuleOutcomeCallable deleteOTAModuleCallable(const Model::DeleteOTAModuleRequest& request) const;
|
||||
DeleteParserOutcome deleteParser(const Model::DeleteParserRequest &request)const;
|
||||
void deleteParserAsync(const Model::DeleteParserRequest& request, const DeleteParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteParserOutcomeCallable deleteParserCallable(const Model::DeleteParserRequest& request) const;
|
||||
DeleteParserDataSourceOutcome deleteParserDataSource(const Model::DeleteParserDataSourceRequest &request)const;
|
||||
void deleteParserDataSourceAsync(const Model::DeleteParserDataSourceRequest& request, const DeleteParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteParserDataSourceOutcomeCallable deleteParserDataSourceCallable(const Model::DeleteParserDataSourceRequest& request) const;
|
||||
DeleteProductOutcome deleteProduct(const Model::DeleteProductRequest &request)const;
|
||||
void deleteProductAsync(const Model::DeleteProductRequest& request, const DeleteProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteProductOutcomeCallable deleteProductCallable(const Model::DeleteProductRequest& request) const;
|
||||
@@ -2140,6 +2292,12 @@ namespace AlibabaCloud
|
||||
DeleteTopicRouteTableOutcome deleteTopicRouteTable(const Model::DeleteTopicRouteTableRequest &request)const;
|
||||
void deleteTopicRouteTableAsync(const Model::DeleteTopicRouteTableRequest& request, const DeleteTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTopicRouteTableOutcomeCallable deleteTopicRouteTableCallable(const Model::DeleteTopicRouteTableRequest& request) const;
|
||||
DetachDestinationOutcome detachDestination(const Model::DetachDestinationRequest &request)const;
|
||||
void detachDestinationAsync(const Model::DetachDestinationRequest& request, const DetachDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachDestinationOutcomeCallable detachDestinationCallable(const Model::DetachDestinationRequest& request) const;
|
||||
DetachParserDataSourceOutcome detachParserDataSource(const Model::DetachParserDataSourceRequest &request)const;
|
||||
void detachParserDataSourceAsync(const Model::DetachParserDataSourceRequest& request, const DetachParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachParserDataSourceOutcomeCallable detachParserDataSourceCallable(const Model::DetachParserDataSourceRequest& request) const;
|
||||
DisableDeviceTunnelOutcome disableDeviceTunnel(const Model::DisableDeviceTunnelRequest &request)const;
|
||||
void disableDeviceTunnelAsync(const Model::DisableDeviceTunnelRequest& request, const DisableDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableDeviceTunnelOutcomeCallable disableDeviceTunnelCallable(const Model::DisableDeviceTunnelRequest& request) const;
|
||||
@@ -2176,6 +2334,9 @@ namespace AlibabaCloud
|
||||
GetDataAPIServiceDetailOutcome getDataAPIServiceDetail(const Model::GetDataAPIServiceDetailRequest &request)const;
|
||||
void getDataAPIServiceDetailAsync(const Model::GetDataAPIServiceDetailRequest& request, const GetDataAPIServiceDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataAPIServiceDetailOutcomeCallable getDataAPIServiceDetailCallable(const Model::GetDataAPIServiceDetailRequest& request) const;
|
||||
GetDestinationOutcome getDestination(const Model::GetDestinationRequest &request)const;
|
||||
void getDestinationAsync(const Model::GetDestinationRequest& request, const GetDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDestinationOutcomeCallable getDestinationCallable(const Model::GetDestinationRequest& request) const;
|
||||
GetDeviceShadowOutcome getDeviceShadow(const Model::GetDeviceShadowRequest &request)const;
|
||||
void getDeviceShadowAsync(const Model::GetDeviceShadowRequest& request, const GetDeviceShadowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceShadowOutcomeCallable getDeviceShadowCallable(const Model::GetDeviceShadowRequest& request) const;
|
||||
@@ -2206,6 +2367,12 @@ namespace AlibabaCloud
|
||||
GetLoraNodesTaskOutcome getLoraNodesTask(const Model::GetLoraNodesTaskRequest &request)const;
|
||||
void getLoraNodesTaskAsync(const Model::GetLoraNodesTaskRequest& request, const GetLoraNodesTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLoraNodesTaskOutcomeCallable getLoraNodesTaskCallable(const Model::GetLoraNodesTaskRequest& request) const;
|
||||
GetParserOutcome getParser(const Model::GetParserRequest &request)const;
|
||||
void getParserAsync(const Model::GetParserRequest& request, const GetParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetParserOutcomeCallable getParserCallable(const Model::GetParserRequest& request) const;
|
||||
GetParserDataSourceOutcome getParserDataSource(const Model::GetParserDataSourceRequest &request)const;
|
||||
void getParserDataSourceAsync(const Model::GetParserDataSourceRequest& request, const GetParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetParserDataSourceOutcomeCallable getParserDataSourceCallable(const Model::GetParserDataSourceRequest& request) const;
|
||||
GetRuleOutcome getRule(const Model::GetRuleRequest &request)const;
|
||||
void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const;
|
||||
@@ -2272,6 +2439,9 @@ namespace AlibabaCloud
|
||||
ListDataSourceItemOutcome listDataSourceItem(const Model::ListDataSourceItemRequest &request)const;
|
||||
void listDataSourceItemAsync(const Model::ListDataSourceItemRequest& request, const ListDataSourceItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataSourceItemOutcomeCallable listDataSourceItemCallable(const Model::ListDataSourceItemRequest& request) const;
|
||||
ListDestinationOutcome listDestination(const Model::ListDestinationRequest &request)const;
|
||||
void listDestinationAsync(const Model::ListDestinationRequest& request, const ListDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDestinationOutcomeCallable listDestinationCallable(const Model::ListDestinationRequest& request) const;
|
||||
ListDeviceDistributeJobOutcome listDeviceDistributeJob(const Model::ListDeviceDistributeJobRequest &request)const;
|
||||
void listDeviceDistributeJobAsync(const Model::ListDeviceDistributeJobRequest& request, const ListDeviceDistributeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDeviceDistributeJobOutcomeCallable listDeviceDistributeJobCallable(const Model::ListDeviceDistributeJobRequest& request) const;
|
||||
@@ -2305,6 +2475,15 @@ namespace AlibabaCloud
|
||||
ListOTAUnfinishedTaskByDeviceOutcome listOTAUnfinishedTaskByDevice(const Model::ListOTAUnfinishedTaskByDeviceRequest &request)const;
|
||||
void listOTAUnfinishedTaskByDeviceAsync(const Model::ListOTAUnfinishedTaskByDeviceRequest& request, const ListOTAUnfinishedTaskByDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOTAUnfinishedTaskByDeviceOutcomeCallable listOTAUnfinishedTaskByDeviceCallable(const Model::ListOTAUnfinishedTaskByDeviceRequest& request) const;
|
||||
ListParserOutcome listParser(const Model::ListParserRequest &request)const;
|
||||
void listParserAsync(const Model::ListParserRequest& request, const ListParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListParserOutcomeCallable listParserCallable(const Model::ListParserRequest& request) const;
|
||||
ListParserDataSourceOutcome listParserDataSource(const Model::ListParserDataSourceRequest &request)const;
|
||||
void listParserDataSourceAsync(const Model::ListParserDataSourceRequest& request, const ListParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListParserDataSourceOutcomeCallable listParserDataSourceCallable(const Model::ListParserDataSourceRequest& request) const;
|
||||
ListParserDestinationOutcome listParserDestination(const Model::ListParserDestinationRequest &request)const;
|
||||
void listParserDestinationAsync(const Model::ListParserDestinationRequest& request, const ListParserDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListParserDestinationOutcomeCallable listParserDestinationCallable(const Model::ListParserDestinationRequest& request) const;
|
||||
ListProductByTagsOutcome listProductByTags(const Model::ListProductByTagsRequest &request)const;
|
||||
void listProductByTagsAsync(const Model::ListProductByTagsRequest& request, const ListProductByTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProductByTagsOutcomeCallable listProductByTagsCallable(const Model::ListProductByTagsRequest& request) const;
|
||||
@@ -2344,6 +2523,9 @@ namespace AlibabaCloud
|
||||
PubBroadcastOutcome pubBroadcast(const Model::PubBroadcastRequest &request)const;
|
||||
void pubBroadcastAsync(const Model::PubBroadcastRequest& request, const PubBroadcastAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PubBroadcastOutcomeCallable pubBroadcastCallable(const Model::PubBroadcastRequest& request) const;
|
||||
PublishScriptOutcome publishScript(const Model::PublishScriptRequest &request)const;
|
||||
void publishScriptAsync(const Model::PublishScriptRequest& request, const PublishScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishScriptOutcomeCallable publishScriptCallable(const Model::PublishScriptRequest& request) const;
|
||||
PublishStudioAppOutcome publishStudioApp(const Model::PublishStudioAppRequest &request)const;
|
||||
void publishStudioAppAsync(const Model::PublishStudioAppRequest& request, const PublishStudioAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishStudioAppOutcomeCallable publishStudioAppCallable(const Model::PublishStudioAppRequest& request) const;
|
||||
@@ -2674,6 +2856,9 @@ namespace AlibabaCloud
|
||||
SaveDevicePropOutcome saveDeviceProp(const Model::SaveDevicePropRequest &request)const;
|
||||
void saveDevicePropAsync(const Model::SaveDevicePropRequest& request, const SaveDevicePropAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveDevicePropOutcomeCallable saveDevicePropCallable(const Model::SaveDevicePropRequest& request) const;
|
||||
SaveScriptOutcome saveScript(const Model::SaveScriptRequest &request)const;
|
||||
void saveScriptAsync(const Model::SaveScriptRequest& request, const SaveScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveScriptOutcomeCallable saveScriptCallable(const Model::SaveScriptRequest& request) const;
|
||||
SetDeviceDesiredPropertyOutcome setDeviceDesiredProperty(const Model::SetDeviceDesiredPropertyRequest &request)const;
|
||||
void setDeviceDesiredPropertyAsync(const Model::SetDeviceDesiredPropertyRequest& request, const SetDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetDeviceDesiredPropertyOutcomeCallable setDeviceDesiredPropertyCallable(const Model::SetDeviceDesiredPropertyRequest& request) const;
|
||||
@@ -2704,9 +2889,15 @@ namespace AlibabaCloud
|
||||
SpeechBySynthesisOutcome speechBySynthesis(const Model::SpeechBySynthesisRequest &request)const;
|
||||
void speechBySynthesisAsync(const Model::SpeechBySynthesisRequest& request, const SpeechBySynthesisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SpeechBySynthesisOutcomeCallable speechBySynthesisCallable(const Model::SpeechBySynthesisRequest& request) const;
|
||||
StartParserOutcome startParser(const Model::StartParserRequest &request)const;
|
||||
void startParserAsync(const Model::StartParserRequest& request, const StartParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartParserOutcomeCallable startParserCallable(const Model::StartParserRequest& request) const;
|
||||
StartRuleOutcome startRule(const Model::StartRuleRequest &request)const;
|
||||
void startRuleAsync(const Model::StartRuleRequest& request, const StartRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartRuleOutcomeCallable startRuleCallable(const Model::StartRuleRequest& request) const;
|
||||
StopParserOutcome stopParser(const Model::StopParserRequest &request)const;
|
||||
void stopParserAsync(const Model::StopParserRequest& request, const StopParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopParserOutcomeCallable stopParserCallable(const Model::StopParserRequest& request) const;
|
||||
StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const;
|
||||
void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const;
|
||||
@@ -2743,6 +2934,9 @@ namespace AlibabaCloud
|
||||
UpdateConsumerGroupOutcome updateConsumerGroup(const Model::UpdateConsumerGroupRequest &request)const;
|
||||
void updateConsumerGroupAsync(const Model::UpdateConsumerGroupRequest& request, const UpdateConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateConsumerGroupOutcomeCallable updateConsumerGroupCallable(const Model::UpdateConsumerGroupRequest& request) const;
|
||||
UpdateDestinationOutcome updateDestination(const Model::UpdateDestinationRequest &request)const;
|
||||
void updateDestinationAsync(const Model::UpdateDestinationRequest& request, const UpdateDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDestinationOutcomeCallable updateDestinationCallable(const Model::UpdateDestinationRequest& request) const;
|
||||
UpdateDeviceGroupOutcome updateDeviceGroup(const Model::UpdateDeviceGroupRequest &request)const;
|
||||
void updateDeviceGroupAsync(const Model::UpdateDeviceGroupRequest& request, const UpdateDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDeviceGroupOutcomeCallable updateDeviceGroupCallable(const Model::UpdateDeviceGroupRequest& request) const;
|
||||
@@ -2767,6 +2961,12 @@ namespace AlibabaCloud
|
||||
UpdateOTAModuleOutcome updateOTAModule(const Model::UpdateOTAModuleRequest &request)const;
|
||||
void updateOTAModuleAsync(const Model::UpdateOTAModuleRequest& request, const UpdateOTAModuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateOTAModuleOutcomeCallable updateOTAModuleCallable(const Model::UpdateOTAModuleRequest& request) const;
|
||||
UpdateParserOutcome updateParser(const Model::UpdateParserRequest &request)const;
|
||||
void updateParserAsync(const Model::UpdateParserRequest& request, const UpdateParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateParserOutcomeCallable updateParserCallable(const Model::UpdateParserRequest& request) const;
|
||||
UpdateParserDataSourceOutcome updateParserDataSource(const Model::UpdateParserDataSourceRequest &request)const;
|
||||
void updateParserDataSourceAsync(const Model::UpdateParserDataSourceRequest& request, const UpdateParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateParserDataSourceOutcomeCallable updateParserDataSourceCallable(const Model::UpdateParserDataSourceRequest& request) const;
|
||||
UpdateProductOutcome updateProduct(const Model::UpdateProductRequest &request)const;
|
||||
void updateProductAsync(const Model::UpdateProductRequest& request, const UpdateProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProductOutcomeCallable updateProductCallable(const Model::UpdateProductRequest& request) const;
|
||||
|
||||
@@ -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_IOT_MODEL_ATTACHDESTINATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT AttachDestinationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AttachDestinationRequest();
|
||||
~AttachDestinationRequest();
|
||||
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
long getDestinationId()const;
|
||||
void setDestinationId(long destinationId);
|
||||
long getParserId()const;
|
||||
void setParserId(long parserId);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
bool getIsFailover()const;
|
||||
void setIsFailover(bool isFailover);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
std::string iotInstanceId_;
|
||||
long destinationId_;
|
||||
long parserId_;
|
||||
std::string apiProduct_;
|
||||
bool isFailover_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONREQUEST_H_
|
||||
55
iot/include/alibabacloud/iot/model/AttachDestinationResult.h
Normal file
55
iot/include/alibabacloud/iot/model/AttachDestinationResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT AttachDestinationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AttachDestinationResult();
|
||||
explicit AttachDestinationResult(const std::string &payload);
|
||||
~AttachDestinationResult();
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONRESULT_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_IOT_MODEL_ATTACHPARSERDATASOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT AttachParserDataSourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AttachParserDataSourceRequest();
|
||||
~AttachParserDataSourceRequest();
|
||||
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
long getParserId()const;
|
||||
void setParserId(long parserId);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
long getDataSourceId()const;
|
||||
void setDataSourceId(long dataSourceId);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
std::string iotInstanceId_;
|
||||
long parserId_;
|
||||
std::string apiProduct_;
|
||||
long dataSourceId_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCEREQUEST_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_IOT_MODEL_ATTACHPARSERDATASOURCERESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT AttachParserDataSourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AttachParserDataSourceResult();
|
||||
explicit AttachParserDataSourceResult(const std::string &payload);
|
||||
~AttachParserDataSourceResult();
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCERESULT_H_
|
||||
@@ -35,8 +35,12 @@ namespace AlibabaCloud
|
||||
CreateDataSourceItemRequest();
|
||||
~CreateDataSourceItemRequest();
|
||||
|
||||
std::string getScopeType()const;
|
||||
void setScopeType(const std::string& scopeType);
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
long getDataSourceId()const;
|
||||
@@ -45,13 +49,18 @@ namespace AlibabaCloud
|
||||
void setTopic(const std::string& topic);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
std::string getDeviceName()const;
|
||||
void setDeviceName(const std::string& deviceName);
|
||||
|
||||
private:
|
||||
std::string scopeType_;
|
||||
std::string iotInstanceId_;
|
||||
std::string productKey_;
|
||||
std::string apiProduct_;
|
||||
long dataSourceId_;
|
||||
std::string topic_;
|
||||
std::string apiRevision_;
|
||||
std::string deviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_IOT_MODEL_CREATEDESTINATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateDestinationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDestinationRequest();
|
||||
~CreateDestinationRequest();
|
||||
|
||||
std::string getConfiguration()const;
|
||||
void setConfiguration(const std::string& configuration);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
std::string configuration_;
|
||||
std::string description_;
|
||||
std::string type_;
|
||||
std::string iotInstanceId_;
|
||||
std::string apiProduct_;
|
||||
std::string name_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONREQUEST_H_
|
||||
66
iot/include/alibabacloud/iot/model/CreateDestinationResult.h
Normal file
66
iot/include/alibabacloud/iot/model/CreateDestinationResult.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateDestinationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Destination
|
||||
{
|
||||
std::string type;
|
||||
std::string configuration;
|
||||
std::string utcCreated;
|
||||
bool isFailover;
|
||||
long destinationId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateDestinationResult();
|
||||
explicit CreateDestinationResult(const std::string &payload);
|
||||
~CreateDestinationResult();
|
||||
Destination getDestination()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Destination destination_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONRESULT_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_IOT_MODEL_CREATEPARSERDATASOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateParserDataSourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateParserDataSourceRequest();
|
||||
~CreateParserDataSourceRequest();
|
||||
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string iotInstanceId_;
|
||||
std::string apiProduct_;
|
||||
std::string name_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCERESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateParserDataSourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataSource
|
||||
{
|
||||
std::string description;
|
||||
std::string utcCreated;
|
||||
long dataSourceId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateParserDataSourceResult();
|
||||
explicit CreateParserDataSourceResult(const std::string &payload);
|
||||
~CreateParserDataSourceResult();
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
DataSource getDataSource()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
DataSource dataSource_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCERESULT_H_
|
||||
63
iot/include/alibabacloud/iot/model/CreateParserRequest.h
Normal file
63
iot/include/alibabacloud/iot/model/CreateParserRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEPARSERREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/iot/IotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Iot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateParserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateParserRequest();
|
||||
~CreateParserRequest();
|
||||
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getIotInstanceId()const;
|
||||
void setIotInstanceId(const std::string& iotInstanceId);
|
||||
std::string getApiProduct()const;
|
||||
void setApiProduct(const std::string& apiProduct);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getApiRevision()const;
|
||||
void setApiRevision(const std::string& apiRevision);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string resourceGroupId_;
|
||||
std::string iotInstanceId_;
|
||||
std::string apiProduct_;
|
||||
std::string name_;
|
||||
std::string apiRevision_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user