From 3ed26d9565e5eecb3dbc0b17f50d228701221d78 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sat, 6 May 2023 07:40:19 +0000 Subject: [PATCH] Supported more api for user. --- VERSION | 2 +- alinlp/CMakeLists.txt | 16 ++ .../alibabacloud/alinlp/AlinlpClient.h | 32 ++++ .../alinlp/model/GetEmbeddingRequest.h | 48 ++++++ .../alinlp/model/GetEmbeddingResult.h | 51 +++++++ .../model/GetOpenNLUHighRecallRequest.h | 57 +++++++ .../alinlp/model/GetOpenNLUHighRecallResult.h | 51 +++++++ .../alinlp/model/GetOpenNLURequest.h | 57 +++++++ .../alinlp/model/GetOpenNLUResult.h | 51 +++++++ .../alinlp/model/GetSSETestRequest.h | 45 ++++++ .../alinlp/model/GetSSETestResult.h | 51 +++++++ alinlp/src/AlinlpClient.cc | 144 ++++++++++++++++++ alinlp/src/model/GetEmbeddingRequest.cc | 54 +++++++ alinlp/src/model/GetEmbeddingResult.cc | 51 +++++++ .../src/model/GetOpenNLUHighRecallRequest.cc | 81 ++++++++++ .../src/model/GetOpenNLUHighRecallResult.cc | 51 +++++++ alinlp/src/model/GetOpenNLURequest.cc | 81 ++++++++++ alinlp/src/model/GetOpenNLUResult.cc | 51 +++++++ alinlp/src/model/GetSSETestRequest.cc | 45 ++++++ alinlp/src/model/GetSSETestResult.cc | 51 +++++++ 20 files changed, 1069 insertions(+), 1 deletion(-) create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetEmbeddingRequest.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetEmbeddingResult.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetOpenNLURequest.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetOpenNLUResult.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetSSETestRequest.h create mode 100644 alinlp/include/alibabacloud/alinlp/model/GetSSETestResult.h create mode 100644 alinlp/src/model/GetEmbeddingRequest.cc create mode 100644 alinlp/src/model/GetEmbeddingResult.cc create mode 100644 alinlp/src/model/GetOpenNLUHighRecallRequest.cc create mode 100644 alinlp/src/model/GetOpenNLUHighRecallResult.cc create mode 100644 alinlp/src/model/GetOpenNLURequest.cc create mode 100644 alinlp/src/model/GetOpenNLUResult.cc create mode 100644 alinlp/src/model/GetSSETestRequest.cc create mode 100644 alinlp/src/model/GetSSETestResult.cc diff --git a/VERSION b/VERSION index 65ffdbf61..e4299ee1b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1552 \ No newline at end of file +1.36.1553 \ No newline at end of file diff --git a/alinlp/CMakeLists.txt b/alinlp/CMakeLists.txt index 82a2dee95..590c68fe1 100644 --- a/alinlp/CMakeLists.txt +++ b/alinlp/CMakeLists.txt @@ -47,6 +47,8 @@ set(alinlp_public_header_model include/alibabacloud/alinlp/model/GetEcChGeneralResult.h include/alibabacloud/alinlp/model/GetEcEnGeneralRequest.h include/alibabacloud/alinlp/model/GetEcEnGeneralResult.h + include/alibabacloud/alinlp/model/GetEmbeddingRequest.h + include/alibabacloud/alinlp/model/GetEmbeddingResult.h include/alibabacloud/alinlp/model/GetItemPubChEcomRequest.h include/alibabacloud/alinlp/model/GetItemPubChEcomResult.h include/alibabacloud/alinlp/model/GetKeywordChEcomRequest.h @@ -63,6 +65,10 @@ set(alinlp_public_header_model include/alibabacloud/alinlp/model/GetNerCustomizedChEcomResult.h include/alibabacloud/alinlp/model/GetNerCustomizedSeaEcomRequest.h include/alibabacloud/alinlp/model/GetNerCustomizedSeaEcomResult.h + include/alibabacloud/alinlp/model/GetOpenNLURequest.h + include/alibabacloud/alinlp/model/GetOpenNLUResult.h + include/alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.h + include/alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.h include/alibabacloud/alinlp/model/GetOperationChMedicalRequest.h include/alibabacloud/alinlp/model/GetOperationChMedicalResult.h include/alibabacloud/alinlp/model/GetPosChEcomRequest.h @@ -71,6 +77,8 @@ set(alinlp_public_header_model include/alibabacloud/alinlp/model/GetPosChGeneralResult.h include/alibabacloud/alinlp/model/GetPriceChEcomRequest.h include/alibabacloud/alinlp/model/GetPriceChEcomResult.h + include/alibabacloud/alinlp/model/GetSSETestRequest.h + include/alibabacloud/alinlp/model/GetSSETestResult.h include/alibabacloud/alinlp/model/GetSaChGeneralRequest.h include/alibabacloud/alinlp/model/GetSaChGeneralResult.h include/alibabacloud/alinlp/model/GetSaSeaEcomRequest.h @@ -154,6 +162,8 @@ set(alinlp_src src/model/GetEcChGeneralResult.cc src/model/GetEcEnGeneralRequest.cc src/model/GetEcEnGeneralResult.cc + src/model/GetEmbeddingRequest.cc + src/model/GetEmbeddingResult.cc src/model/GetItemPubChEcomRequest.cc src/model/GetItemPubChEcomResult.cc src/model/GetKeywordChEcomRequest.cc @@ -170,6 +180,10 @@ set(alinlp_src src/model/GetNerCustomizedChEcomResult.cc src/model/GetNerCustomizedSeaEcomRequest.cc src/model/GetNerCustomizedSeaEcomResult.cc + src/model/GetOpenNLURequest.cc + src/model/GetOpenNLUResult.cc + src/model/GetOpenNLUHighRecallRequest.cc + src/model/GetOpenNLUHighRecallResult.cc src/model/GetOperationChMedicalRequest.cc src/model/GetOperationChMedicalResult.cc src/model/GetPosChEcomRequest.cc @@ -178,6 +192,8 @@ set(alinlp_src src/model/GetPosChGeneralResult.cc src/model/GetPriceChEcomRequest.cc src/model/GetPriceChEcomResult.cc + src/model/GetSSETestRequest.cc + src/model/GetSSETestResult.cc src/model/GetSaChGeneralRequest.cc src/model/GetSaChGeneralResult.cc src/model/GetSaSeaEcomRequest.cc diff --git a/alinlp/include/alibabacloud/alinlp/AlinlpClient.h b/alinlp/include/alibabacloud/alinlp/AlinlpClient.h index b6bb6af51..649412e65 100644 --- a/alinlp/include/alibabacloud/alinlp/AlinlpClient.h +++ b/alinlp/include/alibabacloud/alinlp/AlinlpClient.h @@ -48,6 +48,8 @@ #include "model/GetEcChGeneralResult.h" #include "model/GetEcEnGeneralRequest.h" #include "model/GetEcEnGeneralResult.h" +#include "model/GetEmbeddingRequest.h" +#include "model/GetEmbeddingResult.h" #include "model/GetItemPubChEcomRequest.h" #include "model/GetItemPubChEcomResult.h" #include "model/GetKeywordChEcomRequest.h" @@ -64,6 +66,10 @@ #include "model/GetNerCustomizedChEcomResult.h" #include "model/GetNerCustomizedSeaEcomRequest.h" #include "model/GetNerCustomizedSeaEcomResult.h" +#include "model/GetOpenNLURequest.h" +#include "model/GetOpenNLUResult.h" +#include "model/GetOpenNLUHighRecallRequest.h" +#include "model/GetOpenNLUHighRecallResult.h" #include "model/GetOperationChMedicalRequest.h" #include "model/GetOperationChMedicalResult.h" #include "model/GetPosChEcomRequest.h" @@ -72,6 +78,8 @@ #include "model/GetPosChGeneralResult.h" #include "model/GetPriceChEcomRequest.h" #include "model/GetPriceChEcomResult.h" +#include "model/GetSSETestRequest.h" +#include "model/GetSSETestResult.h" #include "model/GetSaChGeneralRequest.h" #include "model/GetSaChGeneralResult.h" #include "model/GetSaSeaEcomRequest.h" @@ -174,6 +182,9 @@ namespace AlibabaCloud typedef Outcome GetEcEnGeneralOutcome; typedef std::future GetEcEnGeneralOutcomeCallable; typedef std::function&)> GetEcEnGeneralAsyncHandler; + typedef Outcome GetEmbeddingOutcome; + typedef std::future GetEmbeddingOutcomeCallable; + typedef std::function&)> GetEmbeddingAsyncHandler; typedef Outcome GetItemPubChEcomOutcome; typedef std::future GetItemPubChEcomOutcomeCallable; typedef std::function&)> GetItemPubChEcomAsyncHandler; @@ -198,6 +209,12 @@ namespace AlibabaCloud typedef Outcome GetNerCustomizedSeaEcomOutcome; typedef std::future GetNerCustomizedSeaEcomOutcomeCallable; typedef std::function&)> GetNerCustomizedSeaEcomAsyncHandler; + typedef Outcome GetOpenNLUOutcome; + typedef std::future GetOpenNLUOutcomeCallable; + typedef std::function&)> GetOpenNLUAsyncHandler; + typedef Outcome GetOpenNLUHighRecallOutcome; + typedef std::future GetOpenNLUHighRecallOutcomeCallable; + typedef std::function&)> GetOpenNLUHighRecallAsyncHandler; typedef Outcome GetOperationChMedicalOutcome; typedef std::future GetOperationChMedicalOutcomeCallable; typedef std::function&)> GetOperationChMedicalAsyncHandler; @@ -210,6 +227,9 @@ namespace AlibabaCloud typedef Outcome GetPriceChEcomOutcome; typedef std::future GetPriceChEcomOutcomeCallable; typedef std::function&)> GetPriceChEcomAsyncHandler; + typedef Outcome GetSSETestOutcome; + typedef std::future GetSSETestOutcomeCallable; + typedef std::function&)> GetSSETestAsyncHandler; typedef Outcome GetSaChGeneralOutcome; typedef std::future GetSaChGeneralOutcomeCallable; typedef std::function&)> GetSaChGeneralAsyncHandler; @@ -335,6 +355,9 @@ namespace AlibabaCloud GetEcEnGeneralOutcome getEcEnGeneral(const Model::GetEcEnGeneralRequest &request)const; void getEcEnGeneralAsync(const Model::GetEcEnGeneralRequest& request, const GetEcEnGeneralAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetEcEnGeneralOutcomeCallable getEcEnGeneralCallable(const Model::GetEcEnGeneralRequest& request) const; + GetEmbeddingOutcome getEmbedding(const Model::GetEmbeddingRequest &request)const; + void getEmbeddingAsync(const Model::GetEmbeddingRequest& request, const GetEmbeddingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEmbeddingOutcomeCallable getEmbeddingCallable(const Model::GetEmbeddingRequest& request) const; GetItemPubChEcomOutcome getItemPubChEcom(const Model::GetItemPubChEcomRequest &request)const; void getItemPubChEcomAsync(const Model::GetItemPubChEcomRequest& request, const GetItemPubChEcomAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetItemPubChEcomOutcomeCallable getItemPubChEcomCallable(const Model::GetItemPubChEcomRequest& request) const; @@ -359,6 +382,12 @@ namespace AlibabaCloud GetNerCustomizedSeaEcomOutcome getNerCustomizedSeaEcom(const Model::GetNerCustomizedSeaEcomRequest &request)const; void getNerCustomizedSeaEcomAsync(const Model::GetNerCustomizedSeaEcomRequest& request, const GetNerCustomizedSeaEcomAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetNerCustomizedSeaEcomOutcomeCallable getNerCustomizedSeaEcomCallable(const Model::GetNerCustomizedSeaEcomRequest& request) const; + GetOpenNLUOutcome getOpenNLU(const Model::GetOpenNLURequest &request)const; + void getOpenNLUAsync(const Model::GetOpenNLURequest& request, const GetOpenNLUAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOpenNLUOutcomeCallable getOpenNLUCallable(const Model::GetOpenNLURequest& request) const; + GetOpenNLUHighRecallOutcome getOpenNLUHighRecall(const Model::GetOpenNLUHighRecallRequest &request)const; + void getOpenNLUHighRecallAsync(const Model::GetOpenNLUHighRecallRequest& request, const GetOpenNLUHighRecallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOpenNLUHighRecallOutcomeCallable getOpenNLUHighRecallCallable(const Model::GetOpenNLUHighRecallRequest& request) const; GetOperationChMedicalOutcome getOperationChMedical(const Model::GetOperationChMedicalRequest &request)const; void getOperationChMedicalAsync(const Model::GetOperationChMedicalRequest& request, const GetOperationChMedicalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetOperationChMedicalOutcomeCallable getOperationChMedicalCallable(const Model::GetOperationChMedicalRequest& request) const; @@ -371,6 +400,9 @@ namespace AlibabaCloud GetPriceChEcomOutcome getPriceChEcom(const Model::GetPriceChEcomRequest &request)const; void getPriceChEcomAsync(const Model::GetPriceChEcomRequest& request, const GetPriceChEcomAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPriceChEcomOutcomeCallable getPriceChEcomCallable(const Model::GetPriceChEcomRequest& request) const; + GetSSETestOutcome getSSETest(const Model::GetSSETestRequest &request)const; + void getSSETestAsync(const Model::GetSSETestRequest& request, const GetSSETestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSSETestOutcomeCallable getSSETestCallable(const Model::GetSSETestRequest& request) const; GetSaChGeneralOutcome getSaChGeneral(const Model::GetSaChGeneralRequest &request)const; void getSaChGeneralAsync(const Model::GetSaChGeneralRequest& request, const GetSaChGeneralAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSaChGeneralOutcomeCallable getSaChGeneralCallable(const Model::GetSaChGeneralRequest& request) const; diff --git a/alinlp/include/alibabacloud/alinlp/model/GetEmbeddingRequest.h b/alinlp/include/alibabacloud/alinlp/model/GetEmbeddingRequest.h new file mode 100644 index 000000000..dce8466fe --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetEmbeddingRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGREQUEST_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alinlp { +namespace Model { +class ALIBABACLOUD_ALINLP_EXPORT GetEmbeddingRequest : public RpcServiceRequest { +public: + GetEmbeddingRequest(); + ~GetEmbeddingRequest(); + std::string getBusiness() const; + void setBusiness(const std::string &business); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getText() const; + void setText(const std::string &text); + +private: + std::string business_; + std::string serviceCode_; + std::string text_; +}; +} // namespace Model +} // namespace Alinlp +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGREQUEST_H_ diff --git a/alinlp/include/alibabacloud/alinlp/model/GetEmbeddingResult.h b/alinlp/include/alibabacloud/alinlp/model/GetEmbeddingResult.h new file mode 100644 index 000000000..8405ee035 --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetEmbeddingResult.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_ALINLP_MODEL_GETEMBEDDINGRESULT_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alinlp + { + namespace Model + { + class ALIBABACLOUD_ALINLP_EXPORT GetEmbeddingResult : public ServiceResult + { + public: + + + GetEmbeddingResult(); + explicit GetEmbeddingResult(const std::string &payload); + ~GetEmbeddingResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETEMBEDDINGRESULT_H_ \ No newline at end of file diff --git a/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.h b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.h new file mode 100644 index 000000000..2c2fcae2d --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallRequest.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_ALINLP_MODEL_GETOPENNLUHIGHRECALLREQUEST_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alinlp { +namespace Model { +class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLUHighRecallRequest : public RpcServiceRequest { +public: + GetOpenNLUHighRecallRequest(); + ~GetOpenNLUHighRecallRequest(); + std::string getSentence() const; + void setSentence(const std::string &sentence); + std::string getBusiness() const; + void setBusiness(const std::string &business); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string getTask() const; + void setTask(const std::string &task); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getExamples() const; + void setExamples(const std::string &examples); + +private: + std::string sentence_; + std::string business_; + std::string labels_; + std::string task_; + std::string serviceCode_; + std::string examples_; +}; +} // namespace Model +} // namespace Alinlp +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLREQUEST_H_ diff --git a/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.h b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.h new file mode 100644 index 000000000..6fd8ea953 --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUHighRecallResult.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_ALINLP_MODEL_GETOPENNLUHIGHRECALLRESULT_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alinlp + { + namespace Model + { + class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLUHighRecallResult : public ServiceResult + { + public: + + + GetOpenNLUHighRecallResult(); + explicit GetOpenNLUHighRecallResult(const std::string &payload); + ~GetOpenNLUHighRecallResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUHIGHRECALLRESULT_H_ \ No newline at end of file diff --git a/alinlp/include/alibabacloud/alinlp/model/GetOpenNLURequest.h b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLURequest.h new file mode 100644 index 000000000..248ed7d11 --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLURequest.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_ALINLP_MODEL_GETOPENNLUREQUEST_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alinlp { +namespace Model { +class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLURequest : public RpcServiceRequest { +public: + GetOpenNLURequest(); + ~GetOpenNLURequest(); + std::string getSentence() const; + void setSentence(const std::string &sentence); + std::string getBusiness() const; + void setBusiness(const std::string &business); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string getTask() const; + void setTask(const std::string &task); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getExamples() const; + void setExamples(const std::string &examples); + +private: + std::string sentence_; + std::string business_; + std::string labels_; + std::string task_; + std::string serviceCode_; + std::string examples_; +}; +} // namespace Model +} // namespace Alinlp +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLUREQUEST_H_ diff --git a/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUResult.h b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUResult.h new file mode 100644 index 000000000..57c1599b9 --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetOpenNLUResult.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_ALINLP_MODEL_GETOPENNLURESULT_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETOPENNLURESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alinlp + { + namespace Model + { + class ALIBABACLOUD_ALINLP_EXPORT GetOpenNLUResult : public ServiceResult + { + public: + + + GetOpenNLUResult(); + explicit GetOpenNLUResult(const std::string &payload); + ~GetOpenNLUResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETOPENNLURESULT_H_ \ No newline at end of file diff --git a/alinlp/include/alibabacloud/alinlp/model/GetSSETestRequest.h b/alinlp/include/alibabacloud/alinlp/model/GetSSETestRequest.h new file mode 100644 index 000000000..08c9c8c33 --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetSSETestRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALINLP_MODEL_GETSSETESTREQUEST_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETSSETESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alinlp { +namespace Model { +class ALIBABACLOUD_ALINLP_EXPORT GetSSETestRequest : public RpcServiceRequest { +public: + GetSSETestRequest(); + ~GetSSETestRequest(); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + +private: + std::string params_; + std::string serviceCode_; +}; +} // namespace Model +} // namespace Alinlp +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSSETESTREQUEST_H_ diff --git a/alinlp/include/alibabacloud/alinlp/model/GetSSETestResult.h b/alinlp/include/alibabacloud/alinlp/model/GetSSETestResult.h new file mode 100644 index 000000000..1ab9c41f2 --- /dev/null +++ b/alinlp/include/alibabacloud/alinlp/model/GetSSETestResult.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_ALINLP_MODEL_GETSSETESTRESULT_H_ +#define ALIBABACLOUD_ALINLP_MODEL_GETSSETESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alinlp + { + namespace Model + { + class ALIBABACLOUD_ALINLP_EXPORT GetSSETestResult : public ServiceResult + { + public: + + + GetSSETestResult(); + explicit GetSSETestResult(const std::string &payload); + ~GetSSETestResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSSETESTRESULT_H_ \ No newline at end of file diff --git a/alinlp/src/AlinlpClient.cc b/alinlp/src/AlinlpClient.cc index 7f868cb45..3d991f9d8 100644 --- a/alinlp/src/AlinlpClient.cc +++ b/alinlp/src/AlinlpClient.cc @@ -519,6 +519,42 @@ AlinlpClient::GetEcEnGeneralOutcomeCallable AlinlpClient::getEcEnGeneralCallable return task->get_future(); } +AlinlpClient::GetEmbeddingOutcome AlinlpClient::getEmbedding(const GetEmbeddingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEmbeddingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEmbeddingOutcome(GetEmbeddingResult(outcome.result())); + else + return GetEmbeddingOutcome(outcome.error()); +} + +void AlinlpClient::getEmbeddingAsync(const GetEmbeddingRequest& request, const GetEmbeddingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEmbedding(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlinlpClient::GetEmbeddingOutcomeCallable AlinlpClient::getEmbeddingCallable(const GetEmbeddingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEmbedding(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlinlpClient::GetItemPubChEcomOutcome AlinlpClient::getItemPubChEcom(const GetItemPubChEcomRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +843,78 @@ AlinlpClient::GetNerCustomizedSeaEcomOutcomeCallable AlinlpClient::getNerCustomi return task->get_future(); } +AlinlpClient::GetOpenNLUOutcome AlinlpClient::getOpenNLU(const GetOpenNLURequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOpenNLUOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOpenNLUOutcome(GetOpenNLUResult(outcome.result())); + else + return GetOpenNLUOutcome(outcome.error()); +} + +void AlinlpClient::getOpenNLUAsync(const GetOpenNLURequest& request, const GetOpenNLUAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOpenNLU(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlinlpClient::GetOpenNLUOutcomeCallable AlinlpClient::getOpenNLUCallable(const GetOpenNLURequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOpenNLU(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlinlpClient::GetOpenNLUHighRecallOutcome AlinlpClient::getOpenNLUHighRecall(const GetOpenNLUHighRecallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOpenNLUHighRecallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOpenNLUHighRecallOutcome(GetOpenNLUHighRecallResult(outcome.result())); + else + return GetOpenNLUHighRecallOutcome(outcome.error()); +} + +void AlinlpClient::getOpenNLUHighRecallAsync(const GetOpenNLUHighRecallRequest& request, const GetOpenNLUHighRecallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOpenNLUHighRecall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlinlpClient::GetOpenNLUHighRecallOutcomeCallable AlinlpClient::getOpenNLUHighRecallCallable(const GetOpenNLUHighRecallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOpenNLUHighRecall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlinlpClient::GetOperationChMedicalOutcome AlinlpClient::getOperationChMedical(const GetOperationChMedicalRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1059,42 @@ AlinlpClient::GetPriceChEcomOutcomeCallable AlinlpClient::getPriceChEcomCallable return task->get_future(); } +AlinlpClient::GetSSETestOutcome AlinlpClient::getSSETest(const GetSSETestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSSETestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSSETestOutcome(GetSSETestResult(outcome.result())); + else + return GetSSETestOutcome(outcome.error()); +} + +void AlinlpClient::getSSETestAsync(const GetSSETestRequest& request, const GetSSETestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSSETest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlinlpClient::GetSSETestOutcomeCallable AlinlpClient::getSSETestCallable(const GetSSETestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSSETest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlinlpClient::GetSaChGeneralOutcome AlinlpClient::getSaChGeneral(const GetSaChGeneralRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/alinlp/src/model/GetEmbeddingRequest.cc b/alinlp/src/model/GetEmbeddingRequest.cc new file mode 100644 index 000000000..126dba457 --- /dev/null +++ b/alinlp/src/model/GetEmbeddingRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alinlp::Model::GetEmbeddingRequest; + +GetEmbeddingRequest::GetEmbeddingRequest() + : RpcServiceRequest("alinlp", "2020-06-29", "GetEmbedding") { + setMethod(HttpRequest::Method::Post); +} + +GetEmbeddingRequest::~GetEmbeddingRequest() {} + +std::string GetEmbeddingRequest::getBusiness() const { + return business_; +} + +void GetEmbeddingRequest::setBusiness(const std::string &business) { + business_ = business; + setParameter(std::string("Business"), business); +} + +std::string GetEmbeddingRequest::getServiceCode() const { + return serviceCode_; +} + +void GetEmbeddingRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + +std::string GetEmbeddingRequest::getText() const { + return text_; +} + +void GetEmbeddingRequest::setText(const std::string &text) { + text_ = text; + setBodyParameter(std::string("Text"), text); +} + diff --git a/alinlp/src/model/GetEmbeddingResult.cc b/alinlp/src/model/GetEmbeddingResult.cc new file mode 100644 index 000000000..1068131d7 --- /dev/null +++ b/alinlp/src/model/GetEmbeddingResult.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::Alinlp; +using namespace AlibabaCloud::Alinlp::Model; + +GetEmbeddingResult::GetEmbeddingResult() : + ServiceResult() +{} + +GetEmbeddingResult::GetEmbeddingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEmbeddingResult::~GetEmbeddingResult() +{} + +void GetEmbeddingResult::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(); + +} + +std::string GetEmbeddingResult::getData()const +{ + return data_; +} + diff --git a/alinlp/src/model/GetOpenNLUHighRecallRequest.cc b/alinlp/src/model/GetOpenNLUHighRecallRequest.cc new file mode 100644 index 000000000..84d3a123b --- /dev/null +++ b/alinlp/src/model/GetOpenNLUHighRecallRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alinlp::Model::GetOpenNLUHighRecallRequest; + +GetOpenNLUHighRecallRequest::GetOpenNLUHighRecallRequest() + : RpcServiceRequest("alinlp", "2020-06-29", "GetOpenNLUHighRecall") { + setMethod(HttpRequest::Method::Post); +} + +GetOpenNLUHighRecallRequest::~GetOpenNLUHighRecallRequest() {} + +std::string GetOpenNLUHighRecallRequest::getSentence() const { + return sentence_; +} + +void GetOpenNLUHighRecallRequest::setSentence(const std::string &sentence) { + sentence_ = sentence; + setBodyParameter(std::string("Sentence"), sentence); +} + +std::string GetOpenNLUHighRecallRequest::getBusiness() const { + return business_; +} + +void GetOpenNLUHighRecallRequest::setBusiness(const std::string &business) { + business_ = business; + setParameter(std::string("Business"), business); +} + +std::string GetOpenNLUHighRecallRequest::getLabels() const { + return labels_; +} + +void GetOpenNLUHighRecallRequest::setLabels(const std::string &labels) { + labels_ = labels; + setBodyParameter(std::string("Labels"), labels); +} + +std::string GetOpenNLUHighRecallRequest::getTask() const { + return task_; +} + +void GetOpenNLUHighRecallRequest::setTask(const std::string &task) { + task_ = task; + setBodyParameter(std::string("Task"), task); +} + +std::string GetOpenNLUHighRecallRequest::getServiceCode() const { + return serviceCode_; +} + +void GetOpenNLUHighRecallRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + +std::string GetOpenNLUHighRecallRequest::getExamples() const { + return examples_; +} + +void GetOpenNLUHighRecallRequest::setExamples(const std::string &examples) { + examples_ = examples; + setBodyParameter(std::string("Examples"), examples); +} + diff --git a/alinlp/src/model/GetOpenNLUHighRecallResult.cc b/alinlp/src/model/GetOpenNLUHighRecallResult.cc new file mode 100644 index 000000000..cef50aedb --- /dev/null +++ b/alinlp/src/model/GetOpenNLUHighRecallResult.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::Alinlp; +using namespace AlibabaCloud::Alinlp::Model; + +GetOpenNLUHighRecallResult::GetOpenNLUHighRecallResult() : + ServiceResult() +{} + +GetOpenNLUHighRecallResult::GetOpenNLUHighRecallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOpenNLUHighRecallResult::~GetOpenNLUHighRecallResult() +{} + +void GetOpenNLUHighRecallResult::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(); + +} + +std::string GetOpenNLUHighRecallResult::getData()const +{ + return data_; +} + diff --git a/alinlp/src/model/GetOpenNLURequest.cc b/alinlp/src/model/GetOpenNLURequest.cc new file mode 100644 index 000000000..58018cfd9 --- /dev/null +++ b/alinlp/src/model/GetOpenNLURequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alinlp::Model::GetOpenNLURequest; + +GetOpenNLURequest::GetOpenNLURequest() + : RpcServiceRequest("alinlp", "2020-06-29", "GetOpenNLU") { + setMethod(HttpRequest::Method::Post); +} + +GetOpenNLURequest::~GetOpenNLURequest() {} + +std::string GetOpenNLURequest::getSentence() const { + return sentence_; +} + +void GetOpenNLURequest::setSentence(const std::string &sentence) { + sentence_ = sentence; + setBodyParameter(std::string("Sentence"), sentence); +} + +std::string GetOpenNLURequest::getBusiness() const { + return business_; +} + +void GetOpenNLURequest::setBusiness(const std::string &business) { + business_ = business; + setParameter(std::string("Business"), business); +} + +std::string GetOpenNLURequest::getLabels() const { + return labels_; +} + +void GetOpenNLURequest::setLabels(const std::string &labels) { + labels_ = labels; + setBodyParameter(std::string("Labels"), labels); +} + +std::string GetOpenNLURequest::getTask() const { + return task_; +} + +void GetOpenNLURequest::setTask(const std::string &task) { + task_ = task; + setBodyParameter(std::string("Task"), task); +} + +std::string GetOpenNLURequest::getServiceCode() const { + return serviceCode_; +} + +void GetOpenNLURequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + +std::string GetOpenNLURequest::getExamples() const { + return examples_; +} + +void GetOpenNLURequest::setExamples(const std::string &examples) { + examples_ = examples; + setBodyParameter(std::string("Examples"), examples); +} + diff --git a/alinlp/src/model/GetOpenNLUResult.cc b/alinlp/src/model/GetOpenNLUResult.cc new file mode 100644 index 000000000..70e3631a3 --- /dev/null +++ b/alinlp/src/model/GetOpenNLUResult.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::Alinlp; +using namespace AlibabaCloud::Alinlp::Model; + +GetOpenNLUResult::GetOpenNLUResult() : + ServiceResult() +{} + +GetOpenNLUResult::GetOpenNLUResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOpenNLUResult::~GetOpenNLUResult() +{} + +void GetOpenNLUResult::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(); + +} + +std::string GetOpenNLUResult::getData()const +{ + return data_; +} + diff --git a/alinlp/src/model/GetSSETestRequest.cc b/alinlp/src/model/GetSSETestRequest.cc new file mode 100644 index 000000000..17ac691f7 --- /dev/null +++ b/alinlp/src/model/GetSSETestRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alinlp::Model::GetSSETestRequest; + +GetSSETestRequest::GetSSETestRequest() + : RpcServiceRequest("alinlp", "2020-06-29", "GetSSETest") { + setMethod(HttpRequest::Method::Post); +} + +GetSSETestRequest::~GetSSETestRequest() {} + +std::string GetSSETestRequest::getParams() const { + return params_; +} + +void GetSSETestRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string GetSSETestRequest::getServiceCode() const { + return serviceCode_; +} + +void GetSSETestRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + diff --git a/alinlp/src/model/GetSSETestResult.cc b/alinlp/src/model/GetSSETestResult.cc new file mode 100644 index 000000000..61d3d0bb7 --- /dev/null +++ b/alinlp/src/model/GetSSETestResult.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::Alinlp; +using namespace AlibabaCloud::Alinlp::Model; + +GetSSETestResult::GetSSETestResult() : + ServiceResult() +{} + +GetSSETestResult::GetSSETestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSSETestResult::~GetSSETestResult() +{} + +void GetSSETestResult::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(); + +} + +std::string GetSSETestResult::getData()const +{ + return data_; +} +