regenerate code
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#include "model/AppendEntityMemberResult.h"
|
||||
#include "model/ChatRequest.h"
|
||||
#include "model/ChatResult.h"
|
||||
#include "model/CreateBotRequest.h"
|
||||
#include "model/CreateBotResult.h"
|
||||
#include "model/CreateCategoryRequest.h"
|
||||
#include "model/CreateCategoryResult.h"
|
||||
#include "model/CreateCoreWordRequest.h"
|
||||
@@ -44,6 +46,8 @@
|
||||
#include "model/CreateKnowledgeResult.h"
|
||||
#include "model/CreatePerspectiveRequest.h"
|
||||
#include "model/CreatePerspectiveResult.h"
|
||||
#include "model/DeleteBotRequest.h"
|
||||
#include "model/DeleteBotResult.h"
|
||||
#include "model/DeleteCategoryRequest.h"
|
||||
#include "model/DeleteCategoryResult.h"
|
||||
#include "model/DeleteCoreWordRequest.h"
|
||||
@@ -56,6 +60,8 @@
|
||||
#include "model/DeleteIntentResult.h"
|
||||
#include "model/DeleteKnowledgeRequest.h"
|
||||
#include "model/DeleteKnowledgeResult.h"
|
||||
#include "model/DescribeBotRequest.h"
|
||||
#include "model/DescribeBotResult.h"
|
||||
#include "model/DescribeCategoryRequest.h"
|
||||
#include "model/DescribeCategoryResult.h"
|
||||
#include "model/DescribeCoreWordRequest.h"
|
||||
@@ -78,12 +84,16 @@
|
||||
#include "model/DisableKnowledgeResult.h"
|
||||
#include "model/FeedbackRequest.h"
|
||||
#include "model/FeedbackResult.h"
|
||||
#include "model/LinkBotCategoryRequest.h"
|
||||
#include "model/LinkBotCategoryResult.h"
|
||||
#include "model/MoveKnowledgeCategoryRequest.h"
|
||||
#include "model/MoveKnowledgeCategoryResult.h"
|
||||
#include "model/PublishDialogFlowRequest.h"
|
||||
#include "model/PublishDialogFlowResult.h"
|
||||
#include "model/PublishKnowledgeRequest.h"
|
||||
#include "model/PublishKnowledgeResult.h"
|
||||
#include "model/QueryBotsRequest.h"
|
||||
#include "model/QueryBotsResult.h"
|
||||
#include "model/QueryCategoriesRequest.h"
|
||||
#include "model/QueryCategoriesResult.h"
|
||||
#include "model/QueryCoreWordsRequest.h"
|
||||
@@ -143,6 +153,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ChatResult> ChatOutcome;
|
||||
typedef std::future<ChatOutcome> ChatOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::ChatRequest&, const ChatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBotResult> CreateBotOutcome;
|
||||
typedef std::future<CreateBotOutcome> CreateBotOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::CreateBotRequest&, const CreateBotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBotAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCategoryResult> CreateCategoryOutcome;
|
||||
typedef std::future<CreateCategoryOutcome> CreateCategoryOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::CreateCategoryRequest&, const CreateCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCategoryAsyncHandler;
|
||||
@@ -164,6 +177,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreatePerspectiveResult> CreatePerspectiveOutcome;
|
||||
typedef std::future<CreatePerspectiveOutcome> CreatePerspectiveOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::CreatePerspectiveRequest&, const CreatePerspectiveOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePerspectiveAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBotResult> DeleteBotOutcome;
|
||||
typedef std::future<DeleteBotOutcome> DeleteBotOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::DeleteBotRequest&, const DeleteBotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBotAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCategoryResult> DeleteCategoryOutcome;
|
||||
typedef std::future<DeleteCategoryOutcome> DeleteCategoryOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::DeleteCategoryRequest&, const DeleteCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCategoryAsyncHandler;
|
||||
@@ -182,6 +198,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteKnowledgeResult> DeleteKnowledgeOutcome;
|
||||
typedef std::future<DeleteKnowledgeOutcome> DeleteKnowledgeOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::DeleteKnowledgeRequest&, const DeleteKnowledgeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteKnowledgeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBotResult> DescribeBotOutcome;
|
||||
typedef std::future<DescribeBotOutcome> DescribeBotOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::DescribeBotRequest&, const DescribeBotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBotAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCategoryResult> DescribeCategoryOutcome;
|
||||
typedef std::future<DescribeCategoryOutcome> DescribeCategoryOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::DescribeCategoryRequest&, const DescribeCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCategoryAsyncHandler;
|
||||
@@ -215,6 +234,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::FeedbackResult> FeedbackOutcome;
|
||||
typedef std::future<FeedbackOutcome> FeedbackOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::FeedbackRequest&, const FeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FeedbackAsyncHandler;
|
||||
typedef Outcome<Error, Model::LinkBotCategoryResult> LinkBotCategoryOutcome;
|
||||
typedef std::future<LinkBotCategoryOutcome> LinkBotCategoryOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::LinkBotCategoryRequest&, const LinkBotCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LinkBotCategoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::MoveKnowledgeCategoryResult> MoveKnowledgeCategoryOutcome;
|
||||
typedef std::future<MoveKnowledgeCategoryOutcome> MoveKnowledgeCategoryOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::MoveKnowledgeCategoryRequest&, const MoveKnowledgeCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveKnowledgeCategoryAsyncHandler;
|
||||
@@ -224,6 +246,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PublishKnowledgeResult> PublishKnowledgeOutcome;
|
||||
typedef std::future<PublishKnowledgeOutcome> PublishKnowledgeOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::PublishKnowledgeRequest&, const PublishKnowledgeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishKnowledgeAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryBotsResult> QueryBotsOutcome;
|
||||
typedef std::future<QueryBotsOutcome> QueryBotsOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::QueryBotsRequest&, const QueryBotsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryBotsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCategoriesResult> QueryCategoriesOutcome;
|
||||
typedef std::future<QueryCategoriesOutcome> QueryCategoriesOutcomeCallable;
|
||||
typedef std::function<void(const ChatbotClient*, const Model::QueryCategoriesRequest&, const QueryCategoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCategoriesAsyncHandler;
|
||||
@@ -298,6 +323,9 @@ namespace AlibabaCloud
|
||||
ChatOutcome chat(const Model::ChatRequest &request)const;
|
||||
void chatAsync(const Model::ChatRequest& request, const ChatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChatOutcomeCallable chatCallable(const Model::ChatRequest& request) const;
|
||||
CreateBotOutcome createBot(const Model::CreateBotRequest &request)const;
|
||||
void createBotAsync(const Model::CreateBotRequest& request, const CreateBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBotOutcomeCallable createBotCallable(const Model::CreateBotRequest& request) const;
|
||||
CreateCategoryOutcome createCategory(const Model::CreateCategoryRequest &request)const;
|
||||
void createCategoryAsync(const Model::CreateCategoryRequest& request, const CreateCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCategoryOutcomeCallable createCategoryCallable(const Model::CreateCategoryRequest& request) const;
|
||||
@@ -319,6 +347,9 @@ namespace AlibabaCloud
|
||||
CreatePerspectiveOutcome createPerspective(const Model::CreatePerspectiveRequest &request)const;
|
||||
void createPerspectiveAsync(const Model::CreatePerspectiveRequest& request, const CreatePerspectiveAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePerspectiveOutcomeCallable createPerspectiveCallable(const Model::CreatePerspectiveRequest& request) const;
|
||||
DeleteBotOutcome deleteBot(const Model::DeleteBotRequest &request)const;
|
||||
void deleteBotAsync(const Model::DeleteBotRequest& request, const DeleteBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBotOutcomeCallable deleteBotCallable(const Model::DeleteBotRequest& request) const;
|
||||
DeleteCategoryOutcome deleteCategory(const Model::DeleteCategoryRequest &request)const;
|
||||
void deleteCategoryAsync(const Model::DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCategoryOutcomeCallable deleteCategoryCallable(const Model::DeleteCategoryRequest& request) const;
|
||||
@@ -337,6 +368,9 @@ namespace AlibabaCloud
|
||||
DeleteKnowledgeOutcome deleteKnowledge(const Model::DeleteKnowledgeRequest &request)const;
|
||||
void deleteKnowledgeAsync(const Model::DeleteKnowledgeRequest& request, const DeleteKnowledgeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteKnowledgeOutcomeCallable deleteKnowledgeCallable(const Model::DeleteKnowledgeRequest& request) const;
|
||||
DescribeBotOutcome describeBot(const Model::DescribeBotRequest &request)const;
|
||||
void describeBotAsync(const Model::DescribeBotRequest& request, const DescribeBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBotOutcomeCallable describeBotCallable(const Model::DescribeBotRequest& request) const;
|
||||
DescribeCategoryOutcome describeCategory(const Model::DescribeCategoryRequest &request)const;
|
||||
void describeCategoryAsync(const Model::DescribeCategoryRequest& request, const DescribeCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCategoryOutcomeCallable describeCategoryCallable(const Model::DescribeCategoryRequest& request) const;
|
||||
@@ -370,6 +404,9 @@ namespace AlibabaCloud
|
||||
FeedbackOutcome feedback(const Model::FeedbackRequest &request)const;
|
||||
void feedbackAsync(const Model::FeedbackRequest& request, const FeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FeedbackOutcomeCallable feedbackCallable(const Model::FeedbackRequest& request) const;
|
||||
LinkBotCategoryOutcome linkBotCategory(const Model::LinkBotCategoryRequest &request)const;
|
||||
void linkBotCategoryAsync(const Model::LinkBotCategoryRequest& request, const LinkBotCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LinkBotCategoryOutcomeCallable linkBotCategoryCallable(const Model::LinkBotCategoryRequest& request) const;
|
||||
MoveKnowledgeCategoryOutcome moveKnowledgeCategory(const Model::MoveKnowledgeCategoryRequest &request)const;
|
||||
void moveKnowledgeCategoryAsync(const Model::MoveKnowledgeCategoryRequest& request, const MoveKnowledgeCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MoveKnowledgeCategoryOutcomeCallable moveKnowledgeCategoryCallable(const Model::MoveKnowledgeCategoryRequest& request) const;
|
||||
@@ -379,6 +416,9 @@ namespace AlibabaCloud
|
||||
PublishKnowledgeOutcome publishKnowledge(const Model::PublishKnowledgeRequest &request)const;
|
||||
void publishKnowledgeAsync(const Model::PublishKnowledgeRequest& request, const PublishKnowledgeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishKnowledgeOutcomeCallable publishKnowledgeCallable(const Model::PublishKnowledgeRequest& request) const;
|
||||
QueryBotsOutcome queryBots(const Model::QueryBotsRequest &request)const;
|
||||
void queryBotsAsync(const Model::QueryBotsRequest& request, const QueryBotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryBotsOutcomeCallable queryBotsCallable(const Model::QueryBotsRequest& request) const;
|
||||
QueryCategoriesOutcome queryCategories(const Model::QueryCategoriesRequest &request)const;
|
||||
void queryCategoriesAsync(const Model::QueryCategoriesRequest& request, const QueryCategoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCategoriesOutcomeCallable queryCategoriesCallable(const Model::QueryCategoriesRequest& request) const;
|
||||
|
||||
@@ -37,9 +37,12 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getPerspectiveId()const;
|
||||
void setPerspectiveId(const std::string& perspectiveId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string perspectiveId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,12 +41,8 @@ namespace AlibabaCloud
|
||||
void setSessionId(const std::string& sessionId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getKnowledgeId()const;
|
||||
void setKnowledgeId(const std::string& knowledgeId);
|
||||
std::string getSenderId()const;
|
||||
void setSenderId(const std::string& senderId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getIntentName()const;
|
||||
void setIntentName(const std::string& intentName);
|
||||
std::string getSenderNick()const;
|
||||
void setSenderNick(const std::string& senderNick);
|
||||
std::vector<std::string> getPerspective()const;
|
||||
@@ -55,18 +51,28 @@ namespace AlibabaCloud
|
||||
void setTag(const std::string& tag);
|
||||
std::string getUtterance()const;
|
||||
void setUtterance(const std::string& utterance);
|
||||
int getRecommendNum()const;
|
||||
void setRecommendNum(int recommendNum);
|
||||
std::string getKnowledgeId()const;
|
||||
void setKnowledgeId(const std::string& knowledgeId);
|
||||
std::string getSenderId()const;
|
||||
void setSenderId(const std::string& senderId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
bool recommend_;
|
||||
std::string sessionId_;
|
||||
std::string accessKeyId_;
|
||||
std::string knowledgeId_;
|
||||
std::string senderId_;
|
||||
std::string instanceId_;
|
||||
std::string intentName_;
|
||||
std::string senderNick_;
|
||||
std::vector<std::string> perspective_;
|
||||
std::string tag_;
|
||||
std::string utterance_;
|
||||
int recommendNum_;
|
||||
std::string knowledgeId_;
|
||||
std::string senderId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string content;
|
||||
std::string answerSource;
|
||||
std::string metaData;
|
||||
std::string externalFlags;
|
||||
};
|
||||
struct Knowledge
|
||||
{
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTREQUEST_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT CreateBotRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBotRequest();
|
||||
~CreateBotRequest();
|
||||
|
||||
std::string getRobotType()const;
|
||||
void setRobotType(const std::string& robotType);
|
||||
std::string getTimeZone()const;
|
||||
void setTimeZone(const std::string& timeZone);
|
||||
std::string getAvatar()const;
|
||||
void setAvatar(const std::string& avatar);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getLanguageCode()const;
|
||||
void setLanguageCode(const std::string& languageCode);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getIntroduction()const;
|
||||
void setIntroduction(const std::string& introduction);
|
||||
|
||||
private:
|
||||
std::string robotType_;
|
||||
std::string timeZone_;
|
||||
std::string avatar_;
|
||||
std::string accessKeyId_;
|
||||
std::string languageCode_;
|
||||
std::string name_;
|
||||
std::string introduction_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTREQUEST_H_
|
||||
51
chatbot/include/alibabacloud/chatbot/model/CreateBotResult.h
Normal file
51
chatbot/include/alibabacloud/chatbot/model/CreateBotResult.h
Normal file
@@ -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_CHATBOT_MODEL_CREATEBOTRESULT_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT CreateBotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateBotResult();
|
||||
explicit CreateBotResult(const std::string &payload);
|
||||
~CreateBotResult();
|
||||
std::string getInstanceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTRESULT_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_CHATBOT_MODEL_DELETEBOTREQUEST_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT DeleteBotRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBotRequest();
|
||||
~DeleteBotRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTREQUEST_H_
|
||||
49
chatbot/include/alibabacloud/chatbot/model/DeleteBotResult.h
Normal file
49
chatbot/include/alibabacloud/chatbot/model/DeleteBotResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTRESULT_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT DeleteBotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteBotResult();
|
||||
explicit DeleteBotResult(const std::string &payload);
|
||||
~DeleteBotResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTRESULT_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_CHATBOT_MODEL_DESCRIBEBOTREQUEST_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT DescribeBotRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBotRequest();
|
||||
~DescribeBotRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTRESULT_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT DescribeBotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Category
|
||||
{
|
||||
long categoryId;
|
||||
long parentCategoryId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeBotResult();
|
||||
explicit DescribeBotResult(const std::string &payload);
|
||||
~DescribeBotResult();
|
||||
std::string getLanguageCode()const;
|
||||
std::string getTimeZone()const;
|
||||
std::vector<Category> getCategories()const;
|
||||
std::string getInstanceId()const;
|
||||
std::string getIntroduction()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getAvatar()const;
|
||||
std::string getName()const;
|
||||
std::string getLogo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string languageCode_;
|
||||
std::string timeZone_;
|
||||
std::vector<Category> categories_;
|
||||
std::string instanceId_;
|
||||
std::string introduction_;
|
||||
std::string createTime_;
|
||||
std::string avatar_;
|
||||
std::string name_;
|
||||
std::string logo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTRESULT_H_
|
||||
@@ -37,9 +37,12 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getPerspectiveId()const;
|
||||
void setPerspectiveId(const std::string& perspectiveId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string perspectiveId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_CHATBOT_MODEL_LINKBOTCATEGORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT LinkBotCategoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
LinkBotCategoryRequest();
|
||||
~LinkBotCategoryRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getCategoryIds()const;
|
||||
void setCategoryIds(const std::string& categoryIds);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string categoryIds_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYRESULT_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT LinkBotCategoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
LinkBotCategoryResult();
|
||||
explicit LinkBotCategoryResult(const std::string &payload);
|
||||
~LinkBotCategoryResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYRESULT_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_CHATBOT_MODEL_QUERYBOTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT QueryBotsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryBotsRequest();
|
||||
~QueryBotsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSREQUEST_H_
|
||||
67
chatbot/include/alibabacloud/chatbot/model/QueryBotsResult.h
Normal file
67
chatbot/include/alibabacloud/chatbot/model/QueryBotsResult.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSRESULT_H_
|
||||
#define ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/chatbot/ChatbotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Chatbot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CHATBOT_EXPORT QueryBotsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Bot
|
||||
{
|
||||
std::string languageCode;
|
||||
std::string timeZone;
|
||||
std::string introduction;
|
||||
std::string instanceId;
|
||||
std::string createTime;
|
||||
std::string avatar;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
QueryBotsResult();
|
||||
explicit QueryBotsResult(const std::string &payload);
|
||||
~QueryBotsResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<Bot> getBots()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<Bot> bots_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSRESULT_H_
|
||||
@@ -35,8 +35,11 @@ namespace AlibabaCloud
|
||||
QueryPerspectivesRequest();
|
||||
~QueryPerspectivesRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,11 +37,14 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getPerspectiveId()const;
|
||||
void setPerspectiveId(const std::string& perspectiveId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string perspectiveId_;
|
||||
std::string accessKeyId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user