From f9b117f5a6233143cfe8054d19fa07e5017973c2 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 28 Dec 2020 07:46:18 +0000 Subject: [PATCH] Add some console API operations. --- CHANGELOG | 3 + nlp-automl/CMakeLists.txt | 64 ++ .../nlp-automl/Nlp_automlClient.h | 128 ++++ .../model/AddMTInterveneWordRequest.h | 63 ++ .../model/AddMTInterveneWordResult.h | 55 ++ .../model/AddMtIntervenePackageRequest.h | 72 +++ .../model/AddMtIntervenePackageResult.h | 55 ++ .../BindIntervenePackageAndModelRequest.h | 63 ++ .../BindIntervenePackageAndModelResult.h | 55 ++ .../model/CreateAsyncPredictRequest.h | 3 + .../model/CreateDatasetRecordRequest.h | 54 ++ .../model/CreateDatasetRecordResult.h | 57 ++ .../nlp-automl/model/CreateDatasetRequest.h | 54 ++ .../nlp-automl/model/CreateDatasetResult.h | 57 ++ .../nlp-automl/model/CreateModelRequest.h | 69 +++ .../nlp-automl/model/CreateModelResult.h | 57 ++ .../nlp-automl/model/CreateProjectRequest.h | 57 ++ .../nlp-automl/model/CreateProjectResult.h | 57 ++ .../nlp-automl/model/DeleteModelRequest.h | 54 ++ .../nlp-automl/model/DeleteModelResult.h | 57 ++ .../nlp-automl/model/DeployModelRequest.h | 60 ++ .../nlp-automl/model/DeployModelResult.h | 57 ++ .../nlp-automl/model/GetAsyncPredictRequest.h | 3 + .../nlp-automl/model/GetModelRequest.h | 57 ++ .../nlp-automl/model/GetModelResult.h | 57 ++ .../nlp-automl/model/GetPredictDocRequest.h | 51 ++ .../nlp-automl/model/GetPredictDocResult.h | 55 ++ .../model/GetPredictResultRequest.h | 3 + .../nlp-automl/model/InvokeActionRequest.h | 57 ++ .../nlp-automl/model/InvokeActionResult.h | 55 ++ .../nlp-automl/model/ListDatasetRequest.h | 57 ++ .../nlp-automl/model/ListDatasetResult.h | 57 ++ .../nlp-automl/model/ListModelsRequest.h | 57 ++ .../nlp-automl/model/ListModelsResult.h | 57 ++ .../model/PredictMTModelByDocRequest.h | 63 ++ .../model/PredictMTModelByDocResult.h | 51 ++ .../nlp-automl/model/PredictMTModelRequest.h | 57 ++ .../nlp-automl/model/PredictMTModelResult.h | 55 ++ .../model/RunContactReviewRequest.h | 3 + .../model/RunPreTrainServiceRequest.h | 3 + .../model/RunSmartCallServiceRequest.h | 3 + nlp-automl/src/Nlp-automlClient.cc | 576 ++++++++++++++++++ .../src/model/AddMTInterveneWordRequest.cc | 95 +++ .../src/model/AddMTInterveneWordResult.cc | 65 ++ .../src/model/AddMtIntervenePackageRequest.cc | 128 ++++ .../src/model/AddMtIntervenePackageResult.cc | 65 ++ .../BindIntervenePackageAndModelRequest.cc | 95 +++ .../BindIntervenePackageAndModelResult.cc | 65 ++ .../src/model/CreateAsyncPredictRequest.cc | 11 + .../src/model/CreateDatasetRecordRequest.cc | 62 ++ .../src/model/CreateDatasetRecordResult.cc | 72 +++ nlp-automl/src/model/CreateDatasetRequest.cc | 62 ++ nlp-automl/src/model/CreateDatasetResult.cc | 72 +++ nlp-automl/src/model/CreateModelRequest.cc | 117 ++++ nlp-automl/src/model/CreateModelResult.cc | 72 +++ nlp-automl/src/model/CreateProjectRequest.cc | 73 +++ nlp-automl/src/model/CreateProjectResult.cc | 72 +++ nlp-automl/src/model/DeleteModelRequest.cc | 62 ++ nlp-automl/src/model/DeleteModelResult.cc | 72 +++ nlp-automl/src/model/DeployModelRequest.cc | 84 +++ nlp-automl/src/model/DeployModelResult.cc | 72 +++ .../src/model/GetAsyncPredictRequest.cc | 11 + nlp-automl/src/model/GetModelRequest.cc | 73 +++ nlp-automl/src/model/GetModelResult.cc | 72 +++ nlp-automl/src/model/GetPredictDocRequest.cc | 51 ++ nlp-automl/src/model/GetPredictDocResult.cc | 65 ++ .../src/model/GetPredictResultRequest.cc | 11 + nlp-automl/src/model/InvokeActionRequest.cc | 73 +++ nlp-automl/src/model/InvokeActionResult.cc | 65 ++ nlp-automl/src/model/ListDatasetRequest.cc | 73 +++ nlp-automl/src/model/ListDatasetResult.cc | 72 +++ nlp-automl/src/model/ListModelsRequest.cc | 73 +++ nlp-automl/src/model/ListModelsResult.cc | 72 +++ .../src/model/PredictMTModelByDocRequest.cc | 95 +++ .../src/model/PredictMTModelByDocResult.cc | 51 ++ nlp-automl/src/model/PredictMTModelRequest.cc | 73 +++ nlp-automl/src/model/PredictMTModelResult.cc | 65 ++ .../src/model/RunContactReviewRequest.cc | 11 + .../src/model/RunPreTrainServiceRequest.cc | 11 + .../src/model/RunSmartCallServiceRequest.cc | 11 + 80 files changed, 5072 insertions(+) create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/GetModelRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/GetModelResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocResult.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelRequest.h create mode 100644 nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelResult.h create mode 100644 nlp-automl/src/model/AddMTInterveneWordRequest.cc create mode 100644 nlp-automl/src/model/AddMTInterveneWordResult.cc create mode 100644 nlp-automl/src/model/AddMtIntervenePackageRequest.cc create mode 100644 nlp-automl/src/model/AddMtIntervenePackageResult.cc create mode 100644 nlp-automl/src/model/BindIntervenePackageAndModelRequest.cc create mode 100644 nlp-automl/src/model/BindIntervenePackageAndModelResult.cc create mode 100644 nlp-automl/src/model/CreateDatasetRecordRequest.cc create mode 100644 nlp-automl/src/model/CreateDatasetRecordResult.cc create mode 100644 nlp-automl/src/model/CreateDatasetRequest.cc create mode 100644 nlp-automl/src/model/CreateDatasetResult.cc create mode 100644 nlp-automl/src/model/CreateModelRequest.cc create mode 100644 nlp-automl/src/model/CreateModelResult.cc create mode 100644 nlp-automl/src/model/CreateProjectRequest.cc create mode 100644 nlp-automl/src/model/CreateProjectResult.cc create mode 100644 nlp-automl/src/model/DeleteModelRequest.cc create mode 100644 nlp-automl/src/model/DeleteModelResult.cc create mode 100644 nlp-automl/src/model/DeployModelRequest.cc create mode 100644 nlp-automl/src/model/DeployModelResult.cc create mode 100644 nlp-automl/src/model/GetModelRequest.cc create mode 100644 nlp-automl/src/model/GetModelResult.cc create mode 100644 nlp-automl/src/model/GetPredictDocRequest.cc create mode 100644 nlp-automl/src/model/GetPredictDocResult.cc create mode 100644 nlp-automl/src/model/InvokeActionRequest.cc create mode 100644 nlp-automl/src/model/InvokeActionResult.cc create mode 100644 nlp-automl/src/model/ListDatasetRequest.cc create mode 100644 nlp-automl/src/model/ListDatasetResult.cc create mode 100644 nlp-automl/src/model/ListModelsRequest.cc create mode 100644 nlp-automl/src/model/ListModelsResult.cc create mode 100644 nlp-automl/src/model/PredictMTModelByDocRequest.cc create mode 100644 nlp-automl/src/model/PredictMTModelByDocResult.cc create mode 100644 nlp-automl/src/model/PredictMTModelRequest.cc create mode 100644 nlp-automl/src/model/PredictMTModelResult.cc diff --git a/CHANGELOG b/CHANGELOG index 9ed0f3806..d6be75364 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-12-28 Version: patch +- Add some console API operations. + 2020-12-25 Version: patch - Generated 2016-04-08 for `Emr`. diff --git a/nlp-automl/CMakeLists.txt b/nlp-automl/CMakeLists.txt index bb65d1654..66af8fa5c 100644 --- a/nlp-automl/CMakeLists.txt +++ b/nlp-automl/CMakeLists.txt @@ -21,12 +21,44 @@ set(nlp-automl_public_header include/alibabacloud/nlp-automl/Nlp_automlExport.h ) set(nlp-automl_public_header_model + include/alibabacloud/nlp-automl/model/AddMTInterveneWordRequest.h + include/alibabacloud/nlp-automl/model/AddMTInterveneWordResult.h + include/alibabacloud/nlp-automl/model/AddMtIntervenePackageRequest.h + include/alibabacloud/nlp-automl/model/AddMtIntervenePackageResult.h + include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelRequest.h + include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelResult.h include/alibabacloud/nlp-automl/model/CreateAsyncPredictRequest.h include/alibabacloud/nlp-automl/model/CreateAsyncPredictResult.h + include/alibabacloud/nlp-automl/model/CreateDatasetRequest.h + include/alibabacloud/nlp-automl/model/CreateDatasetResult.h + include/alibabacloud/nlp-automl/model/CreateDatasetRecordRequest.h + include/alibabacloud/nlp-automl/model/CreateDatasetRecordResult.h + include/alibabacloud/nlp-automl/model/CreateModelRequest.h + include/alibabacloud/nlp-automl/model/CreateModelResult.h + include/alibabacloud/nlp-automl/model/CreateProjectRequest.h + include/alibabacloud/nlp-automl/model/CreateProjectResult.h + include/alibabacloud/nlp-automl/model/DeleteModelRequest.h + include/alibabacloud/nlp-automl/model/DeleteModelResult.h + include/alibabacloud/nlp-automl/model/DeployModelRequest.h + include/alibabacloud/nlp-automl/model/DeployModelResult.h include/alibabacloud/nlp-automl/model/GetAsyncPredictRequest.h include/alibabacloud/nlp-automl/model/GetAsyncPredictResult.h + include/alibabacloud/nlp-automl/model/GetModelRequest.h + include/alibabacloud/nlp-automl/model/GetModelResult.h + include/alibabacloud/nlp-automl/model/GetPredictDocRequest.h + include/alibabacloud/nlp-automl/model/GetPredictDocResult.h include/alibabacloud/nlp-automl/model/GetPredictResultRequest.h include/alibabacloud/nlp-automl/model/GetPredictResultResult.h + include/alibabacloud/nlp-automl/model/InvokeActionRequest.h + include/alibabacloud/nlp-automl/model/InvokeActionResult.h + include/alibabacloud/nlp-automl/model/ListDatasetRequest.h + include/alibabacloud/nlp-automl/model/ListDatasetResult.h + include/alibabacloud/nlp-automl/model/ListModelsRequest.h + include/alibabacloud/nlp-automl/model/ListModelsResult.h + include/alibabacloud/nlp-automl/model/PredictMTModelRequest.h + include/alibabacloud/nlp-automl/model/PredictMTModelResult.h + include/alibabacloud/nlp-automl/model/PredictMTModelByDocRequest.h + include/alibabacloud/nlp-automl/model/PredictMTModelByDocResult.h include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h include/alibabacloud/nlp-automl/model/RunContactReviewResult.h include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h @@ -36,12 +68,44 @@ set(nlp-automl_public_header_model set(nlp-automl_src src/Nlp-automlClient.cc + src/model/AddMTInterveneWordRequest.cc + src/model/AddMTInterveneWordResult.cc + src/model/AddMtIntervenePackageRequest.cc + src/model/AddMtIntervenePackageResult.cc + src/model/BindIntervenePackageAndModelRequest.cc + src/model/BindIntervenePackageAndModelResult.cc src/model/CreateAsyncPredictRequest.cc src/model/CreateAsyncPredictResult.cc + src/model/CreateDatasetRequest.cc + src/model/CreateDatasetResult.cc + src/model/CreateDatasetRecordRequest.cc + src/model/CreateDatasetRecordResult.cc + src/model/CreateModelRequest.cc + src/model/CreateModelResult.cc + src/model/CreateProjectRequest.cc + src/model/CreateProjectResult.cc + src/model/DeleteModelRequest.cc + src/model/DeleteModelResult.cc + src/model/DeployModelRequest.cc + src/model/DeployModelResult.cc src/model/GetAsyncPredictRequest.cc src/model/GetAsyncPredictResult.cc + src/model/GetModelRequest.cc + src/model/GetModelResult.cc + src/model/GetPredictDocRequest.cc + src/model/GetPredictDocResult.cc src/model/GetPredictResultRequest.cc src/model/GetPredictResultResult.cc + src/model/InvokeActionRequest.cc + src/model/InvokeActionResult.cc + src/model/ListDatasetRequest.cc + src/model/ListDatasetResult.cc + src/model/ListModelsRequest.cc + src/model/ListModelsResult.cc + src/model/PredictMTModelRequest.cc + src/model/PredictMTModelResult.cc + src/model/PredictMTModelByDocRequest.cc + src/model/PredictMTModelByDocResult.cc src/model/RunContactReviewRequest.cc src/model/RunContactReviewResult.cc src/model/RunPreTrainServiceRequest.cc diff --git a/nlp-automl/include/alibabacloud/nlp-automl/Nlp_automlClient.h b/nlp-automl/include/alibabacloud/nlp-automl/Nlp_automlClient.h index 2cbaee772..feefdcb05 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/Nlp_automlClient.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/Nlp_automlClient.h @@ -22,12 +22,44 @@ #include #include #include "Nlp_automlExport.h" +#include "model/AddMTInterveneWordRequest.h" +#include "model/AddMTInterveneWordResult.h" +#include "model/AddMtIntervenePackageRequest.h" +#include "model/AddMtIntervenePackageResult.h" +#include "model/BindIntervenePackageAndModelRequest.h" +#include "model/BindIntervenePackageAndModelResult.h" #include "model/CreateAsyncPredictRequest.h" #include "model/CreateAsyncPredictResult.h" +#include "model/CreateDatasetRequest.h" +#include "model/CreateDatasetResult.h" +#include "model/CreateDatasetRecordRequest.h" +#include "model/CreateDatasetRecordResult.h" +#include "model/CreateModelRequest.h" +#include "model/CreateModelResult.h" +#include "model/CreateProjectRequest.h" +#include "model/CreateProjectResult.h" +#include "model/DeleteModelRequest.h" +#include "model/DeleteModelResult.h" +#include "model/DeployModelRequest.h" +#include "model/DeployModelResult.h" #include "model/GetAsyncPredictRequest.h" #include "model/GetAsyncPredictResult.h" +#include "model/GetModelRequest.h" +#include "model/GetModelResult.h" +#include "model/GetPredictDocRequest.h" +#include "model/GetPredictDocResult.h" #include "model/GetPredictResultRequest.h" #include "model/GetPredictResultResult.h" +#include "model/InvokeActionRequest.h" +#include "model/InvokeActionResult.h" +#include "model/ListDatasetRequest.h" +#include "model/ListDatasetResult.h" +#include "model/ListModelsRequest.h" +#include "model/ListModelsResult.h" +#include "model/PredictMTModelRequest.h" +#include "model/PredictMTModelResult.h" +#include "model/PredictMTModelByDocRequest.h" +#include "model/PredictMTModelByDocResult.h" #include "model/RunContactReviewRequest.h" #include "model/RunContactReviewResult.h" #include "model/RunPreTrainServiceRequest.h" @@ -43,15 +75,63 @@ namespace AlibabaCloud class ALIBABACLOUD_NLP_AUTOML_EXPORT Nlp_automlClient : public RpcServiceClient { public: + typedef Outcome AddMTInterveneWordOutcome; + typedef std::future AddMTInterveneWordOutcomeCallable; + typedef std::function&)> AddMTInterveneWordAsyncHandler; + typedef Outcome AddMtIntervenePackageOutcome; + typedef std::future AddMtIntervenePackageOutcomeCallable; + typedef std::function&)> AddMtIntervenePackageAsyncHandler; + typedef Outcome BindIntervenePackageAndModelOutcome; + typedef std::future BindIntervenePackageAndModelOutcomeCallable; + typedef std::function&)> BindIntervenePackageAndModelAsyncHandler; typedef Outcome CreateAsyncPredictOutcome; typedef std::future CreateAsyncPredictOutcomeCallable; typedef std::function&)> CreateAsyncPredictAsyncHandler; + typedef Outcome CreateDatasetOutcome; + typedef std::future CreateDatasetOutcomeCallable; + typedef std::function&)> CreateDatasetAsyncHandler; + typedef Outcome CreateDatasetRecordOutcome; + typedef std::future CreateDatasetRecordOutcomeCallable; + typedef std::function&)> CreateDatasetRecordAsyncHandler; + typedef Outcome CreateModelOutcome; + typedef std::future CreateModelOutcomeCallable; + typedef std::function&)> CreateModelAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome DeleteModelOutcome; + typedef std::future DeleteModelOutcomeCallable; + typedef std::function&)> DeleteModelAsyncHandler; + typedef Outcome DeployModelOutcome; + typedef std::future DeployModelOutcomeCallable; + typedef std::function&)> DeployModelAsyncHandler; typedef Outcome GetAsyncPredictOutcome; typedef std::future GetAsyncPredictOutcomeCallable; typedef std::function&)> GetAsyncPredictAsyncHandler; + typedef Outcome GetModelOutcome; + typedef std::future GetModelOutcomeCallable; + typedef std::function&)> GetModelAsyncHandler; + typedef Outcome GetPredictDocOutcome; + typedef std::future GetPredictDocOutcomeCallable; + typedef std::function&)> GetPredictDocAsyncHandler; typedef Outcome GetPredictResultOutcome; typedef std::future GetPredictResultOutcomeCallable; typedef std::function&)> GetPredictResultAsyncHandler; + typedef Outcome InvokeActionOutcome; + typedef std::future InvokeActionOutcomeCallable; + typedef std::function&)> InvokeActionAsyncHandler; + typedef Outcome ListDatasetOutcome; + typedef std::future ListDatasetOutcomeCallable; + typedef std::function&)> ListDatasetAsyncHandler; + typedef Outcome ListModelsOutcome; + typedef std::future ListModelsOutcomeCallable; + typedef std::function&)> ListModelsAsyncHandler; + typedef Outcome PredictMTModelOutcome; + typedef std::future PredictMTModelOutcomeCallable; + typedef std::function&)> PredictMTModelAsyncHandler; + typedef Outcome PredictMTModelByDocOutcome; + typedef std::future PredictMTModelByDocOutcomeCallable; + typedef std::function&)> PredictMTModelByDocAsyncHandler; typedef Outcome RunContactReviewOutcome; typedef std::future RunContactReviewOutcomeCallable; typedef std::function&)> RunContactReviewAsyncHandler; @@ -66,15 +146,63 @@ namespace AlibabaCloud Nlp_automlClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); Nlp_automlClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~Nlp_automlClient(); + AddMTInterveneWordOutcome addMTInterveneWord(const Model::AddMTInterveneWordRequest &request)const; + void addMTInterveneWordAsync(const Model::AddMTInterveneWordRequest& request, const AddMTInterveneWordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddMTInterveneWordOutcomeCallable addMTInterveneWordCallable(const Model::AddMTInterveneWordRequest& request) const; + AddMtIntervenePackageOutcome addMtIntervenePackage(const Model::AddMtIntervenePackageRequest &request)const; + void addMtIntervenePackageAsync(const Model::AddMtIntervenePackageRequest& request, const AddMtIntervenePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddMtIntervenePackageOutcomeCallable addMtIntervenePackageCallable(const Model::AddMtIntervenePackageRequest& request) const; + BindIntervenePackageAndModelOutcome bindIntervenePackageAndModel(const Model::BindIntervenePackageAndModelRequest &request)const; + void bindIntervenePackageAndModelAsync(const Model::BindIntervenePackageAndModelRequest& request, const BindIntervenePackageAndModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindIntervenePackageAndModelOutcomeCallable bindIntervenePackageAndModelCallable(const Model::BindIntervenePackageAndModelRequest& request) const; CreateAsyncPredictOutcome createAsyncPredict(const Model::CreateAsyncPredictRequest &request)const; void createAsyncPredictAsync(const Model::CreateAsyncPredictRequest& request, const CreateAsyncPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAsyncPredictOutcomeCallable createAsyncPredictCallable(const Model::CreateAsyncPredictRequest& request) const; + CreateDatasetOutcome createDataset(const Model::CreateDatasetRequest &request)const; + void createDatasetAsync(const Model::CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatasetOutcomeCallable createDatasetCallable(const Model::CreateDatasetRequest& request) const; + CreateDatasetRecordOutcome createDatasetRecord(const Model::CreateDatasetRecordRequest &request)const; + void createDatasetRecordAsync(const Model::CreateDatasetRecordRequest& request, const CreateDatasetRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatasetRecordOutcomeCallable createDatasetRecordCallable(const Model::CreateDatasetRecordRequest& request) const; + CreateModelOutcome createModel(const Model::CreateModelRequest &request)const; + void createModelAsync(const Model::CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateModelOutcomeCallable createModelCallable(const Model::CreateModelRequest& request) const; + CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; + void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; + DeleteModelOutcome deleteModel(const Model::DeleteModelRequest &request)const; + void deleteModelAsync(const Model::DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteModelOutcomeCallable deleteModelCallable(const Model::DeleteModelRequest& request) const; + DeployModelOutcome deployModel(const Model::DeployModelRequest &request)const; + void deployModelAsync(const Model::DeployModelRequest& request, const DeployModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployModelOutcomeCallable deployModelCallable(const Model::DeployModelRequest& request) const; GetAsyncPredictOutcome getAsyncPredict(const Model::GetAsyncPredictRequest &request)const; void getAsyncPredictAsync(const Model::GetAsyncPredictRequest& request, const GetAsyncPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAsyncPredictOutcomeCallable getAsyncPredictCallable(const Model::GetAsyncPredictRequest& request) const; + GetModelOutcome getModel(const Model::GetModelRequest &request)const; + void getModelAsync(const Model::GetModelRequest& request, const GetModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetModelOutcomeCallable getModelCallable(const Model::GetModelRequest& request) const; + GetPredictDocOutcome getPredictDoc(const Model::GetPredictDocRequest &request)const; + void getPredictDocAsync(const Model::GetPredictDocRequest& request, const GetPredictDocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPredictDocOutcomeCallable getPredictDocCallable(const Model::GetPredictDocRequest& request) const; GetPredictResultOutcome getPredictResult(const Model::GetPredictResultRequest &request)const; void getPredictResultAsync(const Model::GetPredictResultRequest& request, const GetPredictResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPredictResultOutcomeCallable getPredictResultCallable(const Model::GetPredictResultRequest& request) const; + InvokeActionOutcome invokeAction(const Model::InvokeActionRequest &request)const; + void invokeActionAsync(const Model::InvokeActionRequest& request, const InvokeActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InvokeActionOutcomeCallable invokeActionCallable(const Model::InvokeActionRequest& request) const; + ListDatasetOutcome listDataset(const Model::ListDatasetRequest &request)const; + void listDatasetAsync(const Model::ListDatasetRequest& request, const ListDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDatasetOutcomeCallable listDatasetCallable(const Model::ListDatasetRequest& request) const; + ListModelsOutcome listModels(const Model::ListModelsRequest &request)const; + void listModelsAsync(const Model::ListModelsRequest& request, const ListModelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListModelsOutcomeCallable listModelsCallable(const Model::ListModelsRequest& request) const; + PredictMTModelOutcome predictMTModel(const Model::PredictMTModelRequest &request)const; + void predictMTModelAsync(const Model::PredictMTModelRequest& request, const PredictMTModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PredictMTModelOutcomeCallable predictMTModelCallable(const Model::PredictMTModelRequest& request) const; + PredictMTModelByDocOutcome predictMTModelByDoc(const Model::PredictMTModelByDocRequest &request)const; + void predictMTModelByDocAsync(const Model::PredictMTModelByDocRequest& request, const PredictMTModelByDocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PredictMTModelByDocOutcomeCallable predictMTModelByDocCallable(const Model::PredictMTModelByDocRequest& request) const; RunContactReviewOutcome runContactReview(const Model::RunContactReviewRequest &request)const; void runContactReviewAsync(const Model::RunContactReviewRequest& request, const RunContactReviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RunContactReviewOutcomeCallable runContactReviewCallable(const Model::RunContactReviewRequest& request) const; diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordRequest.h new file mode 100644 index 000000000..6ea5acf6f --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMTInterveneWordRequest : public RpcServiceRequest + { + + public: + AddMTInterveneWordRequest(); + ~AddMTInterveneWordRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getSourceText()const; + void setSourceText(const std::string& sourceText); + std::string getPackageId()const; + void setPackageId(const std::string& packageId); + std::string getTargetText()const; + void setTargetText(const std::string& targetText); + int getTenantId()const; + void setTenantId(int tenantId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + + private: + std::string product_; + std::string sourceText_; + std::string packageId_; + std::string targetText_; + int tenantId_; + std::string projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordResult.h new file mode 100644 index 000000000..5fc9d8407 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMTInterveneWordResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMTInterveneWordResult : public ServiceResult + { + public: + + + AddMTInterveneWordResult(); + explicit AddMTInterveneWordResult(const std::string &payload); + ~AddMTInterveneWordResult(); + std::string getWordId()const; + int getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string wordId_; + int message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageRequest.h new file mode 100644 index 000000000..17bec6b4b --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMtIntervenePackageRequest : public RpcServiceRequest + { + + public: + AddMtIntervenePackageRequest(); + ~AddMtIntervenePackageRequest(); + + std::string getSourceLanguage()const; + void setSourceLanguage(const std::string& sourceLanguage); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getPackageName()const; + void setPackageName(const std::string& packageName); + int getTenantId()const; + void setTenantId(int tenantId); + std::string getProjectType()const; + void setProjectType(const std::string& projectType); + std::string getSourceType()const; + void setSourceType(const std::string& sourceType); + std::string getTargetLanguage()const; + void setTargetLanguage(const std::string& targetLanguage); + std::string getCategory()const; + void setCategory(const std::string& category); + int getProjectId()const; + void setProjectId(int projectId); + + private: + std::string sourceLanguage_; + std::string product_; + std::string packageName_; + int tenantId_; + std::string projectType_; + std::string sourceType_; + std::string targetLanguage_; + std::string category_; + int projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageResult.h new file mode 100644 index 000000000..0738474b8 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/AddMtIntervenePackageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGERESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMtIntervenePackageResult : public ServiceResult + { + public: + + + AddMtIntervenePackageResult(); + explicit AddMtIntervenePackageResult(const std::string &payload); + ~AddMtIntervenePackageResult(); + int getMessage()const; + std::string getPackageId()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int message_; + std::string packageId_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGERESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelRequest.h new file mode 100644 index 000000000..8fcb7bbc8 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT BindIntervenePackageAndModelRequest : public RpcServiceRequest + { + + public: + BindIntervenePackageAndModelRequest(); + ~BindIntervenePackageAndModelRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + long getModelId()const; + void setModelId(long modelId); + long getPackageId()const; + void setPackageId(long packageId); + long getTenantId()const; + void setTenantId(long tenantId); + long getProjectId()const; + void setProjectId(long projectId); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + + private: + std::string product_; + long modelId_; + long packageId_; + long tenantId_; + long projectId_; + std::string modelVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelResult.h new file mode 100644 index 000000000..5b9fdc787 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT BindIntervenePackageAndModelResult : public ServiceResult + { + public: + + + BindIntervenePackageAndModelResult(); + explicit BindIntervenePackageAndModelResult(const std::string &payload); + ~BindIntervenePackageAndModelResult(); + int getMessage()const; + int getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int message_; + int code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateAsyncPredictRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateAsyncPredictRequest.h index d3899563c..922f3016e 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateAsyncPredictRequest.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateAsyncPredictRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setContent(const std::string& content); std::string getFileContent()const; void setFileContent(const std::string& fileContent); + std::string getProduct()const; + void setProduct(const std::string& product); int getModelId()const; void setModelId(int modelId); std::string getFileUrl()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud std::string fetchContent_; std::string content_; std::string fileContent_; + std::string product_; int modelId_; std::string fileUrl_; std::string modelVersion_; diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordRequest.h new file mode 100644 index 000000000..169554baf --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetRecordRequest : public RpcServiceRequest + { + + public: + CreateDatasetRecordRequest(); + ~CreateDatasetRecordRequest(); + + std::string getDatasetRecord()const; + void setDatasetRecord(const std::string& datasetRecord); + long getDatasetId()const; + void setDatasetId(long datasetId); + long getProjectId()const; + void setProjectId(long projectId); + + private: + std::string datasetRecord_; + long datasetId_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordResult.h new file mode 100644 index 000000000..0ac47508f --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRecordResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetRecordResult : public ServiceResult + { + public: + + + CreateDatasetRecordResult(); + explicit CreateDatasetRecordResult(const std::string &payload); + ~CreateDatasetRecordResult(); + std::string getMessage()const; + std::string getDatasetRecordId()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string datasetRecordId_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRequest.h new file mode 100644 index 000000000..d7c32b12e --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetRequest : public RpcServiceRequest + { + + public: + CreateDatasetRequest(); + ~CreateDatasetRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getDatasetName()const; + void setDatasetName(const std::string& datasetName); + long getProjectId()const; + void setProjectId(long projectId); + + private: + std::string product_; + std::string datasetName_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetResult.h new file mode 100644 index 000000000..fd668d07e --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateDatasetResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetResult : public ServiceResult + { + public: + + + CreateDatasetResult(); + explicit CreateDatasetResult(const std::string &payload); + ~CreateDatasetResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + std::string getDatasetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + std::string datasetId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelRequest.h new file mode 100644 index 000000000..01bc64471 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateModelRequest : public RpcServiceRequest + { + + public: + CreateModelRequest(); + ~CreateModelRequest(); + + std::string getIsIncrementalTrain()const; + void setIsIncrementalTrain(const std::string& isIncrementalTrain); + std::string getModelName()const; + void setModelName(const std::string& modelName); + std::map getDatasetIdList()const; + void setDatasetIdList(const std::map& datasetIdList); + std::map getTestDatasetIdList()const; + void setTestDatasetIdList(const std::map& testDatasetIdList); + std::string getModelType()const; + void setModelType(const std::string& modelType); + long getProjectId()const; + void setProjectId(long projectId); + std::string getProduct()const; + void setProduct(const std::string& product); + long getModelId()const; + void setModelId(long modelId); + + private: + std::string isIncrementalTrain_; + std::string modelName_; + std::map datasetIdList_; + std::map testDatasetIdList_; + std::string modelType_; + long projectId_; + std::string product_; + long modelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelResult.h new file mode 100644 index 000000000..040669707 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateModelResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateModelResult : public ServiceResult + { + public: + + + CreateModelResult(); + explicit CreateModelResult(const std::string &payload); + ~CreateModelResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectRequest.h new file mode 100644 index 000000000..09d3e81d6 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateProjectRequest : public RpcServiceRequest + { + + public: + CreateProjectRequest(); + ~CreateProjectRequest(); + + std::string getProjectName()const; + void setProjectName(const std::string& projectName); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getProjectDescription()const; + void setProjectDescription(const std::string& projectDescription); + std::string getProjectType()const; + void setProjectType(const std::string& projectType); + + private: + std::string projectName_; + std::string product_; + std::string projectDescription_; + std::string projectType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectResult.h new file mode 100644 index 000000000..e697efea0 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/CreateProjectResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateProjectResult : public ServiceResult + { + public: + + + CreateProjectResult(); + explicit CreateProjectResult(const std::string &payload); + ~CreateProjectResult(); + std::string getMessage()const; + std::string getProjectId()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string projectId_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelRequest.h new file mode 100644 index 000000000..2260fb463 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT DeleteModelRequest : public RpcServiceRequest + { + + public: + DeleteModelRequest(); + ~DeleteModelRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + long getModelId()const; + void setModelId(long modelId); + long getProjectId()const; + void setProjectId(long projectId); + + private: + std::string product_; + long modelId_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelResult.h new file mode 100644 index 000000000..41cd9cc9f --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/DeleteModelResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT DeleteModelResult : public ServiceResult + { + public: + + + DeleteModelResult(); + explicit DeleteModelResult(const std::string &payload); + ~DeleteModelResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelRequest.h new file mode 100644 index 000000000..e8261058c --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT DeployModelRequest : public RpcServiceRequest + { + + public: + DeployModelRequest(); + ~DeployModelRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + long getModelId()const; + void setModelId(long modelId); + std::string getOptType()const; + void setOptType(const std::string& optType); + long getProjectId()const; + void setProjectId(long projectId); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + + private: + std::string product_; + long modelId_; + std::string optType_; + long projectId_; + std::string modelVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelResult.h new file mode 100644 index 000000000..0e40808e4 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/DeployModelResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT DeployModelResult : public ServiceResult + { + public: + + + DeployModelResult(); + explicit DeployModelResult(const std::string &payload); + ~DeployModelResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/GetAsyncPredictRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/GetAsyncPredictRequest.h index 26b0c595a..28154fa0d 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/model/GetAsyncPredictRequest.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/GetAsyncPredictRequest.h @@ -35,10 +35,13 @@ namespace AlibabaCloud GetAsyncPredictRequest(); ~GetAsyncPredictRequest(); + std::string getProduct()const; + void setProduct(const std::string& product); int getAsyncPredictId()const; void setAsyncPredictId(int asyncPredictId); private: + std::string product_; int asyncPredictId_; }; diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/GetModelRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/GetModelRequest.h new file mode 100644 index 000000000..120855875 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/GetModelRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT GetModelRequest : public RpcServiceRequest + { + + public: + GetModelRequest(); + ~GetModelRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + long getModelId()const; + void setModelId(long modelId); + long getProjectId()const; + void setProjectId(long projectId); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + + private: + std::string product_; + long modelId_; + long projectId_; + std::string modelVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/GetModelResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/GetModelResult.h new file mode 100644 index 000000000..0a620947b --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/GetModelResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT GetModelResult : public ServiceResult + { + public: + + + GetModelResult(); + explicit GetModelResult(const std::string &payload); + ~GetModelResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocRequest.h new file mode 100644 index 000000000..4fee5f046 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocRequest.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_NLP_AUTOML_MODEL_GETPREDICTDOCREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT GetPredictDocRequest : public RpcServiceRequest + { + + public: + GetPredictDocRequest(); + ~GetPredictDocRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + long getDocId()const; + void setDocId(long docId); + + private: + std::string product_; + long docId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocResult.h new file mode 100644 index 000000000..d3d9d9d3e --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictDocResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT GetPredictDocResult : public ServiceResult + { + public: + + + GetPredictDocResult(); + explicit GetPredictDocResult(const std::string &payload); + ~GetPredictDocResult(); + int getStatus()const; + std::string getXLIFFInfo()const; + std::string getResultContent()const; + + protected: + void parse(const std::string &payload); + private: + int status_; + std::string xLIFFInfo_; + std::string resultContent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictResultRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictResultRequest.h index 02bc57a01..9e7dea19d 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictResultRequest.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/GetPredictResultRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud int getTopK()const; void setTopK(int topK); + std::string getProduct()const; + void setProduct(const std::string& product); int getModelId()const; void setModelId(int modelId); std::string getDetailTag()const; @@ -48,6 +50,7 @@ namespace AlibabaCloud private: int topK_; + std::string product_; int modelId_; std::string detailTag_; std::string content_; diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionRequest.h new file mode 100644 index 000000000..29c1e7b4c --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT InvokeActionRequest : public RpcServiceRequest + { + + public: + InvokeActionRequest(); + ~InvokeActionRequest(); + + std::string getInvokeProduct()const; + void setInvokeProduct(const std::string& invokeProduct); + std::string getInvokeAction()const; + void setInvokeAction(const std::string& invokeAction); + std::string getInvokeParams()const; + void setInvokeParams(const std::string& invokeParams); + std::string getInvokeRegion()const; + void setInvokeRegion(const std::string& invokeRegion); + + private: + std::string invokeProduct_; + std::string invokeAction_; + std::string invokeParams_; + std::string invokeRegion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionResult.h new file mode 100644 index 000000000..f0d47a249 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/InvokeActionResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT InvokeActionResult : public ServiceResult + { + public: + + + InvokeActionResult(); + explicit InvokeActionResult(const std::string &payload); + ~InvokeActionResult(); + int getMessage()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int message_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetRequest.h new file mode 100644 index 000000000..6035a8d8f --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_LISTDATASETREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_LISTDATASETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT ListDatasetRequest : public RpcServiceRequest + { + + public: + ListDatasetRequest(); + ~ListDatasetRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + long getProjectId()const; + void setProjectId(long projectId); + + private: + std::string product_; + int pageNumber_; + int pageSize_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_LISTDATASETREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetResult.h new file mode 100644 index 000000000..a0a9df326 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/ListDatasetResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_LISTDATASETRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_LISTDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT ListDatasetResult : public ServiceResult + { + public: + + + ListDatasetResult(); + explicit ListDatasetResult(const std::string &payload); + ~ListDatasetResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_LISTDATASETRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsRequest.h new file mode 100644 index 000000000..79e59ff98 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_LISTMODELSREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_LISTMODELSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT ListModelsRequest : public RpcServiceRequest + { + + public: + ListModelsRequest(); + ~ListModelsRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + long getProjectId()const; + void setProjectId(long projectId); + + private: + std::string product_; + int pageNumber_; + int pageSize_; + long projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_LISTMODELSREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsResult.h new file mode 100644 index 000000000..e8016c5b4 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/ListModelsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_LISTMODELSRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_LISTMODELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT ListModelsResult : public ServiceResult + { + public: + + + ListModelsResult(); + explicit ListModelsResult(const std::string &payload); + ~ListModelsResult(); + std::string getMessage()const; + std::string getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_LISTMODELSRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocRequest.h new file mode 100644 index 000000000..5035435a2 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELBYDOCREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELBYDOCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT PredictMTModelByDocRequest : public RpcServiceRequest + { + + public: + PredictMTModelByDocRequest(); + ~PredictMTModelByDocRequest(); + + std::string getFileType()const; + void setFileType(const std::string& fileType); + std::string getProduct()const; + void setProduct(const std::string& product); + int getModelId()const; + void setModelId(int modelId); + std::string getFileContent()const; + void setFileContent(const std::string& fileContent); + bool getNeedXLIFF()const; + void setNeedXLIFF(bool needXLIFF); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + + private: + std::string fileType_; + std::string product_; + int modelId_; + std::string fileContent_; + bool needXLIFF_; + std::string modelVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELBYDOCREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocResult.h new file mode 100644 index 000000000..8076ef325 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelByDocResult.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_NLP_AUTOML_MODEL_PREDICTMTMODELBYDOCRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELBYDOCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT PredictMTModelByDocResult : public ServiceResult + { + public: + + + PredictMTModelByDocResult(); + explicit PredictMTModelByDocResult(const std::string &payload); + ~PredictMTModelByDocResult(); + std::string getDocId()const; + + protected: + void parse(const std::string &payload); + private: + std::string docId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELBYDOCRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelRequest.h new file mode 100644 index 000000000..b7fd1f136 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELREQUEST_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT PredictMTModelRequest : public RpcServiceRequest + { + + public: + PredictMTModelRequest(); + ~PredictMTModelRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getContent()const; + void setContent(const std::string& content); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + + private: + std::string product_; + std::string modelId_; + std::string content_; + std::string modelVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELREQUEST_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelResult.h b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelResult.h new file mode 100644 index 000000000..6890bf875 --- /dev/null +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/PredictMTModelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELRESULT_H_ +#define ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlp_automl + { + namespace Model + { + class ALIBABACLOUD_NLP_AUTOML_EXPORT PredictMTModelResult : public ServiceResult + { + public: + + + PredictMTModelResult(); + explicit PredictMTModelResult(const std::string &payload); + ~PredictMTModelResult(); + int getMessage()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int message_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_PREDICTMTMODELRESULT_H_ \ No newline at end of file diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h index afd055fe4..af5f91e67 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h @@ -35,12 +35,15 @@ namespace AlibabaCloud RunContactReviewRequest(); ~RunContactReviewRequest(); + std::string getProduct()const; + void setProduct(const std::string& product); std::string getContactScene()const; void setContactScene(const std::string& contactScene); std::string getContactPath()const; void setContactPath(const std::string& contactPath); private: + std::string product_; std::string contactScene_; std::string contactPath_; diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h index 120c98306..18887e041 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud RunPreTrainServiceRequest(); ~RunPreTrainServiceRequest(); + std::string getProduct()const; + void setProduct(const std::string& product); std::string getPredictContent()const; void setPredictContent(const std::string& predictContent); std::string getServiceVersion()const; @@ -43,6 +45,7 @@ namespace AlibabaCloud void setServiceName(const std::string& serviceName); private: + std::string product_; std::string predictContent_; std::string serviceVersion_; std::string serviceName_; diff --git a/nlp-automl/include/alibabacloud/nlp-automl/model/RunSmartCallServiceRequest.h b/nlp-automl/include/alibabacloud/nlp-automl/model/RunSmartCallServiceRequest.h index b03ed1a3e..40dd0251f 100644 --- a/nlp-automl/include/alibabacloud/nlp-automl/model/RunSmartCallServiceRequest.h +++ b/nlp-automl/include/alibabacloud/nlp-automl/model/RunSmartCallServiceRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud RunSmartCallServiceRequest(); ~RunSmartCallServiceRequest(); + std::string getProduct()const; + void setProduct(const std::string& product); std::string getSessionId()const; void setSessionId(const std::string& sessionId); long getRobotId()const; @@ -45,6 +47,7 @@ namespace AlibabaCloud void setServiceName(const std::string& serviceName); private: + std::string product_; std::string sessionId_; long robotId_; std::string paramContent_; diff --git a/nlp-automl/src/Nlp-automlClient.cc b/nlp-automl/src/Nlp-automlClient.cc index 7c190653a..87810ce9a 100644 --- a/nlp-automl/src/Nlp-automlClient.cc +++ b/nlp-automl/src/Nlp-automlClient.cc @@ -51,6 +51,114 @@ Nlp_automlClient::Nlp_automlClient(const std::string & accessKeyId, const std::s Nlp_automlClient::~Nlp_automlClient() {} +Nlp_automlClient::AddMTInterveneWordOutcome Nlp_automlClient::addMTInterveneWord(const AddMTInterveneWordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddMTInterveneWordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddMTInterveneWordOutcome(AddMTInterveneWordResult(outcome.result())); + else + return AddMTInterveneWordOutcome(outcome.error()); +} + +void Nlp_automlClient::addMTInterveneWordAsync(const AddMTInterveneWordRequest& request, const AddMTInterveneWordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addMTInterveneWord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::AddMTInterveneWordOutcomeCallable Nlp_automlClient::addMTInterveneWordCallable(const AddMTInterveneWordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addMTInterveneWord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::AddMtIntervenePackageOutcome Nlp_automlClient::addMtIntervenePackage(const AddMtIntervenePackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddMtIntervenePackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddMtIntervenePackageOutcome(AddMtIntervenePackageResult(outcome.result())); + else + return AddMtIntervenePackageOutcome(outcome.error()); +} + +void Nlp_automlClient::addMtIntervenePackageAsync(const AddMtIntervenePackageRequest& request, const AddMtIntervenePackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addMtIntervenePackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::AddMtIntervenePackageOutcomeCallable Nlp_automlClient::addMtIntervenePackageCallable(const AddMtIntervenePackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addMtIntervenePackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::BindIntervenePackageAndModelOutcome Nlp_automlClient::bindIntervenePackageAndModel(const BindIntervenePackageAndModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindIntervenePackageAndModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindIntervenePackageAndModelOutcome(BindIntervenePackageAndModelResult(outcome.result())); + else + return BindIntervenePackageAndModelOutcome(outcome.error()); +} + +void Nlp_automlClient::bindIntervenePackageAndModelAsync(const BindIntervenePackageAndModelRequest& request, const BindIntervenePackageAndModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindIntervenePackageAndModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::BindIntervenePackageAndModelOutcomeCallable Nlp_automlClient::bindIntervenePackageAndModelCallable(const BindIntervenePackageAndModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindIntervenePackageAndModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Nlp_automlClient::CreateAsyncPredictOutcome Nlp_automlClient::createAsyncPredict(const CreateAsyncPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +195,222 @@ Nlp_automlClient::CreateAsyncPredictOutcomeCallable Nlp_automlClient::createAsyn return task->get_future(); } +Nlp_automlClient::CreateDatasetOutcome Nlp_automlClient::createDataset(const CreateDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatasetOutcome(CreateDatasetResult(outcome.result())); + else + return CreateDatasetOutcome(outcome.error()); +} + +void Nlp_automlClient::createDatasetAsync(const CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::CreateDatasetOutcomeCallable Nlp_automlClient::createDatasetCallable(const CreateDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::CreateDatasetRecordOutcome Nlp_automlClient::createDatasetRecord(const CreateDatasetRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatasetRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatasetRecordOutcome(CreateDatasetRecordResult(outcome.result())); + else + return CreateDatasetRecordOutcome(outcome.error()); +} + +void Nlp_automlClient::createDatasetRecordAsync(const CreateDatasetRecordRequest& request, const CreateDatasetRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDatasetRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::CreateDatasetRecordOutcomeCallable Nlp_automlClient::createDatasetRecordCallable(const CreateDatasetRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDatasetRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::CreateModelOutcome Nlp_automlClient::createModel(const CreateModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateModelOutcome(CreateModelResult(outcome.result())); + else + return CreateModelOutcome(outcome.error()); +} + +void Nlp_automlClient::createModelAsync(const CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::CreateModelOutcomeCallable Nlp_automlClient::createModelCallable(const CreateModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::CreateProjectOutcome Nlp_automlClient::createProject(const CreateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectOutcome(CreateProjectResult(outcome.result())); + else + return CreateProjectOutcome(outcome.error()); +} + +void Nlp_automlClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::CreateProjectOutcomeCallable Nlp_automlClient::createProjectCallable(const CreateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::DeleteModelOutcome Nlp_automlClient::deleteModel(const DeleteModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteModelOutcome(DeleteModelResult(outcome.result())); + else + return DeleteModelOutcome(outcome.error()); +} + +void Nlp_automlClient::deleteModelAsync(const DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::DeleteModelOutcomeCallable Nlp_automlClient::deleteModelCallable(const DeleteModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::DeployModelOutcome Nlp_automlClient::deployModel(const DeployModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployModelOutcome(DeployModelResult(outcome.result())); + else + return DeployModelOutcome(outcome.error()); +} + +void Nlp_automlClient::deployModelAsync(const DeployModelRequest& request, const DeployModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::DeployModelOutcomeCallable Nlp_automlClient::deployModelCallable(const DeployModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Nlp_automlClient::GetAsyncPredictOutcome Nlp_automlClient::getAsyncPredict(const GetAsyncPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +447,78 @@ Nlp_automlClient::GetAsyncPredictOutcomeCallable Nlp_automlClient::getAsyncPredi return task->get_future(); } +Nlp_automlClient::GetModelOutcome Nlp_automlClient::getModel(const GetModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetModelOutcome(GetModelResult(outcome.result())); + else + return GetModelOutcome(outcome.error()); +} + +void Nlp_automlClient::getModelAsync(const GetModelRequest& request, const GetModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::GetModelOutcomeCallable Nlp_automlClient::getModelCallable(const GetModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::GetPredictDocOutcome Nlp_automlClient::getPredictDoc(const GetPredictDocRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPredictDocOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPredictDocOutcome(GetPredictDocResult(outcome.result())); + else + return GetPredictDocOutcome(outcome.error()); +} + +void Nlp_automlClient::getPredictDocAsync(const GetPredictDocRequest& request, const GetPredictDocAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPredictDoc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::GetPredictDocOutcomeCallable Nlp_automlClient::getPredictDocCallable(const GetPredictDocRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPredictDoc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Nlp_automlClient::GetPredictResultOutcome Nlp_automlClient::getPredictResult(const GetPredictResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +555,186 @@ Nlp_automlClient::GetPredictResultOutcomeCallable Nlp_automlClient::getPredictRe return task->get_future(); } +Nlp_automlClient::InvokeActionOutcome Nlp_automlClient::invokeAction(const InvokeActionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InvokeActionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InvokeActionOutcome(InvokeActionResult(outcome.result())); + else + return InvokeActionOutcome(outcome.error()); +} + +void Nlp_automlClient::invokeActionAsync(const InvokeActionRequest& request, const InvokeActionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, invokeAction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::InvokeActionOutcomeCallable Nlp_automlClient::invokeActionCallable(const InvokeActionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->invokeAction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::ListDatasetOutcome Nlp_automlClient::listDataset(const ListDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDatasetOutcome(ListDatasetResult(outcome.result())); + else + return ListDatasetOutcome(outcome.error()); +} + +void Nlp_automlClient::listDatasetAsync(const ListDatasetRequest& request, const ListDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::ListDatasetOutcomeCallable Nlp_automlClient::listDatasetCallable(const ListDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::ListModelsOutcome Nlp_automlClient::listModels(const ListModelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListModelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListModelsOutcome(ListModelsResult(outcome.result())); + else + return ListModelsOutcome(outcome.error()); +} + +void Nlp_automlClient::listModelsAsync(const ListModelsRequest& request, const ListModelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listModels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::ListModelsOutcomeCallable Nlp_automlClient::listModelsCallable(const ListModelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listModels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::PredictMTModelOutcome Nlp_automlClient::predictMTModel(const PredictMTModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PredictMTModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PredictMTModelOutcome(PredictMTModelResult(outcome.result())); + else + return PredictMTModelOutcome(outcome.error()); +} + +void Nlp_automlClient::predictMTModelAsync(const PredictMTModelRequest& request, const PredictMTModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, predictMTModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::PredictMTModelOutcomeCallable Nlp_automlClient::predictMTModelCallable(const PredictMTModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->predictMTModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Nlp_automlClient::PredictMTModelByDocOutcome Nlp_automlClient::predictMTModelByDoc(const PredictMTModelByDocRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PredictMTModelByDocOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PredictMTModelByDocOutcome(PredictMTModelByDocResult(outcome.result())); + else + return PredictMTModelByDocOutcome(outcome.error()); +} + +void Nlp_automlClient::predictMTModelByDocAsync(const PredictMTModelByDocRequest& request, const PredictMTModelByDocAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, predictMTModelByDoc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Nlp_automlClient::PredictMTModelByDocOutcomeCallable Nlp_automlClient::predictMTModelByDocCallable(const PredictMTModelByDocRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->predictMTModelByDoc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Nlp_automlClient::RunContactReviewOutcome Nlp_automlClient::runContactReview(const RunContactReviewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/nlp-automl/src/model/AddMTInterveneWordRequest.cc b/nlp-automl/src/model/AddMTInterveneWordRequest.cc new file mode 100644 index 000000000..1131de192 --- /dev/null +++ b/nlp-automl/src/model/AddMTInterveneWordRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Nlp_automl::Model::AddMTInterveneWordRequest; + +AddMTInterveneWordRequest::AddMTInterveneWordRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "AddMTInterveneWord") +{ + setMethod(HttpRequest::Method::Post); +} + +AddMTInterveneWordRequest::~AddMTInterveneWordRequest() +{} + +std::string AddMTInterveneWordRequest::getProduct()const +{ + return product_; +} + +void AddMTInterveneWordRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string AddMTInterveneWordRequest::getSourceText()const +{ + return sourceText_; +} + +void AddMTInterveneWordRequest::setSourceText(const std::string& sourceText) +{ + sourceText_ = sourceText; + setParameter("SourceText", sourceText); +} + +std::string AddMTInterveneWordRequest::getPackageId()const +{ + return packageId_; +} + +void AddMTInterveneWordRequest::setPackageId(const std::string& packageId) +{ + packageId_ = packageId; + setParameter("PackageId", packageId); +} + +std::string AddMTInterveneWordRequest::getTargetText()const +{ + return targetText_; +} + +void AddMTInterveneWordRequest::setTargetText(const std::string& targetText) +{ + targetText_ = targetText; + setParameter("TargetText", targetText); +} + +int AddMTInterveneWordRequest::getTenantId()const +{ + return tenantId_; +} + +void AddMTInterveneWordRequest::setTenantId(int tenantId) +{ + tenantId_ = tenantId; + setParameter("TenantId", std::to_string(tenantId)); +} + +std::string AddMTInterveneWordRequest::getProjectId()const +{ + return projectId_; +} + +void AddMTInterveneWordRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", projectId); +} + diff --git a/nlp-automl/src/model/AddMTInterveneWordResult.cc b/nlp-automl/src/model/AddMTInterveneWordResult.cc new file mode 100644 index 000000000..51424ccd0 --- /dev/null +++ b/nlp-automl/src/model/AddMTInterveneWordResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +AddMTInterveneWordResult::AddMTInterveneWordResult() : + ServiceResult() +{} + +AddMTInterveneWordResult::AddMTInterveneWordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddMTInterveneWordResult::~AddMTInterveneWordResult() +{} + +void AddMTInterveneWordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = std::stoi(value["Message"].asString()); + if(!value["WordId"].isNull()) + wordId_ = value["WordId"].asString(); + +} + +std::string AddMTInterveneWordResult::getWordId()const +{ + return wordId_; +} + +int AddMTInterveneWordResult::getMessage()const +{ + return message_; +} + +int AddMTInterveneWordResult::getCode()const +{ + return code_; +} + diff --git a/nlp-automl/src/model/AddMtIntervenePackageRequest.cc b/nlp-automl/src/model/AddMtIntervenePackageRequest.cc new file mode 100644 index 000000000..825b953b4 --- /dev/null +++ b/nlp-automl/src/model/AddMtIntervenePackageRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::Nlp_automl::Model::AddMtIntervenePackageRequest; + +AddMtIntervenePackageRequest::AddMtIntervenePackageRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "AddMtIntervenePackage") +{ + setMethod(HttpRequest::Method::Post); +} + +AddMtIntervenePackageRequest::~AddMtIntervenePackageRequest() +{} + +std::string AddMtIntervenePackageRequest::getSourceLanguage()const +{ + return sourceLanguage_; +} + +void AddMtIntervenePackageRequest::setSourceLanguage(const std::string& sourceLanguage) +{ + sourceLanguage_ = sourceLanguage; + setParameter("SourceLanguage", sourceLanguage); +} + +std::string AddMtIntervenePackageRequest::getProduct()const +{ + return product_; +} + +void AddMtIntervenePackageRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string AddMtIntervenePackageRequest::getPackageName()const +{ + return packageName_; +} + +void AddMtIntervenePackageRequest::setPackageName(const std::string& packageName) +{ + packageName_ = packageName; + setParameter("PackageName", packageName); +} + +int AddMtIntervenePackageRequest::getTenantId()const +{ + return tenantId_; +} + +void AddMtIntervenePackageRequest::setTenantId(int tenantId) +{ + tenantId_ = tenantId; + setParameter("TenantId", std::to_string(tenantId)); +} + +std::string AddMtIntervenePackageRequest::getProjectType()const +{ + return projectType_; +} + +void AddMtIntervenePackageRequest::setProjectType(const std::string& projectType) +{ + projectType_ = projectType; + setParameter("ProjectType", projectType); +} + +std::string AddMtIntervenePackageRequest::getSourceType()const +{ + return sourceType_; +} + +void AddMtIntervenePackageRequest::setSourceType(const std::string& sourceType) +{ + sourceType_ = sourceType; + setParameter("SourceType", sourceType); +} + +std::string AddMtIntervenePackageRequest::getTargetLanguage()const +{ + return targetLanguage_; +} + +void AddMtIntervenePackageRequest::setTargetLanguage(const std::string& targetLanguage) +{ + targetLanguage_ = targetLanguage; + setParameter("TargetLanguage", targetLanguage); +} + +std::string AddMtIntervenePackageRequest::getCategory()const +{ + return category_; +} + +void AddMtIntervenePackageRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + +int AddMtIntervenePackageRequest::getProjectId()const +{ + return projectId_; +} + +void AddMtIntervenePackageRequest::setProjectId(int projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/nlp-automl/src/model/AddMtIntervenePackageResult.cc b/nlp-automl/src/model/AddMtIntervenePackageResult.cc new file mode 100644 index 000000000..f6856d88b --- /dev/null +++ b/nlp-automl/src/model/AddMtIntervenePackageResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +AddMtIntervenePackageResult::AddMtIntervenePackageResult() : + ServiceResult() +{} + +AddMtIntervenePackageResult::AddMtIntervenePackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddMtIntervenePackageResult::~AddMtIntervenePackageResult() +{} + +void AddMtIntervenePackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = std::stoi(value["Message"].asString()); + if(!value["PackageId"].isNull()) + packageId_ = value["PackageId"].asString(); + +} + +int AddMtIntervenePackageResult::getMessage()const +{ + return message_; +} + +std::string AddMtIntervenePackageResult::getPackageId()const +{ + return packageId_; +} + +int AddMtIntervenePackageResult::getCode()const +{ + return code_; +} + diff --git a/nlp-automl/src/model/BindIntervenePackageAndModelRequest.cc b/nlp-automl/src/model/BindIntervenePackageAndModelRequest.cc new file mode 100644 index 000000000..789952f3a --- /dev/null +++ b/nlp-automl/src/model/BindIntervenePackageAndModelRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Nlp_automl::Model::BindIntervenePackageAndModelRequest; + +BindIntervenePackageAndModelRequest::BindIntervenePackageAndModelRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "BindIntervenePackageAndModel") +{ + setMethod(HttpRequest::Method::Post); +} + +BindIntervenePackageAndModelRequest::~BindIntervenePackageAndModelRequest() +{} + +std::string BindIntervenePackageAndModelRequest::getProduct()const +{ + return product_; +} + +void BindIntervenePackageAndModelRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +long BindIntervenePackageAndModelRequest::getModelId()const +{ + return modelId_; +} + +void BindIntervenePackageAndModelRequest::setModelId(long modelId) +{ + modelId_ = modelId; + setParameter("ModelId", std::to_string(modelId)); +} + +long BindIntervenePackageAndModelRequest::getPackageId()const +{ + return packageId_; +} + +void BindIntervenePackageAndModelRequest::setPackageId(long packageId) +{ + packageId_ = packageId; + setParameter("PackageId", std::to_string(packageId)); +} + +long BindIntervenePackageAndModelRequest::getTenantId()const +{ + return tenantId_; +} + +void BindIntervenePackageAndModelRequest::setTenantId(long tenantId) +{ + tenantId_ = tenantId; + setParameter("TenantId", std::to_string(tenantId)); +} + +long BindIntervenePackageAndModelRequest::getProjectId()const +{ + return projectId_; +} + +void BindIntervenePackageAndModelRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setParameter("ProjectId", std::to_string(projectId)); +} + +std::string BindIntervenePackageAndModelRequest::getModelVersion()const +{ + return modelVersion_; +} + +void BindIntervenePackageAndModelRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + diff --git a/nlp-automl/src/model/BindIntervenePackageAndModelResult.cc b/nlp-automl/src/model/BindIntervenePackageAndModelResult.cc new file mode 100644 index 000000000..52be0907f --- /dev/null +++ b/nlp-automl/src/model/BindIntervenePackageAndModelResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +BindIntervenePackageAndModelResult::BindIntervenePackageAndModelResult() : + ServiceResult() +{} + +BindIntervenePackageAndModelResult::BindIntervenePackageAndModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindIntervenePackageAndModelResult::~BindIntervenePackageAndModelResult() +{} + +void BindIntervenePackageAndModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = std::stoi(value["Message"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +int BindIntervenePackageAndModelResult::getMessage()const +{ + return message_; +} + +int BindIntervenePackageAndModelResult::getCode()const +{ + return code_; +} + +std::string BindIntervenePackageAndModelResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/CreateAsyncPredictRequest.cc b/nlp-automl/src/model/CreateAsyncPredictRequest.cc index 27b236878..e3ca0cad4 100644 --- a/nlp-automl/src/model/CreateAsyncPredictRequest.cc +++ b/nlp-automl/src/model/CreateAsyncPredictRequest.cc @@ -93,6 +93,17 @@ void CreateAsyncPredictRequest::setFileContent(const std::string& fileContent) setBodyParameter("FileContent", fileContent); } +std::string CreateAsyncPredictRequest::getProduct()const +{ + return product_; +} + +void CreateAsyncPredictRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + int CreateAsyncPredictRequest::getModelId()const { return modelId_; diff --git a/nlp-automl/src/model/CreateDatasetRecordRequest.cc b/nlp-automl/src/model/CreateDatasetRecordRequest.cc new file mode 100644 index 000000000..91c0c554e --- /dev/null +++ b/nlp-automl/src/model/CreateDatasetRecordRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::CreateDatasetRecordRequest; + +CreateDatasetRecordRequest::CreateDatasetRecordRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "CreateDatasetRecord") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDatasetRecordRequest::~CreateDatasetRecordRequest() +{} + +std::string CreateDatasetRecordRequest::getDatasetRecord()const +{ + return datasetRecord_; +} + +void CreateDatasetRecordRequest::setDatasetRecord(const std::string& datasetRecord) +{ + datasetRecord_ = datasetRecord; + setBodyParameter("DatasetRecord", datasetRecord); +} + +long CreateDatasetRecordRequest::getDatasetId()const +{ + return datasetId_; +} + +void CreateDatasetRecordRequest::setDatasetId(long datasetId) +{ + datasetId_ = datasetId; + setBodyParameter("DatasetId", std::to_string(datasetId)); +} + +long CreateDatasetRecordRequest::getProjectId()const +{ + return projectId_; +} + +void CreateDatasetRecordRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/nlp-automl/src/model/CreateDatasetRecordResult.cc b/nlp-automl/src/model/CreateDatasetRecordResult.cc new file mode 100644 index 000000000..4a756679d --- /dev/null +++ b/nlp-automl/src/model/CreateDatasetRecordResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +CreateDatasetRecordResult::CreateDatasetRecordResult() : + ServiceResult() +{} + +CreateDatasetRecordResult::CreateDatasetRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatasetRecordResult::~CreateDatasetRecordResult() +{} + +void CreateDatasetRecordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DatasetRecordId"].isNull()) + datasetRecordId_ = value["DatasetRecordId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateDatasetRecordResult::getMessage()const +{ + return message_; +} + +std::string CreateDatasetRecordResult::getDatasetRecordId()const +{ + return datasetRecordId_; +} + +int CreateDatasetRecordResult::getCode()const +{ + return code_; +} + +bool CreateDatasetRecordResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/CreateDatasetRequest.cc b/nlp-automl/src/model/CreateDatasetRequest.cc new file mode 100644 index 000000000..1945413f8 --- /dev/null +++ b/nlp-automl/src/model/CreateDatasetRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::CreateDatasetRequest; + +CreateDatasetRequest::CreateDatasetRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "CreateDataset") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDatasetRequest::~CreateDatasetRequest() +{} + +std::string CreateDatasetRequest::getProduct()const +{ + return product_; +} + +void CreateDatasetRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +std::string CreateDatasetRequest::getDatasetName()const +{ + return datasetName_; +} + +void CreateDatasetRequest::setDatasetName(const std::string& datasetName) +{ + datasetName_ = datasetName; + setBodyParameter("DatasetName", datasetName); +} + +long CreateDatasetRequest::getProjectId()const +{ + return projectId_; +} + +void CreateDatasetRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/nlp-automl/src/model/CreateDatasetResult.cc b/nlp-automl/src/model/CreateDatasetResult.cc new file mode 100644 index 000000000..fb10df159 --- /dev/null +++ b/nlp-automl/src/model/CreateDatasetResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +CreateDatasetResult::CreateDatasetResult() : + ServiceResult() +{} + +CreateDatasetResult::CreateDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatasetResult::~CreateDatasetResult() +{} + +void CreateDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DatasetId"].isNull()) + datasetId_ = value["DatasetId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateDatasetResult::getMessage()const +{ + return message_; +} + +int CreateDatasetResult::getCode()const +{ + return code_; +} + +bool CreateDatasetResult::getSuccess()const +{ + return success_; +} + +std::string CreateDatasetResult::getDatasetId()const +{ + return datasetId_; +} + diff --git a/nlp-automl/src/model/CreateModelRequest.cc b/nlp-automl/src/model/CreateModelRequest.cc new file mode 100644 index 000000000..7ee7b314d --- /dev/null +++ b/nlp-automl/src/model/CreateModelRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Nlp_automl::Model::CreateModelRequest; + +CreateModelRequest::CreateModelRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "CreateModel") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateModelRequest::~CreateModelRequest() +{} + +std::string CreateModelRequest::getIsIncrementalTrain()const +{ + return isIncrementalTrain_; +} + +void CreateModelRequest::setIsIncrementalTrain(const std::string& isIncrementalTrain) +{ + isIncrementalTrain_ = isIncrementalTrain; + setBodyParameter("IsIncrementalTrain", isIncrementalTrain); +} + +std::string CreateModelRequest::getModelName()const +{ + return modelName_; +} + +void CreateModelRequest::setModelName(const std::string& modelName) +{ + modelName_ = modelName; + setBodyParameter("ModelName", modelName); +} + +std::map CreateModelRequest::getDatasetIdList()const +{ + return datasetIdList_; +} + +void CreateModelRequest::setDatasetIdList(const std::map& datasetIdList) +{ + datasetIdList_ = datasetIdList; + setJsonParameters("DatasetIdList", datasetIdList); +} + +std::map CreateModelRequest::getTestDatasetIdList()const +{ + return testDatasetIdList_; +} + +void CreateModelRequest::setTestDatasetIdList(const std::map& testDatasetIdList) +{ + testDatasetIdList_ = testDatasetIdList; + setJsonParameters("TestDatasetIdList", testDatasetIdList); +} + +std::string CreateModelRequest::getModelType()const +{ + return modelType_; +} + +void CreateModelRequest::setModelType(const std::string& modelType) +{ + modelType_ = modelType; + setBodyParameter("ModelType", modelType); +} + +long CreateModelRequest::getProjectId()const +{ + return projectId_; +} + +void CreateModelRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + +std::string CreateModelRequest::getProduct()const +{ + return product_; +} + +void CreateModelRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +long CreateModelRequest::getModelId()const +{ + return modelId_; +} + +void CreateModelRequest::setModelId(long modelId) +{ + modelId_ = modelId; + setBodyParameter("ModelId", std::to_string(modelId)); +} + diff --git a/nlp-automl/src/model/CreateModelResult.cc b/nlp-automl/src/model/CreateModelResult.cc new file mode 100644 index 000000000..324a19f07 --- /dev/null +++ b/nlp-automl/src/model/CreateModelResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +CreateModelResult::CreateModelResult() : + ServiceResult() +{} + +CreateModelResult::CreateModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateModelResult::~CreateModelResult() +{} + +void CreateModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateModelResult::getMessage()const +{ + return message_; +} + +std::string CreateModelResult::getData()const +{ + return data_; +} + +int CreateModelResult::getCode()const +{ + return code_; +} + +bool CreateModelResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/CreateProjectRequest.cc b/nlp-automl/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..e19e6a03c --- /dev/null +++ b/nlp-automl/src/model/CreateProjectRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::CreateProjectRequest; + +CreateProjectRequest::CreateProjectRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "CreateProject") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateProjectRequest::~CreateProjectRequest() +{} + +std::string CreateProjectRequest::getProjectName()const +{ + return projectName_; +} + +void CreateProjectRequest::setProjectName(const std::string& projectName) +{ + projectName_ = projectName; + setBodyParameter("ProjectName", projectName); +} + +std::string CreateProjectRequest::getProduct()const +{ + return product_; +} + +void CreateProjectRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +std::string CreateProjectRequest::getProjectDescription()const +{ + return projectDescription_; +} + +void CreateProjectRequest::setProjectDescription(const std::string& projectDescription) +{ + projectDescription_ = projectDescription; + setBodyParameter("ProjectDescription", projectDescription); +} + +std::string CreateProjectRequest::getProjectType()const +{ + return projectType_; +} + +void CreateProjectRequest::setProjectType(const std::string& projectType) +{ + projectType_ = projectType; + setBodyParameter("ProjectType", projectType); +} + diff --git a/nlp-automl/src/model/CreateProjectResult.cc b/nlp-automl/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..d6f78fae8 --- /dev/null +++ b/nlp-automl/src/model/CreateProjectResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +CreateProjectResult::CreateProjectResult() : + ServiceResult() +{} + +CreateProjectResult::CreateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectResult::~CreateProjectResult() +{} + +void CreateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ProjectId"].isNull()) + projectId_ = value["ProjectId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateProjectResult::getMessage()const +{ + return message_; +} + +std::string CreateProjectResult::getProjectId()const +{ + return projectId_; +} + +int CreateProjectResult::getCode()const +{ + return code_; +} + +bool CreateProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/DeleteModelRequest.cc b/nlp-automl/src/model/DeleteModelRequest.cc new file mode 100644 index 000000000..4252174f0 --- /dev/null +++ b/nlp-automl/src/model/DeleteModelRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::DeleteModelRequest; + +DeleteModelRequest::DeleteModelRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "DeleteModel") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteModelRequest::~DeleteModelRequest() +{} + +std::string DeleteModelRequest::getProduct()const +{ + return product_; +} + +void DeleteModelRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +long DeleteModelRequest::getModelId()const +{ + return modelId_; +} + +void DeleteModelRequest::setModelId(long modelId) +{ + modelId_ = modelId; + setBodyParameter("ModelId", std::to_string(modelId)); +} + +long DeleteModelRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteModelRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/nlp-automl/src/model/DeleteModelResult.cc b/nlp-automl/src/model/DeleteModelResult.cc new file mode 100644 index 000000000..19da8c5e5 --- /dev/null +++ b/nlp-automl/src/model/DeleteModelResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +DeleteModelResult::DeleteModelResult() : + ServiceResult() +{} + +DeleteModelResult::DeleteModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteModelResult::~DeleteModelResult() +{} + +void DeleteModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteModelResult::getMessage()const +{ + return message_; +} + +std::string DeleteModelResult::getData()const +{ + return data_; +} + +int DeleteModelResult::getCode()const +{ + return code_; +} + +bool DeleteModelResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/DeployModelRequest.cc b/nlp-automl/src/model/DeployModelRequest.cc new file mode 100644 index 000000000..c729c8292 --- /dev/null +++ b/nlp-automl/src/model/DeployModelRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::DeployModelRequest; + +DeployModelRequest::DeployModelRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "DeployModel") +{ + setMethod(HttpRequest::Method::Post); +} + +DeployModelRequest::~DeployModelRequest() +{} + +std::string DeployModelRequest::getProduct()const +{ + return product_; +} + +void DeployModelRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +long DeployModelRequest::getModelId()const +{ + return modelId_; +} + +void DeployModelRequest::setModelId(long modelId) +{ + modelId_ = modelId; + setBodyParameter("ModelId", std::to_string(modelId)); +} + +std::string DeployModelRequest::getOptType()const +{ + return optType_; +} + +void DeployModelRequest::setOptType(const std::string& optType) +{ + optType_ = optType; + setBodyParameter("OptType", optType); +} + +long DeployModelRequest::getProjectId()const +{ + return projectId_; +} + +void DeployModelRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + +std::string DeployModelRequest::getModelVersion()const +{ + return modelVersion_; +} + +void DeployModelRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setBodyParameter("ModelVersion", modelVersion); +} + diff --git a/nlp-automl/src/model/DeployModelResult.cc b/nlp-automl/src/model/DeployModelResult.cc new file mode 100644 index 000000000..72cb06c7e --- /dev/null +++ b/nlp-automl/src/model/DeployModelResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +DeployModelResult::DeployModelResult() : + ServiceResult() +{} + +DeployModelResult::DeployModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployModelResult::~DeployModelResult() +{} + +void DeployModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeployModelResult::getMessage()const +{ + return message_; +} + +std::string DeployModelResult::getData()const +{ + return data_; +} + +int DeployModelResult::getCode()const +{ + return code_; +} + +bool DeployModelResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/GetAsyncPredictRequest.cc b/nlp-automl/src/model/GetAsyncPredictRequest.cc index 5d267ea4b..a4cd84373 100644 --- a/nlp-automl/src/model/GetAsyncPredictRequest.cc +++ b/nlp-automl/src/model/GetAsyncPredictRequest.cc @@ -27,6 +27,17 @@ GetAsyncPredictRequest::GetAsyncPredictRequest() : GetAsyncPredictRequest::~GetAsyncPredictRequest() {} +std::string GetAsyncPredictRequest::getProduct()const +{ + return product_; +} + +void GetAsyncPredictRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + int GetAsyncPredictRequest::getAsyncPredictId()const { return asyncPredictId_; diff --git a/nlp-automl/src/model/GetModelRequest.cc b/nlp-automl/src/model/GetModelRequest.cc new file mode 100644 index 000000000..1feb4638d --- /dev/null +++ b/nlp-automl/src/model/GetModelRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::GetModelRequest; + +GetModelRequest::GetModelRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "GetModel") +{ + setMethod(HttpRequest::Method::Post); +} + +GetModelRequest::~GetModelRequest() +{} + +std::string GetModelRequest::getProduct()const +{ + return product_; +} + +void GetModelRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +long GetModelRequest::getModelId()const +{ + return modelId_; +} + +void GetModelRequest::setModelId(long modelId) +{ + modelId_ = modelId; + setBodyParameter("ModelId", std::to_string(modelId)); +} + +long GetModelRequest::getProjectId()const +{ + return projectId_; +} + +void GetModelRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + +std::string GetModelRequest::getModelVersion()const +{ + return modelVersion_; +} + +void GetModelRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setBodyParameter("ModelVersion", modelVersion); +} + diff --git a/nlp-automl/src/model/GetModelResult.cc b/nlp-automl/src/model/GetModelResult.cc new file mode 100644 index 000000000..b6689f84d --- /dev/null +++ b/nlp-automl/src/model/GetModelResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +GetModelResult::GetModelResult() : + ServiceResult() +{} + +GetModelResult::GetModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetModelResult::~GetModelResult() +{} + +void GetModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetModelResult::getMessage()const +{ + return message_; +} + +std::string GetModelResult::getData()const +{ + return data_; +} + +int GetModelResult::getCode()const +{ + return code_; +} + +bool GetModelResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/GetPredictDocRequest.cc b/nlp-automl/src/model/GetPredictDocRequest.cc new file mode 100644 index 000000000..13246bfce --- /dev/null +++ b/nlp-automl/src/model/GetPredictDocRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::GetPredictDocRequest; + +GetPredictDocRequest::GetPredictDocRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "GetPredictDoc") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPredictDocRequest::~GetPredictDocRequest() +{} + +std::string GetPredictDocRequest::getProduct()const +{ + return product_; +} + +void GetPredictDocRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +long GetPredictDocRequest::getDocId()const +{ + return docId_; +} + +void GetPredictDocRequest::setDocId(long docId) +{ + docId_ = docId; + setParameter("DocId", std::to_string(docId)); +} + diff --git a/nlp-automl/src/model/GetPredictDocResult.cc b/nlp-automl/src/model/GetPredictDocResult.cc new file mode 100644 index 000000000..a1f25ef39 --- /dev/null +++ b/nlp-automl/src/model/GetPredictDocResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +GetPredictDocResult::GetPredictDocResult() : + ServiceResult() +{} + +GetPredictDocResult::GetPredictDocResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPredictDocResult::~GetPredictDocResult() +{} + +void GetPredictDocResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ResultContent"].isNull()) + resultContent_ = value["ResultContent"].asString(); + if(!value["Status"].isNull()) + status_ = std::stoi(value["Status"].asString()); + if(!value["XLIFFInfo"].isNull()) + xLIFFInfo_ = value["XLIFFInfo"].asString(); + +} + +int GetPredictDocResult::getStatus()const +{ + return status_; +} + +std::string GetPredictDocResult::getXLIFFInfo()const +{ + return xLIFFInfo_; +} + +std::string GetPredictDocResult::getResultContent()const +{ + return resultContent_; +} + diff --git a/nlp-automl/src/model/GetPredictResultRequest.cc b/nlp-automl/src/model/GetPredictResultRequest.cc index ec33eff80..1feb51da9 100644 --- a/nlp-automl/src/model/GetPredictResultRequest.cc +++ b/nlp-automl/src/model/GetPredictResultRequest.cc @@ -38,6 +38,17 @@ void GetPredictResultRequest::setTopK(int topK) setBodyParameter("TopK", std::to_string(topK)); } +std::string GetPredictResultRequest::getProduct()const +{ + return product_; +} + +void GetPredictResultRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + int GetPredictResultRequest::getModelId()const { return modelId_; diff --git a/nlp-automl/src/model/InvokeActionRequest.cc b/nlp-automl/src/model/InvokeActionRequest.cc new file mode 100644 index 000000000..a6ac95ce9 --- /dev/null +++ b/nlp-automl/src/model/InvokeActionRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::InvokeActionRequest; + +InvokeActionRequest::InvokeActionRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "InvokeAction") +{ + setMethod(HttpRequest::Method::Post); +} + +InvokeActionRequest::~InvokeActionRequest() +{} + +std::string InvokeActionRequest::getInvokeProduct()const +{ + return invokeProduct_; +} + +void InvokeActionRequest::setInvokeProduct(const std::string& invokeProduct) +{ + invokeProduct_ = invokeProduct; + setParameter("InvokeProduct", invokeProduct); +} + +std::string InvokeActionRequest::getInvokeAction()const +{ + return invokeAction_; +} + +void InvokeActionRequest::setInvokeAction(const std::string& invokeAction) +{ + invokeAction_ = invokeAction; + setBodyParameter("InvokeAction", invokeAction); +} + +std::string InvokeActionRequest::getInvokeParams()const +{ + return invokeParams_; +} + +void InvokeActionRequest::setInvokeParams(const std::string& invokeParams) +{ + invokeParams_ = invokeParams; + setBodyParameter("InvokeParams", invokeParams); +} + +std::string InvokeActionRequest::getInvokeRegion()const +{ + return invokeRegion_; +} + +void InvokeActionRequest::setInvokeRegion(const std::string& invokeRegion) +{ + invokeRegion_ = invokeRegion; + setParameter("InvokeRegion", invokeRegion); +} + diff --git a/nlp-automl/src/model/InvokeActionResult.cc b/nlp-automl/src/model/InvokeActionResult.cc new file mode 100644 index 000000000..af0f3feb4 --- /dev/null +++ b/nlp-automl/src/model/InvokeActionResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +InvokeActionResult::InvokeActionResult() : + ServiceResult() +{} + +InvokeActionResult::InvokeActionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InvokeActionResult::~InvokeActionResult() +{} + +void InvokeActionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = std::stoi(value["Message"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +int InvokeActionResult::getMessage()const +{ + return message_; +} + +std::string InvokeActionResult::getData()const +{ + return data_; +} + +int InvokeActionResult::getCode()const +{ + return code_; +} + diff --git a/nlp-automl/src/model/ListDatasetRequest.cc b/nlp-automl/src/model/ListDatasetRequest.cc new file mode 100644 index 000000000..2af572e51 --- /dev/null +++ b/nlp-automl/src/model/ListDatasetRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::ListDatasetRequest; + +ListDatasetRequest::ListDatasetRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "ListDataset") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDatasetRequest::~ListDatasetRequest() +{} + +std::string ListDatasetRequest::getProduct()const +{ + return product_; +} + +void ListDatasetRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +int ListDatasetRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListDatasetRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListDatasetRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDatasetRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +long ListDatasetRequest::getProjectId()const +{ + return projectId_; +} + +void ListDatasetRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/nlp-automl/src/model/ListDatasetResult.cc b/nlp-automl/src/model/ListDatasetResult.cc new file mode 100644 index 000000000..a0a2fdb70 --- /dev/null +++ b/nlp-automl/src/model/ListDatasetResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +ListDatasetResult::ListDatasetResult() : + ServiceResult() +{} + +ListDatasetResult::ListDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatasetResult::~ListDatasetResult() +{} + +void ListDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListDatasetResult::getMessage()const +{ + return message_; +} + +std::string ListDatasetResult::getData()const +{ + return data_; +} + +int ListDatasetResult::getCode()const +{ + return code_; +} + +bool ListDatasetResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/ListModelsRequest.cc b/nlp-automl/src/model/ListModelsRequest.cc new file mode 100644 index 000000000..73d3f5d42 --- /dev/null +++ b/nlp-automl/src/model/ListModelsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::ListModelsRequest; + +ListModelsRequest::ListModelsRequest() : + RpcServiceRequest("nlp-automl", "2019-11-11", "ListModels") +{ + setMethod(HttpRequest::Method::Post); +} + +ListModelsRequest::~ListModelsRequest() +{} + +std::string ListModelsRequest::getProduct()const +{ + return product_; +} + +void ListModelsRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +int ListModelsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListModelsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListModelsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListModelsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +long ListModelsRequest::getProjectId()const +{ + return projectId_; +} + +void ListModelsRequest::setProjectId(long projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", std::to_string(projectId)); +} + diff --git a/nlp-automl/src/model/ListModelsResult.cc b/nlp-automl/src/model/ListModelsResult.cc new file mode 100644 index 000000000..7115a6200 --- /dev/null +++ b/nlp-automl/src/model/ListModelsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +ListModelsResult::ListModelsResult() : + ServiceResult() +{} + +ListModelsResult::ListModelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListModelsResult::~ListModelsResult() +{} + +void ListModelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListModelsResult::getMessage()const +{ + return message_; +} + +std::string ListModelsResult::getData()const +{ + return data_; +} + +int ListModelsResult::getCode()const +{ + return code_; +} + +bool ListModelsResult::getSuccess()const +{ + return success_; +} + diff --git a/nlp-automl/src/model/PredictMTModelByDocRequest.cc b/nlp-automl/src/model/PredictMTModelByDocRequest.cc new file mode 100644 index 000000000..0acdf6bb4 --- /dev/null +++ b/nlp-automl/src/model/PredictMTModelByDocRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::Nlp_automl::Model::PredictMTModelByDocRequest; + +PredictMTModelByDocRequest::PredictMTModelByDocRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "PredictMTModelByDoc") +{ + setMethod(HttpRequest::Method::Post); +} + +PredictMTModelByDocRequest::~PredictMTModelByDocRequest() +{} + +std::string PredictMTModelByDocRequest::getFileType()const +{ + return fileType_; +} + +void PredictMTModelByDocRequest::setFileType(const std::string& fileType) +{ + fileType_ = fileType; + setParameter("FileType", fileType); +} + +std::string PredictMTModelByDocRequest::getProduct()const +{ + return product_; +} + +void PredictMTModelByDocRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +int PredictMTModelByDocRequest::getModelId()const +{ + return modelId_; +} + +void PredictMTModelByDocRequest::setModelId(int modelId) +{ + modelId_ = modelId; + setParameter("ModelId", std::to_string(modelId)); +} + +std::string PredictMTModelByDocRequest::getFileContent()const +{ + return fileContent_; +} + +void PredictMTModelByDocRequest::setFileContent(const std::string& fileContent) +{ + fileContent_ = fileContent; + setBodyParameter("FileContent", fileContent); +} + +bool PredictMTModelByDocRequest::getNeedXLIFF()const +{ + return needXLIFF_; +} + +void PredictMTModelByDocRequest::setNeedXLIFF(bool needXLIFF) +{ + needXLIFF_ = needXLIFF; + setParameter("NeedXLIFF", needXLIFF ? "true" : "false"); +} + +std::string PredictMTModelByDocRequest::getModelVersion()const +{ + return modelVersion_; +} + +void PredictMTModelByDocRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + diff --git a/nlp-automl/src/model/PredictMTModelByDocResult.cc b/nlp-automl/src/model/PredictMTModelByDocResult.cc new file mode 100644 index 000000000..8cf44ab52 --- /dev/null +++ b/nlp-automl/src/model/PredictMTModelByDocResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +PredictMTModelByDocResult::PredictMTModelByDocResult() : + ServiceResult() +{} + +PredictMTModelByDocResult::PredictMTModelByDocResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PredictMTModelByDocResult::~PredictMTModelByDocResult() +{} + +void PredictMTModelByDocResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DocId"].isNull()) + docId_ = value["DocId"].asString(); + +} + +std::string PredictMTModelByDocResult::getDocId()const +{ + return docId_; +} + diff --git a/nlp-automl/src/model/PredictMTModelRequest.cc b/nlp-automl/src/model/PredictMTModelRequest.cc new file mode 100644 index 000000000..bffde72fc --- /dev/null +++ b/nlp-automl/src/model/PredictMTModelRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlp_automl::Model::PredictMTModelRequest; + +PredictMTModelRequest::PredictMTModelRequest() : + RpcServiceRequest("nlp-automl", "2019-07-01", "PredictMTModel") +{ + setMethod(HttpRequest::Method::Post); +} + +PredictMTModelRequest::~PredictMTModelRequest() +{} + +std::string PredictMTModelRequest::getProduct()const +{ + return product_; +} + +void PredictMTModelRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string PredictMTModelRequest::getModelId()const +{ + return modelId_; +} + +void PredictMTModelRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setParameter("ModelId", modelId); +} + +std::string PredictMTModelRequest::getContent()const +{ + return content_; +} + +void PredictMTModelRequest::setContent(const std::string& content) +{ + content_ = content; + setBodyParameter("Content", content); +} + +std::string PredictMTModelRequest::getModelVersion()const +{ + return modelVersion_; +} + +void PredictMTModelRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + diff --git a/nlp-automl/src/model/PredictMTModelResult.cc b/nlp-automl/src/model/PredictMTModelResult.cc new file mode 100644 index 000000000..8e430ec3f --- /dev/null +++ b/nlp-automl/src/model/PredictMTModelResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Nlp_automl; +using namespace AlibabaCloud::Nlp_automl::Model; + +PredictMTModelResult::PredictMTModelResult() : + ServiceResult() +{} + +PredictMTModelResult::PredictMTModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PredictMTModelResult::~PredictMTModelResult() +{} + +void PredictMTModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = std::stoi(value["Message"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +int PredictMTModelResult::getMessage()const +{ + return message_; +} + +std::string PredictMTModelResult::getData()const +{ + return data_; +} + +int PredictMTModelResult::getCode()const +{ + return code_; +} + diff --git a/nlp-automl/src/model/RunContactReviewRequest.cc b/nlp-automl/src/model/RunContactReviewRequest.cc index da578bfc2..5ae76c787 100644 --- a/nlp-automl/src/model/RunContactReviewRequest.cc +++ b/nlp-automl/src/model/RunContactReviewRequest.cc @@ -27,6 +27,17 @@ RunContactReviewRequest::RunContactReviewRequest() : RunContactReviewRequest::~RunContactReviewRequest() {} +std::string RunContactReviewRequest::getProduct()const +{ + return product_; +} + +void RunContactReviewRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + std::string RunContactReviewRequest::getContactScene()const { return contactScene_; diff --git a/nlp-automl/src/model/RunPreTrainServiceRequest.cc b/nlp-automl/src/model/RunPreTrainServiceRequest.cc index eab9b7bae..93645aa03 100644 --- a/nlp-automl/src/model/RunPreTrainServiceRequest.cc +++ b/nlp-automl/src/model/RunPreTrainServiceRequest.cc @@ -27,6 +27,17 @@ RunPreTrainServiceRequest::RunPreTrainServiceRequest() : RunPreTrainServiceRequest::~RunPreTrainServiceRequest() {} +std::string RunPreTrainServiceRequest::getProduct()const +{ + return product_; +} + +void RunPreTrainServiceRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + std::string RunPreTrainServiceRequest::getPredictContent()const { return predictContent_; diff --git a/nlp-automl/src/model/RunSmartCallServiceRequest.cc b/nlp-automl/src/model/RunSmartCallServiceRequest.cc index c31d54983..e090ed178 100644 --- a/nlp-automl/src/model/RunSmartCallServiceRequest.cc +++ b/nlp-automl/src/model/RunSmartCallServiceRequest.cc @@ -27,6 +27,17 @@ RunSmartCallServiceRequest::RunSmartCallServiceRequest() : RunSmartCallServiceRequest::~RunSmartCallServiceRequest() {} +std::string RunSmartCallServiceRequest::getProduct()const +{ + return product_; +} + +void RunSmartCallServiceRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + std::string RunSmartCallServiceRequest::getSessionId()const { return sessionId_;