diff --git a/CHANGELOG b/CHANGELOG index 0517a817c..52e5e476f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-18 Version: 1.34.36 +1, Update Dependency + 2019-03-15 Version: 1.34.35 1, Update Dependency diff --git a/VERSION b/VERSION index 3eb721807..5658a919c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.35 \ No newline at end of file +1.34.36 \ No newline at end of file diff --git a/afs/CMakeLists.txt b/afs/CMakeLists.txt index 4f3ef0b7a..5ac926620 100644 --- a/afs/CMakeLists.txt +++ b/afs/CMakeLists.txt @@ -23,55 +23,67 @@ set(afs_public_header 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/DescribeOrderInfoRequest.h + include/alibabacloud/afs/model/DescribeOrderInfoResult.h + include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h + include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h + include/alibabacloud/afs/model/DescribeCaptchaOrderRequest.h + include/alibabacloud/afs/model/DescribeCaptchaOrderResult.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 + include/alibabacloud/afs/model/SetEarlyWarningRequest.h + include/alibabacloud/afs/model/SetEarlyWarningResult.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/UpdateConfigNameRequest.h + include/alibabacloud/afs/model/UpdateConfigNameResult.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 ) + include/alibabacloud/afs/model/DescribePersonMachineListResult.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/DescribeOrderInfoRequest.cc + src/model/DescribeOrderInfoResult.cc + src/model/DescribeCaptchaRiskRequest.cc + src/model/DescribeCaptchaRiskResult.cc + src/model/DescribeCaptchaOrderRequest.cc + src/model/DescribeCaptchaOrderResult.cc + src/model/CreateConfigurationRequest.cc + src/model/CreateConfigurationResult.cc + src/model/AnalyzeNvcRequest.cc + src/model/AnalyzeNvcResult.cc + src/model/SetEarlyWarningRequest.cc + src/model/SetEarlyWarningResult.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/UpdateConfigNameRequest.cc + src/model/UpdateConfigNameResult.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 ) + src/model/DescribePersonMachineListResult.cc ) add_library(afs ${LIB_TYPE} ${afs_public_header} diff --git a/afs/include/alibabacloud/afs/AfsClient.h b/afs/include/alibabacloud/afs/AfsClient.h index 8904776d4..10395a5f7 100644 --- a/afs/include/alibabacloud/afs/AfsClient.h +++ b/afs/include/alibabacloud/afs/AfsClient.h @@ -24,28 +24,34 @@ #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/DescribeOrderInfoRequest.h" +#include "model/DescribeOrderInfoResult.h" +#include "model/DescribeCaptchaRiskRequest.h" +#include "model/DescribeCaptchaRiskResult.h" +#include "model/DescribeCaptchaOrderRequest.h" +#include "model/DescribeCaptchaOrderResult.h" +#include "model/CreateConfigurationRequest.h" +#include "model/CreateConfigurationResult.h" +#include "model/AnalyzeNvcRequest.h" +#include "model/AnalyzeNvcResult.h" +#include "model/SetEarlyWarningRequest.h" +#include "model/SetEarlyWarningResult.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/UpdateConfigNameRequest.h" +#include "model/UpdateConfigNameResult.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 @@ -55,83 +61,101 @@ namespace AlibabaCloud class ALIBABACLOUD_AFS_EXPORT AfsClient : public RpcServiceClient { public: - typedef Outcome DescribeEarlyWarningOutcome; - typedef std::future DescribeEarlyWarningOutcomeCallable; + 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 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 Outcome DescribeOrderInfoOutcome; + typedef std::future DescribeOrderInfoOutcomeCallable; + typedef std::function&)> DescribeOrderInfoAsyncHandler; + 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 Outcome DescribeCaptchaOrderOutcome; + typedef std::future DescribeCaptchaOrderOutcomeCallable; + typedef std::function&)> DescribeCaptchaOrderAsyncHandler; + typedef Outcome CreateConfigurationOutcome; + typedef std::future CreateConfigurationOutcomeCallable; typedef std::function&)> CreateConfigurationAsyncHandler; - typedef Outcome AnalyzeNvcOutcome; - typedef std::future AnalyzeNvcOutcomeCallable; + typedef Outcome AnalyzeNvcOutcome; + typedef std::future AnalyzeNvcOutcomeCallable; typedef std::function&)> AnalyzeNvcAsyncHandler; + typedef Outcome SetEarlyWarningOutcome; + typedef std::future SetEarlyWarningOutcomeCallable; + typedef std::function&)> SetEarlyWarningAsyncHandler; + typedef Outcome ConfigurationStyleOutcome; + typedef std::future ConfigurationStyleOutcomeCallable; + typedef std::function&)> ConfigurationStyleAsyncHandler; + typedef Outcome DescribeCaptchaMinOutcome; + typedef std::future DescribeCaptchaMinOutcomeCallable; + typedef std::function&)> DescribeCaptchaMinAsyncHandler; + 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 UpdateConfigNameOutcome; + typedef std::future UpdateConfigNameOutcomeCallable; + typedef std::function&)> UpdateConfigNameAsyncHandler; + typedef Outcome DescribePersonMachineListOutcome; + typedef std::future DescribePersonMachineListOutcomeCallable; + typedef std::function&)> DescribePersonMachineListAsyncHandler; 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; + 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; + 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; + DescribeOrderInfoOutcome describeOrderInfo(const Model::DescribeOrderInfoRequest &request)const; + void describeOrderInfoAsync(const Model::DescribeOrderInfoRequest& request, const DescribeOrderInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOrderInfoOutcomeCallable describeOrderInfoCallable(const Model::DescribeOrderInfoRequest& 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; + DescribeCaptchaOrderOutcome describeCaptchaOrder(const Model::DescribeCaptchaOrderRequest &request)const; + void describeCaptchaOrderAsync(const Model::DescribeCaptchaOrderRequest& request, const DescribeCaptchaOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCaptchaOrderOutcomeCallable describeCaptchaOrderCallable(const Model::DescribeCaptchaOrderRequest& 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; + 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; + 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; + 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; + UpdateConfigNameOutcome updateConfigName(const Model::UpdateConfigNameRequest &request)const; + void updateConfigNameAsync(const Model::UpdateConfigNameRequest& request, const UpdateConfigNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConfigNameOutcomeCallable updateConfigNameCallable(const Model::UpdateConfigNameRequest& 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; private: std::shared_ptr endpointProvider_; diff --git a/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h b/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h index 7fbbdf446..e0a661c83 100644 --- a/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h +++ b/afs/include/alibabacloud/afs/model/AnalyzeNvcRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud AnalyzeNvcRequest(); ~AnalyzeNvcRequest(); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getData()const; @@ -45,7 +43,6 @@ namespace AlibabaCloud void setScoreJsonStr(const std::string& scoreJsonStr); private: - long resourceOwnerId_; std::string sourceIp_; std::string data_; std::string scoreJsonStr_; diff --git a/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h b/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h index 2c50aa8d1..0a80424cf 100644 --- a/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h +++ b/afs/include/alibabacloud/afs/model/AnalyzeNvcResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud AnalyzeNvcResult(); explicit AnalyzeNvcResult(const std::string &payload); ~AnalyzeNvcResult(); - std::string getBizCode()const; + std::string getBizCode()const; protected: void parse(const std::string &payload); private: - std::string bizCode_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h b/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h index ff3b38afc..050c81ba1 100644 --- a/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h +++ b/afs/include/alibabacloud/afs/model/AuthenticateSigRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud 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; @@ -54,7 +52,6 @@ namespace AlibabaCloud private: std::string sig_; - long resourceOwnerId_; std::string remoteIp_; std::string sourceIp_; std::string appKey_; diff --git a/afs/include/alibabacloud/afs/model/AuthenticateSigResult.h b/afs/include/alibabacloud/afs/model/AuthenticateSigResult.h index fd1270362..bc9d3b71b 100644 --- a/afs/include/alibabacloud/afs/model/AuthenticateSigResult.h +++ b/afs/include/alibabacloud/afs/model/AuthenticateSigResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud AuthenticateSigResult(); explicit AuthenticateSigResult(const std::string &payload); ~AuthenticateSigResult(); - std::string getMsg()const; - int getCode()const; - std::string getRiskLevel()const; - std::string getDetail()const; + 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_; + std::string msg_; + int code_; + std::string riskLevel_; + std::string detail_; }; } diff --git a/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h b/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h index 0ddd30a29..76a5721a9 100644 --- a/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h +++ b/afs/include/alibabacloud/afs/model/ConfigurationStyleRequest.h @@ -35,21 +35,21 @@ namespace AlibabaCloud 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 getRefExtId()const; + void setRefExtId(const std::string& refExtId); 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 refExtId_; std::string applyType_; std::string scene_; diff --git a/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h b/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h index 6ab24c674..259fb6102 100644 --- a/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h +++ b/afs/include/alibabacloud/afs/model/ConfigurationStyleResult.h @@ -32,28 +32,33 @@ namespace AlibabaCloud 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; - }; + struct CodeData + { + std::string java; + std::string javaUrl; + std::string phpUrl; + std::string pythonUrl; + std::string html; + std::string php; + std::string nodeJsUrl; + std::string net; + std::string netUrl; + std::string nodeJs; + std::string python; + }; ConfigurationStyleResult(); explicit ConfigurationStyleResult(const std::string &payload); ~ConfigurationStyleResult(); - std::vector getCodeData()const; - std::string getBizCode()const; + CodeData getCodeData()const; + std::string getBizCode()const; protected: void parse(const std::string &payload); private: - std::vector codeData_; - std::string bizCode_; + CodeData codeData_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h b/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h index daba613fd..9a3780d7e 100644 --- a/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h +++ b/afs/include/alibabacloud/afs/model/CreateConfigurationRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud CreateConfigurationRequest(); ~CreateConfigurationRequest(); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getConfigurationName()const; @@ -51,7 +49,6 @@ namespace AlibabaCloud void setScene(const std::string& scene); private: - long resourceOwnerId_; std::string sourceIp_; std::string configurationName_; std::string maxPV_; diff --git a/afs/include/alibabacloud/afs/model/CreateConfigurationResult.h b/afs/include/alibabacloud/afs/model/CreateConfigurationResult.h index 2847c3ed9..0f19d9eb4 100644 --- a/afs/include/alibabacloud/afs/model/CreateConfigurationResult.h +++ b/afs/include/alibabacloud/afs/model/CreateConfigurationResult.h @@ -37,12 +37,14 @@ namespace AlibabaCloud CreateConfigurationResult(); explicit CreateConfigurationResult(const std::string &payload); ~CreateConfigurationResult(); - std::string getBizCode()const; + std::string getRefExtId()const; + std::string getBizCode()const; protected: void parse(const std::string &payload); private: - std::string bizCode_; + std::string refExtId_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h index f515f90bc..a0189b7d2 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayRequest.h @@ -35,21 +35,21 @@ namespace AlibabaCloud 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 getRefExtId()const; + void setRefExtId(const std::string& refExtId); 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 refExtId_; std::string time_; std::string type_; diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h index 700667491..e97c86ea5 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaDayResult.h @@ -32,33 +32,33 @@ namespace AlibabaCloud 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; - }; + 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; + CaptchaDay 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_; + CaptchaDay captchaDay_; + std::string bizCode_; + bool hasData_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h index 17c694840..3a0b64539 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityRequest.h @@ -35,21 +35,21 @@ namespace AlibabaCloud 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 getRefExtId()const; + void setRefExtId(const std::string& refExtId); 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 refExtId_; std::string time_; std::string type_; diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h index 977e74926..78711c354 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaIpCityResult.h @@ -32,35 +32,35 @@ namespace AlibabaCloud 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; - }; + 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; + 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_; + std::vector captchaIps_; + std::vector captchaCities_; + std::string bizCode_; + bool hasData_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h index 8e53f9062..642a13852 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinRequest.h @@ -35,21 +35,21 @@ namespace AlibabaCloud 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 getRefExtId()const; + void setRefExtId(const std::string& refExtId); 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 refExtId_; std::string time_; std::string type_; diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h index c7002fb7d..416f2159a 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaMinResult.h @@ -32,27 +32,27 @@ namespace AlibabaCloud class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaMinResult : public ServiceResult { public: - struct CaptchaMin - { - std::string pass; - std::string time; - std::string interception; - }; + 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; + 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_; + std::vector captchaMins_; + std::string bizCode_; + bool hasData_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaOrderRequest.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaOrderRequest.h new file mode 100644 index 000000000..5102c00f4 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaOrderRequest.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_DESCRIBECAPTCHAORDERREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaOrderRequest : public RpcServiceRequest + { + + public: + DescribeCaptchaOrderRequest(); + ~DescribeCaptchaOrderRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAORDERREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaOrderResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaOrderResult.h new file mode 100644 index 000000000..1258bec69 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaOrderResult.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_DESCRIBECAPTCHAORDERRESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeCaptchaOrderResult : public ServiceResult + { + public: + + + DescribeCaptchaOrderResult(); + explicit DescribeCaptchaOrderResult(const std::string &payload); + ~DescribeCaptchaOrderResult(); + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBECAPTCHAORDERRESULT_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 index deb989f92..dc5ed92a2 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskRequest.h @@ -35,19 +35,19 @@ namespace AlibabaCloud 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 getRefExtId()const; + void setRefExtId(const std::string& refExtId); std::string getTime()const; void setTime(const std::string& time); private: - long resourceOwnerId_; std::string sourceIp_; std::string configName_; + std::string refExtId_; std::string time_; }; diff --git a/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h index e72117e61..f7218e439 100644 --- a/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h +++ b/afs/include/alibabacloud/afs/model/DescribeCaptchaRiskResult.h @@ -37,18 +37,18 @@ namespace AlibabaCloud DescribeCaptchaRiskResult(); explicit DescribeCaptchaRiskResult(const std::string &payload); ~DescribeCaptchaRiskResult(); - int getNumOfLastMonth()const; - std::string getRiskLevel()const; - std::string getBizCode()const; - int getNumOfThisMonth()const; + 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_; + int numOfLastMonth_; + std::string riskLevel_; + std::string bizCode_; + int numOfThisMonth_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h b/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h index 8ea47c754..0de87deb8 100644 --- a/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribeConfigNameRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud 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_; }; diff --git a/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h b/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h index 436a25b37..d2b3db880 100644 --- a/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h +++ b/afs/include/alibabacloud/afs/model/DescribeConfigNameResult.h @@ -32,21 +32,27 @@ namespace AlibabaCloud class ALIBABACLOUD_AFS_EXPORT DescribeConfigNameResult : public ServiceResult { public: + struct ConfigName + { + std::string refExtId; + std::string configName; + std::string aliUid; + }; DescribeConfigNameResult(); explicit DescribeConfigNameResult(const std::string &payload); ~DescribeConfigNameResult(); - std::string getConfigNames()const; - bool getHasConfig()const; - std::string getBizCode()const; + std::vector 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_; + std::vector configNames_; + bool hasConfig_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h index 6cbd84924..65ace931d 100644 --- a/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud 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_; }; diff --git a/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h index 4819987c0..61432bd59 100644 --- a/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h +++ b/afs/include/alibabacloud/afs/model/DescribeEarlyWarningResult.h @@ -32,32 +32,32 @@ namespace AlibabaCloud 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; - }; + 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; + 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_; + bool hasWarning_; + std::vector earlyWarnings_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/DescribeOrderInfoRequest.h b/afs/include/alibabacloud/afs/model/DescribeOrderInfoRequest.h new file mode 100644 index 000000000..bd210153f --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeOrderInfoRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AFS_MODEL_DESCRIBEORDERINFOREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBEORDERINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeOrderInfoRequest : public RpcServiceRequest + { + + public: + DescribeOrderInfoRequest(); + ~DescribeOrderInfoRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBEORDERINFOREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/DescribeOrderInfoResult.h b/afs/include/alibabacloud/afs/model/DescribeOrderInfoResult.h new file mode 100644 index 000000000..ba5f4d95f --- /dev/null +++ b/afs/include/alibabacloud/afs/model/DescribeOrderInfoResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AFS_MODEL_DESCRIBEORDERINFORESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_DESCRIBEORDERINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT DescribeOrderInfoResult : public ServiceResult + { + public: + + + DescribeOrderInfoResult(); + explicit DescribeOrderInfoResult(const std::string &payload); + ~DescribeOrderInfoResult(); + std::string getOrderLevel()const; + std::string getNum()const; + std::string getEndDate()const; + std::string getBizCode()const; + std::string getBeginDate()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderLevel_; + std::string num_; + std::string endDate_; + std::string bizCode_; + std::string beginDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_DESCRIBEORDERINFORESULT_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 index 5300d6ab5..47f391847 100644 --- a/afs/include/alibabacloud/afs/model/DescribePersonMachineListRequest.h +++ b/afs/include/alibabacloud/afs/model/DescribePersonMachineListRequest.h @@ -35,13 +35,10 @@ namespace AlibabaCloud 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_; }; diff --git a/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h b/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h index 8ea9eaab8..349f9bd51 100644 --- a/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h +++ b/afs/include/alibabacloud/afs/model/DescribePersonMachineListResult.h @@ -32,33 +32,35 @@ namespace AlibabaCloud 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; - }; + struct PersonMachineRes + { + struct PersonMachine + { + std::string configurationMethod; + std::string applyType; + std::string lastUpdate; + std::string appkey; + std::string extId; + std::string configurationName; + std::string scene; + std::string sceneOriginal; + }; + std::string hasConfiguration; + std::vector personMachines; + }; DescribePersonMachineListResult(); explicit DescribePersonMachineListResult(const std::string &payload); ~DescribePersonMachineListResult(); - std::vector getPersonMachineRes()const; - std::string getBizCode()const; + PersonMachineRes getPersonMachineRes()const; + std::string getBizCode()const; protected: void parse(const std::string &payload); private: - std::vector personMachineRes_; - std::string bizCode_; + PersonMachineRes personMachineRes_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h b/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h index 731449316..fd7099b32 100644 --- a/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h +++ b/afs/include/alibabacloud/afs/model/SetEarlyWarningRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud 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; @@ -56,7 +54,6 @@ namespace AlibabaCloud private: std::string timeEnd_; - long resourceOwnerId_; bool warnOpen_; std::string sourceIp_; std::string channel_; diff --git a/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h b/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h index 6a84b7c78..c7049cc87 100644 --- a/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h +++ b/afs/include/alibabacloud/afs/model/SetEarlyWarningResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud SetEarlyWarningResult(); explicit SetEarlyWarningResult(const std::string &payload); ~SetEarlyWarningResult(); - std::string getBizCode()const; + std::string getBizCode()const; protected: void parse(const std::string &payload); private: - std::string bizCode_; + std::string bizCode_; }; } diff --git a/afs/include/alibabacloud/afs/model/UpdateConfigNameRequest.h b/afs/include/alibabacloud/afs/model/UpdateConfigNameRequest.h new file mode 100644 index 000000000..b682847d3 --- /dev/null +++ b/afs/include/alibabacloud/afs/model/UpdateConfigNameRequest.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_UPDATECONFIGNAMEREQUEST_H_ +#define ALIBABACLOUD_AFS_MODEL_UPDATECONFIGNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT UpdateConfigNameRequest : public RpcServiceRequest + { + + public: + UpdateConfigNameRequest(); + ~UpdateConfigNameRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getConfigName()const; + void setConfigName(const std::string& configName); + std::string getRefExtId()const; + void setRefExtId(const std::string& refExtId); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string configName_; + std::string refExtId_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_UPDATECONFIGNAMEREQUEST_H_ \ No newline at end of file diff --git a/afs/include/alibabacloud/afs/model/UpdateConfigNameResult.h b/afs/include/alibabacloud/afs/model/UpdateConfigNameResult.h new file mode 100644 index 000000000..b6b741f6f --- /dev/null +++ b/afs/include/alibabacloud/afs/model/UpdateConfigNameResult.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_UPDATECONFIGNAMERESULT_H_ +#define ALIBABACLOUD_AFS_MODEL_UPDATECONFIGNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Afs + { + namespace Model + { + class ALIBABACLOUD_AFS_EXPORT UpdateConfigNameResult : public ServiceResult + { + public: + + + UpdateConfigNameResult(); + explicit UpdateConfigNameResult(const std::string &payload); + ~UpdateConfigNameResult(); + std::string getBizCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string bizCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AFS_MODEL_UPDATECONFIGNAMERESULT_H_ \ No newline at end of file diff --git a/afs/src/AfsClient.cc b/afs/src/AfsClient.cc index a97fe5187..71ebb09f1 100644 --- a/afs/src/AfsClient.cc +++ b/afs/src/AfsClient.cc @@ -31,21 +31,21 @@ AfsClient::AfsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "afs"); } AfsClient::AfsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "afs"); } AfsClient::AfsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "afs"); } AfsClient::~AfsClient() @@ -86,43 +86,7 @@ AfsClient::DescribeEarlyWarningOutcomeCallable AfsClient::describeEarlyWarningCa asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -AfsClient::SetEarlyWarningOutcome AfsClient::setEarlyWarning(const SetEarlyWarningRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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 = endpointProvider_->getEndpoint(); @@ -158,79 +122,43 @@ AfsClient::DescribeCaptchaIpCityOutcomeCallable AfsClient::describeCaptchaIpCity asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -AfsClient::ConfigurationStyleOutcome AfsClient::configurationStyle(const ConfigurationStyleRequest &request) const + +AfsClient::DescribeOrderInfoOutcome AfsClient::describeOrderInfo(const DescribeOrderInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ConfigurationStyleOutcome(endpointOutcome.error()); + return DescribeOrderInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ConfigurationStyleOutcome(ConfigurationStyleResult(outcome.result())); + return DescribeOrderInfoOutcome(DescribeOrderInfoResult(outcome.result())); else - return ConfigurationStyleOutcome(outcome.error()); + return DescribeOrderInfoOutcome(outcome.error()); } -void AfsClient::configurationStyleAsync(const ConfigurationStyleRequest& request, const ConfigurationStyleAsyncHandler& handler, const std::shared_ptr& context) const +void AfsClient::describeOrderInfoAsync(const DescribeOrderInfoRequest& request, const DescribeOrderInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, configurationStyle(request), context); + handler(this, request, describeOrderInfo(request), context); }; asyncExecute(new Runnable(fn)); } -AfsClient::ConfigurationStyleOutcomeCallable AfsClient::configurationStyleCallable(const ConfigurationStyleRequest &request) const +AfsClient::DescribeOrderInfoOutcomeCallable AfsClient::describeOrderInfoCallable(const DescribeOrderInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->configurationStyle(request); + return this->describeOrderInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -AfsClient::DescribeCaptchaMinOutcome AfsClient::describeCaptchaMin(const DescribeCaptchaMinRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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 = endpointProvider_->getEndpoint(); @@ -266,151 +194,43 @@ AfsClient::DescribeCaptchaRiskOutcomeCallable AfsClient::describeCaptchaRiskCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -AfsClient::AuthenticateSigOutcome AfsClient::authenticateSig(const AuthenticateSigRequest &request) const + +AfsClient::DescribeCaptchaOrderOutcome AfsClient::describeCaptchaOrder(const DescribeCaptchaOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AuthenticateSigOutcome(endpointOutcome.error()); + return DescribeCaptchaOrderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AuthenticateSigOutcome(AuthenticateSigResult(outcome.result())); + return DescribeCaptchaOrderOutcome(DescribeCaptchaOrderResult(outcome.result())); else - return AuthenticateSigOutcome(outcome.error()); + return DescribeCaptchaOrderOutcome(outcome.error()); } -void AfsClient::authenticateSigAsync(const AuthenticateSigRequest& request, const AuthenticateSigAsyncHandler& handler, const std::shared_ptr& context) const +void AfsClient::describeCaptchaOrderAsync(const DescribeCaptchaOrderRequest& request, const DescribeCaptchaOrderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, authenticateSig(request), context); + handler(this, request, describeCaptchaOrder(request), context); }; asyncExecute(new Runnable(fn)); } -AfsClient::AuthenticateSigOutcomeCallable AfsClient::authenticateSigCallable(const AuthenticateSigRequest &request) const +AfsClient::DescribeCaptchaOrderOutcomeCallable AfsClient::describeCaptchaOrderCallable(const DescribeCaptchaOrderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->authenticateSig(request); + return this->describeCaptchaOrder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - -AfsClient::DescribeConfigNameOutcome AfsClient::describeConfigName(const DescribeConfigNameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - 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 = endpointProvider_->getEndpoint(); - 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 = endpointProvider_->getEndpoint(); - 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 = endpointProvider_->getEndpoint(); @@ -446,7 +266,7 @@ AfsClient::CreateConfigurationOutcomeCallable AfsClient::createConfigurationCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + AfsClient::AnalyzeNvcOutcome AfsClient::analyzeNvc(const AnalyzeNvcRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -482,4 +302,292 @@ AfsClient::AnalyzeNvcOutcomeCallable AfsClient::analyzeNvcCallable(const Analyze asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +AfsClient::SetEarlyWarningOutcome AfsClient::setEarlyWarning(const SetEarlyWarningRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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::ConfigurationStyleOutcome AfsClient::configurationStyle(const ConfigurationStyleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 = endpointProvider_->getEndpoint(); + 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::AuthenticateSigOutcome AfsClient::authenticateSig(const AuthenticateSigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 = endpointProvider_->getEndpoint(); + 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 = endpointProvider_->getEndpoint(); + 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::UpdateConfigNameOutcome AfsClient::updateConfigName(const UpdateConfigNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConfigNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConfigNameOutcome(UpdateConfigNameResult(outcome.result())); + else + return UpdateConfigNameOutcome(outcome.error()); +} + +void AfsClient::updateConfigNameAsync(const UpdateConfigNameRequest& request, const UpdateConfigNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConfigName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AfsClient::UpdateConfigNameOutcomeCallable AfsClient::updateConfigNameCallable(const UpdateConfigNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConfigName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AfsClient::DescribePersonMachineListOutcome AfsClient::describePersonMachineList(const DescribePersonMachineListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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(); +} + diff --git a/afs/src/model/AnalyzeNvcRequest.cc b/afs/src/model/AnalyzeNvcRequest.cc index 72325434b..9edd88c93 100644 --- a/afs/src/model/AnalyzeNvcRequest.cc +++ b/afs/src/model/AnalyzeNvcRequest.cc @@ -25,17 +25,6 @@ AnalyzeNvcRequest::AnalyzeNvcRequest() : 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_; diff --git a/afs/src/model/AnalyzeNvcResult.cc b/afs/src/model/AnalyzeNvcResult.cc index 3e168b2fe..144607fc9 100644 --- a/afs/src/model/AnalyzeNvcResult.cc +++ b/afs/src/model/AnalyzeNvcResult.cc @@ -40,13 +40,13 @@ void AnalyzeNvcResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["BizCode"].isNull()) - bizCode_ = value["BizCode"].asString(); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); } -std::string AnalyzeNvcResult::getBizCode()const -{ - return bizCode_; -} - +std::string AnalyzeNvcResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/AuthenticateSigRequest.cc b/afs/src/model/AuthenticateSigRequest.cc index ab5a8042c..a8e2f3657 100644 --- a/afs/src/model/AuthenticateSigRequest.cc +++ b/afs/src/model/AuthenticateSigRequest.cc @@ -36,17 +36,6 @@ void AuthenticateSigRequest::setSig(const std::string& 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_; diff --git a/afs/src/model/AuthenticateSigResult.cc b/afs/src/model/AuthenticateSigResult.cc index 29998c54a..c70f77a7a 100644 --- a/afs/src/model/AuthenticateSigResult.cc +++ b/afs/src/model/AuthenticateSigResult.cc @@ -40,34 +40,34 @@ void AuthenticateSigResult::parse(const std::string &payload) 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(); + 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_; -} - +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 index db566ab2d..b8b0c294b 100644 --- a/afs/src/model/ConfigurationStyleRequest.cc +++ b/afs/src/model/ConfigurationStyleRequest.cc @@ -25,17 +25,6 @@ ConfigurationStyleRequest::ConfigurationStyleRequest() : 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_; @@ -58,6 +47,17 @@ void ConfigurationStyleRequest::setConfigurationMethod(const std::string& config setParameter("ConfigurationMethod", configurationMethod); } +std::string ConfigurationStyleRequest::getRefExtId()const +{ + return refExtId_; +} + +void ConfigurationStyleRequest::setRefExtId(const std::string& refExtId) +{ + refExtId_ = refExtId; + setParameter("RefExtId", refExtId); +} + std::string ConfigurationStyleRequest::getApplyType()const { return applyType_; diff --git a/afs/src/model/ConfigurationStyleResult.cc b/afs/src/model/ConfigurationStyleResult.cc index f66bb7da2..c771b5a50 100644 --- a/afs/src/model/ConfigurationStyleResult.cc +++ b/afs/src/model/ConfigurationStyleResult.cc @@ -40,36 +40,41 @@ void ConfigurationStyleResult::parse(const std::string &payload) 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(); + auto codeDataNode = value["CodeData"]; + if(!codeDataNode["Html"].isNull()) + codeData_.html = codeDataNode["Html"].asString(); + if(!codeDataNode["Net"].isNull()) + codeData_.net = codeDataNode["Net"].asString(); + if(!codeDataNode["Php"].isNull()) + codeData_.php = codeDataNode["Php"].asString(); + if(!codeDataNode["Python"].isNull()) + codeData_.python = codeDataNode["Python"].asString(); + if(!codeDataNode["Java"].isNull()) + codeData_.java = codeDataNode["Java"].asString(); + if(!codeDataNode["NodeJs"].isNull()) + codeData_.nodeJs = codeDataNode["NodeJs"].asString(); + if(!codeDataNode["NetUrl"].isNull()) + codeData_.netUrl = codeDataNode["NetUrl"].asString(); + if(!codeDataNode["PhpUrl"].isNull()) + codeData_.phpUrl = codeDataNode["PhpUrl"].asString(); + if(!codeDataNode["PythonUrl"].isNull()) + codeData_.pythonUrl = codeDataNode["PythonUrl"].asString(); + if(!codeDataNode["JavaUrl"].isNull()) + codeData_.javaUrl = codeDataNode["JavaUrl"].asString(); + if(!codeDataNode["NodeJsUrl"].isNull()) + codeData_.nodeJsUrl = codeDataNode["NodeJsUrl"].asString(); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); } -std::vector ConfigurationStyleResult::getCodeData()const -{ - return codeData_; -} - -std::string ConfigurationStyleResult::getBizCode()const -{ - return bizCode_; -} - +ConfigurationStyleResult::CodeData 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 index a26a45f38..66cc50cda 100644 --- a/afs/src/model/CreateConfigurationRequest.cc +++ b/afs/src/model/CreateConfigurationRequest.cc @@ -25,17 +25,6 @@ CreateConfigurationRequest::CreateConfigurationRequest() : 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_; diff --git a/afs/src/model/CreateConfigurationResult.cc b/afs/src/model/CreateConfigurationResult.cc index b070919ba..7e12fae44 100644 --- a/afs/src/model/CreateConfigurationResult.cc +++ b/afs/src/model/CreateConfigurationResult.cc @@ -40,13 +40,20 @@ void CreateConfigurationResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["BizCode"].isNull()) - bizCode_ = value["BizCode"].asString(); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); + if(!value["RefExtId"].isNull()) + refExtId_ = value["RefExtId"].asString(); } -std::string CreateConfigurationResult::getBizCode()const -{ - return bizCode_; -} - +std::string CreateConfigurationResult::getRefExtId()const +{ + return refExtId_; +} + +std::string CreateConfigurationResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/DescribeCaptchaDayRequest.cc b/afs/src/model/DescribeCaptchaDayRequest.cc index d70f61ecb..1619a5326 100644 --- a/afs/src/model/DescribeCaptchaDayRequest.cc +++ b/afs/src/model/DescribeCaptchaDayRequest.cc @@ -25,17 +25,6 @@ DescribeCaptchaDayRequest::DescribeCaptchaDayRequest() : 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_; @@ -58,6 +47,17 @@ void DescribeCaptchaDayRequest::setConfigName(const std::string& configName) setParameter("ConfigName", configName); } +std::string DescribeCaptchaDayRequest::getRefExtId()const +{ + return refExtId_; +} + +void DescribeCaptchaDayRequest::setRefExtId(const std::string& refExtId) +{ + refExtId_ = refExtId; + setParameter("RefExtId", refExtId); +} + std::string DescribeCaptchaDayRequest::getTime()const { return time_; diff --git a/afs/src/model/DescribeCaptchaDayResult.cc b/afs/src/model/DescribeCaptchaDayResult.cc index 8a8696e0b..2125ca19a 100644 --- a/afs/src/model/DescribeCaptchaDayResult.cc +++ b/afs/src/model/DescribeCaptchaDayResult.cc @@ -40,49 +40,44 @@ void DescribeCaptchaDayResult::parse(const std::string &payload) 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"; + auto captchaDayNode = value["CaptchaDay"]; + if(!captchaDayNode["Init"].isNull()) + captchaDay_.init = std::stoi(captchaDayNode["Init"].asString()); + if(!captchaDayNode["AskForVerify"].isNull()) + captchaDay_.askForVerify = std::stoi(captchaDayNode["AskForVerify"].asString()); + if(!captchaDayNode["DirecetStrategyInterception"].isNull()) + captchaDay_.direcetStrategyInterception = std::stoi(captchaDayNode["DirecetStrategyInterception"].asString()); + if(!captchaDayNode["TwiceVerify"].isNull()) + captchaDay_.twiceVerify = std::stoi(captchaDayNode["TwiceVerify"].asString()); + if(!captchaDayNode["Pass"].isNull()) + captchaDay_.pass = std::stoi(captchaDayNode["Pass"].asString()); + if(!captchaDayNode["CheckTested"].isNull()) + captchaDay_.checkTested = std::stoi(captchaDayNode["CheckTested"].asString()); + if(!captchaDayNode["UncheckTested"].isNull()) + captchaDay_.uncheckTested = std::stoi(captchaDayNode["UncheckTested"].asString()); + if(!captchaDayNode["LegalSign"].isNull()) + captchaDay_.legalSign = std::stoi(captchaDayNode["LegalSign"].asString()); + if(!captchaDayNode["MaliciousFlow"].isNull()) + captchaDay_.maliciousFlow = std::stoi(captchaDayNode["MaliciousFlow"].asString()); + 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_; -} - +DescribeCaptchaDayResult::CaptchaDay 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 index 86fdaf8ca..30f9677a2 100644 --- a/afs/src/model/DescribeCaptchaIpCityRequest.cc +++ b/afs/src/model/DescribeCaptchaIpCityRequest.cc @@ -25,17 +25,6 @@ DescribeCaptchaIpCityRequest::DescribeCaptchaIpCityRequest() : 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_; @@ -58,6 +47,17 @@ void DescribeCaptchaIpCityRequest::setConfigName(const std::string& configName) setParameter("ConfigName", configName); } +std::string DescribeCaptchaIpCityRequest::getRefExtId()const +{ + return refExtId_; +} + +void DescribeCaptchaIpCityRequest::setRefExtId(const std::string& refExtId) +{ + refExtId_ = refExtId; + setParameter("RefExtId", refExtId); +} + std::string DescribeCaptchaIpCityRequest::getTime()const { return time_; diff --git a/afs/src/model/DescribeCaptchaIpCityResult.cc b/afs/src/model/DescribeCaptchaIpCityResult.cc index 19e7df00f..fe7227048 100644 --- a/afs/src/model/DescribeCaptchaIpCityResult.cc +++ b/afs/src/model/DescribeCaptchaIpCityResult.cc @@ -40,54 +40,54 @@ void DescribeCaptchaIpCityResult::parse(const std::string &payload) 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"; + 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_; -} - +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 index f9ba3b103..66856be86 100644 --- a/afs/src/model/DescribeCaptchaMinRequest.cc +++ b/afs/src/model/DescribeCaptchaMinRequest.cc @@ -25,17 +25,6 @@ DescribeCaptchaMinRequest::DescribeCaptchaMinRequest() : 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_; @@ -58,6 +47,17 @@ void DescribeCaptchaMinRequest::setConfigName(const std::string& configName) setParameter("ConfigName", configName); } +std::string DescribeCaptchaMinRequest::getRefExtId()const +{ + return refExtId_; +} + +void DescribeCaptchaMinRequest::setRefExtId(const std::string& refExtId) +{ + refExtId_ = refExtId; + setParameter("RefExtId", refExtId); +} + std::string DescribeCaptchaMinRequest::getTime()const { return time_; diff --git a/afs/src/model/DescribeCaptchaMinResult.cc b/afs/src/model/DescribeCaptchaMinResult.cc index d9a5ecd9c..105601705 100644 --- a/afs/src/model/DescribeCaptchaMinResult.cc +++ b/afs/src/model/DescribeCaptchaMinResult.cc @@ -40,37 +40,37 @@ void DescribeCaptchaMinResult::parse(const std::string &payload) 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"; + 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_; -} - +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/DescribeCaptchaOrderRequest.cc b/afs/src/model/DescribeCaptchaOrderRequest.cc new file mode 100644 index 000000000..00551ce55 --- /dev/null +++ b/afs/src/model/DescribeCaptchaOrderRequest.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::DescribeCaptchaOrderRequest; + +DescribeCaptchaOrderRequest::DescribeCaptchaOrderRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeCaptchaOrder") +{} + +DescribeCaptchaOrderRequest::~DescribeCaptchaOrderRequest() +{} + +std::string DescribeCaptchaOrderRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeCaptchaOrderRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeCaptchaOrderRequest::getLang()const +{ + return lang_; +} + +void DescribeCaptchaOrderRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + diff --git a/afs/src/model/DescribeCaptchaOrderResult.cc b/afs/src/model/DescribeCaptchaOrderResult.cc new file mode 100644 index 000000000..568d209ea --- /dev/null +++ b/afs/src/model/DescribeCaptchaOrderResult.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; + +DescribeCaptchaOrderResult::DescribeCaptchaOrderResult() : + ServiceResult() +{} + +DescribeCaptchaOrderResult::DescribeCaptchaOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCaptchaOrderResult::~DescribeCaptchaOrderResult() +{} + +void DescribeCaptchaOrderResult::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 DescribeCaptchaOrderResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/DescribeCaptchaRiskRequest.cc b/afs/src/model/DescribeCaptchaRiskRequest.cc index e98c75852..56d74e4e5 100644 --- a/afs/src/model/DescribeCaptchaRiskRequest.cc +++ b/afs/src/model/DescribeCaptchaRiskRequest.cc @@ -25,17 +25,6 @@ DescribeCaptchaRiskRequest::DescribeCaptchaRiskRequest() : 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_; @@ -58,6 +47,17 @@ void DescribeCaptchaRiskRequest::setConfigName(const std::string& configName) setParameter("ConfigName", configName); } +std::string DescribeCaptchaRiskRequest::getRefExtId()const +{ + return refExtId_; +} + +void DescribeCaptchaRiskRequest::setRefExtId(const std::string& refExtId) +{ + refExtId_ = refExtId; + setParameter("RefExtId", refExtId); +} + std::string DescribeCaptchaRiskRequest::getTime()const { return time_; diff --git a/afs/src/model/DescribeCaptchaRiskResult.cc b/afs/src/model/DescribeCaptchaRiskResult.cc index d28eb9df8..8f73f396f 100644 --- a/afs/src/model/DescribeCaptchaRiskResult.cc +++ b/afs/src/model/DescribeCaptchaRiskResult.cc @@ -40,34 +40,34 @@ void DescribeCaptchaRiskResult::parse(const std::string &payload) 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(); + 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_; -} - +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 index 9b8e60825..603f6ec38 100644 --- a/afs/src/model/DescribeConfigNameRequest.cc +++ b/afs/src/model/DescribeConfigNameRequest.cc @@ -25,17 +25,6 @@ DescribeConfigNameRequest::DescribeConfigNameRequest() : 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_; diff --git a/afs/src/model/DescribeConfigNameResult.cc b/afs/src/model/DescribeConfigNameResult.cc index 5a3687733..fc22f506b 100644 --- a/afs/src/model/DescribeConfigNameResult.cc +++ b/afs/src/model/DescribeConfigNameResult.cc @@ -40,27 +40,37 @@ void DescribeConfigNameResult::parse(const std::string &payload) 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(); + auto allConfigNames = value["ConfigNames"]["ConfigName"]; + for (auto value : allConfigNames) + { + ConfigName configNamesObject; + if(!value["AliUid"].isNull()) + configNamesObject.aliUid = value["AliUid"].asString(); + if(!value["ConfigName"].isNull()) + configNamesObject.configName = value["ConfigName"].asString(); + if(!value["RefExtId"].isNull()) + configNamesObject.refExtId = value["RefExtId"].asString(); + configNames_.push_back(configNamesObject); + } + if(!value["HasConfig"].isNull()) + hasConfig_ = value["HasConfig"].asString() == "true"; + 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_; -} - +std::vector 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 index 1663b15d6..6829489df 100644 --- a/afs/src/model/DescribeEarlyWarningRequest.cc +++ b/afs/src/model/DescribeEarlyWarningRequest.cc @@ -25,17 +25,6 @@ DescribeEarlyWarningRequest::DescribeEarlyWarningRequest() : 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_; diff --git a/afs/src/model/DescribeEarlyWarningResult.cc b/afs/src/model/DescribeEarlyWarningResult.cc index 31b267066..27a76ad8d 100644 --- a/afs/src/model/DescribeEarlyWarningResult.cc +++ b/afs/src/model/DescribeEarlyWarningResult.cc @@ -40,47 +40,47 @@ void DescribeEarlyWarningResult::parse(const std::string &payload) 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(); + 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_; -} - +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/DescribeOrderInfoRequest.cc b/afs/src/model/DescribeOrderInfoRequest.cc new file mode 100644 index 000000000..0c44a257a --- /dev/null +++ b/afs/src/model/DescribeOrderInfoRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Afs::Model::DescribeOrderInfoRequest; + +DescribeOrderInfoRequest::DescribeOrderInfoRequest() : + RpcServiceRequest("afs", "2018-01-12", "DescribeOrderInfo") +{} + +DescribeOrderInfoRequest::~DescribeOrderInfoRequest() +{} + +std::string DescribeOrderInfoRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeOrderInfoRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/afs/src/model/DescribeOrderInfoResult.cc b/afs/src/model/DescribeOrderInfoResult.cc new file mode 100644 index 000000000..81a8f871f --- /dev/null +++ b/afs/src/model/DescribeOrderInfoResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Afs; +using namespace AlibabaCloud::Afs::Model; + +DescribeOrderInfoResult::DescribeOrderInfoResult() : + ServiceResult() +{} + +DescribeOrderInfoResult::DescribeOrderInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOrderInfoResult::~DescribeOrderInfoResult() +{} + +void DescribeOrderInfoResult::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["OrderLevel"].isNull()) + orderLevel_ = value["OrderLevel"].asString(); + if(!value["Num"].isNull()) + num_ = value["Num"].asString(); + if(!value["BeginDate"].isNull()) + beginDate_ = value["BeginDate"].asString(); + if(!value["EndDate"].isNull()) + endDate_ = value["EndDate"].asString(); + +} + +std::string DescribeOrderInfoResult::getOrderLevel()const +{ + return orderLevel_; +} + +std::string DescribeOrderInfoResult::getNum()const +{ + return num_; +} + +std::string DescribeOrderInfoResult::getEndDate()const +{ + return endDate_; +} + +std::string DescribeOrderInfoResult::getBizCode()const +{ + return bizCode_; +} + +std::string DescribeOrderInfoResult::getBeginDate()const +{ + return beginDate_; +} + diff --git a/afs/src/model/DescribePersonMachineListRequest.cc b/afs/src/model/DescribePersonMachineListRequest.cc index c62b99cc0..c63e1b173 100644 --- a/afs/src/model/DescribePersonMachineListRequest.cc +++ b/afs/src/model/DescribePersonMachineListRequest.cc @@ -25,17 +25,6 @@ DescribePersonMachineListRequest::DescribePersonMachineListRequest() : 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_; diff --git a/afs/src/model/DescribePersonMachineListResult.cc b/afs/src/model/DescribePersonMachineListResult.cc index 218fd6f3d..84ebf6251 100644 --- a/afs/src/model/DescribePersonMachineListResult.cc +++ b/afs/src/model/DescribePersonMachineListResult.cc @@ -40,44 +40,43 @@ void DescribePersonMachineListResult::parse(const std::string &payload) 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(); + auto personMachineResNode = value["PersonMachineRes"]; + if(!personMachineResNode["HasConfiguration"].isNull()) + personMachineRes_.hasConfiguration = personMachineResNode["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(); + if(!value["ExtId"].isNull()) + personMachineObject.extId = value["ExtId"].asString(); + if(!value["SceneOriginal"].isNull()) + personMachineObject.sceneOriginal = value["SceneOriginal"].asString(); + personMachineRes_.personMachines.push_back(personMachineObject); + } + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); } -std::vector DescribePersonMachineListResult::getPersonMachineRes()const -{ - return personMachineRes_; -} - -std::string DescribePersonMachineListResult::getBizCode()const -{ - return bizCode_; -} - +DescribePersonMachineListResult::PersonMachineRes 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 index 1291cb182..89ab747fb 100644 --- a/afs/src/model/SetEarlyWarningRequest.cc +++ b/afs/src/model/SetEarlyWarningRequest.cc @@ -36,17 +36,6 @@ void SetEarlyWarningRequest::setTimeEnd(const std::string& 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_; diff --git a/afs/src/model/SetEarlyWarningResult.cc b/afs/src/model/SetEarlyWarningResult.cc index 6b2889bca..afcf1541d 100644 --- a/afs/src/model/SetEarlyWarningResult.cc +++ b/afs/src/model/SetEarlyWarningResult.cc @@ -40,13 +40,13 @@ void SetEarlyWarningResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["BizCode"].isNull()) - bizCode_ = value["BizCode"].asString(); + if(!value["BizCode"].isNull()) + bizCode_ = value["BizCode"].asString(); } -std::string SetEarlyWarningResult::getBizCode()const -{ - return bizCode_; -} - +std::string SetEarlyWarningResult::getBizCode()const +{ + return bizCode_; +} + diff --git a/afs/src/model/UpdateConfigNameRequest.cc b/afs/src/model/UpdateConfigNameRequest.cc new file mode 100644 index 000000000..1cb65d70b --- /dev/null +++ b/afs/src/model/UpdateConfigNameRequest.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::UpdateConfigNameRequest; + +UpdateConfigNameRequest::UpdateConfigNameRequest() : + RpcServiceRequest("afs", "2018-01-12", "UpdateConfigName") +{} + +UpdateConfigNameRequest::~UpdateConfigNameRequest() +{} + +std::string UpdateConfigNameRequest::getSourceIp()const +{ + return sourceIp_; +} + +void UpdateConfigNameRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string UpdateConfigNameRequest::getConfigName()const +{ + return configName_; +} + +void UpdateConfigNameRequest::setConfigName(const std::string& configName) +{ + configName_ = configName; + setParameter("ConfigName", configName); +} + +std::string UpdateConfigNameRequest::getRefExtId()const +{ + return refExtId_; +} + +void UpdateConfigNameRequest::setRefExtId(const std::string& refExtId) +{ + refExtId_ = refExtId; + setParameter("RefExtId", refExtId); +} + +std::string UpdateConfigNameRequest::getLang()const +{ + return lang_; +} + +void UpdateConfigNameRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + diff --git a/afs/src/model/UpdateConfigNameResult.cc b/afs/src/model/UpdateConfigNameResult.cc new file mode 100644 index 000000000..4295b29a9 --- /dev/null +++ b/afs/src/model/UpdateConfigNameResult.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; + +UpdateConfigNameResult::UpdateConfigNameResult() : + ServiceResult() +{} + +UpdateConfigNameResult::UpdateConfigNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateConfigNameResult::~UpdateConfigNameResult() +{} + +void UpdateConfigNameResult::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 UpdateConfigNameResult::getBizCode()const +{ + return bizCode_; +} +