From a0cde540cb9a16a4dee132c96f9d3c604560ac66 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 7 Mar 2022 12:29:43 +0000 Subject: [PATCH] Supported new features for outbound. --- CHANGELOG | 3 + VERSION | 2 +- outboundbot/CMakeLists.txt | 16 + .../outboundbot/OutboundBotClient.h | 32 ++ .../model/CreateInstanceBindNumberRequest.h | 51 +++ .../model/CreateInstanceBindNumberResult.h | 68 ++++ .../model/CreateTaskExportTaskRequest.h | 123 +++++++ .../model/CreateTaskExportTaskResult.h | 59 ++++ .../outboundbot/model/DescribeScriptResult.h | 2 + .../model/DescribeTTSConfigResult.h | 6 +- .../model/DescribeTenantBindNumberRequest.h | 48 +++ .../model/DescribeTenantBindNumberResult.h | 69 ++++ .../ListAllTenantBindNumberBindingRequest.h | 48 +++ .../ListAllTenantBindNumberBindingResult.h | 71 ++++ .../outboundbot/model/ModifyScriptRequest.h | 3 + .../outboundbot/model/ModifyScriptResult.h | 4 +- .../model/ModifyTTSConfigRequest.h | 6 + .../outboundbot/model/ModifyTTSConfigResult.h | 4 +- .../outboundbot/model/SearchTaskRequest.h | 3 + .../outboundbot/model/SearchTaskResult.h | 1 + outboundbot/src/OutboundBotClient.cc | 144 ++++++++ .../model/CreateInstanceBindNumberRequest.cc | 51 +++ .../model/CreateInstanceBindNumberResult.cc | 88 +++++ .../src/model/CreateTaskExportTaskRequest.cc | 315 ++++++++++++++++++ .../src/model/CreateTaskExportTaskResult.cc | 79 +++++ outboundbot/src/model/DescribeScriptResult.cc | 59 ++-- .../src/model/DescribeTTSConfigResult.cc | 20 +- .../model/DescribeTenantBindNumberRequest.cc | 40 +++ .../model/DescribeTenantBindNumberResult.cc | 90 +++++ .../ListAllTenantBindNumberBindingRequest.cc | 40 +++ .../ListAllTenantBindNumberBindingResult.cc | 95 ++++++ outboundbot/src/model/ModifyScriptRequest.cc | 11 + outboundbot/src/model/ModifyScriptResult.cc | 40 +-- .../src/model/ModifyTTSConfigRequest.cc | 22 ++ .../src/model/ModifyTTSConfigResult.cc | 20 +- outboundbot/src/model/SearchTaskRequest.cc | 11 + outboundbot/src/model/SearchTaskResult.cc | 2 + 37 files changed, 1672 insertions(+), 74 deletions(-) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h create mode 100644 outboundbot/src/model/CreateInstanceBindNumberRequest.cc create mode 100644 outboundbot/src/model/CreateInstanceBindNumberResult.cc create mode 100644 outboundbot/src/model/CreateTaskExportTaskRequest.cc create mode 100644 outboundbot/src/model/CreateTaskExportTaskResult.cc create mode 100644 outboundbot/src/model/DescribeTenantBindNumberRequest.cc create mode 100644 outboundbot/src/model/DescribeTenantBindNumberResult.cc create mode 100644 outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc create mode 100644 outboundbot/src/model/ListAllTenantBindNumberBindingResult.cc diff --git a/CHANGELOG b/CHANGELOG index 6d91aabc4..d62bb83c1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-03-07 Version: 1.36.1071 +- Supported new features for outbound. + 2022-03-04 Version: 1.36.1070 - Initialize APIs. diff --git a/VERSION b/VERSION index 31c2d3a05..6cfb3e853 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1070 \ No newline at end of file +1.36.1071 \ No newline at end of file diff --git a/outboundbot/CMakeLists.txt b/outboundbot/CMakeLists.txt index 5f9987990..e2c4f7c6e 100644 --- a/outboundbot/CMakeLists.txt +++ b/outboundbot/CMakeLists.txt @@ -41,6 +41,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/CreateGlobalQuestionResult.h include/alibabacloud/outboundbot/model/CreateInstanceRequest.h include/alibabacloud/outboundbot/model/CreateInstanceResult.h + include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h + include/alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h include/alibabacloud/outboundbot/model/CreateIntentRequest.h include/alibabacloud/outboundbot/model/CreateIntentResult.h include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h @@ -61,6 +63,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/CreateScriptWaveformResult.h include/alibabacloud/outboundbot/model/CreateTagRequest.h include/alibabacloud/outboundbot/model/CreateTagResult.h + include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h + include/alibabacloud/outboundbot/model/CreateTaskExportTaskResult.h include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoResult.h include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h @@ -117,6 +121,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/DescribeTTSDemoResult.h include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryResult.h + include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h + include/alibabacloud/outboundbot/model/DescribeTenantBindNumberResult.h include/alibabacloud/outboundbot/model/DialogueRequest.h include/alibabacloud/outboundbot/model/DialogueResult.h include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h @@ -161,6 +167,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/ImportScriptResult.h include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h include/alibabacloud/outboundbot/model/InflightTaskTimeoutResult.h + include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h + include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h include/alibabacloud/outboundbot/model/ListChatbotInstancesResult.h include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h @@ -300,6 +308,8 @@ set(outboundbot_src src/model/CreateGlobalQuestionResult.cc src/model/CreateInstanceRequest.cc src/model/CreateInstanceResult.cc + src/model/CreateInstanceBindNumberRequest.cc + src/model/CreateInstanceBindNumberResult.cc src/model/CreateIntentRequest.cc src/model/CreateIntentResult.cc src/model/CreateJobDataParsingTaskRequest.cc @@ -320,6 +330,8 @@ set(outboundbot_src src/model/CreateScriptWaveformResult.cc src/model/CreateTagRequest.cc src/model/CreateTagResult.cc + src/model/CreateTaskExportTaskRequest.cc + src/model/CreateTaskExportTaskResult.cc src/model/DeleteAllNumberDistrictInfoRequest.cc src/model/DeleteAllNumberDistrictInfoResult.cc src/model/DeleteContactBlockListRequest.cc @@ -376,6 +388,8 @@ set(outboundbot_src src/model/DescribeTTSDemoResult.cc src/model/DescribeTagHitsSummaryRequest.cc src/model/DescribeTagHitsSummaryResult.cc + src/model/DescribeTenantBindNumberRequest.cc + src/model/DescribeTenantBindNumberResult.cc src/model/DialogueRequest.cc src/model/DialogueResult.cc src/model/DismissNumberDistrictInfoParsingResultRequest.cc @@ -420,6 +434,8 @@ set(outboundbot_src src/model/ImportScriptResult.cc src/model/InflightTaskTimeoutRequest.cc src/model/InflightTaskTimeoutResult.cc + src/model/ListAllTenantBindNumberBindingRequest.cc + src/model/ListAllTenantBindNumberBindingResult.cc src/model/ListChatbotInstancesRequest.cc src/model/ListChatbotInstancesResult.cc src/model/ListDialogueFlowsRequest.cc diff --git a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h index 5004ec215..402015b26 100644 --- a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h +++ b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h @@ -42,6 +42,8 @@ #include "model/CreateGlobalQuestionResult.h" #include "model/CreateInstanceRequest.h" #include "model/CreateInstanceResult.h" +#include "model/CreateInstanceBindNumberRequest.h" +#include "model/CreateInstanceBindNumberResult.h" #include "model/CreateIntentRequest.h" #include "model/CreateIntentResult.h" #include "model/CreateJobDataParsingTaskRequest.h" @@ -62,6 +64,8 @@ #include "model/CreateScriptWaveformResult.h" #include "model/CreateTagRequest.h" #include "model/CreateTagResult.h" +#include "model/CreateTaskExportTaskRequest.h" +#include "model/CreateTaskExportTaskResult.h" #include "model/DeleteAllNumberDistrictInfoRequest.h" #include "model/DeleteAllNumberDistrictInfoResult.h" #include "model/DeleteContactBlockListRequest.h" @@ -118,6 +122,8 @@ #include "model/DescribeTTSDemoResult.h" #include "model/DescribeTagHitsSummaryRequest.h" #include "model/DescribeTagHitsSummaryResult.h" +#include "model/DescribeTenantBindNumberRequest.h" +#include "model/DescribeTenantBindNumberResult.h" #include "model/DialogueRequest.h" #include "model/DialogueResult.h" #include "model/DismissNumberDistrictInfoParsingResultRequest.h" @@ -162,6 +168,8 @@ #include "model/ImportScriptResult.h" #include "model/InflightTaskTimeoutRequest.h" #include "model/InflightTaskTimeoutResult.h" +#include "model/ListAllTenantBindNumberBindingRequest.h" +#include "model/ListAllTenantBindNumberBindingResult.h" #include "model/ListChatbotInstancesRequest.h" #include "model/ListChatbotInstancesResult.h" #include "model/ListDialogueFlowsRequest.h" @@ -317,6 +325,9 @@ namespace AlibabaCloud typedef Outcome CreateInstanceOutcome; typedef std::future CreateInstanceOutcomeCallable; typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome CreateInstanceBindNumberOutcome; + typedef std::future CreateInstanceBindNumberOutcomeCallable; + typedef std::function&)> CreateInstanceBindNumberAsyncHandler; typedef Outcome CreateIntentOutcome; typedef std::future CreateIntentOutcomeCallable; typedef std::function&)> CreateIntentAsyncHandler; @@ -347,6 +358,9 @@ namespace AlibabaCloud typedef Outcome CreateTagOutcome; typedef std::future CreateTagOutcomeCallable; typedef std::function&)> CreateTagAsyncHandler; + typedef Outcome CreateTaskExportTaskOutcome; + typedef std::future CreateTaskExportTaskOutcomeCallable; + typedef std::function&)> CreateTaskExportTaskAsyncHandler; typedef Outcome DeleteAllNumberDistrictInfoOutcome; typedef std::future DeleteAllNumberDistrictInfoOutcomeCallable; typedef std::function&)> DeleteAllNumberDistrictInfoAsyncHandler; @@ -431,6 +445,9 @@ namespace AlibabaCloud typedef Outcome DescribeTagHitsSummaryOutcome; typedef std::future DescribeTagHitsSummaryOutcomeCallable; typedef std::function&)> DescribeTagHitsSummaryAsyncHandler; + typedef Outcome DescribeTenantBindNumberOutcome; + typedef std::future DescribeTenantBindNumberOutcomeCallable; + typedef std::function&)> DescribeTenantBindNumberAsyncHandler; typedef Outcome DialogueOutcome; typedef std::future DialogueOutcomeCallable; typedef std::function&)> DialogueAsyncHandler; @@ -497,6 +514,9 @@ namespace AlibabaCloud typedef Outcome InflightTaskTimeoutOutcome; typedef std::future InflightTaskTimeoutOutcomeCallable; typedef std::function&)> InflightTaskTimeoutAsyncHandler; + typedef Outcome ListAllTenantBindNumberBindingOutcome; + typedef std::future ListAllTenantBindNumberBindingOutcomeCallable; + typedef std::function&)> ListAllTenantBindNumberBindingAsyncHandler; typedef Outcome ListChatbotInstancesOutcome; typedef std::future ListChatbotInstancesOutcomeCallable; typedef std::function&)> ListChatbotInstancesAsyncHandler; @@ -706,6 +726,9 @@ namespace AlibabaCloud CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; + CreateInstanceBindNumberOutcome createInstanceBindNumber(const Model::CreateInstanceBindNumberRequest &request)const; + void createInstanceBindNumberAsync(const Model::CreateInstanceBindNumberRequest& request, const CreateInstanceBindNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceBindNumberOutcomeCallable createInstanceBindNumberCallable(const Model::CreateInstanceBindNumberRequest& request) const; CreateIntentOutcome createIntent(const Model::CreateIntentRequest &request)const; void createIntentAsync(const Model::CreateIntentRequest& request, const CreateIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIntentOutcomeCallable createIntentCallable(const Model::CreateIntentRequest& request) const; @@ -736,6 +759,9 @@ namespace AlibabaCloud CreateTagOutcome createTag(const Model::CreateTagRequest &request)const; void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const; + CreateTaskExportTaskOutcome createTaskExportTask(const Model::CreateTaskExportTaskRequest &request)const; + void createTaskExportTaskAsync(const Model::CreateTaskExportTaskRequest& request, const CreateTaskExportTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTaskExportTaskOutcomeCallable createTaskExportTaskCallable(const Model::CreateTaskExportTaskRequest& request) const; DeleteAllNumberDistrictInfoOutcome deleteAllNumberDistrictInfo(const Model::DeleteAllNumberDistrictInfoRequest &request)const; void deleteAllNumberDistrictInfoAsync(const Model::DeleteAllNumberDistrictInfoRequest& request, const DeleteAllNumberDistrictInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAllNumberDistrictInfoOutcomeCallable deleteAllNumberDistrictInfoCallable(const Model::DeleteAllNumberDistrictInfoRequest& request) const; @@ -820,6 +846,9 @@ namespace AlibabaCloud DescribeTagHitsSummaryOutcome describeTagHitsSummary(const Model::DescribeTagHitsSummaryRequest &request)const; void describeTagHitsSummaryAsync(const Model::DescribeTagHitsSummaryRequest& request, const DescribeTagHitsSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTagHitsSummaryOutcomeCallable describeTagHitsSummaryCallable(const Model::DescribeTagHitsSummaryRequest& request) const; + DescribeTenantBindNumberOutcome describeTenantBindNumber(const Model::DescribeTenantBindNumberRequest &request)const; + void describeTenantBindNumberAsync(const Model::DescribeTenantBindNumberRequest& request, const DescribeTenantBindNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTenantBindNumberOutcomeCallable describeTenantBindNumberCallable(const Model::DescribeTenantBindNumberRequest& request) const; DialogueOutcome dialogue(const Model::DialogueRequest &request)const; void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const; @@ -886,6 +915,9 @@ namespace AlibabaCloud InflightTaskTimeoutOutcome inflightTaskTimeout(const Model::InflightTaskTimeoutRequest &request)const; void inflightTaskTimeoutAsync(const Model::InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InflightTaskTimeoutOutcomeCallable inflightTaskTimeoutCallable(const Model::InflightTaskTimeoutRequest& request) const; + ListAllTenantBindNumberBindingOutcome listAllTenantBindNumberBinding(const Model::ListAllTenantBindNumberBindingRequest &request)const; + void listAllTenantBindNumberBindingAsync(const Model::ListAllTenantBindNumberBindingRequest& request, const ListAllTenantBindNumberBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAllTenantBindNumberBindingOutcomeCallable listAllTenantBindNumberBindingCallable(const Model::ListAllTenantBindNumberBindingRequest& request) const; ListChatbotInstancesOutcome listChatbotInstances(const Model::ListChatbotInstancesRequest &request)const; void listChatbotInstancesAsync(const Model::ListChatbotInstancesRequest& request, const ListChatbotInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListChatbotInstancesOutcomeCallable listChatbotInstancesCallable(const Model::ListChatbotInstancesRequest& request) const; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h new file mode 100644 index 000000000..8f7f7177f --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.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_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateInstanceBindNumberRequest : public RpcServiceRequest + { + + public: + CreateInstanceBindNumberRequest(); + ~CreateInstanceBindNumberRequest(); + + std::string getInstanceList()const; + void setInstanceList(const std::string& instanceList); + std::string getNumber()const; + void setNumber(const std::string& number); + + private: + std::string instanceList_; + std::string number_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h new file mode 100644 index 000000000..22b96a61c --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h @@ -0,0 +1,68 @@ +/* + * 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_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateInstanceBindNumberResult : public ServiceResult + { + public: + struct Data + { + struct ListItem + { + std::string instanceId; + bool success; + }; + std::vector list; + }; + + + CreateInstanceBindNumberResult(); + explicit CreateInstanceBindNumberResult(const std::string &payload); + ~CreateInstanceBindNumberResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h new file mode 100644 index 000000000..e32732263 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h @@ -0,0 +1,123 @@ +/* + * 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_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateTaskExportTaskRequest : public RpcServiceRequest + { + + public: + CreateTaskExportTaskRequest(); + ~CreateTaskExportTaskRequest(); + + bool getHasAnswered()const; + void setHasAnswered(bool hasAnswered); + long getActualTimeLte()const; + void setActualTimeLte(long actualTimeLte); + std::string getOtherId()const; + void setOtherId(const std::string& otherId); + long getTaskCreateTimeLte()const; + void setTaskCreateTimeLte(long taskCreateTimeLte); + std::string getJobId()const; + void setJobId(const std::string& jobId); + long getTaskCreateTimeGte()const; + void setTaskCreateTimeGte(long taskCreateTimeGte); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getUserIdMatch()const; + void setUserIdMatch(const std::string& userIdMatch); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getScriptNameQuery()const; + void setScriptNameQuery(const std::string& scriptNameQuery); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getSortOrder()const; + void setSortOrder(const std::string& sortOrder); + std::string getTaskStatusStringList()const; + void setTaskStatusStringList(const std::string& taskStatusStringList); + std::string getJobGroupNameQuery()const; + void setJobGroupNameQuery(const std::string& jobGroupNameQuery); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + bool getHasHangUpByRejection()const; + void setHasHangUpByRejection(bool hasHangUpByRejection); + bool getHasReachedEndOfFlow()const; + void setHasReachedEndOfFlow(bool hasReachedEndOfFlow); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getRecordingDurationGte()const; + void setRecordingDurationGte(long recordingDurationGte); + long getCallDurationLte()const; + void setCallDurationLte(long callDurationLte); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + std::string getSortBy()const; + void setSortBy(const std::string& sortBy); + std::string getJobStatusStringList()const; + void setJobStatusStringList(const std::string& jobStatusStringList); + long getActualTimeGte()const; + void setActualTimeGte(long actualTimeGte); + long getCallDurationGte()const; + void setCallDurationGte(long callDurationGte); + long getRecordingDurationLte()const; + void setRecordingDurationLte(long recordingDurationLte); + + private: + bool hasAnswered_; + long actualTimeLte_; + std::string otherId_; + long taskCreateTimeLte_; + std::string jobId_; + long taskCreateTimeGte_; + std::string calledNumber_; + std::string userIdMatch_; + int pageSize_; + std::string scriptNameQuery_; + int pageIndex_; + std::string sortOrder_; + std::string taskStatusStringList_; + std::string jobGroupNameQuery_; + std::string taskId_; + bool hasHangUpByRejection_; + bool hasReachedEndOfFlow_; + std::string instanceId_; + long recordingDurationGte_; + long callDurationLte_; + std::string jobGroupId_; + std::string sortBy_; + std::string jobStatusStringList_; + long actualTimeGte_; + long callDurationGte_; + long recordingDurationLte_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskResult.h new file mode 100644 index 000000000..c7ca432e7 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateTaskExportTaskResult : public ServiceResult + { + public: + + + CreateTaskExportTaskResult(); + explicit CreateTaskExportTaskResult(const std::string &payload); + ~CreateTaskExportTaskResult(); + std::string getTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h index 95f4282e7..70cc7d5ea 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h @@ -62,6 +62,7 @@ namespace AlibabaCloud std::string getTtsConfig()const; std::string getCode()const; bool getSuccess()const; + std::string getNlsConfig()const; protected: void parse(const std::string &payload); @@ -74,6 +75,7 @@ namespace AlibabaCloud std::string ttsConfig_; std::string code_; bool success_; + std::string nlsConfig_; }; } diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigResult.h index 052f20dbb..556f4f480 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigResult.h @@ -34,10 +34,10 @@ namespace AlibabaCloud public: struct TTSConfig { - std::string instanceId; std::string volume; - std::string scriptId; - std::string id; + std::string instanceId; + std::string appKey; + std::string nlsServiceType; std::string voice; std::string speechRate; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h new file mode 100644 index 000000000..91122025e --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.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_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTenantBindNumberRequest : public RpcServiceRequest + { + + public: + DescribeTenantBindNumberRequest(); + ~DescribeTenantBindNumberRequest(); + + std::string getNumber()const; + void setNumber(const std::string& number); + + private: + std::string number_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberResult.h new file mode 100644 index 000000000..c5e4c8a9e --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberResult.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_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTenantBindNumberResult : public ServiceResult + { + public: + struct Data + { + struct ListItem + { + std::string instanceName; + std::string instanceId; + bool isBinding; + }; + std::vector list; + }; + + + DescribeTenantBindNumberResult(); + explicit DescribeTenantBindNumberResult(const std::string &payload); + ~DescribeTenantBindNumberResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h new file mode 100644 index 000000000..7991224a8 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.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_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListAllTenantBindNumberBindingRequest : public RpcServiceRequest + { + + public: + ListAllTenantBindNumberBindingRequest(); + ~ListAllTenantBindNumberBindingRequest(); + + std::string getTenant()const; + void setTenant(const std::string& tenant); + + private: + std::string tenant_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h new file mode 100644 index 000000000..2dee15f4f --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListAllTenantBindNumberBindingResult : public ServiceResult + { + public: + struct Data + { + struct ListItem + { + std::string serializedParams; + std::string number; + std::vector instanceNameList; + std::string bindingId; + std::string trunkName; + }; + std::vector list; + }; + + + ListAllTenantBindNumberBindingResult(); + explicit ListAllTenantBindNumberBindingResult(const std::string &payload); + ~ListAllTenantBindNumberBindingResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h index 0242c0416..c801428f3 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setScriptWaveform(const std::vector& scriptWaveform); std::string getAsrConfig()const; void setAsrConfig(const std::string& asrConfig); + std::string getNlsConfig()const; + void setNlsConfig(const std::string& nlsConfig); bool getMiniPlaybackEnabled()const; void setMiniPlaybackEnabled(bool miniPlaybackEnabled); std::string getChatbotId()const; @@ -68,6 +70,7 @@ namespace AlibabaCloud std::string scriptId_; std::vector scriptWaveform_; std::string asrConfig_; + std::string nlsConfig_; bool miniPlaybackEnabled_; std::string chatbotId_; std::string instanceId_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptResult.h index 284b6c609..614dbb913 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptResult.h @@ -34,12 +34,12 @@ namespace AlibabaCloud public: struct Script { - std::string industry; std::string status; + std::string industry; bool isDrafted; std::string scriptName; - std::string scriptDescription; long updateTime; + std::string scriptDescription; std::string scriptId; std::string debugStatus; std::string scene; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h index 7a526654e..d8d9e7642 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h @@ -37,20 +37,26 @@ namespace AlibabaCloud std::string getVoice()const; void setVoice(const std::string& voice); + std::string getNlsServiceType()const; + void setNlsServiceType(const std::string& nlsServiceType); std::string getVolume()const; void setVolume(const std::string& volume); std::string getScriptId()const; void setScriptId(const std::string& scriptId); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getAppKey()const; + void setAppKey(const std::string& appKey); std::string getSpeechRate()const; void setSpeechRate(const std::string& speechRate); private: std::string voice_; + std::string nlsServiceType_; std::string volume_; std::string scriptId_; std::string instanceId_; + std::string appKey_; std::string speechRate_; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigResult.h index 5aa3ca5ac..4c1fb2269 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigResult.h @@ -34,10 +34,10 @@ namespace AlibabaCloud public: struct TTSConfig { - std::string instanceId; std::string volume; - std::string scriptId; + std::string instanceId; std::string tTSConfigId; + std::string scriptId; std::string voice; std::string speechRate; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h index ec2531b25..892c15020 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setUserIdMatch(const std::string& userIdMatch); int getPageSize()const; void setPageSize(int pageSize); + std::string getScriptNameQuery()const; + void setScriptNameQuery(const std::string& scriptNameQuery); int getPageIndex()const; void setPageIndex(int pageIndex); std::string getSortOrder()const; @@ -89,6 +91,7 @@ namespace AlibabaCloud std::string calledNumber_; std::string userIdMatch_; int pageSize_; + std::string scriptNameQuery_; int pageIndex_; std::string sortOrder_; std::string taskStatusStringList_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskResult.h index 32068a03b..c3cf78214 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskResult.h @@ -59,6 +59,7 @@ namespace AlibabaCloud std::string taskStatusString; int callDuration; std::string userId; + std::string scriptName; std::string jobStatusString; int recordingDuration; }; diff --git a/outboundbot/src/OutboundBotClient.cc b/outboundbot/src/OutboundBotClient.cc index 6923e5fd4..c4a41fc21 100644 --- a/outboundbot/src/OutboundBotClient.cc +++ b/outboundbot/src/OutboundBotClient.cc @@ -411,6 +411,42 @@ OutboundBotClient::CreateInstanceOutcomeCallable OutboundBotClient::createInstan return task->get_future(); } +OutboundBotClient::CreateInstanceBindNumberOutcome OutboundBotClient::createInstanceBindNumber(const CreateInstanceBindNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceBindNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceBindNumberOutcome(CreateInstanceBindNumberResult(outcome.result())); + else + return CreateInstanceBindNumberOutcome(outcome.error()); +} + +void OutboundBotClient::createInstanceBindNumberAsync(const CreateInstanceBindNumberRequest& request, const CreateInstanceBindNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstanceBindNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::CreateInstanceBindNumberOutcomeCallable OutboundBotClient::createInstanceBindNumberCallable(const CreateInstanceBindNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstanceBindNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::CreateIntentOutcome OutboundBotClient::createIntent(const CreateIntentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +807,42 @@ OutboundBotClient::CreateTagOutcomeCallable OutboundBotClient::createTagCallable return task->get_future(); } +OutboundBotClient::CreateTaskExportTaskOutcome OutboundBotClient::createTaskExportTask(const CreateTaskExportTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTaskExportTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTaskExportTaskOutcome(CreateTaskExportTaskResult(outcome.result())); + else + return CreateTaskExportTaskOutcome(outcome.error()); +} + +void OutboundBotClient::createTaskExportTaskAsync(const CreateTaskExportTaskRequest& request, const CreateTaskExportTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTaskExportTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::CreateTaskExportTaskOutcomeCallable OutboundBotClient::createTaskExportTaskCallable(const CreateTaskExportTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTaskExportTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DeleteAllNumberDistrictInfoOutcome OutboundBotClient::deleteAllNumberDistrictInfo(const DeleteAllNumberDistrictInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +1851,42 @@ OutboundBotClient::DescribeTagHitsSummaryOutcomeCallable OutboundBotClient::desc return task->get_future(); } +OutboundBotClient::DescribeTenantBindNumberOutcome OutboundBotClient::describeTenantBindNumber(const DescribeTenantBindNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTenantBindNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTenantBindNumberOutcome(DescribeTenantBindNumberResult(outcome.result())); + else + return DescribeTenantBindNumberOutcome(outcome.error()); +} + +void OutboundBotClient::describeTenantBindNumberAsync(const DescribeTenantBindNumberRequest& request, const DescribeTenantBindNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTenantBindNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeTenantBindNumberOutcomeCallable OutboundBotClient::describeTenantBindNumberCallable(const DescribeTenantBindNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTenantBindNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DialogueOutcome OutboundBotClient::dialogue(const DialogueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +2679,42 @@ OutboundBotClient::InflightTaskTimeoutOutcomeCallable OutboundBotClient::infligh return task->get_future(); } +OutboundBotClient::ListAllTenantBindNumberBindingOutcome OutboundBotClient::listAllTenantBindNumberBinding(const ListAllTenantBindNumberBindingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAllTenantBindNumberBindingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAllTenantBindNumberBindingOutcome(ListAllTenantBindNumberBindingResult(outcome.result())); + else + return ListAllTenantBindNumberBindingOutcome(outcome.error()); +} + +void OutboundBotClient::listAllTenantBindNumberBindingAsync(const ListAllTenantBindNumberBindingRequest& request, const ListAllTenantBindNumberBindingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAllTenantBindNumberBinding(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ListAllTenantBindNumberBindingOutcomeCallable OutboundBotClient::listAllTenantBindNumberBindingCallable(const ListAllTenantBindNumberBindingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAllTenantBindNumberBinding(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ListChatbotInstancesOutcome OutboundBotClient::listChatbotInstances(const ListChatbotInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/outboundbot/src/model/CreateInstanceBindNumberRequest.cc b/outboundbot/src/model/CreateInstanceBindNumberRequest.cc new file mode 100644 index 000000000..857bceec1 --- /dev/null +++ b/outboundbot/src/model/CreateInstanceBindNumberRequest.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::OutboundBot::Model::CreateInstanceBindNumberRequest; + +CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest() +{} + +std::string CreateInstanceBindNumberRequest::getInstanceList()const +{ + return instanceList_; +} + +void CreateInstanceBindNumberRequest::setInstanceList(const std::string& instanceList) +{ + instanceList_ = instanceList; + setParameter("InstanceList", instanceList); +} + +std::string CreateInstanceBindNumberRequest::getNumber()const +{ + return number_; +} + +void CreateInstanceBindNumberRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + diff --git a/outboundbot/src/model/CreateInstanceBindNumberResult.cc b/outboundbot/src/model/CreateInstanceBindNumberResult.cc new file mode 100644 index 000000000..64383e8c4 --- /dev/null +++ b/outboundbot/src/model/CreateInstanceBindNumberResult.cc @@ -0,0 +1,88 @@ +/* + * 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +CreateInstanceBindNumberResult::CreateInstanceBindNumberResult() : + ServiceResult() +{} + +CreateInstanceBindNumberResult::CreateInstanceBindNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceBindNumberResult::~CreateInstanceBindNumberResult() +{} + +void CreateInstanceBindNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allListNode = dataNode["List"]["ListItem"]; + for (auto dataNodeListListItem : allListNode) + { + Data::ListItem listItemObject; + if(!dataNodeListListItem["InstanceId"].isNull()) + listItemObject.instanceId = dataNodeListListItem["InstanceId"].asString(); + if(!dataNodeListListItem["Success"].isNull()) + listItemObject.success = dataNodeListListItem["Success"].asString() == "true"; + data_.list.push_back(listItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string CreateInstanceBindNumberResult::getMessage()const +{ + return message_; +} + +int CreateInstanceBindNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CreateInstanceBindNumberResult::Data CreateInstanceBindNumberResult::getData()const +{ + return data_; +} + +std::string CreateInstanceBindNumberResult::getCode()const +{ + return code_; +} + +bool CreateInstanceBindNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/CreateTaskExportTaskRequest.cc b/outboundbot/src/model/CreateTaskExportTaskRequest.cc new file mode 100644 index 000000000..0b7254802 --- /dev/null +++ b/outboundbot/src/model/CreateTaskExportTaskRequest.cc @@ -0,0 +1,315 @@ +/* + * 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::OutboundBot::Model::CreateTaskExportTaskRequest; + +CreateTaskExportTaskRequest::CreateTaskExportTaskRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask") +{ + setMethod(HttpRequest::Method::Get); +} + +CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest() +{} + +bool CreateTaskExportTaskRequest::getHasAnswered()const +{ + return hasAnswered_; +} + +void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered) +{ + hasAnswered_ = hasAnswered; + setParameter("HasAnswered", hasAnswered ? "true" : "false"); +} + +long CreateTaskExportTaskRequest::getActualTimeLte()const +{ + return actualTimeLte_; +} + +void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte) +{ + actualTimeLte_ = actualTimeLte; + setParameter("ActualTimeLte", std::to_string(actualTimeLte)); +} + +std::string CreateTaskExportTaskRequest::getOtherId()const +{ + return otherId_; +} + +void CreateTaskExportTaskRequest::setOtherId(const std::string& otherId) +{ + otherId_ = otherId; + setParameter("OtherId", otherId); +} + +long CreateTaskExportTaskRequest::getTaskCreateTimeLte()const +{ + return taskCreateTimeLte_; +} + +void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte) +{ + taskCreateTimeLte_ = taskCreateTimeLte; + setParameter("TaskCreateTimeLte", std::to_string(taskCreateTimeLte)); +} + +std::string CreateTaskExportTaskRequest::getJobId()const +{ + return jobId_; +} + +void CreateTaskExportTaskRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +long CreateTaskExportTaskRequest::getTaskCreateTimeGte()const +{ + return taskCreateTimeGte_; +} + +void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte) +{ + taskCreateTimeGte_ = taskCreateTimeGte; + setParameter("TaskCreateTimeGte", std::to_string(taskCreateTimeGte)); +} + +std::string CreateTaskExportTaskRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void CreateTaskExportTaskRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setParameter("CalledNumber", calledNumber); +} + +std::string CreateTaskExportTaskRequest::getUserIdMatch()const +{ + return userIdMatch_; +} + +void CreateTaskExportTaskRequest::setUserIdMatch(const std::string& userIdMatch) +{ + userIdMatch_ = userIdMatch; + setParameter("UserIdMatch", userIdMatch); +} + +int CreateTaskExportTaskRequest::getPageSize()const +{ + return pageSize_; +} + +void CreateTaskExportTaskRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string CreateTaskExportTaskRequest::getScriptNameQuery()const +{ + return scriptNameQuery_; +} + +void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery) +{ + scriptNameQuery_ = scriptNameQuery; + setParameter("ScriptNameQuery", scriptNameQuery); +} + +int CreateTaskExportTaskRequest::getPageIndex()const +{ + return pageIndex_; +} + +void CreateTaskExportTaskRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string CreateTaskExportTaskRequest::getSortOrder()const +{ + return sortOrder_; +} + +void CreateTaskExportTaskRequest::setSortOrder(const std::string& sortOrder) +{ + sortOrder_ = sortOrder; + setParameter("SortOrder", sortOrder); +} + +std::string CreateTaskExportTaskRequest::getTaskStatusStringList()const +{ + return taskStatusStringList_; +} + +void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string& taskStatusStringList) +{ + taskStatusStringList_ = taskStatusStringList; + setParameter("TaskStatusStringList", taskStatusStringList); +} + +std::string CreateTaskExportTaskRequest::getJobGroupNameQuery()const +{ + return jobGroupNameQuery_; +} + +void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string& jobGroupNameQuery) +{ + jobGroupNameQuery_ = jobGroupNameQuery; + setParameter("JobGroupNameQuery", jobGroupNameQuery); +} + +std::string CreateTaskExportTaskRequest::getTaskId()const +{ + return taskId_; +} + +void CreateTaskExportTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +bool CreateTaskExportTaskRequest::getHasHangUpByRejection()const +{ + return hasHangUpByRejection_; +} + +void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection) +{ + hasHangUpByRejection_ = hasHangUpByRejection; + setParameter("HasHangUpByRejection", hasHangUpByRejection ? "true" : "false"); +} + +bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow()const +{ + return hasReachedEndOfFlow_; +} + +void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow) +{ + hasReachedEndOfFlow_ = hasReachedEndOfFlow; + setParameter("HasReachedEndOfFlow", hasReachedEndOfFlow ? "true" : "false"); +} + +std::string CreateTaskExportTaskRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateTaskExportTaskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long CreateTaskExportTaskRequest::getRecordingDurationGte()const +{ + return recordingDurationGte_; +} + +void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte) +{ + recordingDurationGte_ = recordingDurationGte; + setParameter("RecordingDurationGte", std::to_string(recordingDurationGte)); +} + +long CreateTaskExportTaskRequest::getCallDurationLte()const +{ + return callDurationLte_; +} + +void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte) +{ + callDurationLte_ = callDurationLte; + setParameter("CallDurationLte", std::to_string(callDurationLte)); +} + +std::string CreateTaskExportTaskRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void CreateTaskExportTaskRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +std::string CreateTaskExportTaskRequest::getSortBy()const +{ + return sortBy_; +} + +void CreateTaskExportTaskRequest::setSortBy(const std::string& sortBy) +{ + sortBy_ = sortBy; + setParameter("SortBy", sortBy); +} + +std::string CreateTaskExportTaskRequest::getJobStatusStringList()const +{ + return jobStatusStringList_; +} + +void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string& jobStatusStringList) +{ + jobStatusStringList_ = jobStatusStringList; + setParameter("JobStatusStringList", jobStatusStringList); +} + +long CreateTaskExportTaskRequest::getActualTimeGte()const +{ + return actualTimeGte_; +} + +void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte) +{ + actualTimeGte_ = actualTimeGte; + setParameter("ActualTimeGte", std::to_string(actualTimeGte)); +} + +long CreateTaskExportTaskRequest::getCallDurationGte()const +{ + return callDurationGte_; +} + +void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte) +{ + callDurationGte_ = callDurationGte; + setParameter("CallDurationGte", std::to_string(callDurationGte)); +} + +long CreateTaskExportTaskRequest::getRecordingDurationLte()const +{ + return recordingDurationLte_; +} + +void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte) +{ + recordingDurationLte_ = recordingDurationLte; + setParameter("RecordingDurationLte", std::to_string(recordingDurationLte)); +} + diff --git a/outboundbot/src/model/CreateTaskExportTaskResult.cc b/outboundbot/src/model/CreateTaskExportTaskResult.cc new file mode 100644 index 000000000..1a9b2a7e9 --- /dev/null +++ b/outboundbot/src/model/CreateTaskExportTaskResult.cc @@ -0,0 +1,79 @@ +/* + * 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +CreateTaskExportTaskResult::CreateTaskExportTaskResult() : + ServiceResult() +{} + +CreateTaskExportTaskResult::CreateTaskExportTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTaskExportTaskResult::~CreateTaskExportTaskResult() +{} + +void CreateTaskExportTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateTaskExportTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateTaskExportTaskResult::getMessage()const +{ + return message_; +} + +int CreateTaskExportTaskResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateTaskExportTaskResult::getCode()const +{ + return code_; +} + +bool CreateTaskExportTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DescribeScriptResult.cc b/outboundbot/src/model/DescribeScriptResult.cc index 02059e479..f98e8d36f 100644 --- a/outboundbot/src/model/DescribeScriptResult.cc +++ b/outboundbot/src/model/DescribeScriptResult.cc @@ -40,48 +40,50 @@ void DescribeScriptResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto scriptNode = value["Script"]; - if(!scriptNode["DebugStatus"].isNull()) - script_.debugStatus = scriptNode["DebugStatus"].asString(); - if(!scriptNode["Industry"].isNull()) - script_.industry = scriptNode["Industry"].asString(); - if(!scriptNode["IsDebugDrafted"].isNull()) - script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; - if(!scriptNode["IsDrafted"].isNull()) - script_.isDrafted = scriptNode["IsDrafted"].asString() == "true"; - if(!scriptNode["Scene"].isNull()) - script_.scene = scriptNode["Scene"].asString(); - if(!scriptNode["ScriptDescription"].isNull()) - script_.scriptDescription = scriptNode["ScriptDescription"].asString(); - if(!scriptNode["ScriptId"].isNull()) - script_.scriptId = scriptNode["ScriptId"].asString(); - if(!scriptNode["ScriptName"].isNull()) - script_.scriptName = scriptNode["ScriptName"].asString(); if(!scriptNode["Status"].isNull()) script_.status = scriptNode["Status"].asString(); if(!scriptNode["UpdateTime"].isNull()) script_.updateTime = std::stol(scriptNode["UpdateTime"].asString()); if(!scriptNode["ChatbotId"].isNull()) script_.chatbotId = scriptNode["ChatbotId"].asString(); - if(!scriptNode["AsrConfig"].isNull()) - script_.asrConfig = scriptNode["AsrConfig"].asString(); - if(!scriptNode["TtsConfig"].isNull()) - script_.ttsConfig = scriptNode["TtsConfig"].asString(); + if(!scriptNode["ScriptId"].isNull()) + script_.scriptId = scriptNode["ScriptId"].asString(); + if(!scriptNode["IsDebugDrafted"].isNull()) + script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; + if(!scriptNode["Industry"].isNull()) + script_.industry = scriptNode["Industry"].asString(); + if(!scriptNode["ScriptDescription"].isNull()) + script_.scriptDescription = scriptNode["ScriptDescription"].asString(); if(!scriptNode["MiniPlaybackConfigEnabled"].isNull()) script_.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); + if(!scriptNode["IsDrafted"].isNull()) + script_.isDrafted = scriptNode["IsDrafted"].asString() == "true"; + if(!scriptNode["TtsConfig"].isNull()) + script_.ttsConfig = scriptNode["TtsConfig"].asString(); + if(!scriptNode["DebugStatus"].isNull()) + script_.debugStatus = scriptNode["DebugStatus"].asString(); + if(!scriptNode["AsrConfig"].isNull()) + script_.asrConfig = scriptNode["AsrConfig"].asString(); + if(!scriptNode["Scene"].isNull()) + script_.scene = scriptNode["Scene"].asString(); + if(!scriptNode["ScriptName"].isNull()) + script_.scriptName = scriptNode["ScriptName"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ChatbotId"].isNull()) chatbotId_ = value["ChatbotId"].asString(); - if(!value["AsrConfig"].isNull()) - asrConfig_ = value["AsrConfig"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["TtsConfig"].isNull()) ttsConfig_ = value["TtsConfig"].asString(); + if(!value["AsrConfig"].isNull()) + asrConfig_ = value["AsrConfig"].asString(); + if(!value["NlsConfig"].isNull()) + nlsConfig_ = value["NlsConfig"].asString(); } @@ -125,3 +127,8 @@ bool DescribeScriptResult::getSuccess()const return success_; } +std::string DescribeScriptResult::getNlsConfig()const +{ + return nlsConfig_; +} + diff --git a/outboundbot/src/model/DescribeTTSConfigResult.cc b/outboundbot/src/model/DescribeTTSConfigResult.cc index d4edddd40..0948c233c 100644 --- a/outboundbot/src/model/DescribeTTSConfigResult.cc +++ b/outboundbot/src/model/DescribeTTSConfigResult.cc @@ -40,22 +40,22 @@ void DescribeTTSConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto tTSConfigNode = value["TTSConfig"]; - if(!tTSConfigNode["Id"].isNull()) - tTSConfig_.id = tTSConfigNode["Id"].asString(); - if(!tTSConfigNode["InstanceId"].isNull()) - tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString(); - if(!tTSConfigNode["ScriptId"].isNull()) - tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString(); - if(!tTSConfigNode["SpeechRate"].isNull()) - tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString(); if(!tTSConfigNode["Voice"].isNull()) tTSConfig_.voice = tTSConfigNode["Voice"].asString(); + if(!tTSConfigNode["SpeechRate"].isNull()) + tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString(); if(!tTSConfigNode["Volume"].isNull()) tTSConfig_.volume = tTSConfigNode["Volume"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); + if(!tTSConfigNode["InstanceId"].isNull()) + tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString(); + if(!tTSConfigNode["NlsServiceType"].isNull()) + tTSConfig_.nlsServiceType = tTSConfigNode["NlsServiceType"].asString(); + if(!tTSConfigNode["AppKey"].isNull()) + tTSConfig_.appKey = tTSConfigNode["AppKey"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeTenantBindNumberRequest.cc b/outboundbot/src/model/DescribeTenantBindNumberRequest.cc new file mode 100644 index 000000000..8f0e87bbb --- /dev/null +++ b/outboundbot/src/model/DescribeTenantBindNumberRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::OutboundBot::Model::DescribeTenantBindNumberRequest; + +DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest() +{} + +std::string DescribeTenantBindNumberRequest::getNumber()const +{ + return number_; +} + +void DescribeTenantBindNumberRequest::setNumber(const std::string& number) +{ + number_ = number; + setParameter("Number", number); +} + diff --git a/outboundbot/src/model/DescribeTenantBindNumberResult.cc b/outboundbot/src/model/DescribeTenantBindNumberResult.cc new file mode 100644 index 000000000..6b02a3d5e --- /dev/null +++ b/outboundbot/src/model/DescribeTenantBindNumberResult.cc @@ -0,0 +1,90 @@ +/* + * 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeTenantBindNumberResult::DescribeTenantBindNumberResult() : + ServiceResult() +{} + +DescribeTenantBindNumberResult::DescribeTenantBindNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTenantBindNumberResult::~DescribeTenantBindNumberResult() +{} + +void DescribeTenantBindNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allListNode = dataNode["List"]["ListItem"]; + for (auto dataNodeListListItem : allListNode) + { + Data::ListItem listItemObject; + if(!dataNodeListListItem["InstanceId"].isNull()) + listItemObject.instanceId = dataNodeListListItem["InstanceId"].asString(); + if(!dataNodeListListItem["InstanceName"].isNull()) + listItemObject.instanceName = dataNodeListListItem["InstanceName"].asString(); + if(!dataNodeListListItem["IsBinding"].isNull()) + listItemObject.isBinding = dataNodeListListItem["IsBinding"].asString() == "true"; + data_.list.push_back(listItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string DescribeTenantBindNumberResult::getMessage()const +{ + return message_; +} + +int DescribeTenantBindNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DescribeTenantBindNumberResult::Data DescribeTenantBindNumberResult::getData()const +{ + return data_; +} + +std::string DescribeTenantBindNumberResult::getCode()const +{ + return code_; +} + +bool DescribeTenantBindNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc b/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc new file mode 100644 index 000000000..0beec83f4 --- /dev/null +++ b/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::OutboundBot::Model::ListAllTenantBindNumberBindingRequest; + +ListAllTenantBindNumberBindingRequest::ListAllTenantBindNumberBindingRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "ListAllTenantBindNumberBinding") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAllTenantBindNumberBindingRequest::~ListAllTenantBindNumberBindingRequest() +{} + +std::string ListAllTenantBindNumberBindingRequest::getTenant()const +{ + return tenant_; +} + +void ListAllTenantBindNumberBindingRequest::setTenant(const std::string& tenant) +{ + tenant_ = tenant; + setParameter("Tenant", tenant); +} + diff --git a/outboundbot/src/model/ListAllTenantBindNumberBindingResult.cc b/outboundbot/src/model/ListAllTenantBindNumberBindingResult.cc new file mode 100644 index 000000000..c32624e46 --- /dev/null +++ b/outboundbot/src/model/ListAllTenantBindNumberBindingResult.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 +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ListAllTenantBindNumberBindingResult::ListAllTenantBindNumberBindingResult() : + ServiceResult() +{} + +ListAllTenantBindNumberBindingResult::ListAllTenantBindNumberBindingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAllTenantBindNumberBindingResult::~ListAllTenantBindNumberBindingResult() +{} + +void ListAllTenantBindNumberBindingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allListNode = dataNode["List"]["ListItem"]; + for (auto dataNodeListListItem : allListNode) + { + Data::ListItem listItemObject; + if(!dataNodeListListItem["BindingId"].isNull()) + listItemObject.bindingId = dataNodeListListItem["BindingId"].asString(); + if(!dataNodeListListItem["Number"].isNull()) + listItemObject.number = dataNodeListListItem["Number"].asString(); + if(!dataNodeListListItem["TrunkName"].isNull()) + listItemObject.trunkName = dataNodeListListItem["TrunkName"].asString(); + if(!dataNodeListListItem["SerializedParams"].isNull()) + listItemObject.serializedParams = dataNodeListListItem["SerializedParams"].asString(); + auto allInstanceNameList = value["InstanceNameList"]["InstanceNameList"]; + for (auto value : allInstanceNameList) + listItemObject.instanceNameList.push_back(value.asString()); + data_.list.push_back(listItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListAllTenantBindNumberBindingResult::getMessage()const +{ + return message_; +} + +int ListAllTenantBindNumberBindingResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +ListAllTenantBindNumberBindingResult::Data ListAllTenantBindNumberBindingResult::getData()const +{ + return data_; +} + +std::string ListAllTenantBindNumberBindingResult::getCode()const +{ + return code_; +} + +bool ListAllTenantBindNumberBindingResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ModifyScriptRequest.cc b/outboundbot/src/model/ModifyScriptRequest.cc index a42b48ad9..5be8110c4 100644 --- a/outboundbot/src/model/ModifyScriptRequest.cc +++ b/outboundbot/src/model/ModifyScriptRequest.cc @@ -106,6 +106,17 @@ void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig) setParameter("AsrConfig", asrConfig); } +std::string ModifyScriptRequest::getNlsConfig()const +{ + return nlsConfig_; +} + +void ModifyScriptRequest::setNlsConfig(const std::string& nlsConfig) +{ + nlsConfig_ = nlsConfig; + setParameter("NlsConfig", nlsConfig); +} + bool ModifyScriptRequest::getMiniPlaybackEnabled()const { return miniPlaybackEnabled_; diff --git a/outboundbot/src/model/ModifyScriptResult.cc b/outboundbot/src/model/ModifyScriptResult.cc index 8874cf87b..73a911a07 100644 --- a/outboundbot/src/model/ModifyScriptResult.cc +++ b/outboundbot/src/model/ModifyScriptResult.cc @@ -40,36 +40,36 @@ void ModifyScriptResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto scriptNode = value["Script"]; - if(!scriptNode["DebugStatus"].isNull()) - script_.debugStatus = scriptNode["DebugStatus"].asString(); - if(!scriptNode["Industry"].isNull()) - script_.industry = scriptNode["Industry"].asString(); - if(!scriptNode["IsDebugDrafted"].isNull()) - script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; - if(!scriptNode["IsDrafted"].isNull()) - script_.isDrafted = scriptNode["IsDrafted"].asString() == "true"; - if(!scriptNode["Scene"].isNull()) - script_.scene = scriptNode["Scene"].asString(); - if(!scriptNode["ScriptDescription"].isNull()) - script_.scriptDescription = scriptNode["ScriptDescription"].asString(); - if(!scriptNode["ScriptId"].isNull()) - script_.scriptId = scriptNode["ScriptId"].asString(); - if(!scriptNode["ScriptName"].isNull()) - script_.scriptName = scriptNode["ScriptName"].asString(); if(!scriptNode["Status"].isNull()) script_.status = scriptNode["Status"].asString(); if(!scriptNode["UpdateTime"].isNull()) script_.updateTime = std::stol(scriptNode["UpdateTime"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); + if(!scriptNode["Industry"].isNull()) + script_.industry = scriptNode["Industry"].asString(); + if(!scriptNode["ScriptDescription"].isNull()) + script_.scriptDescription = scriptNode["ScriptDescription"].asString(); + if(!scriptNode["IsDrafted"].isNull()) + script_.isDrafted = scriptNode["IsDrafted"].asString() == "true"; + if(!scriptNode["DebugStatus"].isNull()) + script_.debugStatus = scriptNode["DebugStatus"].asString(); + if(!scriptNode["ScriptId"].isNull()) + script_.scriptId = scriptNode["ScriptId"].asString(); + if(!scriptNode["IsDebugDrafted"].isNull()) + script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; + if(!scriptNode["ScriptName"].isNull()) + script_.scriptName = scriptNode["ScriptName"].asString(); + if(!scriptNode["Scene"].isNull()) + script_.scene = scriptNode["Scene"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ChatbotId"].isNull()) chatbotId_ = value["ChatbotId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/outboundbot/src/model/ModifyTTSConfigRequest.cc b/outboundbot/src/model/ModifyTTSConfigRequest.cc index c85ed4fbc..8f0c9ebc2 100644 --- a/outboundbot/src/model/ModifyTTSConfigRequest.cc +++ b/outboundbot/src/model/ModifyTTSConfigRequest.cc @@ -38,6 +38,17 @@ void ModifyTTSConfigRequest::setVoice(const std::string& voice) setParameter("Voice", voice); } +std::string ModifyTTSConfigRequest::getNlsServiceType()const +{ + return nlsServiceType_; +} + +void ModifyTTSConfigRequest::setNlsServiceType(const std::string& nlsServiceType) +{ + nlsServiceType_ = nlsServiceType; + setParameter("NlsServiceType", nlsServiceType); +} + std::string ModifyTTSConfigRequest::getVolume()const { return volume_; @@ -71,6 +82,17 @@ void ModifyTTSConfigRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } +std::string ModifyTTSConfigRequest::getAppKey()const +{ + return appKey_; +} + +void ModifyTTSConfigRequest::setAppKey(const std::string& appKey) +{ + appKey_ = appKey; + setParameter("AppKey", appKey); +} + std::string ModifyTTSConfigRequest::getSpeechRate()const { return speechRate_; diff --git a/outboundbot/src/model/ModifyTTSConfigResult.cc b/outboundbot/src/model/ModifyTTSConfigResult.cc index 7d94bd606..367ad45eb 100644 --- a/outboundbot/src/model/ModifyTTSConfigResult.cc +++ b/outboundbot/src/model/ModifyTTSConfigResult.cc @@ -40,22 +40,22 @@ void ModifyTTSConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto tTSConfigNode = value["TTSConfig"]; + if(!tTSConfigNode["Voice"].isNull()) + tTSConfig_.voice = tTSConfigNode["Voice"].asString(); + if(!tTSConfigNode["TTSConfigId"].isNull()) + tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString(); + if(!tTSConfigNode["SpeechRate"].isNull()) + tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString(); + if(!tTSConfigNode["Volume"].isNull()) + tTSConfig_.volume = tTSConfigNode["Volume"].asString(); if(!tTSConfigNode["InstanceId"].isNull()) tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString(); if(!tTSConfigNode["ScriptId"].isNull()) tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString(); - if(!tTSConfigNode["SpeechRate"].isNull()) - tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString(); - if(!tTSConfigNode["TTSConfigId"].isNull()) - tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString(); - if(!tTSConfigNode["Voice"].isNull()) - tTSConfig_.voice = tTSConfigNode["Voice"].asString(); - if(!tTSConfigNode["Volume"].isNull()) - tTSConfig_.volume = tTSConfigNode["Volume"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/SearchTaskRequest.cc b/outboundbot/src/model/SearchTaskRequest.cc index 8a6e71f17..3759987c5 100644 --- a/outboundbot/src/model/SearchTaskRequest.cc +++ b/outboundbot/src/model/SearchTaskRequest.cc @@ -115,6 +115,17 @@ void SearchTaskRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::string SearchTaskRequest::getScriptNameQuery()const +{ + return scriptNameQuery_; +} + +void SearchTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery) +{ + scriptNameQuery_ = scriptNameQuery; + setParameter("ScriptNameQuery", scriptNameQuery); +} + int SearchTaskRequest::getPageIndex()const { return pageIndex_; diff --git a/outboundbot/src/model/SearchTaskResult.cc b/outboundbot/src/model/SearchTaskResult.cc index 604a844cb..3d466b10e 100644 --- a/outboundbot/src/model/SearchTaskResult.cc +++ b/outboundbot/src/model/SearchTaskResult.cc @@ -95,6 +95,8 @@ void SearchTaskResult::parse(const std::string &payload) searchTaskInfoListObject.dialExceptionOld = valueSearchTaskInfoListSearchTaskInfo["DialExceptionOld"].asString(); if(!valueSearchTaskInfoListSearchTaskInfo["HasLastPlaybackCompleted"].isNull()) searchTaskInfoListObject.hasLastPlaybackCompleted = valueSearchTaskInfoListSearchTaskInfo["HasLastPlaybackCompleted"].asString() == "true"; + if(!valueSearchTaskInfoListSearchTaskInfo["ScriptName"].isNull()) + searchTaskInfoListObject.scriptName = valueSearchTaskInfoListSearchTaskInfo["ScriptName"].asString(); auto allDialExceptionCodes = value["DialExceptionCodes"]["String"]; for (auto value : allDialExceptionCodes) searchTaskInfoListObject.dialExceptionCodes.push_back(value.asString());