From 50bb4d85aad25acbe3a5c3c7a3d233ff3f8aefd6 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 14 Aug 2023 04:21:44 +0000 Subject: [PATCH] Generated 2021-01-01 for Ft. --- VERSION | 2 +- ft/CMakeLists.txt | 72 ++-- ft/include/alibabacloud/ft/FtClient.h | 144 +++----- .../ft/model/BatchAuditTest01Request.h | 57 --- .../ft/model/BatchAuditTest01Result.h | 61 ---- .../ft/model/DataRateLimitTestRequest.h | 51 +++ ...ListResult.h => DataRateLimitTestResult.h} | 16 +- .../ft/model/FtDynamicAddressDubboRequest.h | 51 --- .../ft/model/FtDynamicAddressDubboResult.h | 53 --- .../ft/model/FtDynamicAddressHttpVpcRequest.h | 60 ---- .../alibabacloud/ft/model/FtEagleEyeResult.h | 53 --- .../ft/model/FtGatedLaunchPolicy4Request.h | 48 --- .../ft/model/FtGatedLaunchPolicy4Result.h | 51 --- .../ft/model/FtIpFlowControlRequest.h | 48 --- .../ft/model/FtParamListRequest.h | 57 --- ...sHsfRequest.h => NormalRpcHsfApiRequest.h} | 62 ++-- ...essHsfResult.h => NormalRpcHsfApiResult.h} | 14 +- ...EyeRequest.h => NormalRpcHttpApiRequest.h} | 65 ++-- ...ecialResult.h => NormalRpcHttpApiResult.h} | 16 +- ...st.h => RpcDataUploadAndDownloadRequest.h} | 68 ++-- ...ult.h => RpcDataUploadAndDownloadResult.h} | 16 +- .../ft/model/RpcDataUploadRequest.h | 48 +++ ...sHttpVpcResult.h => RpcDataUploadResult.h} | 26 +- ...piRequest.h => RpcDataUploadTestRequest.h} | 65 ++-- ...sApiResult.h => RpcDataUploadTestResult.h} | 16 +- .../ft/model/TestFlowStrategy01Request.h | 48 --- .../ft/model/TestFlowStrategy01Result.h | 53 --- .../ft/model/TestHttpApiRequest.h | 57 --- .../alibabacloud/ft/model/TestHttpApiResult.h | 53 --- ft/src/FtClient.cc | 324 +++--------------- ft/src/model/BatchAuditTest01Request.cc | 73 ---- ft/src/model/BatchAuditTest01Result.cc | 65 ---- ft/src/model/DataRateLimitTestRequest.cc | 63 ++++ ...sfResult.cc => DataRateLimitTestResult.cc} | 10 +- ft/src/model/FtDynamicAddressDubboRequest.cc | 51 --- ft/src/model/FtDynamicAddressDubboResult.cc | 58 ---- .../model/FtDynamicAddressHttpVpcRequest.cc | 84 ----- ft/src/model/FtDynamicAddressHttpVpcResult.cc | 58 ---- ft/src/model/FtEagleEyeResult.cc | 58 ---- ft/src/model/FtFlowSpecialRequest.cc | 40 --- ft/src/model/FtGatedLaunchPolicy4Request.cc | 40 --- ft/src/model/FtGatedLaunchPolicy4Result.cc | 51 --- ft/src/model/FtIpFlowControlRequest.cc | 40 --- ft/src/model/FtIpFlowControlResult.cc | 51 --- ft/src/model/FtParamListRequest.cc | 60 ---- ...yeRequest.cc => NormalRpcHsfApiRequest.cc} | 39 +-- ...sApiResult.cc => NormalRpcHsfApiResult.cc} | 17 +- ...fRequest.cc => NormalRpcHttpApiRequest.cc} | 34 +- ...ialResult.cc => NormalRpcHttpApiResult.cc} | 17 +- .../model/RpcDataUploadAndDownloadRequest.cc | 36 ++ ...t.cc => RpcDataUploadAndDownloadResult.cc} | 17 +- ft/src/model/RpcDataUploadRequest.cc | 54 +++ ft/src/model/RpcDataUploadResult.cc | 86 +++++ ...Request.cc => RpcDataUploadTestRequest.cc} | 39 +-- ft/src/model/RpcDataUploadTestResult.cc | 44 +++ ft/src/model/TestFlowStrategy01Request.cc | 40 --- ft/src/model/TestFlowStrategy01Result.cc | 60 ---- ft/src/model/TestHttpApiRequest.cc | 73 ---- ft/src/model/TestHttpApiResult.cc | 58 ---- 59 files changed, 738 insertions(+), 2433 deletions(-) delete mode 100644 ft/include/alibabacloud/ft/model/BatchAuditTest01Request.h delete mode 100644 ft/include/alibabacloud/ft/model/BatchAuditTest01Result.h create mode 100644 ft/include/alibabacloud/ft/model/DataRateLimitTestRequest.h rename ft/include/alibabacloud/ft/model/{FtParamListResult.h => DataRateLimitTestResult.h} (70%) delete mode 100644 ft/include/alibabacloud/ft/model/FtDynamicAddressDubboRequest.h delete mode 100644 ft/include/alibabacloud/ft/model/FtDynamicAddressDubboResult.h delete mode 100644 ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcRequest.h delete mode 100644 ft/include/alibabacloud/ft/model/FtEagleEyeResult.h delete mode 100644 ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Request.h delete mode 100644 ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h delete mode 100644 ft/include/alibabacloud/ft/model/FtIpFlowControlRequest.h delete mode 100644 ft/include/alibabacloud/ft/model/FtParamListRequest.h rename ft/include/alibabacloud/ft/model/{FtDynamicAddressHsfRequest.h => NormalRpcHsfApiRequest.h} (59%) rename ft/include/alibabacloud/ft/model/{FtDynamicAddressHsfResult.h => NormalRpcHsfApiResult.h} (70%) rename ft/include/alibabacloud/ft/model/{FtEagleEyeRequest.h => NormalRpcHttpApiRequest.h} (59%) rename ft/include/alibabacloud/ft/model/{FtFlowSpecialResult.h => NormalRpcHttpApiResult.h} (69%) rename ft/include/alibabacloud/ft/model/{FtFlowSpecialRequest.h => RpcDataUploadAndDownloadRequest.h} (53%) rename ft/include/alibabacloud/ft/model/{FtIpFlowControlResult.h => RpcDataUploadAndDownloadResult.h} (68%) create mode 100644 ft/include/alibabacloud/ft/model/RpcDataUploadRequest.h rename ft/include/alibabacloud/ft/model/{FtDynamicAddressHttpVpcResult.h => RpcDataUploadResult.h} (61%) rename ft/include/alibabacloud/ft/model/{FTApiAliasApiRequest.h => RpcDataUploadTestRequest.h} (58%) rename ft/include/alibabacloud/ft/model/{FTApiAliasApiResult.h => RpcDataUploadTestResult.h} (69%) delete mode 100644 ft/include/alibabacloud/ft/model/TestFlowStrategy01Request.h delete mode 100644 ft/include/alibabacloud/ft/model/TestFlowStrategy01Result.h delete mode 100644 ft/include/alibabacloud/ft/model/TestHttpApiRequest.h delete mode 100644 ft/include/alibabacloud/ft/model/TestHttpApiResult.h delete mode 100644 ft/src/model/BatchAuditTest01Request.cc delete mode 100644 ft/src/model/BatchAuditTest01Result.cc create mode 100644 ft/src/model/DataRateLimitTestRequest.cc rename ft/src/model/{FtDynamicAddressHsfResult.cc => DataRateLimitTestResult.cc} (73%) delete mode 100644 ft/src/model/FtDynamicAddressDubboRequest.cc delete mode 100644 ft/src/model/FtDynamicAddressDubboResult.cc delete mode 100644 ft/src/model/FtDynamicAddressHttpVpcRequest.cc delete mode 100644 ft/src/model/FtDynamicAddressHttpVpcResult.cc delete mode 100644 ft/src/model/FtEagleEyeResult.cc delete mode 100644 ft/src/model/FtFlowSpecialRequest.cc delete mode 100644 ft/src/model/FtGatedLaunchPolicy4Request.cc delete mode 100644 ft/src/model/FtGatedLaunchPolicy4Result.cc delete mode 100644 ft/src/model/FtIpFlowControlRequest.cc delete mode 100644 ft/src/model/FtIpFlowControlResult.cc delete mode 100644 ft/src/model/FtParamListRequest.cc rename ft/src/model/{FtEagleEyeRequest.cc => NormalRpcHsfApiRequest.cc} (56%) rename ft/src/model/{FTApiAliasApiResult.cc => NormalRpcHsfApiResult.cc} (69%) rename ft/src/model/{FtDynamicAddressHsfRequest.cc => NormalRpcHttpApiRequest.cc} (63%) rename ft/src/model/{FtFlowSpecialResult.cc => NormalRpcHttpApiResult.cc} (69%) create mode 100644 ft/src/model/RpcDataUploadAndDownloadRequest.cc rename ft/src/model/{FtParamListResult.cc => RpcDataUploadAndDownloadResult.cc} (70%) create mode 100644 ft/src/model/RpcDataUploadRequest.cc create mode 100644 ft/src/model/RpcDataUploadResult.cc rename ft/src/model/{FTApiAliasApiRequest.cc => RpcDataUploadTestRequest.cc} (55%) create mode 100644 ft/src/model/RpcDataUploadTestResult.cc delete mode 100644 ft/src/model/TestFlowStrategy01Request.cc delete mode 100644 ft/src/model/TestFlowStrategy01Result.cc delete mode 100644 ft/src/model/TestHttpApiRequest.cc delete mode 100644 ft/src/model/TestHttpApiResult.cc diff --git a/VERSION b/VERSION index 68af1e931..2ff85fe85 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1719 \ No newline at end of file +1.36.1720 \ No newline at end of file diff --git a/ft/CMakeLists.txt b/ft/CMakeLists.txt index 1ec80f43c..2862bd785 100644 --- a/ft/CMakeLists.txt +++ b/ft/CMakeLists.txt @@ -21,57 +21,33 @@ set(ft_public_header include/alibabacloud/ft/FtExport.h ) set(ft_public_header_model - include/alibabacloud/ft/model/BatchAuditTest01Request.h - include/alibabacloud/ft/model/BatchAuditTest01Result.h - include/alibabacloud/ft/model/FTApiAliasApiRequest.h - include/alibabacloud/ft/model/FTApiAliasApiResult.h - include/alibabacloud/ft/model/FtDynamicAddressDubboRequest.h - include/alibabacloud/ft/model/FtDynamicAddressDubboResult.h - include/alibabacloud/ft/model/FtDynamicAddressHsfRequest.h - include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h - include/alibabacloud/ft/model/FtDynamicAddressHttpVpcRequest.h - include/alibabacloud/ft/model/FtDynamicAddressHttpVpcResult.h - include/alibabacloud/ft/model/FtEagleEyeRequest.h - include/alibabacloud/ft/model/FtEagleEyeResult.h - include/alibabacloud/ft/model/FtFlowSpecialRequest.h - include/alibabacloud/ft/model/FtFlowSpecialResult.h - include/alibabacloud/ft/model/FtGatedLaunchPolicy4Request.h - include/alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h - include/alibabacloud/ft/model/FtIpFlowControlRequest.h - include/alibabacloud/ft/model/FtIpFlowControlResult.h - include/alibabacloud/ft/model/FtParamListRequest.h - include/alibabacloud/ft/model/FtParamListResult.h - include/alibabacloud/ft/model/TestFlowStrategy01Request.h - include/alibabacloud/ft/model/TestFlowStrategy01Result.h - include/alibabacloud/ft/model/TestHttpApiRequest.h - include/alibabacloud/ft/model/TestHttpApiResult.h ) + include/alibabacloud/ft/model/DataRateLimitTestRequest.h + include/alibabacloud/ft/model/DataRateLimitTestResult.h + include/alibabacloud/ft/model/NormalRpcHsfApiRequest.h + include/alibabacloud/ft/model/NormalRpcHsfApiResult.h + include/alibabacloud/ft/model/NormalRpcHttpApiRequest.h + include/alibabacloud/ft/model/NormalRpcHttpApiResult.h + include/alibabacloud/ft/model/RpcDataUploadRequest.h + include/alibabacloud/ft/model/RpcDataUploadResult.h + include/alibabacloud/ft/model/RpcDataUploadAndDownloadRequest.h + include/alibabacloud/ft/model/RpcDataUploadAndDownloadResult.h + include/alibabacloud/ft/model/RpcDataUploadTestRequest.h + include/alibabacloud/ft/model/RpcDataUploadTestResult.h ) set(ft_src src/FtClient.cc - src/model/BatchAuditTest01Request.cc - src/model/BatchAuditTest01Result.cc - src/model/FTApiAliasApiRequest.cc - src/model/FTApiAliasApiResult.cc - src/model/FtDynamicAddressDubboRequest.cc - src/model/FtDynamicAddressDubboResult.cc - src/model/FtDynamicAddressHsfRequest.cc - src/model/FtDynamicAddressHsfResult.cc - src/model/FtDynamicAddressHttpVpcRequest.cc - src/model/FtDynamicAddressHttpVpcResult.cc - src/model/FtEagleEyeRequest.cc - src/model/FtEagleEyeResult.cc - src/model/FtFlowSpecialRequest.cc - src/model/FtFlowSpecialResult.cc - src/model/FtGatedLaunchPolicy4Request.cc - src/model/FtGatedLaunchPolicy4Result.cc - src/model/FtIpFlowControlRequest.cc - src/model/FtIpFlowControlResult.cc - src/model/FtParamListRequest.cc - src/model/FtParamListResult.cc - src/model/TestFlowStrategy01Request.cc - src/model/TestFlowStrategy01Result.cc - src/model/TestHttpApiRequest.cc - src/model/TestHttpApiResult.cc ) + src/model/DataRateLimitTestRequest.cc + src/model/DataRateLimitTestResult.cc + src/model/NormalRpcHsfApiRequest.cc + src/model/NormalRpcHsfApiResult.cc + src/model/NormalRpcHttpApiRequest.cc + src/model/NormalRpcHttpApiResult.cc + src/model/RpcDataUploadRequest.cc + src/model/RpcDataUploadResult.cc + src/model/RpcDataUploadAndDownloadRequest.cc + src/model/RpcDataUploadAndDownloadResult.cc + src/model/RpcDataUploadTestRequest.cc + src/model/RpcDataUploadTestResult.cc ) add_library(ft ${LIB_TYPE} ${ft_public_header} diff --git a/ft/include/alibabacloud/ft/FtClient.h b/ft/include/alibabacloud/ft/FtClient.h index a4f8e634c..169bd7962 100644 --- a/ft/include/alibabacloud/ft/FtClient.h +++ b/ft/include/alibabacloud/ft/FtClient.h @@ -22,30 +22,18 @@ #include #include #include "FtExport.h" -#include "model/BatchAuditTest01Request.h" -#include "model/BatchAuditTest01Result.h" -#include "model/FTApiAliasApiRequest.h" -#include "model/FTApiAliasApiResult.h" -#include "model/FtDynamicAddressDubboRequest.h" -#include "model/FtDynamicAddressDubboResult.h" -#include "model/FtDynamicAddressHsfRequest.h" -#include "model/FtDynamicAddressHsfResult.h" -#include "model/FtDynamicAddressHttpVpcRequest.h" -#include "model/FtDynamicAddressHttpVpcResult.h" -#include "model/FtEagleEyeRequest.h" -#include "model/FtEagleEyeResult.h" -#include "model/FtFlowSpecialRequest.h" -#include "model/FtFlowSpecialResult.h" -#include "model/FtGatedLaunchPolicy4Request.h" -#include "model/FtGatedLaunchPolicy4Result.h" -#include "model/FtIpFlowControlRequest.h" -#include "model/FtIpFlowControlResult.h" -#include "model/FtParamListRequest.h" -#include "model/FtParamListResult.h" -#include "model/TestFlowStrategy01Request.h" -#include "model/TestFlowStrategy01Result.h" -#include "model/TestHttpApiRequest.h" -#include "model/TestHttpApiResult.h" +#include "model/DataRateLimitTestRequest.h" +#include "model/DataRateLimitTestResult.h" +#include "model/NormalRpcHsfApiRequest.h" +#include "model/NormalRpcHsfApiResult.h" +#include "model/NormalRpcHttpApiRequest.h" +#include "model/NormalRpcHttpApiResult.h" +#include "model/RpcDataUploadRequest.h" +#include "model/RpcDataUploadResult.h" +#include "model/RpcDataUploadAndDownloadRequest.h" +#include "model/RpcDataUploadAndDownloadResult.h" +#include "model/RpcDataUploadTestRequest.h" +#include "model/RpcDataUploadTestResult.h" namespace AlibabaCloud @@ -55,83 +43,47 @@ namespace AlibabaCloud class ALIBABACLOUD_FT_EXPORT FtClient : public RpcServiceClient { public: - typedef Outcome BatchAuditTest01Outcome; - typedef std::future BatchAuditTest01OutcomeCallable; - typedef std::function&)> BatchAuditTest01AsyncHandler; - typedef Outcome FTApiAliasApiOutcome; - typedef std::future FTApiAliasApiOutcomeCallable; - typedef std::function&)> FTApiAliasApiAsyncHandler; - typedef Outcome FtDynamicAddressDubboOutcome; - typedef std::future FtDynamicAddressDubboOutcomeCallable; - typedef std::function&)> FtDynamicAddressDubboAsyncHandler; - typedef Outcome FtDynamicAddressHsfOutcome; - typedef std::future FtDynamicAddressHsfOutcomeCallable; - typedef std::function&)> FtDynamicAddressHsfAsyncHandler; - typedef Outcome FtDynamicAddressHttpVpcOutcome; - typedef std::future FtDynamicAddressHttpVpcOutcomeCallable; - typedef std::function&)> FtDynamicAddressHttpVpcAsyncHandler; - typedef Outcome FtEagleEyeOutcome; - typedef std::future FtEagleEyeOutcomeCallable; - typedef std::function&)> FtEagleEyeAsyncHandler; - typedef Outcome FtFlowSpecialOutcome; - typedef std::future FtFlowSpecialOutcomeCallable; - typedef std::function&)> FtFlowSpecialAsyncHandler; - typedef Outcome FtGatedLaunchPolicy4Outcome; - typedef std::future FtGatedLaunchPolicy4OutcomeCallable; - typedef std::function&)> FtGatedLaunchPolicy4AsyncHandler; - typedef Outcome FtIpFlowControlOutcome; - typedef std::future FtIpFlowControlOutcomeCallable; - typedef std::function&)> FtIpFlowControlAsyncHandler; - typedef Outcome FtParamListOutcome; - typedef std::future FtParamListOutcomeCallable; - typedef std::function&)> FtParamListAsyncHandler; - typedef Outcome TestFlowStrategy01Outcome; - typedef std::future TestFlowStrategy01OutcomeCallable; - typedef std::function&)> TestFlowStrategy01AsyncHandler; - typedef Outcome TestHttpApiOutcome; - typedef std::future TestHttpApiOutcomeCallable; - typedef std::function&)> TestHttpApiAsyncHandler; + typedef Outcome DataRateLimitTestOutcome; + typedef std::future DataRateLimitTestOutcomeCallable; + typedef std::function&)> DataRateLimitTestAsyncHandler; + typedef Outcome NormalRpcHsfApiOutcome; + typedef std::future NormalRpcHsfApiOutcomeCallable; + typedef std::function&)> NormalRpcHsfApiAsyncHandler; + typedef Outcome NormalRpcHttpApiOutcome; + typedef std::future NormalRpcHttpApiOutcomeCallable; + typedef std::function&)> NormalRpcHttpApiAsyncHandler; + typedef Outcome RpcDataUploadOutcome; + typedef std::future RpcDataUploadOutcomeCallable; + typedef std::function&)> RpcDataUploadAsyncHandler; + typedef Outcome RpcDataUploadAndDownloadOutcome; + typedef std::future RpcDataUploadAndDownloadOutcomeCallable; + typedef std::function&)> RpcDataUploadAndDownloadAsyncHandler; + typedef Outcome RpcDataUploadTestOutcome; + typedef std::future RpcDataUploadTestOutcomeCallable; + typedef std::function&)> RpcDataUploadTestAsyncHandler; FtClient(const Credentials &credentials, const ClientConfiguration &configuration); FtClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); FtClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~FtClient(); - BatchAuditTest01Outcome batchAuditTest01(const Model::BatchAuditTest01Request &request)const; - void batchAuditTest01Async(const Model::BatchAuditTest01Request& request, const BatchAuditTest01AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BatchAuditTest01OutcomeCallable batchAuditTest01Callable(const Model::BatchAuditTest01Request& request) const; - FTApiAliasApiOutcome fTApiAliasApi(const Model::FTApiAliasApiRequest &request)const; - void fTApiAliasApiAsync(const Model::FTApiAliasApiRequest& request, const FTApiAliasApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FTApiAliasApiOutcomeCallable fTApiAliasApiCallable(const Model::FTApiAliasApiRequest& request) const; - FtDynamicAddressDubboOutcome ftDynamicAddressDubbo(const Model::FtDynamicAddressDubboRequest &request)const; - void ftDynamicAddressDubboAsync(const Model::FtDynamicAddressDubboRequest& request, const FtDynamicAddressDubboAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtDynamicAddressDubboOutcomeCallable ftDynamicAddressDubboCallable(const Model::FtDynamicAddressDubboRequest& request) const; - FtDynamicAddressHsfOutcome ftDynamicAddressHsf(const Model::FtDynamicAddressHsfRequest &request)const; - void ftDynamicAddressHsfAsync(const Model::FtDynamicAddressHsfRequest& request, const FtDynamicAddressHsfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtDynamicAddressHsfOutcomeCallable ftDynamicAddressHsfCallable(const Model::FtDynamicAddressHsfRequest& request) const; - FtDynamicAddressHttpVpcOutcome ftDynamicAddressHttpVpc(const Model::FtDynamicAddressHttpVpcRequest &request)const; - void ftDynamicAddressHttpVpcAsync(const Model::FtDynamicAddressHttpVpcRequest& request, const FtDynamicAddressHttpVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtDynamicAddressHttpVpcOutcomeCallable ftDynamicAddressHttpVpcCallable(const Model::FtDynamicAddressHttpVpcRequest& request) const; - FtEagleEyeOutcome ftEagleEye(const Model::FtEagleEyeRequest &request)const; - void ftEagleEyeAsync(const Model::FtEagleEyeRequest& request, const FtEagleEyeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtEagleEyeOutcomeCallable ftEagleEyeCallable(const Model::FtEagleEyeRequest& request) const; - FtFlowSpecialOutcome ftFlowSpecial(const Model::FtFlowSpecialRequest &request)const; - void ftFlowSpecialAsync(const Model::FtFlowSpecialRequest& request, const FtFlowSpecialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtFlowSpecialOutcomeCallable ftFlowSpecialCallable(const Model::FtFlowSpecialRequest& request) const; - FtGatedLaunchPolicy4Outcome ftGatedLaunchPolicy4(const Model::FtGatedLaunchPolicy4Request &request)const; - void ftGatedLaunchPolicy4Async(const Model::FtGatedLaunchPolicy4Request& request, const FtGatedLaunchPolicy4AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtGatedLaunchPolicy4OutcomeCallable ftGatedLaunchPolicy4Callable(const Model::FtGatedLaunchPolicy4Request& request) const; - FtIpFlowControlOutcome ftIpFlowControl(const Model::FtIpFlowControlRequest &request)const; - void ftIpFlowControlAsync(const Model::FtIpFlowControlRequest& request, const FtIpFlowControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtIpFlowControlOutcomeCallable ftIpFlowControlCallable(const Model::FtIpFlowControlRequest& request) const; - FtParamListOutcome ftParamList(const Model::FtParamListRequest &request)const; - void ftParamListAsync(const Model::FtParamListRequest& request, const FtParamListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FtParamListOutcomeCallable ftParamListCallable(const Model::FtParamListRequest& request) const; - TestFlowStrategy01Outcome testFlowStrategy01(const Model::TestFlowStrategy01Request &request)const; - void testFlowStrategy01Async(const Model::TestFlowStrategy01Request& request, const TestFlowStrategy01AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TestFlowStrategy01OutcomeCallable testFlowStrategy01Callable(const Model::TestFlowStrategy01Request& request) const; - TestHttpApiOutcome testHttpApi(const Model::TestHttpApiRequest &request)const; - void testHttpApiAsync(const Model::TestHttpApiRequest& request, const TestHttpApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TestHttpApiOutcomeCallable testHttpApiCallable(const Model::TestHttpApiRequest& request) const; + DataRateLimitTestOutcome dataRateLimitTest(const Model::DataRateLimitTestRequest &request)const; + void dataRateLimitTestAsync(const Model::DataRateLimitTestRequest& request, const DataRateLimitTestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DataRateLimitTestOutcomeCallable dataRateLimitTestCallable(const Model::DataRateLimitTestRequest& request) const; + NormalRpcHsfApiOutcome normalRpcHsfApi(const Model::NormalRpcHsfApiRequest &request)const; + void normalRpcHsfApiAsync(const Model::NormalRpcHsfApiRequest& request, const NormalRpcHsfApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NormalRpcHsfApiOutcomeCallable normalRpcHsfApiCallable(const Model::NormalRpcHsfApiRequest& request) const; + NormalRpcHttpApiOutcome normalRpcHttpApi(const Model::NormalRpcHttpApiRequest &request)const; + void normalRpcHttpApiAsync(const Model::NormalRpcHttpApiRequest& request, const NormalRpcHttpApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + NormalRpcHttpApiOutcomeCallable normalRpcHttpApiCallable(const Model::NormalRpcHttpApiRequest& request) const; + RpcDataUploadOutcome rpcDataUpload(const Model::RpcDataUploadRequest &request)const; + void rpcDataUploadAsync(const Model::RpcDataUploadRequest& request, const RpcDataUploadAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RpcDataUploadOutcomeCallable rpcDataUploadCallable(const Model::RpcDataUploadRequest& request) const; + RpcDataUploadAndDownloadOutcome rpcDataUploadAndDownload(const Model::RpcDataUploadAndDownloadRequest &request)const; + void rpcDataUploadAndDownloadAsync(const Model::RpcDataUploadAndDownloadRequest& request, const RpcDataUploadAndDownloadAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RpcDataUploadAndDownloadOutcomeCallable rpcDataUploadAndDownloadCallable(const Model::RpcDataUploadAndDownloadRequest& request) const; + RpcDataUploadTestOutcome rpcDataUploadTest(const Model::RpcDataUploadTestRequest &request)const; + void rpcDataUploadTestAsync(const Model::RpcDataUploadTestRequest& request, const RpcDataUploadTestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RpcDataUploadTestOutcomeCallable rpcDataUploadTestCallable(const Model::RpcDataUploadTestRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ft/include/alibabacloud/ft/model/BatchAuditTest01Request.h b/ft/include/alibabacloud/ft/model/BatchAuditTest01Request.h deleted file mode 100644 index 2803ebeef..000000000 --- a/ft/include/alibabacloud/ft/model/BatchAuditTest01Request.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01REQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01REQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT BatchAuditTest01Request : public RpcServiceRequest - { - - public: - BatchAuditTest01Request(); - ~BatchAuditTest01Request(); - - std::string getDemo01()const; - void setDemo01(const std::string& demo01); - bool getTest010101()const; - void setTest010101(bool test010101); - std::string getName()const; - void setName(const std::string& name); - std::string getBatchAuditTest01()const; - void setBatchAuditTest01(const std::string& batchAuditTest01); - - private: - std::string demo01_; - bool test010101_; - std::string name_; - std::string batchAuditTest01_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01REQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/BatchAuditTest01Result.h b/ft/include/alibabacloud/ft/model/BatchAuditTest01Result.h deleted file mode 100644 index 9291831c8..000000000 --- a/ft/include/alibabacloud/ft/model/BatchAuditTest01Result.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01RESULT_H_ -#define ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01RESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT BatchAuditTest01Result : public ServiceResult - { - public: - struct Demo01 - { - struct Demo011Item - { - std::string demo0111; - }; - std::vector demo011; - }; - - - BatchAuditTest01Result(); - explicit BatchAuditTest01Result(const std::string &payload); - ~BatchAuditTest01Result(); - Demo01 getDemo01()const; - std::string getName()const; - - protected: - void parse(const std::string &payload); - private: - Demo01 demo01_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_BATCHAUDITTEST01RESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/DataRateLimitTestRequest.h b/ft/include/alibabacloud/ft/model/DataRateLimitTestRequest.h new file mode 100644 index 000000000..9c98fa0ee --- /dev/null +++ b/ft/include/alibabacloud/ft/model/DataRateLimitTestRequest.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_FT_MODEL_DATARATELIMITTESTREQUEST_H_ +#define ALIBABACLOUD_FT_MODEL_DATARATELIMITTESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ft { +namespace Model { +class ALIBABACLOUD_FT_EXPORT DataRateLimitTestRequest : public RpcServiceRequest { +public: + DataRateLimitTestRequest(); + ~DataRateLimitTestRequest(); + std::string getNewparam2() const; + void setNewparam2(const std::string &newparam2); + std::string getNewparam1() const; + void setNewparam1(const std::string &newparam1); + std::string getData() const; + void setData(const std::string &data); + std::string getMap() const; + void setMap(const std::string &map); + +private: + std::string newparam2_; + std::string newparam1_; + std::string data_; + std::string map_; +}; +} // namespace Model +} // namespace Ft +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FT_MODEL_DATARATELIMITTESTREQUEST_H_ diff --git a/ft/include/alibabacloud/ft/model/FtParamListResult.h b/ft/include/alibabacloud/ft/model/DataRateLimitTestResult.h similarity index 70% rename from ft/include/alibabacloud/ft/model/FtParamListResult.h rename to ft/include/alibabacloud/ft/model/DataRateLimitTestResult.h index fd5ebbd01..c9566f0a5 100644 --- a/ft/include/alibabacloud/ft/model/FtParamListResult.h +++ b/ft/include/alibabacloud/ft/model/DataRateLimitTestResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FT_MODEL_FTPARAMLISTRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTPARAMLISTRESULT_H_ +#ifndef ALIBABACLOUD_FT_MODEL_DATARATELIMITTESTRESULT_H_ +#define ALIBABACLOUD_FT_MODEL_DATARATELIMITTESTRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FT_EXPORT FtParamListResult : public ServiceResult + class ALIBABACLOUD_FT_EXPORT DataRateLimitTestResult : public ServiceResult { public: - FtParamListResult(); - explicit FtParamListResult(const std::string &payload); - ~FtParamListResult(); - std::string getName()const; + DataRateLimitTestResult(); + explicit DataRateLimitTestResult(const std::string &payload); + ~DataRateLimitTestResult(); protected: void parse(const std::string &payload); private: - std::string name_; }; } } } -#endif // !ALIBABACLOUD_FT_MODEL_FTPARAMLISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FT_MODEL_DATARATELIMITTESTRESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtDynamicAddressDubboRequest.h b/ft/include/alibabacloud/ft/model/FtDynamicAddressDubboRequest.h deleted file mode 100644 index 03bb70db3..000000000 --- a/ft/include/alibabacloud/ft/model/FtDynamicAddressDubboRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBOREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtDynamicAddressDubboRequest : public RpcServiceRequest - { - - public: - FtDynamicAddressDubboRequest(); - ~FtDynamicAddressDubboRequest(); - - int getIntValue()const; - void setIntValue(int intValue); - std::string getStringValue()const; - void setStringValue(const std::string& stringValue); - - private: - int intValue_; - std::string stringValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBOREQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtDynamicAddressDubboResult.h b/ft/include/alibabacloud/ft/model/FtDynamicAddressDubboResult.h deleted file mode 100644 index 59560b0b0..000000000 --- a/ft/include/alibabacloud/ft/model/FtDynamicAddressDubboResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBORESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtDynamicAddressDubboResult : public ServiceResult - { - public: - - - FtDynamicAddressDubboResult(); - explicit FtDynamicAddressDubboResult(const std::string &payload); - ~FtDynamicAddressDubboResult(); - std::string getStringValue()const; - int getIntValue()const; - - protected: - void parse(const std::string &payload); - private: - std::string stringValue_; - int intValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSDUBBORESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcRequest.h b/ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcRequest.h deleted file mode 100644 index 1e4267c15..000000000 --- a/ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHTTPVPCREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHTTPVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtDynamicAddressHttpVpcRequest : public RpcServiceRequest - { - - public: - FtDynamicAddressHttpVpcRequest(); - ~FtDynamicAddressHttpVpcRequest(); - - std::string getP1()const; - void setP1(const std::string& p1); - std::string getStringValue()const; - void setStringValue(const std::string& stringValue); - std::string getOtherParam()const; - void setOtherParam(const std::string& otherParam); - bool getBooleanParam()const; - void setBooleanParam(bool booleanParam); - std::string getDefaultValue()const; - void setDefaultValue(const std::string& defaultValue); - - private: - std::string p1_; - std::string stringValue_; - std::string otherParam_; - bool booleanParam_; - std::string defaultValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHTTPVPCREQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtEagleEyeResult.h b/ft/include/alibabacloud/ft/model/FtEagleEyeResult.h deleted file mode 100644 index 3f012e285..000000000 --- a/ft/include/alibabacloud/ft/model/FtEagleEyeResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtEagleEyeResult : public ServiceResult - { - public: - - - FtEagleEyeResult(); - explicit FtEagleEyeResult(const std::string &payload); - ~FtEagleEyeResult(); - std::string getEagleEyeTraceId()const; - std::string getName()const; - - protected: - void parse(const std::string &payload); - private: - std::string eagleEyeTraceId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTEAGLEEYERESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Request.h b/ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Request.h deleted file mode 100644 index 77cfc6680..000000000 --- a/ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Request.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4REQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4REQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtGatedLaunchPolicy4Request : public RpcServiceRequest - { - - public: - FtGatedLaunchPolicy4Request(); - ~FtGatedLaunchPolicy4Request(); - - std::string getIsGatedLaunch()const; - void setIsGatedLaunch(const std::string& isGatedLaunch); - - private: - std::string isGatedLaunch_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4REQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h b/ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h deleted file mode 100644 index 3db130d9f..000000000 --- a/ft/include/alibabacloud/ft/model/FtGatedLaunchPolicy4Result.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4RESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4RESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtGatedLaunchPolicy4Result : public ServiceResult - { - public: - - - FtGatedLaunchPolicy4Result(); - explicit FtGatedLaunchPolicy4Result(const std::string &payload); - ~FtGatedLaunchPolicy4Result(); - std::string getIsGatedLaunch()const; - - protected: - void parse(const std::string &payload); - private: - std::string isGatedLaunch_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTGATEDLAUNCHPOLICY4RESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtIpFlowControlRequest.h b/ft/include/alibabacloud/ft/model/FtIpFlowControlRequest.h deleted file mode 100644 index d072ed744..000000000 --- a/ft/include/alibabacloud/ft/model/FtIpFlowControlRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtIpFlowControlRequest : public RpcServiceRequest - { - - public: - FtIpFlowControlRequest(); - ~FtIpFlowControlRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLREQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtParamListRequest.h b/ft/include/alibabacloud/ft/model/FtParamListRequest.h deleted file mode 100644 index f6bdff011..000000000 --- a/ft/include/alibabacloud/ft/model/FtParamListRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_FTPARAMLISTREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTPARAMLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtParamListRequest : public RpcServiceRequest - { - public: - struct Disk - { - std::vector size; - std::vector type; - }; - - public: - FtParamListRequest(); - ~FtParamListRequest(); - - std::vector getDisk()const; - void setDisk(const std::vector& disk); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector disk_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTPARAMLISTREQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtDynamicAddressHsfRequest.h b/ft/include/alibabacloud/ft/model/NormalRpcHsfApiRequest.h similarity index 59% rename from ft/include/alibabacloud/ft/model/FtDynamicAddressHsfRequest.h rename to ft/include/alibabacloud/ft/model/NormalRpcHsfApiRequest.h index 5f1a1d3d2..2b3d6e55d 100644 --- a/ft/include/alibabacloud/ft/model/FtDynamicAddressHsfRequest.h +++ b/ft/include/alibabacloud/ft/model/NormalRpcHsfApiRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_FT_MODEL_FTDYNAMICADDRESSHSFREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtDynamicAddressHsfRequest : public RpcServiceRequest - { - - public: - FtDynamicAddressHsfRequest(); - ~FtDynamicAddressHsfRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FT_MODEL_NORMALRPCHSFAPIREQUEST_H_ +#define ALIBABACLOUD_FT_MODEL_NORMALRPCHSFAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ft { +namespace Model { +class ALIBABACLOUD_FT_EXPORT NormalRpcHsfApiRequest : public RpcServiceRequest { +public: + NormalRpcHsfApiRequest(); + ~NormalRpcHsfApiRequest(); + +private: +}; +} // namespace Model +} // namespace Ft +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FT_MODEL_NORMALRPCHSFAPIREQUEST_H_ diff --git a/ft/include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h b/ft/include/alibabacloud/ft/model/NormalRpcHsfApiResult.h similarity index 70% rename from ft/include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h rename to ft/include/alibabacloud/ft/model/NormalRpcHsfApiResult.h index 6fe142c26..b0f40f14f 100644 --- a/ft/include/alibabacloud/ft/model/FtDynamicAddressHsfResult.h +++ b/ft/include/alibabacloud/ft/model/NormalRpcHsfApiResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFRESULT_H_ +#ifndef ALIBABACLOUD_FT_MODEL_NORMALRPCHSFAPIRESULT_H_ +#define ALIBABACLOUD_FT_MODEL_NORMALRPCHSFAPIRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FT_EXPORT FtDynamicAddressHsfResult : public ServiceResult + class ALIBABACLOUD_FT_EXPORT NormalRpcHsfApiResult : public ServiceResult { public: - FtDynamicAddressHsfResult(); - explicit FtDynamicAddressHsfResult(const std::string &payload); - ~FtDynamicAddressHsfResult(); + NormalRpcHsfApiResult(); + explicit NormalRpcHsfApiResult(const std::string &payload); + ~NormalRpcHsfApiResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHSFRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FT_MODEL_NORMALRPCHSFAPIRESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtEagleEyeRequest.h b/ft/include/alibabacloud/ft/model/NormalRpcHttpApiRequest.h similarity index 59% rename from ft/include/alibabacloud/ft/model/FtEagleEyeRequest.h rename to ft/include/alibabacloud/ft/model/NormalRpcHttpApiRequest.h index 48f5ff27f..b4daea879 100644 --- a/ft/include/alibabacloud/ft/model/FtEagleEyeRequest.h +++ b/ft/include/alibabacloud/ft/model/NormalRpcHttpApiRequest.h @@ -1,48 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_FT_MODEL_FTEAGLEEYEREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTEAGLEEYEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtEagleEyeRequest : public RpcServiceRequest - { - - public: - FtEagleEyeRequest(); - ~FtEagleEyeRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTEAGLEEYEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FT_MODEL_NORMALRPCHTTPAPIREQUEST_H_ +#define ALIBABACLOUD_FT_MODEL_NORMALRPCHTTPAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ft { +namespace Model { +class ALIBABACLOUD_FT_EXPORT NormalRpcHttpApiRequest : public RpcServiceRequest { +public: + NormalRpcHttpApiRequest(); + ~NormalRpcHttpApiRequest(); + +private: +}; +} // namespace Model +} // namespace Ft +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FT_MODEL_NORMALRPCHTTPAPIREQUEST_H_ diff --git a/ft/include/alibabacloud/ft/model/FtFlowSpecialResult.h b/ft/include/alibabacloud/ft/model/NormalRpcHttpApiResult.h similarity index 69% rename from ft/include/alibabacloud/ft/model/FtFlowSpecialResult.h rename to ft/include/alibabacloud/ft/model/NormalRpcHttpApiResult.h index 52155b843..a3e13e216 100644 --- a/ft/include/alibabacloud/ft/model/FtFlowSpecialResult.h +++ b/ft/include/alibabacloud/ft/model/NormalRpcHttpApiResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALRESULT_H_ +#ifndef ALIBABACLOUD_FT_MODEL_NORMALRPCHTTPAPIRESULT_H_ +#define ALIBABACLOUD_FT_MODEL_NORMALRPCHTTPAPIRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FT_EXPORT FtFlowSpecialResult : public ServiceResult + class ALIBABACLOUD_FT_EXPORT NormalRpcHttpApiResult : public ServiceResult { public: - FtFlowSpecialResult(); - explicit FtFlowSpecialResult(const std::string &payload); - ~FtFlowSpecialResult(); - std::string getName()const; + NormalRpcHttpApiResult(); + explicit NormalRpcHttpApiResult(const std::string &payload); + ~NormalRpcHttpApiResult(); protected: void parse(const std::string &payload); private: - std::string name_; }; } } } -#endif // !ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FT_MODEL_NORMALRPCHTTPAPIRESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FtFlowSpecialRequest.h b/ft/include/alibabacloud/ft/model/RpcDataUploadAndDownloadRequest.h similarity index 53% rename from ft/include/alibabacloud/ft/model/FtFlowSpecialRequest.h rename to ft/include/alibabacloud/ft/model/RpcDataUploadAndDownloadRequest.h index 03f6d8039..15786e2b1 100644 --- a/ft/include/alibabacloud/ft/model/FtFlowSpecialRequest.h +++ b/ft/include/alibabacloud/ft/model/RpcDataUploadAndDownloadRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_FT_MODEL_FTFLOWSPECIALREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FtFlowSpecialRequest : public RpcServiceRequest - { - - public: - FtFlowSpecialRequest(); - ~FtFlowSpecialRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTFLOWSPECIALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADANDDOWNLOADREQUEST_H_ +#define ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADANDDOWNLOADREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ft { +namespace Model { +class ALIBABACLOUD_FT_EXPORT RpcDataUploadAndDownloadRequest : public RpcServiceRequest { +public: + RpcDataUploadAndDownloadRequest(); + ~RpcDataUploadAndDownloadRequest(); + std::string getQuery1() const; + void setQuery1(const std::string &query1); + +private: + std::string query1_; +}; +} // namespace Model +} // namespace Ft +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADANDDOWNLOADREQUEST_H_ diff --git a/ft/include/alibabacloud/ft/model/FtIpFlowControlResult.h b/ft/include/alibabacloud/ft/model/RpcDataUploadAndDownloadResult.h similarity index 68% rename from ft/include/alibabacloud/ft/model/FtIpFlowControlResult.h rename to ft/include/alibabacloud/ft/model/RpcDataUploadAndDownloadResult.h index 2736b0952..29ed885ba 100644 --- a/ft/include/alibabacloud/ft/model/FtIpFlowControlResult.h +++ b/ft/include/alibabacloud/ft/model/RpcDataUploadAndDownloadResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLRESULT_H_ +#ifndef ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADANDDOWNLOADRESULT_H_ +#define ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADANDDOWNLOADRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FT_EXPORT FtIpFlowControlResult : public ServiceResult + class ALIBABACLOUD_FT_EXPORT RpcDataUploadAndDownloadResult : public ServiceResult { public: - FtIpFlowControlResult(); - explicit FtIpFlowControlResult(const std::string &payload); - ~FtIpFlowControlResult(); - std::string getName()const; + RpcDataUploadAndDownloadResult(); + explicit RpcDataUploadAndDownloadResult(const std::string &payload); + ~RpcDataUploadAndDownloadResult(); protected: void parse(const std::string &payload); private: - std::string name_; }; } } } -#endif // !ALIBABACLOUD_FT_MODEL_FTIPFLOWCONTROLRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADANDDOWNLOADRESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/RpcDataUploadRequest.h b/ft/include/alibabacloud/ft/model/RpcDataUploadRequest.h new file mode 100644 index 000000000..be6185677 --- /dev/null +++ b/ft/include/alibabacloud/ft/model/RpcDataUploadRequest.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_FT_MODEL_RPCDATAUPLOADREQUEST_H_ +#define ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ft { +namespace Model { +class ALIBABACLOUD_FT_EXPORT RpcDataUploadRequest : public RpcServiceRequest { +public: + RpcDataUploadRequest(); + ~RpcDataUploadRequest(); + std::string getQuery1() const; + void setQuery1(const std::string &query1); + long getQuery2() const; + void setQuery2(long query2); + std::string getLargeParam() const; + void setLargeParam(const std::string &largeParam); + +private: + std::string query1_; + long query2_; + std::string largeParam_; +}; +} // namespace Model +} // namespace Ft +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADREQUEST_H_ diff --git a/ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcResult.h b/ft/include/alibabacloud/ft/model/RpcDataUploadResult.h similarity index 61% rename from ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcResult.h rename to ft/include/alibabacloud/ft/model/RpcDataUploadResult.h index 6eb50c0d8..9f74dae8c 100644 --- a/ft/include/alibabacloud/ft/model/FtDynamicAddressHttpVpcResult.h +++ b/ft/include/alibabacloud/ft/model/RpcDataUploadResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHTTPVPCRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHTTPVPCRESULT_H_ +#ifndef ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADRESULT_H_ +#define ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADRESULT_H_ #include #include @@ -29,25 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FT_EXPORT FtDynamicAddressHttpVpcResult : public ServiceResult + class ALIBABACLOUD_FT_EXPORT RpcDataUploadResult : public ServiceResult { public: - FtDynamicAddressHttpVpcResult(); - explicit FtDynamicAddressHttpVpcResult(const std::string &payload); - ~FtDynamicAddressHttpVpcResult(); - std::string getServiceRpcSign()const; + RpcDataUploadResult(); + explicit RpcDataUploadResult(const std::string &payload); + ~RpcDataUploadResult(); + std::string getSpeed()const; + std::string getHeaders()const; + long getTotalBytes()const; + long getTotalTime()const; std::string getParams()const; + std::string getUrl()const; protected: void parse(const std::string &payload); private: - std::string serviceRpcSign_; + std::string speed_; + std::string headers_; + long totalBytes_; + long totalTime_; std::string params_; + std::string url_; }; } } } -#endif // !ALIBABACLOUD_FT_MODEL_FTDYNAMICADDRESSHTTPVPCRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADRESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/FTApiAliasApiRequest.h b/ft/include/alibabacloud/ft/model/RpcDataUploadTestRequest.h similarity index 58% rename from ft/include/alibabacloud/ft/model/FTApiAliasApiRequest.h rename to ft/include/alibabacloud/ft/model/RpcDataUploadTestRequest.h index 2dd46f253..c95a27a7d 100644 --- a/ft/include/alibabacloud/ft/model/FTApiAliasApiRequest.h +++ b/ft/include/alibabacloud/ft/model/RpcDataUploadTestRequest.h @@ -1,48 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_FT_MODEL_FTAPIALIASAPIREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT FTApiAliasApiRequest : public RpcServiceRequest - { - - public: - FTApiAliasApiRequest(); - ~FTApiAliasApiRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADTESTREQUEST_H_ +#define ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADTESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ft { +namespace Model { +class ALIBABACLOUD_FT_EXPORT RpcDataUploadTestRequest : public RpcServiceRequest { +public: + RpcDataUploadTestRequest(); + ~RpcDataUploadTestRequest(); + +private: +}; +} // namespace Model +} // namespace Ft +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADTESTREQUEST_H_ diff --git a/ft/include/alibabacloud/ft/model/FTApiAliasApiResult.h b/ft/include/alibabacloud/ft/model/RpcDataUploadTestResult.h similarity index 69% rename from ft/include/alibabacloud/ft/model/FTApiAliasApiResult.h rename to ft/include/alibabacloud/ft/model/RpcDataUploadTestResult.h index d6cbd1002..4a3ab5e31 100644 --- a/ft/include/alibabacloud/ft/model/FTApiAliasApiResult.h +++ b/ft/include/alibabacloud/ft/model/RpcDataUploadTestResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIRESULT_H_ +#ifndef ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADTESTRESULT_H_ +#define ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADTESTRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FT_EXPORT FTApiAliasApiResult : public ServiceResult + class ALIBABACLOUD_FT_EXPORT RpcDataUploadTestResult : public ServiceResult { public: - FTApiAliasApiResult(); - explicit FTApiAliasApiResult(const std::string &payload); - ~FTApiAliasApiResult(); - std::string getName()const; + RpcDataUploadTestResult(); + explicit RpcDataUploadTestResult(const std::string &payload); + ~RpcDataUploadTestResult(); protected: void parse(const std::string &payload); private: - std::string name_; }; } } } -#endif // !ALIBABACLOUD_FT_MODEL_FTAPIALIASAPIRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FT_MODEL_RPCDATAUPLOADTESTRESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/TestFlowStrategy01Request.h b/ft/include/alibabacloud/ft/model/TestFlowStrategy01Request.h deleted file mode 100644 index 80676cd5a..000000000 --- a/ft/include/alibabacloud/ft/model/TestFlowStrategy01Request.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_TESTFLOWSTRATEGY01REQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_TESTFLOWSTRATEGY01REQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT TestFlowStrategy01Request : public RpcServiceRequest - { - - public: - TestFlowStrategy01Request(); - ~TestFlowStrategy01Request(); - - std::map getNames()const; - void setNames(const std::map& names); - - private: - std::map names_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_TESTFLOWSTRATEGY01REQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/TestFlowStrategy01Result.h b/ft/include/alibabacloud/ft/model/TestFlowStrategy01Result.h deleted file mode 100644 index 868196dc0..000000000 --- a/ft/include/alibabacloud/ft/model/TestFlowStrategy01Result.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_TESTFLOWSTRATEGY01RESULT_H_ -#define ALIBABACLOUD_FT_MODEL_TESTFLOWSTRATEGY01RESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT TestFlowStrategy01Result : public ServiceResult - { - public: - - - TestFlowStrategy01Result(); - explicit TestFlowStrategy01Result(const std::string &payload); - ~TestFlowStrategy01Result(); - std::vector getNames()const; - std::vector getList()const; - - protected: - void parse(const std::string &payload); - private: - std::vector names_; - std::vector list_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_TESTFLOWSTRATEGY01RESULT_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/TestHttpApiRequest.h b/ft/include/alibabacloud/ft/model/TestHttpApiRequest.h deleted file mode 100644 index c41bbce64..000000000 --- a/ft/include/alibabacloud/ft/model/TestHttpApiRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_TESTHTTPAPIREQUEST_H_ -#define ALIBABACLOUD_FT_MODEL_TESTHTTPAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT TestHttpApiRequest : public RpcServiceRequest - { - - public: - TestHttpApiRequest(); - ~TestHttpApiRequest(); - - std::string getStringValue()const; - void setStringValue(const std::string& stringValue); - std::string getOtherParam()const; - void setOtherParam(const std::string& otherParam); - bool getBooleanParam()const; - void setBooleanParam(bool booleanParam); - std::string getDefaultValue()const; - void setDefaultValue(const std::string& defaultValue); - - private: - std::string stringValue_; - std::string otherParam_; - bool booleanParam_; - std::string defaultValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_TESTHTTPAPIREQUEST_H_ \ No newline at end of file diff --git a/ft/include/alibabacloud/ft/model/TestHttpApiResult.h b/ft/include/alibabacloud/ft/model/TestHttpApiResult.h deleted file mode 100644 index 781cc8b3f..000000000 --- a/ft/include/alibabacloud/ft/model/TestHttpApiResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_FT_MODEL_TESTHTTPAPIRESULT_H_ -#define ALIBABACLOUD_FT_MODEL_TESTHTTPAPIRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ft - { - namespace Model - { - class ALIBABACLOUD_FT_EXPORT TestHttpApiResult : public ServiceResult - { - public: - - - TestHttpApiResult(); - explicit TestHttpApiResult(const std::string &payload); - ~TestHttpApiResult(); - std::string getServiceRpcSign()const; - std::string getParams()const; - - protected: - void parse(const std::string &payload); - private: - std::string serviceRpcSign_; - std::string params_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FT_MODEL_TESTHTTPAPIRESULT_H_ \ No newline at end of file diff --git a/ft/src/FtClient.cc b/ft/src/FtClient.cc index 08c39d132..60ddc15bc 100644 --- a/ft/src/FtClient.cc +++ b/ft/src/FtClient.cc @@ -51,432 +51,216 @@ FtClient::FtClient(const std::string & accessKeyId, const std::string & accessKe FtClient::~FtClient() {} -FtClient::BatchAuditTest01Outcome FtClient::batchAuditTest01(const BatchAuditTest01Request &request) const +FtClient::DataRateLimitTestOutcome FtClient::dataRateLimitTest(const DataRateLimitTestRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BatchAuditTest01Outcome(endpointOutcome.error()); + return DataRateLimitTestOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BatchAuditTest01Outcome(BatchAuditTest01Result(outcome.result())); + return DataRateLimitTestOutcome(DataRateLimitTestResult(outcome.result())); else - return BatchAuditTest01Outcome(outcome.error()); + return DataRateLimitTestOutcome(outcome.error()); } -void FtClient::batchAuditTest01Async(const BatchAuditTest01Request& request, const BatchAuditTest01AsyncHandler& handler, const std::shared_ptr& context) const +void FtClient::dataRateLimitTestAsync(const DataRateLimitTestRequest& request, const DataRateLimitTestAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, batchAuditTest01(request), context); + handler(this, request, dataRateLimitTest(request), context); }; asyncExecute(new Runnable(fn)); } -FtClient::BatchAuditTest01OutcomeCallable FtClient::batchAuditTest01Callable(const BatchAuditTest01Request &request) const +FtClient::DataRateLimitTestOutcomeCallable FtClient::dataRateLimitTestCallable(const DataRateLimitTestRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->batchAuditTest01(request); + return this->dataRateLimitTest(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -FtClient::FTApiAliasApiOutcome FtClient::fTApiAliasApi(const FTApiAliasApiRequest &request) const +FtClient::NormalRpcHsfApiOutcome FtClient::normalRpcHsfApi(const NormalRpcHsfApiRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FTApiAliasApiOutcome(endpointOutcome.error()); + return NormalRpcHsfApiOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FTApiAliasApiOutcome(FTApiAliasApiResult(outcome.result())); + return NormalRpcHsfApiOutcome(NormalRpcHsfApiResult(outcome.result())); else - return FTApiAliasApiOutcome(outcome.error()); + return NormalRpcHsfApiOutcome(outcome.error()); } -void FtClient::fTApiAliasApiAsync(const FTApiAliasApiRequest& request, const FTApiAliasApiAsyncHandler& handler, const std::shared_ptr& context) const +void FtClient::normalRpcHsfApiAsync(const NormalRpcHsfApiRequest& request, const NormalRpcHsfApiAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, fTApiAliasApi(request), context); + handler(this, request, normalRpcHsfApi(request), context); }; asyncExecute(new Runnable(fn)); } -FtClient::FTApiAliasApiOutcomeCallable FtClient::fTApiAliasApiCallable(const FTApiAliasApiRequest &request) const +FtClient::NormalRpcHsfApiOutcomeCallable FtClient::normalRpcHsfApiCallable(const NormalRpcHsfApiRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->fTApiAliasApi(request); + return this->normalRpcHsfApi(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -FtClient::FtDynamicAddressDubboOutcome FtClient::ftDynamicAddressDubbo(const FtDynamicAddressDubboRequest &request) const +FtClient::NormalRpcHttpApiOutcome FtClient::normalRpcHttpApi(const NormalRpcHttpApiRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FtDynamicAddressDubboOutcome(endpointOutcome.error()); + return NormalRpcHttpApiOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FtDynamicAddressDubboOutcome(FtDynamicAddressDubboResult(outcome.result())); + return NormalRpcHttpApiOutcome(NormalRpcHttpApiResult(outcome.result())); else - return FtDynamicAddressDubboOutcome(outcome.error()); + return NormalRpcHttpApiOutcome(outcome.error()); } -void FtClient::ftDynamicAddressDubboAsync(const FtDynamicAddressDubboRequest& request, const FtDynamicAddressDubboAsyncHandler& handler, const std::shared_ptr& context) const +void FtClient::normalRpcHttpApiAsync(const NormalRpcHttpApiRequest& request, const NormalRpcHttpApiAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, ftDynamicAddressDubbo(request), context); + handler(this, request, normalRpcHttpApi(request), context); }; asyncExecute(new Runnable(fn)); } -FtClient::FtDynamicAddressDubboOutcomeCallable FtClient::ftDynamicAddressDubboCallable(const FtDynamicAddressDubboRequest &request) const +FtClient::NormalRpcHttpApiOutcomeCallable FtClient::normalRpcHttpApiCallable(const NormalRpcHttpApiRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->ftDynamicAddressDubbo(request); + return this->normalRpcHttpApi(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -FtClient::FtDynamicAddressHsfOutcome FtClient::ftDynamicAddressHsf(const FtDynamicAddressHsfRequest &request) const +FtClient::RpcDataUploadOutcome FtClient::rpcDataUpload(const RpcDataUploadRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FtDynamicAddressHsfOutcome(endpointOutcome.error()); + return RpcDataUploadOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FtDynamicAddressHsfOutcome(FtDynamicAddressHsfResult(outcome.result())); + return RpcDataUploadOutcome(RpcDataUploadResult(outcome.result())); else - return FtDynamicAddressHsfOutcome(outcome.error()); + return RpcDataUploadOutcome(outcome.error()); } -void FtClient::ftDynamicAddressHsfAsync(const FtDynamicAddressHsfRequest& request, const FtDynamicAddressHsfAsyncHandler& handler, const std::shared_ptr& context) const +void FtClient::rpcDataUploadAsync(const RpcDataUploadRequest& request, const RpcDataUploadAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, ftDynamicAddressHsf(request), context); + handler(this, request, rpcDataUpload(request), context); }; asyncExecute(new Runnable(fn)); } -FtClient::FtDynamicAddressHsfOutcomeCallable FtClient::ftDynamicAddressHsfCallable(const FtDynamicAddressHsfRequest &request) const +FtClient::RpcDataUploadOutcomeCallable FtClient::rpcDataUploadCallable(const RpcDataUploadRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->ftDynamicAddressHsf(request); + return this->rpcDataUpload(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -FtClient::FtDynamicAddressHttpVpcOutcome FtClient::ftDynamicAddressHttpVpc(const FtDynamicAddressHttpVpcRequest &request) const +FtClient::RpcDataUploadAndDownloadOutcome FtClient::rpcDataUploadAndDownload(const RpcDataUploadAndDownloadRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FtDynamicAddressHttpVpcOutcome(endpointOutcome.error()); + return RpcDataUploadAndDownloadOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FtDynamicAddressHttpVpcOutcome(FtDynamicAddressHttpVpcResult(outcome.result())); + return RpcDataUploadAndDownloadOutcome(RpcDataUploadAndDownloadResult(outcome.result())); else - return FtDynamicAddressHttpVpcOutcome(outcome.error()); + return RpcDataUploadAndDownloadOutcome(outcome.error()); } -void FtClient::ftDynamicAddressHttpVpcAsync(const FtDynamicAddressHttpVpcRequest& request, const FtDynamicAddressHttpVpcAsyncHandler& handler, const std::shared_ptr& context) const +void FtClient::rpcDataUploadAndDownloadAsync(const RpcDataUploadAndDownloadRequest& request, const RpcDataUploadAndDownloadAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, ftDynamicAddressHttpVpc(request), context); + handler(this, request, rpcDataUploadAndDownload(request), context); }; asyncExecute(new Runnable(fn)); } -FtClient::FtDynamicAddressHttpVpcOutcomeCallable FtClient::ftDynamicAddressHttpVpcCallable(const FtDynamicAddressHttpVpcRequest &request) const +FtClient::RpcDataUploadAndDownloadOutcomeCallable FtClient::rpcDataUploadAndDownloadCallable(const RpcDataUploadAndDownloadRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->ftDynamicAddressHttpVpc(request); + return this->rpcDataUploadAndDownload(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -FtClient::FtEagleEyeOutcome FtClient::ftEagleEye(const FtEagleEyeRequest &request) const +FtClient::RpcDataUploadTestOutcome FtClient::rpcDataUploadTest(const RpcDataUploadTestRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FtEagleEyeOutcome(endpointOutcome.error()); + return RpcDataUploadTestOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FtEagleEyeOutcome(FtEagleEyeResult(outcome.result())); + return RpcDataUploadTestOutcome(RpcDataUploadTestResult(outcome.result())); else - return FtEagleEyeOutcome(outcome.error()); + return RpcDataUploadTestOutcome(outcome.error()); } -void FtClient::ftEagleEyeAsync(const FtEagleEyeRequest& request, const FtEagleEyeAsyncHandler& handler, const std::shared_ptr& context) const +void FtClient::rpcDataUploadTestAsync(const RpcDataUploadTestRequest& request, const RpcDataUploadTestAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, ftEagleEye(request), context); + handler(this, request, rpcDataUploadTest(request), context); }; asyncExecute(new Runnable(fn)); } -FtClient::FtEagleEyeOutcomeCallable FtClient::ftEagleEyeCallable(const FtEagleEyeRequest &request) const +FtClient::RpcDataUploadTestOutcomeCallable FtClient::rpcDataUploadTestCallable(const RpcDataUploadTestRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->ftEagleEye(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FtClient::FtFlowSpecialOutcome FtClient::ftFlowSpecial(const FtFlowSpecialRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FtFlowSpecialOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FtFlowSpecialOutcome(FtFlowSpecialResult(outcome.result())); - else - return FtFlowSpecialOutcome(outcome.error()); -} - -void FtClient::ftFlowSpecialAsync(const FtFlowSpecialRequest& request, const FtFlowSpecialAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, ftFlowSpecial(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FtClient::FtFlowSpecialOutcomeCallable FtClient::ftFlowSpecialCallable(const FtFlowSpecialRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->ftFlowSpecial(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FtClient::FtGatedLaunchPolicy4Outcome FtClient::ftGatedLaunchPolicy4(const FtGatedLaunchPolicy4Request &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FtGatedLaunchPolicy4Outcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FtGatedLaunchPolicy4Outcome(FtGatedLaunchPolicy4Result(outcome.result())); - else - return FtGatedLaunchPolicy4Outcome(outcome.error()); -} - -void FtClient::ftGatedLaunchPolicy4Async(const FtGatedLaunchPolicy4Request& request, const FtGatedLaunchPolicy4AsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, ftGatedLaunchPolicy4(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FtClient::FtGatedLaunchPolicy4OutcomeCallable FtClient::ftGatedLaunchPolicy4Callable(const FtGatedLaunchPolicy4Request &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->ftGatedLaunchPolicy4(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FtClient::FtIpFlowControlOutcome FtClient::ftIpFlowControl(const FtIpFlowControlRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FtIpFlowControlOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FtIpFlowControlOutcome(FtIpFlowControlResult(outcome.result())); - else - return FtIpFlowControlOutcome(outcome.error()); -} - -void FtClient::ftIpFlowControlAsync(const FtIpFlowControlRequest& request, const FtIpFlowControlAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, ftIpFlowControl(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FtClient::FtIpFlowControlOutcomeCallable FtClient::ftIpFlowControlCallable(const FtIpFlowControlRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->ftIpFlowControl(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FtClient::FtParamListOutcome FtClient::ftParamList(const FtParamListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FtParamListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FtParamListOutcome(FtParamListResult(outcome.result())); - else - return FtParamListOutcome(outcome.error()); -} - -void FtClient::ftParamListAsync(const FtParamListRequest& request, const FtParamListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, ftParamList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FtClient::FtParamListOutcomeCallable FtClient::ftParamListCallable(const FtParamListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->ftParamList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FtClient::TestFlowStrategy01Outcome FtClient::testFlowStrategy01(const TestFlowStrategy01Request &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TestFlowStrategy01Outcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TestFlowStrategy01Outcome(TestFlowStrategy01Result(outcome.result())); - else - return TestFlowStrategy01Outcome(outcome.error()); -} - -void FtClient::testFlowStrategy01Async(const TestFlowStrategy01Request& request, const TestFlowStrategy01AsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, testFlowStrategy01(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FtClient::TestFlowStrategy01OutcomeCallable FtClient::testFlowStrategy01Callable(const TestFlowStrategy01Request &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->testFlowStrategy01(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FtClient::TestHttpApiOutcome FtClient::testHttpApi(const TestHttpApiRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TestHttpApiOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TestHttpApiOutcome(TestHttpApiResult(outcome.result())); - else - return TestHttpApiOutcome(outcome.error()); -} - -void FtClient::testHttpApiAsync(const TestHttpApiRequest& request, const TestHttpApiAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, testHttpApi(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FtClient::TestHttpApiOutcomeCallable FtClient::testHttpApiCallable(const TestHttpApiRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->testHttpApi(request); + return this->rpcDataUploadTest(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/ft/src/model/BatchAuditTest01Request.cc b/ft/src/model/BatchAuditTest01Request.cc deleted file mode 100644 index 894453f77..000000000 --- a/ft/src/model/BatchAuditTest01Request.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::BatchAuditTest01Request; - -BatchAuditTest01Request::BatchAuditTest01Request() : - RpcServiceRequest("ft", "2018-07-13", "BatchAuditTest01") -{ - setMethod(HttpRequest::Method::Post); -} - -BatchAuditTest01Request::~BatchAuditTest01Request() -{} - -std::string BatchAuditTest01Request::getDemo01()const -{ - return demo01_; -} - -void BatchAuditTest01Request::setDemo01(const std::string& demo01) -{ - demo01_ = demo01; - setParameter("Demo01", demo01); -} - -bool BatchAuditTest01Request::getTest010101()const -{ - return test010101_; -} - -void BatchAuditTest01Request::setTest010101(bool test010101) -{ - test010101_ = test010101; - setBodyParameter("Test010101", test010101 ? "true" : "false"); -} - -std::string BatchAuditTest01Request::getName()const -{ - return name_; -} - -void BatchAuditTest01Request::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string BatchAuditTest01Request::getBatchAuditTest01()const -{ - return batchAuditTest01_; -} - -void BatchAuditTest01Request::setBatchAuditTest01(const std::string& batchAuditTest01) -{ - batchAuditTest01_ = batchAuditTest01; - setParameter("BatchAuditTest01", batchAuditTest01); -} - diff --git a/ft/src/model/BatchAuditTest01Result.cc b/ft/src/model/BatchAuditTest01Result.cc deleted file mode 100644 index 573f9d816..000000000 --- a/ft/src/model/BatchAuditTest01Result.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -BatchAuditTest01Result::BatchAuditTest01Result() : - ServiceResult() -{} - -BatchAuditTest01Result::BatchAuditTest01Result(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BatchAuditTest01Result::~BatchAuditTest01Result() -{} - -void BatchAuditTest01Result::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto demo01Node = value["Demo01"]; - auto allDemo011Node = demo01Node["Demo011"]["Demo011Item"]; - for (auto demo01NodeDemo011Demo011Item : allDemo011Node) - { - Demo01::Demo011Item demo011ItemObject; - if(!demo01NodeDemo011Demo011Item["Demo0111"].isNull()) - demo011ItemObject.demo0111 = demo01NodeDemo011Demo011Item["Demo0111"].asString(); - demo01_.demo011.push_back(demo011ItemObject); - } - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - -} - -BatchAuditTest01Result::Demo01 BatchAuditTest01Result::getDemo01()const -{ - return demo01_; -} - -std::string BatchAuditTest01Result::getName()const -{ - return name_; -} - diff --git a/ft/src/model/DataRateLimitTestRequest.cc b/ft/src/model/DataRateLimitTestRequest.cc new file mode 100644 index 000000000..a4a99015f --- /dev/null +++ b/ft/src/model/DataRateLimitTestRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ft::Model::DataRateLimitTestRequest; + +DataRateLimitTestRequest::DataRateLimitTestRequest() + : RpcServiceRequest("ft", "2021-01-01", "DataRateLimitTest") { + setMethod(HttpRequest::Method::Post); +} + +DataRateLimitTestRequest::~DataRateLimitTestRequest() {} + +std::string DataRateLimitTestRequest::getNewparam2() const { + return newparam2_; +} + +void DataRateLimitTestRequest::setNewparam2(const std::string &newparam2) { + newparam2_ = newparam2; + setParameter(std::string("new-param-2"), newparam2); +} + +std::string DataRateLimitTestRequest::getNewparam1() const { + return newparam1_; +} + +void DataRateLimitTestRequest::setNewparam1(const std::string &newparam1) { + newparam1_ = newparam1; + setParameter(std::string("new-param-1"), newparam1); +} + +std::string DataRateLimitTestRequest::getData() const { + return data_; +} + +void DataRateLimitTestRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("Data"), data); +} + +std::string DataRateLimitTestRequest::getMap() const { + return map_; +} + +void DataRateLimitTestRequest::setMap(const std::string &map) { + map_ = map; + setParameter(std::string("Map"), map); +} + diff --git a/ft/src/model/FtDynamicAddressHsfResult.cc b/ft/src/model/DataRateLimitTestResult.cc similarity index 73% rename from ft/src/model/FtDynamicAddressHsfResult.cc rename to ft/src/model/DataRateLimitTestResult.cc index ca3675aa7..dbbd1a2c6 100644 --- a/ft/src/model/FtDynamicAddressHsfResult.cc +++ b/ft/src/model/DataRateLimitTestResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Ft; using namespace AlibabaCloud::Ft::Model; -FtDynamicAddressHsfResult::FtDynamicAddressHsfResult() : +DataRateLimitTestResult::DataRateLimitTestResult() : ServiceResult() {} -FtDynamicAddressHsfResult::FtDynamicAddressHsfResult(const std::string &payload) : +DataRateLimitTestResult::DataRateLimitTestResult(const std::string &payload) : ServiceResult() { parse(payload); } -FtDynamicAddressHsfResult::~FtDynamicAddressHsfResult() +DataRateLimitTestResult::~DataRateLimitTestResult() {} -void FtDynamicAddressHsfResult::parse(const std::string &payload) +void DataRateLimitTestResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/ft/src/model/FtDynamicAddressDubboRequest.cc b/ft/src/model/FtDynamicAddressDubboRequest.cc deleted file mode 100644 index 48d56af72..000000000 --- a/ft/src/model/FtDynamicAddressDubboRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::FtDynamicAddressDubboRequest; - -FtDynamicAddressDubboRequest::FtDynamicAddressDubboRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtDynamicAddressDubbo") -{ - setMethod(HttpRequest::Method::Post); -} - -FtDynamicAddressDubboRequest::~FtDynamicAddressDubboRequest() -{} - -int FtDynamicAddressDubboRequest::getIntValue()const -{ - return intValue_; -} - -void FtDynamicAddressDubboRequest::setIntValue(int intValue) -{ - intValue_ = intValue; - setParameter("IntValue", std::to_string(intValue)); -} - -std::string FtDynamicAddressDubboRequest::getStringValue()const -{ - return stringValue_; -} - -void FtDynamicAddressDubboRequest::setStringValue(const std::string& stringValue) -{ - stringValue_ = stringValue; - setParameter("StringValue", stringValue); -} - diff --git a/ft/src/model/FtDynamicAddressDubboResult.cc b/ft/src/model/FtDynamicAddressDubboResult.cc deleted file mode 100644 index 7019830d0..000000000 --- a/ft/src/model/FtDynamicAddressDubboResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -FtDynamicAddressDubboResult::FtDynamicAddressDubboResult() : - ServiceResult() -{} - -FtDynamicAddressDubboResult::FtDynamicAddressDubboResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FtDynamicAddressDubboResult::~FtDynamicAddressDubboResult() -{} - -void FtDynamicAddressDubboResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["StringValue"].isNull()) - stringValue_ = value["StringValue"].asString(); - if(!value["IntValue"].isNull()) - intValue_ = std::stoi(value["IntValue"].asString()); - -} - -std::string FtDynamicAddressDubboResult::getStringValue()const -{ - return stringValue_; -} - -int FtDynamicAddressDubboResult::getIntValue()const -{ - return intValue_; -} - diff --git a/ft/src/model/FtDynamicAddressHttpVpcRequest.cc b/ft/src/model/FtDynamicAddressHttpVpcRequest.cc deleted file mode 100644 index e4b294bc7..000000000 --- a/ft/src/model/FtDynamicAddressHttpVpcRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::FtDynamicAddressHttpVpcRequest; - -FtDynamicAddressHttpVpcRequest::FtDynamicAddressHttpVpcRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtDynamicAddressHttpVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -FtDynamicAddressHttpVpcRequest::~FtDynamicAddressHttpVpcRequest() -{} - -std::string FtDynamicAddressHttpVpcRequest::getP1()const -{ - return p1_; -} - -void FtDynamicAddressHttpVpcRequest::setP1(const std::string& p1) -{ - p1_ = p1; - setParameter("P1", p1); -} - -std::string FtDynamicAddressHttpVpcRequest::getStringValue()const -{ - return stringValue_; -} - -void FtDynamicAddressHttpVpcRequest::setStringValue(const std::string& stringValue) -{ - stringValue_ = stringValue; - setParameter("StringValue", stringValue); -} - -std::string FtDynamicAddressHttpVpcRequest::getOtherParam()const -{ - return otherParam_; -} - -void FtDynamicAddressHttpVpcRequest::setOtherParam(const std::string& otherParam) -{ - otherParam_ = otherParam; - setParameter("OtherParam", otherParam); -} - -bool FtDynamicAddressHttpVpcRequest::getBooleanParam()const -{ - return booleanParam_; -} - -void FtDynamicAddressHttpVpcRequest::setBooleanParam(bool booleanParam) -{ - booleanParam_ = booleanParam; - setParameter("BooleanParam", booleanParam ? "true" : "false"); -} - -std::string FtDynamicAddressHttpVpcRequest::getDefaultValue()const -{ - return defaultValue_; -} - -void FtDynamicAddressHttpVpcRequest::setDefaultValue(const std::string& defaultValue) -{ - defaultValue_ = defaultValue; - setParameter("DefaultValue", defaultValue); -} - diff --git a/ft/src/model/FtDynamicAddressHttpVpcResult.cc b/ft/src/model/FtDynamicAddressHttpVpcResult.cc deleted file mode 100644 index 914bbeedf..000000000 --- a/ft/src/model/FtDynamicAddressHttpVpcResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -FtDynamicAddressHttpVpcResult::FtDynamicAddressHttpVpcResult() : - ServiceResult() -{} - -FtDynamicAddressHttpVpcResult::FtDynamicAddressHttpVpcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FtDynamicAddressHttpVpcResult::~FtDynamicAddressHttpVpcResult() -{} - -void FtDynamicAddressHttpVpcResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Params"].isNull()) - params_ = value["Params"].asString(); - if(!value["ServiceRpcSign"].isNull()) - serviceRpcSign_ = value["ServiceRpcSign"].asString(); - -} - -std::string FtDynamicAddressHttpVpcResult::getServiceRpcSign()const -{ - return serviceRpcSign_; -} - -std::string FtDynamicAddressHttpVpcResult::getParams()const -{ - return params_; -} - diff --git a/ft/src/model/FtEagleEyeResult.cc b/ft/src/model/FtEagleEyeResult.cc deleted file mode 100644 index 2b1ca91a8..000000000 --- a/ft/src/model/FtEagleEyeResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -FtEagleEyeResult::FtEagleEyeResult() : - ServiceResult() -{} - -FtEagleEyeResult::FtEagleEyeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FtEagleEyeResult::~FtEagleEyeResult() -{} - -void FtEagleEyeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["eagleEyeTraceId"].isNull()) - eagleEyeTraceId_ = value["eagleEyeTraceId"].asString(); - -} - -std::string FtEagleEyeResult::getEagleEyeTraceId()const -{ - return eagleEyeTraceId_; -} - -std::string FtEagleEyeResult::getName()const -{ - return name_; -} - diff --git a/ft/src/model/FtFlowSpecialRequest.cc b/ft/src/model/FtFlowSpecialRequest.cc deleted file mode 100644 index 8b652b6eb..000000000 --- a/ft/src/model/FtFlowSpecialRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::FtFlowSpecialRequest; - -FtFlowSpecialRequest::FtFlowSpecialRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtFlowSpecial") -{ - setMethod(HttpRequest::Method::Post); -} - -FtFlowSpecialRequest::~FtFlowSpecialRequest() -{} - -std::string FtFlowSpecialRequest::getName()const -{ - return name_; -} - -void FtFlowSpecialRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ft/src/model/FtGatedLaunchPolicy4Request.cc b/ft/src/model/FtGatedLaunchPolicy4Request.cc deleted file mode 100644 index 80982482b..000000000 --- a/ft/src/model/FtGatedLaunchPolicy4Request.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::FtGatedLaunchPolicy4Request; - -FtGatedLaunchPolicy4Request::FtGatedLaunchPolicy4Request() : - RpcServiceRequest("ft", "2018-07-13", "FtGatedLaunchPolicy4") -{ - setMethod(HttpRequest::Method::Post); -} - -FtGatedLaunchPolicy4Request::~FtGatedLaunchPolicy4Request() -{} - -std::string FtGatedLaunchPolicy4Request::getIsGatedLaunch()const -{ - return isGatedLaunch_; -} - -void FtGatedLaunchPolicy4Request::setIsGatedLaunch(const std::string& isGatedLaunch) -{ - isGatedLaunch_ = isGatedLaunch; - setParameter("IsGatedLaunch", isGatedLaunch); -} - diff --git a/ft/src/model/FtGatedLaunchPolicy4Result.cc b/ft/src/model/FtGatedLaunchPolicy4Result.cc deleted file mode 100644 index 3456719a7..000000000 --- a/ft/src/model/FtGatedLaunchPolicy4Result.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -FtGatedLaunchPolicy4Result::FtGatedLaunchPolicy4Result() : - ServiceResult() -{} - -FtGatedLaunchPolicy4Result::FtGatedLaunchPolicy4Result(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FtGatedLaunchPolicy4Result::~FtGatedLaunchPolicy4Result() -{} - -void FtGatedLaunchPolicy4Result::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["IsGatedLaunch"].isNull()) - isGatedLaunch_ = value["IsGatedLaunch"].asString(); - -} - -std::string FtGatedLaunchPolicy4Result::getIsGatedLaunch()const -{ - return isGatedLaunch_; -} - diff --git a/ft/src/model/FtIpFlowControlRequest.cc b/ft/src/model/FtIpFlowControlRequest.cc deleted file mode 100644 index 696a7d956..000000000 --- a/ft/src/model/FtIpFlowControlRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::FtIpFlowControlRequest; - -FtIpFlowControlRequest::FtIpFlowControlRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtIpFlowControl") -{ - setMethod(HttpRequest::Method::Post); -} - -FtIpFlowControlRequest::~FtIpFlowControlRequest() -{} - -std::string FtIpFlowControlRequest::getName()const -{ - return name_; -} - -void FtIpFlowControlRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ft/src/model/FtIpFlowControlResult.cc b/ft/src/model/FtIpFlowControlResult.cc deleted file mode 100644 index 5530846ce..000000000 --- a/ft/src/model/FtIpFlowControlResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -FtIpFlowControlResult::FtIpFlowControlResult() : - ServiceResult() -{} - -FtIpFlowControlResult::FtIpFlowControlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FtIpFlowControlResult::~FtIpFlowControlResult() -{} - -void FtIpFlowControlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - -} - -std::string FtIpFlowControlResult::getName()const -{ - return name_; -} - diff --git a/ft/src/model/FtParamListRequest.cc b/ft/src/model/FtParamListRequest.cc deleted file mode 100644 index 211705556..000000000 --- a/ft/src/model/FtParamListRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::FtParamListRequest; - -FtParamListRequest::FtParamListRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtParamList") -{ - setMethod(HttpRequest::Method::Post); -} - -FtParamListRequest::~FtParamListRequest() -{} - -std::vector FtParamListRequest::getDisk()const -{ - return disk_; -} - -void FtParamListRequest::setDisk(const std::vector& disk) -{ - disk_ = disk; - for(int dep1 = 0; dep1!= disk.size(); dep1++) { - auto diskObj = disk.at(dep1); - std::string diskObjStr = "Disk." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= diskObj.size.size(); dep2++) { - setParameter(diskObjStr + ".Size."+ std::to_string(dep2), diskObj.size.at(dep2)); - } - for(int dep2 = 0; dep2!= diskObj.type.size(); dep2++) { - setParameter(diskObjStr + ".Type."+ std::to_string(dep2), diskObj.type.at(dep2)); - } - } -} - -std::string FtParamListRequest::getName()const -{ - return name_; -} - -void FtParamListRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/ft/src/model/FtEagleEyeRequest.cc b/ft/src/model/NormalRpcHsfApiRequest.cc similarity index 56% rename from ft/src/model/FtEagleEyeRequest.cc rename to ft/src/model/NormalRpcHsfApiRequest.cc index 668f24028..fff4c0093 100644 --- a/ft/src/model/FtEagleEyeRequest.cc +++ b/ft/src/model/NormalRpcHsfApiRequest.cc @@ -1,40 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ft::Model::FtEagleEyeRequest; - -FtEagleEyeRequest::FtEagleEyeRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtEagleEye") -{ - setMethod(HttpRequest::Method::Post); -} - -FtEagleEyeRequest::~FtEagleEyeRequest() -{} - -std::string FtEagleEyeRequest::getName()const -{ - return name_; + */ + +#include + +using AlibabaCloud::Ft::Model::NormalRpcHsfApiRequest; + +NormalRpcHsfApiRequest::NormalRpcHsfApiRequest() + : RpcServiceRequest("ft", "2021-01-01", "NormalRpcHsfApi") { + setMethod(HttpRequest::Method::Get); } -void FtEagleEyeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} +NormalRpcHsfApiRequest::~NormalRpcHsfApiRequest() {} diff --git a/ft/src/model/FTApiAliasApiResult.cc b/ft/src/model/NormalRpcHsfApiResult.cc similarity index 69% rename from ft/src/model/FTApiAliasApiResult.cc rename to ft/src/model/NormalRpcHsfApiResult.cc index 63209ee39..09e0450ad 100644 --- a/ft/src/model/FTApiAliasApiResult.cc +++ b/ft/src/model/NormalRpcHsfApiResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Ft; using namespace AlibabaCloud::Ft::Model; -FTApiAliasApiResult::FTApiAliasApiResult() : +NormalRpcHsfApiResult::NormalRpcHsfApiResult() : ServiceResult() {} -FTApiAliasApiResult::FTApiAliasApiResult(const std::string &payload) : +NormalRpcHsfApiResult::NormalRpcHsfApiResult(const std::string &payload) : ServiceResult() { parse(payload); } -FTApiAliasApiResult::~FTApiAliasApiResult() +NormalRpcHsfApiResult::~NormalRpcHsfApiResult() {} -void FTApiAliasApiResult::parse(const std::string &payload) +void NormalRpcHsfApiResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); } -std::string FTApiAliasApiResult::getName()const -{ - return name_; -} - diff --git a/ft/src/model/FtDynamicAddressHsfRequest.cc b/ft/src/model/NormalRpcHttpApiRequest.cc similarity index 63% rename from ft/src/model/FtDynamicAddressHsfRequest.cc rename to ft/src/model/NormalRpcHttpApiRequest.cc index 1b503bc54..6f5822cdd 100644 --- a/ft/src/model/FtDynamicAddressHsfRequest.cc +++ b/ft/src/model/NormalRpcHttpApiRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ft::Model::FtDynamicAddressHsfRequest; - -FtDynamicAddressHsfRequest::FtDynamicAddressHsfRequest() : - RpcServiceRequest("ft", "2018-07-13", "FtDynamicAddressHsf") -{ - setMethod(HttpRequest::Method::Post); -} - -FtDynamicAddressHsfRequest::~FtDynamicAddressHsfRequest() -{} - + */ + +#include + +using AlibabaCloud::Ft::Model::NormalRpcHttpApiRequest; + +NormalRpcHttpApiRequest::NormalRpcHttpApiRequest() + : RpcServiceRequest("ft", "2021-01-01", "NormalRpcHttpApi") { + setMethod(HttpRequest::Method::Get); +} + +NormalRpcHttpApiRequest::~NormalRpcHttpApiRequest() {} + diff --git a/ft/src/model/FtFlowSpecialResult.cc b/ft/src/model/NormalRpcHttpApiResult.cc similarity index 69% rename from ft/src/model/FtFlowSpecialResult.cc rename to ft/src/model/NormalRpcHttpApiResult.cc index 7bb090253..02ec516fa 100644 --- a/ft/src/model/FtFlowSpecialResult.cc +++ b/ft/src/model/NormalRpcHttpApiResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Ft; using namespace AlibabaCloud::Ft::Model; -FtFlowSpecialResult::FtFlowSpecialResult() : +NormalRpcHttpApiResult::NormalRpcHttpApiResult() : ServiceResult() {} -FtFlowSpecialResult::FtFlowSpecialResult(const std::string &payload) : +NormalRpcHttpApiResult::NormalRpcHttpApiResult(const std::string &payload) : ServiceResult() { parse(payload); } -FtFlowSpecialResult::~FtFlowSpecialResult() +NormalRpcHttpApiResult::~NormalRpcHttpApiResult() {} -void FtFlowSpecialResult::parse(const std::string &payload) +void NormalRpcHttpApiResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); } -std::string FtFlowSpecialResult::getName()const -{ - return name_; -} - diff --git a/ft/src/model/RpcDataUploadAndDownloadRequest.cc b/ft/src/model/RpcDataUploadAndDownloadRequest.cc new file mode 100644 index 000000000..b3913bd7d --- /dev/null +++ b/ft/src/model/RpcDataUploadAndDownloadRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ft::Model::RpcDataUploadAndDownloadRequest; + +RpcDataUploadAndDownloadRequest::RpcDataUploadAndDownloadRequest() + : RpcServiceRequest("ft", "2021-01-01", "RpcDataUploadAndDownload") { + setMethod(HttpRequest::Method::Post); +} + +RpcDataUploadAndDownloadRequest::~RpcDataUploadAndDownloadRequest() {} + +std::string RpcDataUploadAndDownloadRequest::getQuery1() const { + return query1_; +} + +void RpcDataUploadAndDownloadRequest::setQuery1(const std::string &query1) { + query1_ = query1; + setParameter(std::string("query1"), query1); +} + diff --git a/ft/src/model/FtParamListResult.cc b/ft/src/model/RpcDataUploadAndDownloadResult.cc similarity index 70% rename from ft/src/model/FtParamListResult.cc rename to ft/src/model/RpcDataUploadAndDownloadResult.cc index a7625adb9..aaff416c6 100644 --- a/ft/src/model/FtParamListResult.cc +++ b/ft/src/model/RpcDataUploadAndDownloadResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Ft; using namespace AlibabaCloud::Ft::Model; -FtParamListResult::FtParamListResult() : +RpcDataUploadAndDownloadResult::RpcDataUploadAndDownloadResult() : ServiceResult() {} -FtParamListResult::FtParamListResult(const std::string &payload) : +RpcDataUploadAndDownloadResult::RpcDataUploadAndDownloadResult(const std::string &payload) : ServiceResult() { parse(payload); } -FtParamListResult::~FtParamListResult() +RpcDataUploadAndDownloadResult::~RpcDataUploadAndDownloadResult() {} -void FtParamListResult::parse(const std::string &payload) +void RpcDataUploadAndDownloadResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); } -std::string FtParamListResult::getName()const -{ - return name_; -} - diff --git a/ft/src/model/RpcDataUploadRequest.cc b/ft/src/model/RpcDataUploadRequest.cc new file mode 100644 index 000000000..3fafab48c --- /dev/null +++ b/ft/src/model/RpcDataUploadRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ft::Model::RpcDataUploadRequest; + +RpcDataUploadRequest::RpcDataUploadRequest() + : RpcServiceRequest("ft", "2021-01-01", "RpcDataUpload") { + setMethod(HttpRequest::Method::Post); +} + +RpcDataUploadRequest::~RpcDataUploadRequest() {} + +std::string RpcDataUploadRequest::getQuery1() const { + return query1_; +} + +void RpcDataUploadRequest::setQuery1(const std::string &query1) { + query1_ = query1; + setParameter(std::string("query1"), query1); +} + +long RpcDataUploadRequest::getQuery2() const { + return query2_; +} + +void RpcDataUploadRequest::setQuery2(long query2) { + query2_ = query2; + setParameter(std::string("query2"), std::to_string(query2)); +} + +std::string RpcDataUploadRequest::getLargeParam() const { + return largeParam_; +} + +void RpcDataUploadRequest::setLargeParam(const std::string &largeParam) { + largeParam_ = largeParam; + setBodyParameter(std::string("largeParam"), largeParam); +} + diff --git a/ft/src/model/RpcDataUploadResult.cc b/ft/src/model/RpcDataUploadResult.cc new file mode 100644 index 000000000..8ecd8a0f1 --- /dev/null +++ b/ft/src/model/RpcDataUploadResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ft; +using namespace AlibabaCloud::Ft::Model; + +RpcDataUploadResult::RpcDataUploadResult() : + ServiceResult() +{} + +RpcDataUploadResult::RpcDataUploadResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RpcDataUploadResult::~RpcDataUploadResult() +{} + +void RpcDataUploadResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["url"].isNull()) + url_ = value["url"].asString(); + if(!value["totalBytes"].isNull()) + totalBytes_ = std::stol(value["totalBytes"].asString()); + if(!value["totalTime"].isNull()) + totalTime_ = std::stol(value["totalTime"].asString()); + if(!value["speed"].isNull()) + speed_ = value["speed"].asString(); + if(!value["params"].isNull()) + params_ = value["params"].asString(); + if(!value["headers"].isNull()) + headers_ = value["headers"].asString(); + +} + +std::string RpcDataUploadResult::getSpeed()const +{ + return speed_; +} + +std::string RpcDataUploadResult::getHeaders()const +{ + return headers_; +} + +long RpcDataUploadResult::getTotalBytes()const +{ + return totalBytes_; +} + +long RpcDataUploadResult::getTotalTime()const +{ + return totalTime_; +} + +std::string RpcDataUploadResult::getParams()const +{ + return params_; +} + +std::string RpcDataUploadResult::getUrl()const +{ + return url_; +} + diff --git a/ft/src/model/FTApiAliasApiRequest.cc b/ft/src/model/RpcDataUploadTestRequest.cc similarity index 55% rename from ft/src/model/FTApiAliasApiRequest.cc rename to ft/src/model/RpcDataUploadTestRequest.cc index 0d36272ad..860c103bd 100644 --- a/ft/src/model/FTApiAliasApiRequest.cc +++ b/ft/src/model/RpcDataUploadTestRequest.cc @@ -1,40 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ft::Model::FTApiAliasApiRequest; - -FTApiAliasApiRequest::FTApiAliasApiRequest() : - RpcServiceRequest("ft", "2018-07-13", "FTApiAliasApi") -{ - setMethod(HttpRequest::Method::Post); -} - -FTApiAliasApiRequest::~FTApiAliasApiRequest() -{} - -std::string FTApiAliasApiRequest::getName()const -{ - return name_; + */ + +#include + +using AlibabaCloud::Ft::Model::RpcDataUploadTestRequest; + +RpcDataUploadTestRequest::RpcDataUploadTestRequest() + : RpcServiceRequest("ft", "2021-01-01", "RpcDataUploadTest") { + setMethod(HttpRequest::Method::Get); } -void FTApiAliasApiRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} +RpcDataUploadTestRequest::~RpcDataUploadTestRequest() {} diff --git a/ft/src/model/RpcDataUploadTestResult.cc b/ft/src/model/RpcDataUploadTestResult.cc new file mode 100644 index 000000000..ece5ee872 --- /dev/null +++ b/ft/src/model/RpcDataUploadTestResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ft; +using namespace AlibabaCloud::Ft::Model; + +RpcDataUploadTestResult::RpcDataUploadTestResult() : + ServiceResult() +{} + +RpcDataUploadTestResult::RpcDataUploadTestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RpcDataUploadTestResult::~RpcDataUploadTestResult() +{} + +void RpcDataUploadTestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ft/src/model/TestFlowStrategy01Request.cc b/ft/src/model/TestFlowStrategy01Request.cc deleted file mode 100644 index 3967904f0..000000000 --- a/ft/src/model/TestFlowStrategy01Request.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::TestFlowStrategy01Request; - -TestFlowStrategy01Request::TestFlowStrategy01Request() : - RpcServiceRequest("ft", "2018-07-13", "TestFlowStrategy01") -{ - setMethod(HttpRequest::Method::Put); -} - -TestFlowStrategy01Request::~TestFlowStrategy01Request() -{} - -std::map TestFlowStrategy01Request::getNames()const -{ - return names_; -} - -void TestFlowStrategy01Request::setNames(const std::map& names) -{ - names_ = names; - setJsonParameters("Names", names); -} - diff --git a/ft/src/model/TestFlowStrategy01Result.cc b/ft/src/model/TestFlowStrategy01Result.cc deleted file mode 100644 index 2830ea7bb..000000000 --- a/ft/src/model/TestFlowStrategy01Result.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -TestFlowStrategy01Result::TestFlowStrategy01Result() : - ServiceResult() -{} - -TestFlowStrategy01Result::TestFlowStrategy01Result(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TestFlowStrategy01Result::~TestFlowStrategy01Result() -{} - -void TestFlowStrategy01Result::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allList = value["List"]["Id"]; - for (const auto &item : allList) - list_.push_back(item.asString()); - auto allNames = value["Names"]["Names"]; - for (const auto &item : allNames) - names_.push_back(item.asString()); - -} - -std::vector TestFlowStrategy01Result::getNames()const -{ - return names_; -} - -std::vector TestFlowStrategy01Result::getList()const -{ - return list_; -} - diff --git a/ft/src/model/TestHttpApiRequest.cc b/ft/src/model/TestHttpApiRequest.cc deleted file mode 100644 index 30f4aa8dd..000000000 --- a/ft/src/model/TestHttpApiRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ft::Model::TestHttpApiRequest; - -TestHttpApiRequest::TestHttpApiRequest() : - RpcServiceRequest("ft", "2018-07-13", "TestHttpApi") -{ - setMethod(HttpRequest::Method::Post); -} - -TestHttpApiRequest::~TestHttpApiRequest() -{} - -std::string TestHttpApiRequest::getStringValue()const -{ - return stringValue_; -} - -void TestHttpApiRequest::setStringValue(const std::string& stringValue) -{ - stringValue_ = stringValue; - setParameter("StringValue", stringValue); -} - -std::string TestHttpApiRequest::getOtherParam()const -{ - return otherParam_; -} - -void TestHttpApiRequest::setOtherParam(const std::string& otherParam) -{ - otherParam_ = otherParam; - setParameter("OtherParam", otherParam); -} - -bool TestHttpApiRequest::getBooleanParam()const -{ - return booleanParam_; -} - -void TestHttpApiRequest::setBooleanParam(bool booleanParam) -{ - booleanParam_ = booleanParam; - setParameter("BooleanParam", booleanParam ? "true" : "false"); -} - -std::string TestHttpApiRequest::getDefaultValue()const -{ - return defaultValue_; -} - -void TestHttpApiRequest::setDefaultValue(const std::string& defaultValue) -{ - defaultValue_ = defaultValue; - setParameter("DefaultValue", defaultValue); -} - diff --git a/ft/src/model/TestHttpApiResult.cc b/ft/src/model/TestHttpApiResult.cc deleted file mode 100644 index d2bdf0fdf..000000000 --- a/ft/src/model/TestHttpApiResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ft; -using namespace AlibabaCloud::Ft::Model; - -TestHttpApiResult::TestHttpApiResult() : - ServiceResult() -{} - -TestHttpApiResult::TestHttpApiResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TestHttpApiResult::~TestHttpApiResult() -{} - -void TestHttpApiResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Params"].isNull()) - params_ = value["Params"].asString(); - if(!value["ServiceRpcSign"].isNull()) - serviceRpcSign_ = value["ServiceRpcSign"].asString(); - -} - -std::string TestHttpApiResult::getServiceRpcSign()const -{ - return serviceRpcSign_; -} - -std::string TestHttpApiResult::getParams()const -{ - return params_; -} -