From b0ac64dff30f40f41f439e54fd8f53e03774b808 Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Fri, 2 Feb 2018 13:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E5=A9=89=E6=98=8E=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E7=9A=84AFS=20SDK=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83,=20BUILD?= =?UTF-8?q?=5FID=3D385,=20=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=9A1.0.10=20?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=97=A5=E5=BF=97=EF=BC=9A=201,=20this=20ver?= =?UTF-8?q?sion=20is=20new=20of=20captcha=20management=20and=20nvc=20analy?= =?UTF-8?q?ze?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 +- VERSION | 2 +- afs/CMakeLists.txt | 130 +++++ afs/ChangeLog.txt | 3 + afs/include/alibabacloud/afs/AfsClient.h | 143 +++++ afs/include/alibabacloud/afs/AfsExport.h | 32 ++ .../afs/model/AnalyzeNvcRequest.h | 57 ++ .../alibabacloud/afs/model/AnalyzeNvcResult.h | 51 ++ .../afs/model/AuthenticateSigRequest.h | 69 +++ .../afs/model/AuthenticateSigResult.h | 57 ++ .../afs/model/ConfigurationStyleRequest.h | 60 +++ .../afs/model/ConfigurationStyleResult.h | 62 +++ .../afs/model/CreateConfigurationRequest.h | 66 +++ .../afs/model/CreateConfigurationResult.h | 51 ++ .../afs/model/DescribeCaptchaDayRequest.h | 60 +++ .../afs/model/DescribeCaptchaDayResult.h | 67 +++ .../afs/model/DescribeCaptchaIpCityRequest.h | 60 +++ .../afs/model/DescribeCaptchaIpCityResult.h | 69 +++ .../afs/model/DescribeCaptchaMinRequest.h | 60 +++ .../afs/model/DescribeCaptchaMinResult.h | 61 +++ .../afs/model/DescribeCaptchaRiskRequest.h | 57 ++ .../afs/model/DescribeCaptchaRiskResult.h | 57 ++ .../afs/model/DescribeConfigNameRequest.h | 51 ++ .../afs/model/DescribeConfigNameResult.h | 55 ++ .../afs/model/DescribeEarlyWarningRequest.h | 51 ++ .../afs/model/DescribeEarlyWarningResult.h | 66 +++ .../model/DescribePersonMachineListRequest.h | 51 ++ .../model/DescribePersonMachineListResult.h | 67 +++ .../afs/model/SetEarlyWarningRequest.h | 72 +++ .../afs/model/SetEarlyWarningResult.h | 51 ++ afs/src/AfsClient.cc | 493 ++++++++++++++++++ afs/src/model/AnalyzeNvcRequest.cc | 71 +++ afs/src/model/AnalyzeNvcResult.cc | 52 ++ afs/src/model/AuthenticateSigRequest.cc | 115 ++++ afs/src/model/AuthenticateSigResult.cc | 73 +++ afs/src/model/ConfigurationStyleRequest.cc | 82 +++ afs/src/model/ConfigurationStyleResult.cc | 75 +++ afs/src/model/CreateConfigurationRequest.cc | 104 ++++ afs/src/model/CreateConfigurationResult.cc | 52 ++ afs/src/model/DescribeCaptchaDayRequest.cc | 82 +++ afs/src/model/DescribeCaptchaDayResult.cc | 88 ++++ afs/src/model/DescribeCaptchaIpCityRequest.cc | 82 +++ afs/src/model/DescribeCaptchaIpCityResult.cc | 93 ++++ afs/src/model/DescribeCaptchaMinRequest.cc | 82 +++ afs/src/model/DescribeCaptchaMinResult.cc | 76 +++ afs/src/model/DescribeCaptchaRiskRequest.cc | 71 +++ afs/src/model/DescribeCaptchaRiskResult.cc | 73 +++ afs/src/model/DescribeConfigNameRequest.cc | 49 ++ afs/src/model/DescribeConfigNameResult.cc | 66 +++ afs/src/model/DescribeEarlyWarningRequest.cc | 49 ++ afs/src/model/DescribeEarlyWarningResult.cc | 86 +++ .../model/DescribePersonMachineListRequest.cc | 49 ++ .../model/DescribePersonMachineListResult.cc | 83 +++ afs/src/model/SetEarlyWarningRequest.cc | 126 +++++ afs/src/model/SetEarlyWarningResult.cc | 52 ++ 55 files changed, 4063 insertions(+), 2 deletions(-) create mode 100644 afs/CMakeLists.txt create mode 100644 afs/ChangeLog.txt create mode 100644 afs/include/alibabacloud/afs/AfsClient.h create mode 100644 afs/include/alibabacloud/afs/AfsExport.h create mode 100644 afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h create mode 100644 afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h create mode 100644 afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h create mode 100644 afs/include/alibabacloud/afs/model/AuthenticateSigResult.h create mode 100644 afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h create mode 100644 afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h create mode 100644 afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h create mode 100644 afs/include/alibabacloud/afs/model/CreateConfigurationResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h create mode 100644 afs/include/alibabacloud/afs/model/DescribePersonMachineListRequest.h create mode 100644 afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h create mode 100644 afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h create mode 100644 afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h create mode 100644 afs/src/AfsClient.cc create mode 100644 afs/src/model/AnalyzeNvcRequest.cc create mode 100644 afs/src/model/AnalyzeNvcResult.cc create mode 100644 afs/src/model/AuthenticateSigRequest.cc create mode 100644 afs/src/model/AuthenticateSigResult.cc create mode 100644 afs/src/model/ConfigurationStyleRequest.cc create mode 100644 afs/src/model/ConfigurationStyleResult.cc create mode 100644 afs/src/model/CreateConfigurationRequest.cc create mode 100644 afs/src/model/CreateConfigurationResult.cc create mode 100644 afs/src/model/DescribeCaptchaDayRequest.cc create mode 100644 afs/src/model/DescribeCaptchaDayResult.cc create mode 100644 afs/src/model/DescribeCaptchaIpCityRequest.cc create mode 100644 afs/src/model/DescribeCaptchaIpCityResult.cc create mode 100644 afs/src/model/DescribeCaptchaMinRequest.cc create mode 100644 afs/src/model/DescribeCaptchaMinResult.cc create mode 100644 afs/src/model/DescribeCaptchaRiskRequest.cc create mode 100644 afs/src/model/DescribeCaptchaRiskResult.cc create mode 100644 afs/src/model/DescribeConfigNameRequest.cc create mode 100644 afs/src/model/DescribeConfigNameResult.cc create mode 100644 afs/src/model/DescribeEarlyWarningRequest.cc create mode 100644 afs/src/model/DescribeEarlyWarningResult.cc create mode 100644 afs/src/model/DescribePersonMachineListRequest.cc create mode 100644 afs/src/model/DescribePersonMachineListResult.cc create mode 100644 afs/src/model/SetEarlyWarningRequest.cc create mode 100644 afs/src/model/SetEarlyWarningResult.cc diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c7b520a0..288394405 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,4 +58,5 @@ add_subdirectory(rds) add_subdirectory(cloudphoto) add_subdirectory(ess) add_subdirectory(tesladam) -add_subdirectory(cms) \ No newline at end of file +add_subdirectory(cms) +add_subdirectory(afs) \ No newline at end of file diff --git a/VERSION b/VERSION index e5a4a5e7d..437d26b11 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.9 \ No newline at end of file +1.0.10 \ No newline at end of file diff --git a/afs/CMakeLists.txt b/afs/CMakeLists.txt new file mode 100644 index 000000000..4f3ef0b7a --- /dev/null +++ b/afs/CMakeLists.txt @@ -0,0 +1,130 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(afs_public_header + include/alibabacloud/afs/AfsClient.h + include/alibabacloud/afs/AfsExport.h ) + +set(afs_public_header_model + include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h + include/alibabacloud/afs/model/DescribeEarlyWarningResult.h + include/alibabacloud/afs/model/SetEarlyWarningRequest.h + include/alibabacloud/afs/model/SetEarlyWarningResult.h + include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h + include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h + include/alibabacloud/afs/model/ConfigurationStyleRequest.h + include/alibabacloud/afs/model/ConfigurationStyleResult.h + include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h + include/alibabacloud/afs/model/DescribeCaptchaMinResult.h + include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h + include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h + include/alibabacloud/afs/model/AuthenticateSigRequest.h + include/alibabacloud/afs/model/AuthenticateSigResult.h + include/alibabacloud/afs/model/DescribeConfigNameRequest.h + include/alibabacloud/afs/model/DescribeConfigNameResult.h + include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h + include/alibabacloud/afs/model/DescribeCaptchaDayResult.h + include/alibabacloud/afs/model/DescribePersonMachineListRequest.h + include/alibabacloud/afs/model/DescribePersonMachineListResult.h + include/alibabacloud/afs/model/CreateConfigurationRequest.h + include/alibabacloud/afs/model/CreateConfigurationResult.h + include/alibabacloud/afs/model/AnalyzeNvcRequest.h + include/alibabacloud/afs/model/AnalyzeNvcResult.h ) + +set(afs_src + src/AfsClient.cc + src/model/DescribeEarlyWarningRequest.cc + src/model/DescribeEarlyWarningResult.cc + src/model/SetEarlyWarningRequest.cc + src/model/SetEarlyWarningResult.cc + src/model/DescribeCaptchaIpCityRequest.cc + src/model/DescribeCaptchaIpCityResult.cc + src/model/ConfigurationStyleRequest.cc + src/model/ConfigurationStyleResult.cc + src/model/DescribeCaptchaMinRequest.cc + src/model/DescribeCaptchaMinResult.cc + src/model/DescribeCaptchaRiskRequest.cc + src/model/DescribeCaptchaRiskResult.cc + src/model/AuthenticateSigRequest.cc + src/model/AuthenticateSigResult.cc + src/model/DescribeConfigNameRequest.cc + src/model/DescribeConfigNameResult.cc + src/model/DescribeCaptchaDayRequest.cc + src/model/DescribeCaptchaDayResult.cc + src/model/DescribePersonMachineListRequest.cc + src/model/DescribePersonMachineListResult.cc + src/model/CreateConfigurationRequest.cc + src/model/CreateConfigurationResult.cc + src/model/AnalyzeNvcRequest.cc + src/model/AnalyzeNvcResult.cc ) + +add_library(afs ${LIB_TYPE} + ${afs_public_header} + ${afs_public_header_model} + ${afs_src}) + +set_target_properties(afs + 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}afs + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(afs + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_AFS_LIBRARY) +endif() + +target_include_directories(afs + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(afs + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(afs + jsoncpp) + target_include_directories(afs + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(afs + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(afs + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(afs + PRIVATE /usr/include/jsoncpp) + target_link_libraries(afs + jsoncpp) +endif() + +install(FILES ${afs_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/afs) +install(FILES ${afs_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/afs/model) +install(TARGETS afs + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/afs/ChangeLog.txt b/afs/ChangeLog.txt new file mode 100644 index 000000000..db0e0bf2a --- /dev/null +++ b/afs/ChangeLog.txt @@ -0,0 +1,3 @@ +2018-02-02 Version: 1.0.10 +1, this version is new of captcha management and nvc analyze + diff --git a/afs/include/alibabacloud/afs/AfsClient.h b/afs/include/alibabacloud/afs/AfsClient.h new file mode 100644 index 000000000..f28a8bebc --- /dev/null +++ b/afs/include/alibabacloud/afs/AfsClient.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_AFS_AFSCLIENT_H_ +#define ALIBABACLOUD_AFS_AFSCLIENT_H_ + +#include +#include +#include +#include +#include "AfsExport.h" +#include "model/DescribeEarlyWarningRequest.h" +#include "model/DescribeEarlyWarningResult.h" +#include "model/SetEarlyWarningRequest.h" +#include "model/SetEarlyWarningResult.h" +#include "model/DescribeCaptchaIpCityRequest.h" +#include "model/DescribeCaptchaIpCityResult.h" +#include "model/ConfigurationStyleRequest.h" +#include "model/ConfigurationStyleResult.h" +#include "model/DescribeCaptchaMinRequest.h" +#include "model/DescribeCaptchaMinResult.h" +#include "model/DescribeCaptchaRiskRequest.h" +#include "model/DescribeCaptchaRiskResult.h" +#include "model/AuthenticateSigRequest.h" +#include "model/AuthenticateSigResult.h" +#include "model/DescribeConfigNameRequest.h" +#include "model/DescribeConfigNameResult.h" +#include "model/DescribeCaptchaDayRequest.h" +#include "model/DescribeCaptchaDayResult.h" +#include "model/DescribePersonMachineListRequest.h" +#include "model/DescribePersonMachineListResult.h" +#include "model/CreateConfigurationRequest.h" +#include "model/CreateConfigurationResult.h" +#include "model/AnalyzeNvcRequest.h" +#include "model/AnalyzeNvcResult.h" + + +namespace AlibabaCloud +{ + namespace Afs + { + class ALIBABACLOUD_AFS_EXPORT AfsClient : public RpcServiceClient + { + public: + typedef Outcome DescribeEarlyWarningOutcome; + typedef std::future DescribeEarlyWarningOutcomeCallable; + typedef std::function&)> DescribeEarlyWarningAsyncHandler; + typedef Outcome SetEarlyWarningOutcome; + typedef std::future SetEarlyWarningOutcomeCallable; + typedef std::function&)> SetEarlyWarningAsyncHandler; + typedef Outcome DescribeCaptchaIpCityOutcome; + typedef std::future DescribeCaptchaIpCityOutcomeCallable; + typedef std::function&)> DescribeCaptchaIpCityAsyncHandler; + typedef Outcome ConfigurationStyleOutcome; + typedef std::future ConfigurationStyleOutcomeCallable; + typedef std::function&)> ConfigurationStyleAsyncHandler; + typedef Outcome DescribeCaptchaMinOutcome; + typedef std::future DescribeCaptchaMinOutcomeCallable; + typedef std::function&)> DescribeCaptchaMinAsyncHandler; + typedef Outcome DescribeCaptchaRiskOutcome; + typedef std::future DescribeCaptchaRiskOutcomeCallable; + typedef std::function&)> DescribeCaptchaRiskAsyncHandler; + typedef Outcome AuthenticateSigOutcome; + typedef std::future AuthenticateSigOutcomeCallable; + typedef std::function&)> AuthenticateSigAsyncHandler; + typedef Outcome DescribeConfigNameOutcome; + typedef std::future DescribeConfigNameOutcomeCallable; + typedef std::function&)> DescribeConfigNameAsyncHandler; + typedef Outcome DescribeCaptchaDayOutcome; + typedef std::future DescribeCaptchaDayOutcomeCallable; + typedef std::function&)> DescribeCaptchaDayAsyncHandler; + typedef Outcome DescribePersonMachineListOutcome; + typedef std::future DescribePersonMachineListOutcomeCallable; + typedef std::function&)> DescribePersonMachineListAsyncHandler; + typedef Outcome CreateConfigurationOutcome; + typedef std::future CreateConfigurationOutcomeCallable; + typedef std::function&)> CreateConfigurationAsyncHandler; + typedef Outcome AnalyzeNvcOutcome; + typedef std::future AnalyzeNvcOutcomeCallable; + typedef std::function&)> AnalyzeNvcAsyncHandler; + + AfsClient(const Credentials &credentials, const ClientConfiguration &configuration); + AfsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + AfsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~AfsClient(); + DescribeEarlyWarningOutcome describeEarlyWarning(const Model::DescribeEarlyWarningRequest &request)const; + void describeEarlyWarningAsync(const Model::DescribeEarlyWarningRequest& request, const DescribeEarlyWarningAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEarlyWarningOutcomeCallable describeEarlyWarningCallable(const Model::DescribeEarlyWarningRequest& request) const; + SetEarlyWarningOutcome setEarlyWarning(const Model::SetEarlyWarningRequest &request)const; + void setEarlyWarningAsync(const Model::SetEarlyWarningRequest& request, const SetEarlyWarningAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetEarlyWarningOutcomeCallable setEarlyWarningCallable(const Model::SetEarlyWarningRequest& request) const; + DescribeCaptchaIpCityOutcome describeCaptchaIpCity(const Model::DescribeCaptchaIpCityRequest &request)const; + void describeCaptchaIpCityAsync(const Model::DescribeCaptchaIpCityRequest& request, const DescribeCaptchaIpCityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCaptchaIpCityOutcomeCallable describeCaptchaIpCityCallable(const Model::DescribeCaptchaIpCityRequest& request) const; + ConfigurationStyleOutcome configurationStyle(const Model::ConfigurationStyleRequest &request)const; + void configurationStyleAsync(const Model::ConfigurationStyleRequest& request, const ConfigurationStyleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConfigurationStyleOutcomeCallable configurationStyleCallable(const Model::ConfigurationStyleRequest& request) const; + DescribeCaptchaMinOutcome describeCaptchaMin(const Model::DescribeCaptchaMinRequest &request)const; + void describeCaptchaMinAsync(const Model::DescribeCaptchaMinRequest& request, const DescribeCaptchaMinAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCaptchaMinOutcomeCallable describeCaptchaMinCallable(const Model::DescribeCaptchaMinRequest& request) const; + DescribeCaptchaRiskOutcome describeCaptchaRisk(const Model::DescribeCaptchaRiskRequest &request)const; + void describeCaptchaRiskAsync(const Model::DescribeCaptchaRiskRequest& request, const DescribeCaptchaRiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCaptchaRiskOutcomeCallable describeCaptchaRiskCallable(const Model::DescribeCaptchaRiskRequest& request) const; + AuthenticateSigOutcome authenticateSig(const Model::AuthenticateSigRequest &request)const; + void authenticateSigAsync(const Model::AuthenticateSigRequest& request, const AuthenticateSigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AuthenticateSigOutcomeCallable authenticateSigCallable(const Model::AuthenticateSigRequest& request) const; + DescribeConfigNameOutcome describeConfigName(const Model::DescribeConfigNameRequest &request)const; + void describeConfigNameAsync(const Model::DescribeConfigNameRequest& request, const DescribeConfigNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigNameOutcomeCallable describeConfigNameCallable(const Model::DescribeConfigNameRequest& request) const; + DescribeCaptchaDayOutcome describeCaptchaDay(const Model::DescribeCaptchaDayRequest &request)const; + void describeCaptchaDayAsync(const Model::DescribeCaptchaDayRequest& request, const DescribeCaptchaDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCaptchaDayOutcomeCallable describeCaptchaDayCallable(const Model::DescribeCaptchaDayRequest& request) const; + DescribePersonMachineListOutcome describePersonMachineList(const Model::DescribePersonMachineListRequest &request)const; + void describePersonMachineListAsync(const Model::DescribePersonMachineListRequest& request, const DescribePersonMachineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePersonMachineListOutcomeCallable describePersonMachineListCallable(const Model::DescribePersonMachineListRequest& request) const; + CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const; + void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const; + AnalyzeNvcOutcome analyzeNvc(const Model::AnalyzeNvcRequest &request)const; + void analyzeNvcAsync(const Model::AnalyzeNvcRequest& request, const AnalyzeNvcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AnalyzeNvcOutcomeCallable analyzeNvcCallable(const Model::AnalyzeNvcRequest& request) const; + + private: + virtual EndpointOutcome endpoint()const override; + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_AFS_AFSCLIENT_H_ diff --git a/afs/include/alibabacloud/afs/AfsExport.h b/afs/include/alibabacloud/afs/AfsExport.h new file mode 100644 index 000000000..3059f60f6 --- /dev/null +++ b/afs/include/alibabacloud/afs/AfsExport.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_AFS_AFSEXPORT_H_ +#define ALIBABACLOUD_AFS_AFSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_AFS_LIBRARY) +# define ALIBABACLOUD_AFS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_AFS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_AFS_EXPORT +#endif + +#endif // !ALIBABACLOUD_AFS_AFSEXPORT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h b/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h new file mode 100644 index 000000000..7fbbdf446 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.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_AFS_MODEL_ANALYZENVCREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_ANALYZENVCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT AnalyzeNvcRequest : public RpcServiceRequest + { + + public: + AnalyzeNvcRequest(); + ~AnalyzeNvcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getData()const; + void setData(const std::string& data); + std::string getScoreJsonStr()const; + void setScoreJsonStr(const std::string& scoreJsonStr); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string data_; + std::string scoreJsonStr_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_ANALYZENVCREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h b/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h new file mode 100644 index 000000000..2c50aa8d1 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.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_AFS_MODEL_ANALYZENVCRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_ANALYZENVCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT AnalyzeNvcResult : public ServiceResult + { + public: + + + AnalyzeNvcResult(); + explicit AnalyzeNvcResult(const std::string &payload); + ~AnalyzeNvcResult(); + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_ANALYZENVCRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h b/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h new file mode 100644 index 000000000..ff3b38afc --- /dev/null +++ b/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AFS_MODEL_AUTHENTICATESIGREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_AUTHENTICATESIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT AuthenticateSigRequest : public RpcServiceRequest + { + + public: + AuthenticateSigRequest(); + ~AuthenticateSigRequest(); + + std::string getSig()const; + void setSig(const std::string& sig); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemoteIp()const; + void setRemoteIp(const std::string& remoteIp); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getAppKey()const; + void setAppKey(const std::string& appKey); + std::string getSessionId()const; + void setSessionId(const std::string& sessionId); + std::string getToken()const; + void setToken(const std::string& token); + std::string getScene()const; + void setScene(const std::string& scene); + + private: + std::string sig_; + long resourceOwnerId_; + std::string remoteIp_; + std::string sourceIp_; + std::string appKey_; + std::string sessionId_; + std::string token_; + std::string scene_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_AUTHENTICATESIGREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/AuthenticateSigResult.h b/afs/include/alibabacloud/afs/model/AuthenticateSigResult.h new file mode 100644 index 000000000..fd1270362 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/AuthenticateSigResult.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_AFS_MODEL_AUTHENTICATESIGRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_AUTHENTICATESIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT AuthenticateSigResult : public ServiceResult + { + public: + + + AuthenticateSigResult(); + explicit AuthenticateSigResult(const std::string &payload); + ~AuthenticateSigResult(); + std::string getMsg()const; + int getCode()const; + std::string getRiskLevel()const; + std::string getDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + int code_; + std::string riskLevel_; + std::string detail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_AUTHENTICATESIGRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h b/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h new file mode 100644 index 000000000..0ddd30a29 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.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_AFS_MODEL_CONFIGURATIONSTYLEREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_CONFIGURATIONSTYLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT ConfigurationStyleRequest : public RpcServiceRequest + { + + public: + ConfigurationStyleRequest(); + ~ConfigurationStyleRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigurationMethod()const; + void setConfigurationMethod(const std::string& configurationMethod); + std::string getApplyType()const; + void setApplyType(const std::string& applyType); + std::string getScene()const; + void setScene(const std::string& scene); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string configurationMethod_; + std::string applyType_; + std::string scene_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_CONFIGURATIONSTYLEREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h b/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h new file mode 100644 index 000000000..6ab24c674 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.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_AFS_MODEL_CONFIGURATIONSTYLERESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_CONFIGURATIONSTYLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT ConfigurationStyleResult : public ServiceResult + { + public: + struct CodeData + { + std::string java; + std::string html; + std::string php; + std::string net; + std::string nodeJs; + std::string python; + }; + + + ConfigurationStyleResult(); + explicit ConfigurationStyleResult(const std::string &payload); + ~ConfigurationStyleResult(); + std::vector getCodeData()const; + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector codeData_; + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_CONFIGURATIONSTYLERESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h b/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h new file mode 100644 index 000000000..daba613fd --- /dev/null +++ b/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.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_AFS_MODEL_CREATECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_CREATECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT CreateConfigurationRequest : public RpcServiceRequest + { + + public: + CreateConfigurationRequest(); + ~CreateConfigurationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigurationName()const; + void setConfigurationName(const std::string& configurationName); + std::string getMaxPV()const; + void setMaxPV(const std::string& maxPV); + std::string getConfigurationMethod()const; + void setConfigurationMethod(const std::string& configurationMethod); + std::string getApplyType()const; + void setApplyType(const std::string& applyType); + std::string getScene()const; + void setScene(const std::string& scene); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string configurationName_; + std::string maxPV_; + std::string configurationMethod_; + std::string applyType_; + std::string scene_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_CREATECONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/CreateConfigurationResult.h b/afs/include/alibabacloud/afs/model/CreateConfigurationResult.h new file mode 100644 index 000000000..2847c3ed9 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/CreateConfigurationResult.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_AFS_MODEL_CREATECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_CREATECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT CreateConfigurationResult : public ServiceResult + { + public: + + + CreateConfigurationResult(); + explicit CreateConfigurationResult(const std::string &payload); + ~CreateConfigurationResult(); + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_CREATECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h new file mode 100644 index 000000000..f515f90bc --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.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_AFS_MODEL_DESCRIBECAPTCHADAYREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHADAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaDayRequest : public RpcServiceRequest + { + + public: + DescribeCaptchaDayRequest(); + ~DescribeCaptchaDayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigName()const; + void setConfigName(const std::string& configName); + std::string getTime()const; + void setTime(const std::string& time); + std::string getType()const; + void setType(const std::string& type); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string configName_; + std::string time_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHADAYREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h new file mode 100644 index 000000000..700667491 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.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_AFS_MODEL_DESCRIBECAPTCHADAYRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHADAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaDayResult : public ServiceResult + { + public: + struct CaptchaDay + { + int init; + int maliciousFlow; + int pass; + int checkTested; + int askForVerify; + int uncheckTested; + int legalSign; + int direcetStrategyInterception; + int twiceVerify; + }; + + + DescribeCaptchaDayResult(); + explicit DescribeCaptchaDayResult(const std::string &payload); + ~DescribeCaptchaDayResult(); + std::vector getCaptchaDay()const; + std::string getBizCode()const; + bool getHasData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector captchaDay_; + std::string bizCode_; + bool hasData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHADAYRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h new file mode 100644 index 000000000..17c694840 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.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_AFS_MODEL_DESCRIBECAPTCHAIPCITYREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAIPCITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaIpCityRequest : public RpcServiceRequest + { + + public: + DescribeCaptchaIpCityRequest(); + ~DescribeCaptchaIpCityRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigName()const; + void setConfigName(const std::string& configName); + std::string getTime()const; + void setTime(const std::string& time); + std::string getType()const; + void setType(const std::string& type); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string configName_; + std::string time_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAIPCITYREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h new file mode 100644 index 000000000..977e74926 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAIPCITYRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAIPCITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaIpCityResult : public ServiceResult + { + public: + struct CaptchaCitie + { + std::string lng; + int pv; + std::string lat; + std::string location; + }; + struct CaptchaIp + { + std::string ip; + int value; + }; + + + DescribeCaptchaIpCityResult(); + explicit DescribeCaptchaIpCityResult(const std::string &payload); + ~DescribeCaptchaIpCityResult(); + std::vector getCaptchaIps()const; + std::vector getCaptchaCities()const; + std::string getBizCode()const; + bool getHasData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector captchaIps_; + std::vector captchaCities_; + std::string bizCode_; + bool hasData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAIPCITYRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h new file mode 100644 index 000000000..8e53f9062 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.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_AFS_MODEL_DESCRIBECAPTCHAMINREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAMINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaMinRequest : public RpcServiceRequest + { + + public: + DescribeCaptchaMinRequest(); + ~DescribeCaptchaMinRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigName()const; + void setConfigName(const std::string& configName); + std::string getTime()const; + void setTime(const std::string& time); + std::string getType()const; + void setType(const std::string& type); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string configName_; + std::string time_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAMINREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h new file mode 100644 index 000000000..c7002fb7d --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAMINRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaMinResult : public ServiceResult + { + public: + struct CaptchaMin + { + std::string pass; + std::string time; + std::string interception; + }; + + + DescribeCaptchaMinResult(); + explicit DescribeCaptchaMinResult(const std::string &payload); + ~DescribeCaptchaMinResult(); + std::vector getCaptchaMins()const; + std::string getBizCode()const; + bool getHasData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector captchaMins_; + std::string bizCode_; + bool hasData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAMINRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h new file mode 100644 index 000000000..deb989f92 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.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_AFS_MODEL_DESCRIBECAPTCHARISKREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHARISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaRiskRequest : public RpcServiceRequest + { + + public: + DescribeCaptchaRiskRequest(); + ~DescribeCaptchaRiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigName()const; + void setConfigName(const std::string& configName); + std::string getTime()const; + void setTime(const std::string& time); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string configName_; + std::string time_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHARISKREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h new file mode 100644 index 000000000..e72117e61 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.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_AFS_MODEL_DESCRIBECAPTCHARISKRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHARISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaRiskResult : public ServiceResult + { + public: + + + DescribeCaptchaRiskResult(); + explicit DescribeCaptchaRiskResult(const std::string &payload); + ~DescribeCaptchaRiskResult(); + int getNumOfLastMonth()const; + std::string getRiskLevel()const; + std::string getBizCode()const; + int getNumOfThisMonth()const; + + protected: + void parse(const std::string &payload); + private: + int numOfLastMonth_; + std::string riskLevel_; + std::string bizCode_; + int numOfThisMonth_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHARISKRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h b/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h new file mode 100644 index 000000000..8ea47c754 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.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_AFS_MODEL_DESCRIBECONFIGNAMEREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECONFIGNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeConfigNameRequest : public RpcServiceRequest + { + + public: + DescribeConfigNameRequest(); + ~DescribeConfigNameRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + long resourceOwnerId_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECONFIGNAMEREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h b/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h new file mode 100644 index 000000000..436a25b37 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.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_AFS_MODEL_DESCRIBECONFIGNAMERESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECONFIGNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeConfigNameResult : public ServiceResult + { + public: + + + DescribeConfigNameResult(); + explicit DescribeConfigNameResult(const std::string &payload); + ~DescribeConfigNameResult(); + std::string getConfigNames()const; + bool getHasConfig()const; + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string configNames_; + bool hasConfig_; + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECONFIGNAMERESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h new file mode 100644 index 000000000..6cbd84924 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.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_AFS_MODEL_DESCRIBEEARLYWARNINGREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBEEARLYWARNINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeEarlyWarningRequest : public RpcServiceRequest + { + + public: + DescribeEarlyWarningRequest(); + ~DescribeEarlyWarningRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + long resourceOwnerId_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBEEARLYWARNINGREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h new file mode 100644 index 000000000..4819987c0 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.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_AFS_MODEL_DESCRIBEEARLYWARNINGRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBEEARLYWARNINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeEarlyWarningResult : public ServiceResult + { + public: + struct EarlyWarning + { + bool timeOpen; + std::string content; + std::string channel; + std::string title; + std::string frequency; + std::string timeEnd; + bool warnOpen; + std::string timeBegin; + }; + + + DescribeEarlyWarningResult(); + explicit DescribeEarlyWarningResult(const std::string &payload); + ~DescribeEarlyWarningResult(); + bool getHasWarning()const; + std::vector getEarlyWarnings()const; + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + bool hasWarning_; + std::vector earlyWarnings_; + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBEEARLYWARNINGRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribePersonMachineListRequest.h b/afs/include/alibabacloud/afs/model/DescribePersonMachineListRequest.h new file mode 100644 index 000000000..5300d6ab5 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribePersonMachineListRequest.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_AFS_MODEL_DESCRIBEPERSONMACHINELISTREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBEPERSONMACHINELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribePersonMachineListRequest : public RpcServiceRequest + { + + public: + DescribePersonMachineListRequest(); + ~DescribePersonMachineListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + long resourceOwnerId_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBEPERSONMACHINELISTREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h b/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h new file mode 100644 index 000000000..8ea9eaab8 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.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_AFS_MODEL_DESCRIBEPERSONMACHINELISTRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBEPERSONMACHINELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribePersonMachineListResult : public ServiceResult + { + public: + struct PersonMachineRes + { + struct PersonMachine + { + std::string configurationMethod; + std::string applyType; + std::string lastUpdate; + std::string appkey; + std::string configurationName; + std::string scene; + }; + std::string hasConfiguration; + std::vector personMachines; + }; + + + DescribePersonMachineListResult(); + explicit DescribePersonMachineListResult(const std::string &payload); + ~DescribePersonMachineListResult(); + std::vector getPersonMachineRes()const; + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector personMachineRes_; + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBEPERSONMACHINELISTRESULT_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h b/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h new file mode 100644 index 000000000..731449316 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AFS_MODEL_SETEARLYWARNINGREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_SETEARLYWARNINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT SetEarlyWarningRequest : public RpcServiceRequest + { + + public: + SetEarlyWarningRequest(); + ~SetEarlyWarningRequest(); + + std::string getTimeEnd()const; + void setTimeEnd(const std::string& timeEnd); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getWarnOpen()const; + void setWarnOpen(bool warnOpen); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getChannel()const; + void setChannel(const std::string& channel); + std::string getTitle()const; + void setTitle(const std::string& title); + bool getTimeOpen()const; + void setTimeOpen(bool timeOpen); + std::string getTimeBegin()const; + void setTimeBegin(const std::string& timeBegin); + std::string getFrequency()const; + void setFrequency(const std::string& frequency); + + private: + std::string timeEnd_; + long resourceOwnerId_; + bool warnOpen_; + std::string sourceIp_; + std::string channel_; + std::string title_; + bool timeOpen_; + std::string timeBegin_; + std::string frequency_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_SETEARLYWARNINGREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h b/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h new file mode 100644 index 000000000..6a84b7c78 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.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_AFS_MODEL_SETEARLYWARNINGRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_SETEARLYWARNINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT SetEarlyWarningResult : public ServiceResult + { + public: + + + SetEarlyWarningResult(); + explicit SetEarlyWarningResult(const std::string &payload); + ~SetEarlyWarningResult(); + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_SETEARLYWARNINGRESULT_H_ \ No newline at end of file diff --git a/afs/src/AfsClient.cc b/afs/src/AfsClient.cc new file mode 100644 index 000000000..ea70103b8 --- /dev/null +++ b/afs/src/AfsClient.cc @@ -0,0 +1,493 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +AfsClient::AfsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), ""); +} + +AfsClient::AfsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), ""); +} + +AfsClient::AfsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), ""); +} + +AfsClient::~AfsClient() +{} + +CoreClient::EndpointOutcome AfsClient::endpoint()const +{ + if(!configuration().endpoint().empty()) + return CoreClient::EndpointOutcome(configuration().endpoint()); + + auto endpoint = endpointProvider_->getEndpoint(); + + if (endpoint.empty()) + return CoreClient::EndpointOutcome(Error("InvalidEndpoint","")); + else + return CoreClient::EndpointOutcome(endpoint); +} + +AfsClient::DescribeEarlyWarningOutcome AfsClient::describeEarlyWarning(const DescribeEarlyWarningRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEarlyWarningOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEarlyWarningOutcome(DescribeEarlyWarningResult(outcome.result())); + else + return DescribeEarlyWarningOutcome(outcome.error()); +} + +void AfsClient::describeEarlyWarningAsync(const DescribeEarlyWarningRequest& request, const DescribeEarlyWarningAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEarlyWarning(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeEarlyWarningOutcomeCallable AfsClient::describeEarlyWarningCallable(const DescribeEarlyWarningRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEarlyWarning(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::SetEarlyWarningOutcome AfsClient::setEarlyWarning(const SetEarlyWarningRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return SetEarlyWarningOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetEarlyWarningOutcome(SetEarlyWarningResult(outcome.result())); + else + return SetEarlyWarningOutcome(outcome.error()); +} + +void AfsClient::setEarlyWarningAsync(const SetEarlyWarningRequest& request, const SetEarlyWarningAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setEarlyWarning(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::SetEarlyWarningOutcomeCallable AfsClient::setEarlyWarningCallable(const SetEarlyWarningRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setEarlyWarning(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribeCaptchaIpCityOutcome AfsClient::describeCaptchaIpCity(const DescribeCaptchaIpCityRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCaptchaIpCityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCaptchaIpCityOutcome(DescribeCaptchaIpCityResult(outcome.result())); + else + return DescribeCaptchaIpCityOutcome(outcome.error()); +} + +void AfsClient::describeCaptchaIpCityAsync(const DescribeCaptchaIpCityRequest& request, const DescribeCaptchaIpCityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCaptchaIpCity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeCaptchaIpCityOutcomeCallable AfsClient::describeCaptchaIpCityCallable(const DescribeCaptchaIpCityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCaptchaIpCity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::ConfigurationStyleOutcome AfsClient::configurationStyle(const ConfigurationStyleRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ConfigurationStyleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfigurationStyleOutcome(ConfigurationStyleResult(outcome.result())); + else + return ConfigurationStyleOutcome(outcome.error()); +} + +void AfsClient::configurationStyleAsync(const ConfigurationStyleRequest& request, const ConfigurationStyleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, configurationStyle(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::ConfigurationStyleOutcomeCallable AfsClient::configurationStyleCallable(const ConfigurationStyleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->configurationStyle(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribeCaptchaMinOutcome AfsClient::describeCaptchaMin(const DescribeCaptchaMinRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCaptchaMinOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCaptchaMinOutcome(DescribeCaptchaMinResult(outcome.result())); + else + return DescribeCaptchaMinOutcome(outcome.error()); +} + +void AfsClient::describeCaptchaMinAsync(const DescribeCaptchaMinRequest& request, const DescribeCaptchaMinAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCaptchaMin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeCaptchaMinOutcomeCallable AfsClient::describeCaptchaMinCallable(const DescribeCaptchaMinRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCaptchaMin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribeCaptchaRiskOutcome AfsClient::describeCaptchaRisk(const DescribeCaptchaRiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCaptchaRiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCaptchaRiskOutcome(DescribeCaptchaRiskResult(outcome.result())); + else + return DescribeCaptchaRiskOutcome(outcome.error()); +} + +void AfsClient::describeCaptchaRiskAsync(const DescribeCaptchaRiskRequest& request, const DescribeCaptchaRiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCaptchaRisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeCaptchaRiskOutcomeCallable AfsClient::describeCaptchaRiskCallable(const DescribeCaptchaRiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCaptchaRisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::AuthenticateSigOutcome AfsClient::authenticateSig(const AuthenticateSigRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AuthenticateSigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AuthenticateSigOutcome(AuthenticateSigResult(outcome.result())); + else + return AuthenticateSigOutcome(outcome.error()); +} + +void AfsClient::authenticateSigAsync(const AuthenticateSigRequest& request, const AuthenticateSigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, authenticateSig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::AuthenticateSigOutcomeCallable AfsClient::authenticateSigCallable(const AuthenticateSigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->authenticateSig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribeConfigNameOutcome AfsClient::describeConfigName(const DescribeConfigNameRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigNameOutcome(DescribeConfigNameResult(outcome.result())); + else + return DescribeConfigNameOutcome(outcome.error()); +} + +void AfsClient::describeConfigNameAsync(const DescribeConfigNameRequest& request, const DescribeConfigNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfigName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeConfigNameOutcomeCallable AfsClient::describeConfigNameCallable(const DescribeConfigNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfigName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribeCaptchaDayOutcome AfsClient::describeCaptchaDay(const DescribeCaptchaDayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCaptchaDayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCaptchaDayOutcome(DescribeCaptchaDayResult(outcome.result())); + else + return DescribeCaptchaDayOutcome(outcome.error()); +} + +void AfsClient::describeCaptchaDayAsync(const DescribeCaptchaDayRequest& request, const DescribeCaptchaDayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCaptchaDay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribeCaptchaDayOutcomeCallable AfsClient::describeCaptchaDayCallable(const DescribeCaptchaDayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCaptchaDay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribePersonMachineListOutcome AfsClient::describePersonMachineList(const DescribePersonMachineListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePersonMachineListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePersonMachineListOutcome(DescribePersonMachineListResult(outcome.result())); + else + return DescribePersonMachineListOutcome(outcome.error()); +} + +void AfsClient::describePersonMachineListAsync(const DescribePersonMachineListRequest& request, const DescribePersonMachineListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePersonMachineList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::DescribePersonMachineListOutcomeCallable AfsClient::describePersonMachineListCallable(const DescribePersonMachineListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePersonMachineList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::CreateConfigurationOutcome AfsClient::createConfiguration(const CreateConfigurationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result())); + else + return CreateConfigurationOutcome(outcome.error()); +} + +void AfsClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::CreateConfigurationOutcomeCallable AfsClient::createConfigurationCallable(const CreateConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::AnalyzeNvcOutcome AfsClient::analyzeNvc(const AnalyzeNvcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AnalyzeNvcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AnalyzeNvcOutcome(AnalyzeNvcResult(outcome.result())); + else + return AnalyzeNvcOutcome(outcome.error()); +} + +void AfsClient::analyzeNvcAsync(const AnalyzeNvcRequest& request, const AnalyzeNvcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, analyzeNvc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::AnalyzeNvcOutcomeCallable AfsClient::analyzeNvcCallable(const AnalyzeNvcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->analyzeNvc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/afs/src/model/AnalyzeNvcRequest.cc b/afs/src/model/AnalyzeNvcRequest.cc new file mode 100644 index 000000000..72325434b --- /dev/null +++ b/afs/src/model/AnalyzeNvcRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::AnalyzeNvcRequest; + +AnalyzeNvcRequest::AnalyzeNvcRequest() : + RpcServiceRequest("afs", "2018-01-12", "AnalyzeNvc") +{} + +AnalyzeNvcRequest::~AnalyzeNvcRequest() +{} + +long AnalyzeNvcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AnalyzeNvcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AnalyzeNvcRequest::getSourceIp()const +{ + return sourceIp_; +} + +void AnalyzeNvcRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string AnalyzeNvcRequest::getData()const +{ + return data_; +} + +void AnalyzeNvcRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string AnalyzeNvcRequest::getScoreJsonStr()const +{ + return scoreJsonStr_; +} + +void AnalyzeNvcRequest::setScoreJsonStr(const std::string& scoreJsonStr) +{ + scoreJsonStr_ = scoreJsonStr; + setParameter("ScoreJsonStr", scoreJsonStr); +} + diff --git a/afs/src/model/AnalyzeNvcResult.cc b/afs/src/model/AnalyzeNvcResult.cc new file mode 100644 index 000000000..3e168b2fe --- /dev/null +++ b/afs/src/model/AnalyzeNvcResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +AnalyzeNvcResult::AnalyzeNvcResult() : + ServiceResult() +{} + +AnalyzeNvcResult::AnalyzeNvcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AnalyzeNvcResult::~AnalyzeNvcResult() +{} + +void AnalyzeNvcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +std::string AnalyzeNvcResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/AuthenticateSigRequest.cc b/afs/src/model/AuthenticateSigRequest.cc new file mode 100644 index 000000000..ab5a8042c --- /dev/null +++ b/afs/src/model/AuthenticateSigRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::AuthenticateSigRequest; + +AuthenticateSigRequest::AuthenticateSigRequest() : + RpcServiceRequest("afs", "2018-01-12", "AuthenticateSig") +{} + +AuthenticateSigRequest::~AuthenticateSigRequest() +{} + +std::string AuthenticateSigRequest::getSig()const +{ + return sig_; +} + +void AuthenticateSigRequest::setSig(const std::string& sig) +{ + sig_ = sig; + setParameter("Sig", sig); +} + +long AuthenticateSigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AuthenticateSigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AuthenticateSigRequest::getRemoteIp()const +{ + return remoteIp_; +} + +void AuthenticateSigRequest::setRemoteIp(const std::string& remoteIp) +{ + remoteIp_ = remoteIp; + setParameter("RemoteIp", remoteIp); +} + +std::string AuthenticateSigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void AuthenticateSigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string AuthenticateSigRequest::getAppKey()const +{ + return appKey_; +} + +void AuthenticateSigRequest::setAppKey(const std::string& appKey) +{ + appKey_ = appKey; + setParameter("AppKey", appKey); +} + +std::string AuthenticateSigRequest::getSessionId()const +{ + return sessionId_; +} + +void AuthenticateSigRequest::setSessionId(const std::string& sessionId) +{ + sessionId_ = sessionId; + setParameter("SessionId", sessionId); +} + +std::string AuthenticateSigRequest::getToken()const +{ + return token_; +} + +void AuthenticateSigRequest::setToken(const std::string& token) +{ + token_ = token; + setParameter("Token", token); +} + +std::string AuthenticateSigRequest::getScene()const +{ + return scene_; +} + +void AuthenticateSigRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + diff --git a/afs/src/model/AuthenticateSigResult.cc b/afs/src/model/AuthenticateSigResult.cc new file mode 100644 index 000000000..29998c54a --- /dev/null +++ b/afs/src/model/AuthenticateSigResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +AuthenticateSigResult::AuthenticateSigResult() : + ServiceResult() +{} + +AuthenticateSigResult::AuthenticateSigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AuthenticateSigResult::~AuthenticateSigResult() +{} + +void AuthenticateSigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["RiskLevel"].isNull()) + riskLevel_ = value["RiskLevel"].asString(); + if(!value["Detail"].isNull()) + detail_ = value["Detail"].asString(); + +} + +std::string AuthenticateSigResult::getMsg()const +{ + return msg_; +} + +int AuthenticateSigResult::getCode()const +{ + return code_; +} + +std::string AuthenticateSigResult::getRiskLevel()const +{ + return riskLevel_; +} + +std::string AuthenticateSigResult::getDetail()const +{ + return detail_; +} + diff --git a/afs/src/model/ConfigurationStyleRequest.cc b/afs/src/model/ConfigurationStyleRequest.cc new file mode 100644 index 000000000..db566ab2d --- /dev/null +++ b/afs/src/model/ConfigurationStyleRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::ConfigurationStyleRequest; + +ConfigurationStyleRequest::ConfigurationStyleRequest() : + RpcServiceRequest("afs", "2018-01-12", "ConfigurationStyle") +{} + +ConfigurationStyleRequest::~ConfigurationStyleRequest() +{} + +long ConfigurationStyleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ConfigurationStyleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ConfigurationStyleRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ConfigurationStyleRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string ConfigurationStyleRequest::getConfigurationMethod()const +{ + return configurationMethod_; +} + +void ConfigurationStyleRequest::setConfigurationMethod(const std::string& configurationMethod) +{ + configurationMethod_ = configurationMethod; + setParameter("ConfigurationMethod", configurationMethod); +} + +std::string ConfigurationStyleRequest::getApplyType()const +{ + return applyType_; +} + +void ConfigurationStyleRequest::setApplyType(const std::string& applyType) +{ + applyType_ = applyType; + setParameter("ApplyType", applyType); +} + +std::string ConfigurationStyleRequest::getScene()const +{ + return scene_; +} + +void ConfigurationStyleRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + diff --git a/afs/src/model/ConfigurationStyleResult.cc b/afs/src/model/ConfigurationStyleResult.cc new file mode 100644 index 000000000..f66bb7da2 --- /dev/null +++ b/afs/src/model/ConfigurationStyleResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +ConfigurationStyleResult::ConfigurationStyleResult() : + ServiceResult() +{} + +ConfigurationStyleResult::ConfigurationStyleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfigurationStyleResult::~ConfigurationStyleResult() +{} + +void ConfigurationStyleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCodeData = value["CodeData"]; + for (auto value : allCodeData) + { + CodeData codeDataObject; + if(!value["Html"].isNull()) + codeDataObject.html = value["Html"].asString(); + if(!value["Net"].isNull()) + codeDataObject.net = value["Net"].asString(); + if(!value["Php"].isNull()) + codeDataObject.php = value["Php"].asString(); + if(!value["Python"].isNull()) + codeDataObject.python = value["Python"].asString(); + if(!value["Java"].isNull()) + codeDataObject.java = value["Java"].asString(); + if(!value["NodeJs"].isNull()) + codeDataObject.nodeJs = value["NodeJs"].asString(); + codeData_.push_back(codeDataObject); + } + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +std::vector ConfigurationStyleResult::getCodeData()const +{ + return codeData_; +} + +std::string ConfigurationStyleResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/CreateConfigurationRequest.cc b/afs/src/model/CreateConfigurationRequest.cc new file mode 100644 index 000000000..a26a45f38 --- /dev/null +++ b/afs/src/model/CreateConfigurationRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::CreateConfigurationRequest; + +CreateConfigurationRequest::CreateConfigurationRequest() : + RpcServiceRequest("afs", "2018-01-12", "CreateConfiguration") +{} + +CreateConfigurationRequest::~CreateConfigurationRequest() +{} + +long CreateConfigurationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateConfigurationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateConfigurationRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateConfigurationRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string CreateConfigurationRequest::getConfigurationName()const +{ + return configurationName_; +} + +void CreateConfigurationRequest::setConfigurationName(const std::string& configurationName) +{ + configurationName_ = configurationName; + setParameter("ConfigurationName", configurationName); +} + +std::string CreateConfigurationRequest::getMaxPV()const +{ + return maxPV_; +} + +void CreateConfigurationRequest::setMaxPV(const std::string& maxPV) +{ + maxPV_ = maxPV; + setParameter("MaxPV", maxPV); +} + +std::string CreateConfigurationRequest::getConfigurationMethod()const +{ + return configurationMethod_; +} + +void CreateConfigurationRequest::setConfigurationMethod(const std::string& configurationMethod) +{ + configurationMethod_ = configurationMethod; + setParameter("ConfigurationMethod", configurationMethod); +} + +std::string CreateConfigurationRequest::getApplyType()const +{ + return applyType_; +} + +void CreateConfigurationRequest::setApplyType(const std::string& applyType) +{ + applyType_ = applyType; + setParameter("ApplyType", applyType); +} + +std::string CreateConfigurationRequest::getScene()const +{ + return scene_; +} + +void CreateConfigurationRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + diff --git a/afs/src/model/CreateConfigurationResult.cc b/afs/src/model/CreateConfigurationResult.cc new file mode 100644 index 000000000..b070919ba --- /dev/null +++ b/afs/src/model/CreateConfigurationResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +CreateConfigurationResult::CreateConfigurationResult() : + ServiceResult() +{} + +CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConfigurationResult::~CreateConfigurationResult() +{} + +void CreateConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +std::string CreateConfigurationResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/DescribeCaptchaDayRequest.cc b/afs/src/model/DescribeCaptchaDayRequest.cc new file mode 100644 index 000000000..d70f61ecb --- /dev/null +++ b/afs/src/model/DescribeCaptchaDayRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeCaptchaDayRequest; + +DescribeCaptchaDayRequest::DescribeCaptchaDayRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeCaptchaDay") +{} + +DescribeCaptchaDayRequest::~DescribeCaptchaDayRequest() +{} + +long DescribeCaptchaDayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCaptchaDayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCaptchaDayRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCaptchaDayRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeCaptchaDayRequest::getConfigName()const +{ + return configName_; +} + +void DescribeCaptchaDayRequest::setConfigName(const std::string& configName) +{ + configName_ = configName; + setParameter("ConfigName", configName); +} + +std::string DescribeCaptchaDayRequest::getTime()const +{ + return time_; +} + +void DescribeCaptchaDayRequest::setTime(const std::string& time) +{ + time_ = time; + setParameter("Time", time); +} + +std::string DescribeCaptchaDayRequest::getType()const +{ + return type_; +} + +void DescribeCaptchaDayRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/afs/src/model/DescribeCaptchaDayResult.cc b/afs/src/model/DescribeCaptchaDayResult.cc new file mode 100644 index 000000000..8a8696e0b --- /dev/null +++ b/afs/src/model/DescribeCaptchaDayResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeCaptchaDayResult::DescribeCaptchaDayResult() : + ServiceResult() +{} + +DescribeCaptchaDayResult::DescribeCaptchaDayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCaptchaDayResult::~DescribeCaptchaDayResult() +{} + +void DescribeCaptchaDayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCaptchaDay = value["CaptchaDay"]; + for (auto value : allCaptchaDay) + { + CaptchaDay captchaDayObject; + if(!value["Init"].isNull()) + captchaDayObject.init = std::stoi(value["Init"].asString()); + if(!value["AskForVerify"].isNull()) + captchaDayObject.askForVerify = std::stoi(value["AskForVerify"].asString()); + if(!value["DirecetStrategyInterception"].isNull()) + captchaDayObject.direcetStrategyInterception = std::stoi(value["DirecetStrategyInterception"].asString()); + if(!value["TwiceVerify"].isNull()) + captchaDayObject.twiceVerify = std::stoi(value["TwiceVerify"].asString()); + if(!value["Pass"].isNull()) + captchaDayObject.pass = std::stoi(value["Pass"].asString()); + if(!value["CheckTested"].isNull()) + captchaDayObject.checkTested = std::stoi(value["CheckTested"].asString()); + if(!value["UncheckTested"].isNull()) + captchaDayObject.uncheckTested = std::stoi(value["UncheckTested"].asString()); + if(!value["LegalSign"].isNull()) + captchaDayObject.legalSign = std::stoi(value["LegalSign"].asString()); + if(!value["MaliciousFlow"].isNull()) + captchaDayObject.maliciousFlow = std::stoi(value["MaliciousFlow"].asString()); + captchaDay_.push_back(captchaDayObject); + } + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + if(!value["HasData"].isNull()) + hasData_ = value["HasData"].asString() == "true"; + +} + +std::vector DescribeCaptchaDayResult::getCaptchaDay()const +{ + return captchaDay_; +} + +std::string DescribeCaptchaDayResult::getBizCode()const +{ + return bizCode_; +} + +bool DescribeCaptchaDayResult::getHasData()const +{ + return hasData_; +} + diff --git a/afs/src/model/DescribeCaptchaIpCityRequest.cc b/afs/src/model/DescribeCaptchaIpCityRequest.cc new file mode 100644 index 000000000..86fdaf8ca --- /dev/null +++ b/afs/src/model/DescribeCaptchaIpCityRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeCaptchaIpCityRequest; + +DescribeCaptchaIpCityRequest::DescribeCaptchaIpCityRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeCaptchaIpCity") +{} + +DescribeCaptchaIpCityRequest::~DescribeCaptchaIpCityRequest() +{} + +long DescribeCaptchaIpCityRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCaptchaIpCityRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCaptchaIpCityRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCaptchaIpCityRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeCaptchaIpCityRequest::getConfigName()const +{ + return configName_; +} + +void DescribeCaptchaIpCityRequest::setConfigName(const std::string& configName) +{ + configName_ = configName; + setParameter("ConfigName", configName); +} + +std::string DescribeCaptchaIpCityRequest::getTime()const +{ + return time_; +} + +void DescribeCaptchaIpCityRequest::setTime(const std::string& time) +{ + time_ = time; + setParameter("Time", time); +} + +std::string DescribeCaptchaIpCityRequest::getType()const +{ + return type_; +} + +void DescribeCaptchaIpCityRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/afs/src/model/DescribeCaptchaIpCityResult.cc b/afs/src/model/DescribeCaptchaIpCityResult.cc new file mode 100644 index 000000000..19e7df00f --- /dev/null +++ b/afs/src/model/DescribeCaptchaIpCityResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeCaptchaIpCityResult::DescribeCaptchaIpCityResult() : + ServiceResult() +{} + +DescribeCaptchaIpCityResult::DescribeCaptchaIpCityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCaptchaIpCityResult::~DescribeCaptchaIpCityResult() +{} + +void DescribeCaptchaIpCityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCaptchaCities = value["CaptchaCities"]["CaptchaCitie"]; + for (auto value : allCaptchaCities) + { + CaptchaCitie captchaCitiesObject; + if(!value["Location"].isNull()) + captchaCitiesObject.location = value["Location"].asString(); + if(!value["Lat"].isNull()) + captchaCitiesObject.lat = value["Lat"].asString(); + if(!value["Lng"].isNull()) + captchaCitiesObject.lng = value["Lng"].asString(); + if(!value["Pv"].isNull()) + captchaCitiesObject.pv = std::stoi(value["Pv"].asString()); + captchaCities_.push_back(captchaCitiesObject); + } + auto allCaptchaIps = value["CaptchaIps"]["CaptchaIp"]; + for (auto value : allCaptchaIps) + { + CaptchaIp captchaIpsObject; + if(!value["Ip"].isNull()) + captchaIpsObject.ip = value["Ip"].asString(); + if(!value["Value"].isNull()) + captchaIpsObject.value = std::stoi(value["Value"].asString()); + captchaIps_.push_back(captchaIpsObject); + } + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + if(!value["HasData"].isNull()) + hasData_ = value["HasData"].asString() == "true"; + +} + +std::vector DescribeCaptchaIpCityResult::getCaptchaIps()const +{ + return captchaIps_; +} + +std::vector DescribeCaptchaIpCityResult::getCaptchaCities()const +{ + return captchaCities_; +} + +std::string DescribeCaptchaIpCityResult::getBizCode()const +{ + return bizCode_; +} + +bool DescribeCaptchaIpCityResult::getHasData()const +{ + return hasData_; +} + diff --git a/afs/src/model/DescribeCaptchaMinRequest.cc b/afs/src/model/DescribeCaptchaMinRequest.cc new file mode 100644 index 000000000..f9ba3b103 --- /dev/null +++ b/afs/src/model/DescribeCaptchaMinRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeCaptchaMinRequest; + +DescribeCaptchaMinRequest::DescribeCaptchaMinRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeCaptchaMin") +{} + +DescribeCaptchaMinRequest::~DescribeCaptchaMinRequest() +{} + +long DescribeCaptchaMinRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCaptchaMinRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCaptchaMinRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCaptchaMinRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeCaptchaMinRequest::getConfigName()const +{ + return configName_; +} + +void DescribeCaptchaMinRequest::setConfigName(const std::string& configName) +{ + configName_ = configName; + setParameter("ConfigName", configName); +} + +std::string DescribeCaptchaMinRequest::getTime()const +{ + return time_; +} + +void DescribeCaptchaMinRequest::setTime(const std::string& time) +{ + time_ = time; + setParameter("Time", time); +} + +std::string DescribeCaptchaMinRequest::getType()const +{ + return type_; +} + +void DescribeCaptchaMinRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/afs/src/model/DescribeCaptchaMinResult.cc b/afs/src/model/DescribeCaptchaMinResult.cc new file mode 100644 index 000000000..d9a5ecd9c --- /dev/null +++ b/afs/src/model/DescribeCaptchaMinResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeCaptchaMinResult::DescribeCaptchaMinResult() : + ServiceResult() +{} + +DescribeCaptchaMinResult::DescribeCaptchaMinResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCaptchaMinResult::~DescribeCaptchaMinResult() +{} + +void DescribeCaptchaMinResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCaptchaMins = value["CaptchaMins"]["CaptchaMin"]; + for (auto value : allCaptchaMins) + { + CaptchaMin captchaMinsObject; + if(!value["Time"].isNull()) + captchaMinsObject.time = value["Time"].asString(); + if(!value["Pass"].isNull()) + captchaMinsObject.pass = value["Pass"].asString(); + if(!value["Interception"].isNull()) + captchaMinsObject.interception = value["Interception"].asString(); + captchaMins_.push_back(captchaMinsObject); + } + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + if(!value["HasData"].isNull()) + hasData_ = value["HasData"].asString() == "true"; + +} + +std::vector DescribeCaptchaMinResult::getCaptchaMins()const +{ + return captchaMins_; +} + +std::string DescribeCaptchaMinResult::getBizCode()const +{ + return bizCode_; +} + +bool DescribeCaptchaMinResult::getHasData()const +{ + return hasData_; +} + diff --git a/afs/src/model/DescribeCaptchaRiskRequest.cc b/afs/src/model/DescribeCaptchaRiskRequest.cc new file mode 100644 index 000000000..e98c75852 --- /dev/null +++ b/afs/src/model/DescribeCaptchaRiskRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeCaptchaRiskRequest; + +DescribeCaptchaRiskRequest::DescribeCaptchaRiskRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeCaptchaRisk") +{} + +DescribeCaptchaRiskRequest::~DescribeCaptchaRiskRequest() +{} + +long DescribeCaptchaRiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCaptchaRiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCaptchaRiskRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCaptchaRiskRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeCaptchaRiskRequest::getConfigName()const +{ + return configName_; +} + +void DescribeCaptchaRiskRequest::setConfigName(const std::string& configName) +{ + configName_ = configName; + setParameter("ConfigName", configName); +} + +std::string DescribeCaptchaRiskRequest::getTime()const +{ + return time_; +} + +void DescribeCaptchaRiskRequest::setTime(const std::string& time) +{ + time_ = time; + setParameter("Time", time); +} + diff --git a/afs/src/model/DescribeCaptchaRiskResult.cc b/afs/src/model/DescribeCaptchaRiskResult.cc new file mode 100644 index 000000000..d28eb9df8 --- /dev/null +++ b/afs/src/model/DescribeCaptchaRiskResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeCaptchaRiskResult::DescribeCaptchaRiskResult() : + ServiceResult() +{} + +DescribeCaptchaRiskResult::DescribeCaptchaRiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCaptchaRiskResult::~DescribeCaptchaRiskResult() +{} + +void DescribeCaptchaRiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + if(!value["NumOfThisMonth"].isNull()) + numOfThisMonth_ = std::stoi(value["NumOfThisMonth"].asString()); + if(!value["NumOfLastMonth"].isNull()) + numOfLastMonth_ = std::stoi(value["NumOfLastMonth"].asString()); + if(!value["RiskLevel"].isNull()) + riskLevel_ = value["RiskLevel"].asString(); + +} + +int DescribeCaptchaRiskResult::getNumOfLastMonth()const +{ + return numOfLastMonth_; +} + +std::string DescribeCaptchaRiskResult::getRiskLevel()const +{ + return riskLevel_; +} + +std::string DescribeCaptchaRiskResult::getBizCode()const +{ + return bizCode_; +} + +int DescribeCaptchaRiskResult::getNumOfThisMonth()const +{ + return numOfThisMonth_; +} + diff --git a/afs/src/model/DescribeConfigNameRequest.cc b/afs/src/model/DescribeConfigNameRequest.cc new file mode 100644 index 000000000..9b8e60825 --- /dev/null +++ b/afs/src/model/DescribeConfigNameRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeConfigNameRequest; + +DescribeConfigNameRequest::DescribeConfigNameRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeConfigName") +{} + +DescribeConfigNameRequest::~DescribeConfigNameRequest() +{} + +long DescribeConfigNameRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeConfigNameRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeConfigNameRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeConfigNameRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/afs/src/model/DescribeConfigNameResult.cc b/afs/src/model/DescribeConfigNameResult.cc new file mode 100644 index 000000000..5a3687733 --- /dev/null +++ b/afs/src/model/DescribeConfigNameResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeConfigNameResult::DescribeConfigNameResult() : + ServiceResult() +{} + +DescribeConfigNameResult::DescribeConfigNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigNameResult::~DescribeConfigNameResult() +{} + +void DescribeConfigNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["HasConfig"].isNull()) + hasConfig_ = value["HasConfig"].asString() == "true"; + if(!value["ConfigNames"].isNull()) + configNames_ = value["ConfigNames"].asString(); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +std::string DescribeConfigNameResult::getConfigNames()const +{ + return configNames_; +} + +bool DescribeConfigNameResult::getHasConfig()const +{ + return hasConfig_; +} + +std::string DescribeConfigNameResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/DescribeEarlyWarningRequest.cc b/afs/src/model/DescribeEarlyWarningRequest.cc new file mode 100644 index 000000000..1663b15d6 --- /dev/null +++ b/afs/src/model/DescribeEarlyWarningRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeEarlyWarningRequest; + +DescribeEarlyWarningRequest::DescribeEarlyWarningRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeEarlyWarning") +{} + +DescribeEarlyWarningRequest::~DescribeEarlyWarningRequest() +{} + +long DescribeEarlyWarningRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEarlyWarningRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeEarlyWarningRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeEarlyWarningRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/afs/src/model/DescribeEarlyWarningResult.cc b/afs/src/model/DescribeEarlyWarningResult.cc new file mode 100644 index 000000000..31b267066 --- /dev/null +++ b/afs/src/model/DescribeEarlyWarningResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeEarlyWarningResult::DescribeEarlyWarningResult() : + ServiceResult() +{} + +DescribeEarlyWarningResult::DescribeEarlyWarningResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEarlyWarningResult::~DescribeEarlyWarningResult() +{} + +void DescribeEarlyWarningResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEarlyWarnings = value["EarlyWarnings"]["EarlyWarning"]; + for (auto value : allEarlyWarnings) + { + EarlyWarning earlyWarningsObject; + if(!value["WarnOpen"].isNull()) + earlyWarningsObject.warnOpen = value["WarnOpen"].asString() == "true"; + if(!value["Title"].isNull()) + earlyWarningsObject.title = value["Title"].asString(); + if(!value["Content"].isNull()) + earlyWarningsObject.content = value["Content"].asString(); + if(!value["Frequency"].isNull()) + earlyWarningsObject.frequency = value["Frequency"].asString(); + if(!value["TimeOpen"].isNull()) + earlyWarningsObject.timeOpen = value["TimeOpen"].asString() == "true"; + if(!value["TimeBegin"].isNull()) + earlyWarningsObject.timeBegin = value["TimeBegin"].asString(); + if(!value["TimeEnd"].isNull()) + earlyWarningsObject.timeEnd = value["TimeEnd"].asString(); + if(!value["Channel"].isNull()) + earlyWarningsObject.channel = value["Channel"].asString(); + earlyWarnings_.push_back(earlyWarningsObject); + } + if(!value["HasWarning"].isNull()) + hasWarning_ = value["HasWarning"].asString() == "true"; + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +bool DescribeEarlyWarningResult::getHasWarning()const +{ + return hasWarning_; +} + +std::vector DescribeEarlyWarningResult::getEarlyWarnings()const +{ + return earlyWarnings_; +} + +std::string DescribeEarlyWarningResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/DescribePersonMachineListRequest.cc b/afs/src/model/DescribePersonMachineListRequest.cc new file mode 100644 index 000000000..c62b99cc0 --- /dev/null +++ b/afs/src/model/DescribePersonMachineListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribePersonMachineListRequest; + +DescribePersonMachineListRequest::DescribePersonMachineListRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribePersonMachineList") +{} + +DescribePersonMachineListRequest::~DescribePersonMachineListRequest() +{} + +long DescribePersonMachineListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePersonMachineListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePersonMachineListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribePersonMachineListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/afs/src/model/DescribePersonMachineListResult.cc b/afs/src/model/DescribePersonMachineListResult.cc new file mode 100644 index 000000000..218fd6f3d --- /dev/null +++ b/afs/src/model/DescribePersonMachineListResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribePersonMachineListResult::DescribePersonMachineListResult() : + ServiceResult() +{} + +DescribePersonMachineListResult::DescribePersonMachineListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePersonMachineListResult::~DescribePersonMachineListResult() +{} + +void DescribePersonMachineListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPersonMachineRes = value["PersonMachineRes"]; + for (auto value : allPersonMachineRes) + { + PersonMachineRes personMachineResObject; + if(!value["HasConfiguration"].isNull()) + personMachineResObject.hasConfiguration = value["HasConfiguration"].asString(); + auto allPersonMachines = value["PersonMachines"]["PersonMachine"]; + for (auto value : allPersonMachines) + { + PersonMachineRes::PersonMachine personMachineObject; + if(!value["ConfigurationName"].isNull()) + personMachineObject.configurationName = value["ConfigurationName"].asString(); + if(!value["Appkey"].isNull()) + personMachineObject.appkey = value["Appkey"].asString(); + if(!value["ConfigurationMethod"].isNull()) + personMachineObject.configurationMethod = value["ConfigurationMethod"].asString(); + if(!value["ApplyType"].isNull()) + personMachineObject.applyType = value["ApplyType"].asString(); + if(!value["Scene"].isNull()) + personMachineObject.scene = value["Scene"].asString(); + if(!value["LastUpdate"].isNull()) + personMachineObject.lastUpdate = value["LastUpdate"].asString(); + personMachineResObject.personMachines.push_back(personMachineObject); + } + personMachineRes_.push_back(personMachineResObject); + } + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +std::vector DescribePersonMachineListResult::getPersonMachineRes()const +{ + return personMachineRes_; +} + +std::string DescribePersonMachineListResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/SetEarlyWarningRequest.cc b/afs/src/model/SetEarlyWarningRequest.cc new file mode 100644 index 000000000..1291cb182 --- /dev/null +++ b/afs/src/model/SetEarlyWarningRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::SetEarlyWarningRequest; + +SetEarlyWarningRequest::SetEarlyWarningRequest() : + RpcServiceRequest("afs", "2018-01-12", "SetEarlyWarning") +{} + +SetEarlyWarningRequest::~SetEarlyWarningRequest() +{} + +std::string SetEarlyWarningRequest::getTimeEnd()const +{ + return timeEnd_; +} + +void SetEarlyWarningRequest::setTimeEnd(const std::string& timeEnd) +{ + timeEnd_ = timeEnd; + setParameter("TimeEnd", timeEnd); +} + +long SetEarlyWarningRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetEarlyWarningRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool SetEarlyWarningRequest::getWarnOpen()const +{ + return warnOpen_; +} + +void SetEarlyWarningRequest::setWarnOpen(bool warnOpen) +{ + warnOpen_ = warnOpen; + setParameter("WarnOpen", std::to_string(warnOpen)); +} + +std::string SetEarlyWarningRequest::getSourceIp()const +{ + return sourceIp_; +} + +void SetEarlyWarningRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string SetEarlyWarningRequest::getChannel()const +{ + return channel_; +} + +void SetEarlyWarningRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setParameter("Channel", channel); +} + +std::string SetEarlyWarningRequest::getTitle()const +{ + return title_; +} + +void SetEarlyWarningRequest::setTitle(const std::string& title) +{ + title_ = title; + setParameter("Title", title); +} + +bool SetEarlyWarningRequest::getTimeOpen()const +{ + return timeOpen_; +} + +void SetEarlyWarningRequest::setTimeOpen(bool timeOpen) +{ + timeOpen_ = timeOpen; + setParameter("TimeOpen", std::to_string(timeOpen)); +} + +std::string SetEarlyWarningRequest::getTimeBegin()const +{ + return timeBegin_; +} + +void SetEarlyWarningRequest::setTimeBegin(const std::string& timeBegin) +{ + timeBegin_ = timeBegin; + setParameter("TimeBegin", timeBegin); +} + +std::string SetEarlyWarningRequest::getFrequency()const +{ + return frequency_; +} + +void SetEarlyWarningRequest::setFrequency(const std::string& frequency) +{ + frequency_ = frequency; + setParameter("Frequency", frequency); +} + diff --git a/afs/src/model/SetEarlyWarningResult.cc b/afs/src/model/SetEarlyWarningResult.cc new file mode 100644 index 000000000..6b2889bca --- /dev/null +++ b/afs/src/model/SetEarlyWarningResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +SetEarlyWarningResult::SetEarlyWarningResult() : + ServiceResult() +{} + +SetEarlyWarningResult::SetEarlyWarningResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetEarlyWarningResult::~SetEarlyWarningResult() +{} + +void SetEarlyWarningResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + +} + +std::string SetEarlyWarningResult::getBizCode()const +{ + return bizCode_; +} +