Quellcode durchsuchen

Supported new features for outbound.

sdk-team vor 5 Jahren
Ursprung
Commit
4fc4cdd7b8
43 geänderte Dateien mit 1037 neuen und 19 gelöschten Zeilen
  1. 3 0
      CHANGELOG
  2. 1 1
      VERSION
  3. 12 0
      outboundbot/CMakeLists.txt
  4. 24 0
      outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h
  5. 3 0
      outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h
  6. 6 0
      outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h
  7. 1 0
      outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h
  8. 1 0
      outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h
  9. 45 0
      outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h
  10. 61 0
      outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h
  11. 48 0
      outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h
  12. 63 0
      outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h
  13. 1 0
      outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h
  14. 1 0
      outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h
  15. 1 0
      outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h
  16. 6 5
      outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h
  17. 3 0
      outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h
  18. 12 3
      outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h
  19. 6 0
      outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h
  20. 3 0
      outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h
  21. 2 0
      outboundbot/include/alibabacloud/outboundbot/model/StartJobResult.h
  22. 51 0
      outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h
  23. 57 0
      outboundbot/include/alibabacloud/outboundbot/model/TerminateCallResult.h
  24. 108 0
      outboundbot/src/OutboundBotClient.cc
  25. 13 0
      outboundbot/src/model/CreateInstanceRequest.cc
  26. 26 0
      outboundbot/src/model/CreateScriptRequest.cc
  27. 2 0
      outboundbot/src/model/DescribeJobResult.cc
  28. 2 0
      outboundbot/src/model/DescribeScriptResult.cc
  29. 29 0
      outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc
  30. 86 0
      outboundbot/src/model/GetConcurrentConversationQuotaResult.cc
  31. 40 0
      outboundbot/src/model/GetCurrentConcurrencyRequest.cc
  32. 93 0
      outboundbot/src/model/GetCurrentConcurrencyResult.cc
  33. 2 0
      outboundbot/src/model/ListJobGroupsAsyncResult.cc
  34. 2 0
      outboundbot/src/model/ListJobGroupsResult.cc
  35. 2 0
      outboundbot/src/model/ListSchedulerInstancesResult.cc
  36. 2 0
      outboundbot/src/model/ListScriptsResult.cc
  37. 13 0
      outboundbot/src/model/ModifyInstanceRequest.cc
  38. 47 10
      outboundbot/src/model/ModifyScriptRequest.cc
  39. 10 0
      outboundbot/src/model/QueryJobsWithResultResult.cc
  40. 11 0
      outboundbot/src/model/StartJobRequest.cc
  41. 15 0
      outboundbot/src/model/StartJobResult.cc
  42. 51 0
      outboundbot/src/model/TerminateCallRequest.cc
  43. 72 0
      outboundbot/src/model/TerminateCallResult.cc

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-08-19 Version: 1.36.854
+- Supported new features for outbound.
+
 2021-08-19 Version: 1.36.853
 - Release BeautifyBody.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.853
+1.36.854

+ 12 - 0
outboundbot/CMakeLists.txt

@@ -119,10 +119,14 @@ set(outboundbot_public_header_model
 	include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.h
 	include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h
 	include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h
+	include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h
+	include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h
 	include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h
 	include/alibabacloud/outboundbot/model/GetContactBlockListResult.h
 	include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h
 	include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h
+	include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h
+	include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h
 	include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h
 	include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h
 	include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h
@@ -243,6 +247,8 @@ set(outboundbot_public_header_model
 	include/alibabacloud/outboundbot/model/TagResourcesResult.h
 	include/alibabacloud/outboundbot/model/TaskPreparingRequest.h
 	include/alibabacloud/outboundbot/model/TaskPreparingResult.h
+	include/alibabacloud/outboundbot/model/TerminateCallRequest.h
+	include/alibabacloud/outboundbot/model/TerminateCallResult.h
 	include/alibabacloud/outboundbot/model/UntagResourcesRequest.h
 	include/alibabacloud/outboundbot/model/UntagResourcesResult.h
 	include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h
@@ -348,10 +354,14 @@ set(outboundbot_src
 	src/model/GetAsrServerInfoResult.cc
 	src/model/GetBaseStrategyPeriodRequest.cc
 	src/model/GetBaseStrategyPeriodResult.cc
+	src/model/GetConcurrentConversationQuotaRequest.cc
+	src/model/GetConcurrentConversationQuotaResult.cc
 	src/model/GetContactBlockListRequest.cc
 	src/model/GetContactBlockListResult.cc
 	src/model/GetContactWhiteListRequest.cc
 	src/model/GetContactWhiteListResult.cc
+	src/model/GetCurrentConcurrencyRequest.cc
+	src/model/GetCurrentConcurrencyResult.cc
 	src/model/GetEffectiveDaysRequest.cc
 	src/model/GetEffectiveDaysResult.cc
 	src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc
@@ -472,6 +482,8 @@ set(outboundbot_src
 	src/model/TagResourcesResult.cc
 	src/model/TaskPreparingRequest.cc
 	src/model/TaskPreparingResult.cc
+	src/model/TerminateCallRequest.cc
+	src/model/TerminateCallResult.cc
 	src/model/UntagResourcesRequest.cc
 	src/model/UntagResourcesResult.cc
 	src/model/WithdrawScriptReviewRequest.cc

+ 24 - 0
outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h

@@ -120,10 +120,14 @@
 #include "model/GetAsrServerInfoResult.h"
 #include "model/GetBaseStrategyPeriodRequest.h"
 #include "model/GetBaseStrategyPeriodResult.h"
+#include "model/GetConcurrentConversationQuotaRequest.h"
+#include "model/GetConcurrentConversationQuotaResult.h"
 #include "model/GetContactBlockListRequest.h"
 #include "model/GetContactBlockListResult.h"
 #include "model/GetContactWhiteListRequest.h"
 #include "model/GetContactWhiteListResult.h"
+#include "model/GetCurrentConcurrencyRequest.h"
+#include "model/GetCurrentConcurrencyResult.h"
 #include "model/GetEffectiveDaysRequest.h"
 #include "model/GetEffectiveDaysResult.h"
 #include "model/GetEmptyNumberNoMoreCallsInfoRequest.h"
@@ -244,6 +248,8 @@
 #include "model/TagResourcesResult.h"
 #include "model/TaskPreparingRequest.h"
 #include "model/TaskPreparingResult.h"
+#include "model/TerminateCallRequest.h"
+#include "model/TerminateCallResult.h"
 #include "model/UntagResourcesRequest.h"
 #include "model/UntagResourcesResult.h"
 #include "model/WithdrawScriptReviewRequest.h"
@@ -404,12 +410,18 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::GetBaseStrategyPeriodResult> GetBaseStrategyPeriodOutcome;
 			typedef std::future<GetBaseStrategyPeriodOutcome> GetBaseStrategyPeriodOutcomeCallable;
 			typedef std::function<void(const OutboundBotClient*, const Model::GetBaseStrategyPeriodRequest&, const GetBaseStrategyPeriodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBaseStrategyPeriodAsyncHandler;
+			typedef Outcome<Error, Model::GetConcurrentConversationQuotaResult> GetConcurrentConversationQuotaOutcome;
+			typedef std::future<GetConcurrentConversationQuotaOutcome> GetConcurrentConversationQuotaOutcomeCallable;
+			typedef std::function<void(const OutboundBotClient*, const Model::GetConcurrentConversationQuotaRequest&, const GetConcurrentConversationQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConcurrentConversationQuotaAsyncHandler;
 			typedef Outcome<Error, Model::GetContactBlockListResult> GetContactBlockListOutcome;
 			typedef std::future<GetContactBlockListOutcome> GetContactBlockListOutcomeCallable;
 			typedef std::function<void(const OutboundBotClient*, const Model::GetContactBlockListRequest&, const GetContactBlockListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContactBlockListAsyncHandler;
 			typedef Outcome<Error, Model::GetContactWhiteListResult> GetContactWhiteListOutcome;
 			typedef std::future<GetContactWhiteListOutcome> GetContactWhiteListOutcomeCallable;
 			typedef std::function<void(const OutboundBotClient*, const Model::GetContactWhiteListRequest&, const GetContactWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContactWhiteListAsyncHandler;
+			typedef Outcome<Error, Model::GetCurrentConcurrencyResult> GetCurrentConcurrencyOutcome;
+			typedef std::future<GetCurrentConcurrencyOutcome> GetCurrentConcurrencyOutcomeCallable;
+			typedef std::function<void(const OutboundBotClient*, const Model::GetCurrentConcurrencyRequest&, const GetCurrentConcurrencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCurrentConcurrencyAsyncHandler;
 			typedef Outcome<Error, Model::GetEffectiveDaysResult> GetEffectiveDaysOutcome;
 			typedef std::future<GetEffectiveDaysOutcome> GetEffectiveDaysOutcomeCallable;
 			typedef std::function<void(const OutboundBotClient*, const Model::GetEffectiveDaysRequest&, const GetEffectiveDaysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEffectiveDaysAsyncHandler;
@@ -590,6 +602,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::TaskPreparingResult> TaskPreparingOutcome;
 			typedef std::future<TaskPreparingOutcome> TaskPreparingOutcomeCallable;
 			typedef std::function<void(const OutboundBotClient*, const Model::TaskPreparingRequest&, const TaskPreparingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TaskPreparingAsyncHandler;
+			typedef Outcome<Error, Model::TerminateCallResult> TerminateCallOutcome;
+			typedef std::future<TerminateCallOutcome> TerminateCallOutcomeCallable;
+			typedef std::function<void(const OutboundBotClient*, const Model::TerminateCallRequest&, const TerminateCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TerminateCallAsyncHandler;
 			typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
 			typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
 			typedef std::function<void(const OutboundBotClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
@@ -748,12 +763,18 @@ namespace AlibabaCloud
 			GetBaseStrategyPeriodOutcome getBaseStrategyPeriod(const Model::GetBaseStrategyPeriodRequest &request)const;
 			void getBaseStrategyPeriodAsync(const Model::GetBaseStrategyPeriodRequest& request, const GetBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetBaseStrategyPeriodOutcomeCallable getBaseStrategyPeriodCallable(const Model::GetBaseStrategyPeriodRequest& request) const;
+			GetConcurrentConversationQuotaOutcome getConcurrentConversationQuota(const Model::GetConcurrentConversationQuotaRequest &request)const;
+			void getConcurrentConversationQuotaAsync(const Model::GetConcurrentConversationQuotaRequest& request, const GetConcurrentConversationQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			GetConcurrentConversationQuotaOutcomeCallable getConcurrentConversationQuotaCallable(const Model::GetConcurrentConversationQuotaRequest& request) const;
 			GetContactBlockListOutcome getContactBlockList(const Model::GetContactBlockListRequest &request)const;
 			void getContactBlockListAsync(const Model::GetContactBlockListRequest& request, const GetContactBlockListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetContactBlockListOutcomeCallable getContactBlockListCallable(const Model::GetContactBlockListRequest& request) const;
 			GetContactWhiteListOutcome getContactWhiteList(const Model::GetContactWhiteListRequest &request)const;
 			void getContactWhiteListAsync(const Model::GetContactWhiteListRequest& request, const GetContactWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetContactWhiteListOutcomeCallable getContactWhiteListCallable(const Model::GetContactWhiteListRequest& request) const;
+			GetCurrentConcurrencyOutcome getCurrentConcurrency(const Model::GetCurrentConcurrencyRequest &request)const;
+			void getCurrentConcurrencyAsync(const Model::GetCurrentConcurrencyRequest& request, const GetCurrentConcurrencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			GetCurrentConcurrencyOutcomeCallable getCurrentConcurrencyCallable(const Model::GetCurrentConcurrencyRequest& request) const;
 			GetEffectiveDaysOutcome getEffectiveDays(const Model::GetEffectiveDaysRequest &request)const;
 			void getEffectiveDaysAsync(const Model::GetEffectiveDaysRequest& request, const GetEffectiveDaysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetEffectiveDaysOutcomeCallable getEffectiveDaysCallable(const Model::GetEffectiveDaysRequest& request) const;
@@ -934,6 +955,9 @@ namespace AlibabaCloud
 			TaskPreparingOutcome taskPreparing(const Model::TaskPreparingRequest &request)const;
 			void taskPreparingAsync(const Model::TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			TaskPreparingOutcomeCallable taskPreparingCallable(const Model::TaskPreparingRequest& request) const;
+			TerminateCallOutcome terminateCall(const Model::TerminateCallRequest &request)const;
+			void terminateCallAsync(const Model::TerminateCallRequest& request, const TerminateCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			TerminateCallOutcomeCallable terminateCallCallable(const Model::TerminateCallRequest& request) const;
 			UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
 			void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;

+ 3 - 0
outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h

@@ -43,6 +43,8 @@ namespace AlibabaCloud
 				void setResourceGroupId(const std::string& resourceGroupId);
 				std::string getEndpoint()const;
 				void setEndpoint(const std::string& endpoint);
+				std::vector<std::string> getCallingNumber()const;
+				void setCallingNumber(const std::vector<std::string>& callingNumber);
 				std::string getInstanceName()const;
 				void setInstanceName(const std::string& instanceName);
 				std::string getCallCenterInstanceId()const;
@@ -59,6 +61,7 @@ namespace AlibabaCloud
 				std::string secretKey_;
 				std::string resourceGroupId_;
 				std::string endpoint_;
+				std::vector<std::string> callingNumber_;
 				std::string instanceName_;
 				std::string callCenterInstanceId_;
 				std::string accessKey_;

+ 6 - 0
outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h

@@ -47,10 +47,14 @@ namespace AlibabaCloud
 				void setChatbotId(const std::string& chatbotId);
 				std::string getInstanceId()const;
 				void setInstanceId(const std::string& instanceId);
+				std::vector<std::string> getScriptWaveform()const;
+				void setScriptWaveform(const std::vector<std::string>& scriptWaveform);
 				std::string getAsrConfig()const;
 				void setAsrConfig(const std::string& asrConfig);
 				std::string getScriptDescription()const;
 				void setScriptDescription(const std::string& scriptDescription);
+				std::vector<std::string> getScriptContent()const;
+				void setScriptContent(const std::vector<std::string>& scriptContent);
 
             private:
 				std::string ttsConfig_;
@@ -59,8 +63,10 @@ namespace AlibabaCloud
 				std::string scene_;
 				std::string chatbotId_;
 				std::string instanceId_;
+				std::vector<std::string> scriptWaveform_;
 				std::string asrConfig_;
 				std::string scriptDescription_;
+				std::vector<std::string> scriptContent_;
 
 			};
 		}

+ 1 - 0
outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h

@@ -97,6 +97,7 @@ namespace AlibabaCloud
 						int duration;
 						std::string brief;
 						std::string callingNumber;
+						std::string endReason;
 						Contact3 contact3;
 						std::string jobId;
 					};

+ 1 - 0
outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h

@@ -36,6 +36,7 @@ namespace AlibabaCloud
 				{
 					std::string status;
 					std::string chatbotId;
+					bool miniPlaybackConfigEnabled;
 					std::string scriptDescription;
 					std::string scriptId;
 					std::string debugStatus;

+ 45 - 0
outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h

@@ -0,0 +1,45 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_
+#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/outboundbot/OutboundBotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace OutboundBot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetConcurrentConversationQuotaRequest : public RpcServiceRequest
+			{
+
+			public:
+				GetConcurrentConversationQuotaRequest();
+				~GetConcurrentConversationQuotaRequest();
+
+
+            private:
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_

+ 61 - 0
outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h

@@ -0,0 +1,61 @@
+/*
+ * 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_GETCONCURRENTCONVERSATIONQUOTARESULT_H_
+#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/outboundbot/OutboundBotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace OutboundBot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetConcurrentConversationQuotaResult : public ServiceResult
+			{
+			public:
+
+
+				GetConcurrentConversationQuotaResult();
+				explicit GetConcurrentConversationQuotaResult(const std::string &payload);
+				~GetConcurrentConversationQuotaResult();
+				int getRemainingConcurrent()const;
+				std::string getMessage()const;
+				int getMaxConcurrent()const;
+				int getHttpStatusCode()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				int remainingConcurrent_;
+				std::string message_;
+				int maxConcurrent_;
+				int httpStatusCode_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_H_

+ 48 - 0
outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.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_GETCURRENTCONCURRENCYREQUEST_H_
+#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/outboundbot/OutboundBotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace OutboundBot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetCurrentConcurrencyRequest : public RpcServiceRequest
+			{
+
+			public:
+				GetCurrentConcurrencyRequest();
+				~GetCurrentConcurrencyRequest();
+
+				std::string getInstanceId()const;
+				void setInstanceId(const std::string& instanceId);
+
+            private:
+				std::string instanceId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_

+ 63 - 0
outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h

@@ -0,0 +1,63 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_
+#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/outboundbot/OutboundBotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace OutboundBot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetCurrentConcurrencyResult : public ServiceResult
+			{
+			public:
+
+
+				GetCurrentConcurrencyResult();
+				explicit GetCurrentConcurrencyResult(const std::string &payload);
+				~GetCurrentConcurrencyResult();
+				std::string getMessage()const;
+				int getMaxConcurrentConversation()const;
+				std::string getInstanceId()const;
+				int getCurrentConcurrency()const;
+				int getHttpStatusCode()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				int maxConcurrentConversation_;
+				std::string instanceId_;
+				int currentConcurrency_;
+				int httpStatusCode_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_

+ 1 - 0
outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h

@@ -69,6 +69,7 @@ namespace AlibabaCloud
 					std::string jobGroupDescription;
 					std::string jobGroupId;
 					std::string scriptName;
+					int totalCallNum;
 					long creationTime;
 					Strategy strategy;
 					ExportProgress exportProgress;

+ 1 - 0
outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h

@@ -71,6 +71,7 @@ namespace AlibabaCloud
 						std::string jobGroupDescription;
 						std::string jobGroupId;
 						std::string scriptName;
+						int totalCallNum;
 						long creationTime;
 						Strategy strategy;
 						ExportProgress exportProgress;

+ 1 - 0
outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h

@@ -37,6 +37,7 @@ namespace AlibabaCloud
 					std::string ownerId;
 					std::string instanceId;
 					int maxConcurrency;
+					std::string baseStrategy;
 					std::string business;
 				};
 

+ 6 - 5
outboundbot/include/alibabacloud/outboundbot/model/ListScriptsResult.h

@@ -36,18 +36,19 @@ namespace AlibabaCloud
 				{
 					struct Script
 					{
-						std::string industry;
 						std::string status;
-						bool isDrafted;
-						std::string scriptName;
 						std::string scriptDescription;
-						long updateTime;
-						std::string rejectReason;
 						std::string scriptId;
 						std::string failReason;
 						std::string debugStatus;
 						std::string scene;
+						bool miniPlaybackEnabled;
 						bool isDebugDrafted;
+						std::string industry;
+						bool isDrafted;
+						std::string scriptName;
+						long updateTime;
+						std::string rejectReason;
 					};
 					int totalCount;
 					int pageSize;

+ 3 - 0
outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h

@@ -41,6 +41,8 @@ namespace AlibabaCloud
 				void setSecretKey(const std::string& secretKey);
 				std::string getEndpoint()const;
 				void setEndpoint(const std::string& endpoint);
+				std::vector<std::string> getCallingNumber()const;
+				void setCallingNumber(const std::vector<std::string>& callingNumber);
 				std::string getInstanceId()const;
 				void setInstanceId(const std::string& instanceId);
 				std::string getInstanceName()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
 				int maxConcurrentConversation_;
 				std::string secretKey_;
 				std::string endpoint_;
+				std::vector<std::string> callingNumber_;
 				std::string instanceId_;
 				std::string instanceName_;
 				std::string callCenterInstanceId_;

+ 12 - 3
outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h

@@ -45,14 +45,20 @@ namespace AlibabaCloud
 				void setScene(const std::string& scene);
 				std::string getScriptId()const;
 				void setScriptId(const std::string& scriptId);
+				std::vector<std::string> getScriptWaveform()const;
+				void setScriptWaveform(const std::vector<std::string>& scriptWaveform);
+				std::string getAsrConfig()const;
+				void setAsrConfig(const std::string& asrConfig);
+				bool getMiniPlaybackEnabled()const;
+				void setMiniPlaybackEnabled(bool miniPlaybackEnabled);
 				std::string getChatbotId()const;
 				void setChatbotId(const std::string& chatbotId);
 				std::string getInstanceId()const;
 				void setInstanceId(const std::string& instanceId);
-				std::string getAsrConfig()const;
-				void setAsrConfig(const std::string& asrConfig);
 				std::string getScriptDescription()const;
 				void setScriptDescription(const std::string& scriptDescription);
+				std::vector<std::string> getScriptContent()const;
+				void setScriptContent(const std::vector<std::string>& scriptContent);
 
             private:
 				std::string ttsConfig_;
@@ -60,10 +66,13 @@ namespace AlibabaCloud
 				std::string scriptName_;
 				std::string scene_;
 				std::string scriptId_;
+				std::vector<std::string> scriptWaveform_;
+				std::string asrConfig_;
+				bool miniPlaybackEnabled_;
 				std::string chatbotId_;
 				std::string instanceId_;
-				std::string asrConfig_;
 				std::string scriptDescription_;
+				std::vector<std::string> scriptContent_;
 
 			};
 		}

+ 6 - 0
outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h

@@ -56,10 +56,16 @@ namespace AlibabaCloud
 								std::string value;
 								std::string key;
 							};
+							struct TagHit
+							{
+								std::string tagName;
+								std::string tagGroup;
+							};
 							bool hasAnswered;
 							std::string status;
 							bool hasHangUpByRejection;
 							std::string taskEndReason;
+							std::vector<TagHit> tagHits;
 							std::string callDurationDisplay;
 							std::string statusName;
 							long callTime;

+ 3 - 0
outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h

@@ -39,6 +39,8 @@ namespace AlibabaCloud
 				void setJobJson(const std::string& jobJson);
 				std::vector<std::string> getCallingNumber()const;
 				void setCallingNumber(const std::vector<std::string>& callingNumber);
+				std::string getScriptId()const;
+				void setScriptId(const std::string& scriptId);
 				std::string getInstanceId()const;
 				void setInstanceId(const std::string& instanceId);
 				std::string getJobGroupId()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
             private:
 				std::string jobJson_;
 				std::vector<std::string> callingNumber_;
+				std::string scriptId_;
 				std::string instanceId_;
 				std::string jobGroupId_;
 				bool selfHostedCallCenter_;

+ 2 - 0
outboundbot/include/alibabacloud/outboundbot/model/StartJobResult.h

@@ -42,6 +42,7 @@ namespace AlibabaCloud
 				StartJobResult();
 				explicit StartJobResult(const std::string &payload);
 				~StartJobResult();
+				std::vector<KeyValuePair> getCallIds()const;
 				std::vector<KeyValuePair> getTaskIds()const;
 				std::string getMessage()const;
 				int getHttpStatusCode()const;
@@ -51,6 +52,7 @@ namespace AlibabaCloud
 			protected:
 				void parse(const std::string &payload);
 			private:
+				std::vector<KeyValuePair> callIds_;
 				std::vector<KeyValuePair> taskIds_;
 				std::string message_;
 				int httpStatusCode_;

+ 51 - 0
outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.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_TERMINATECALLREQUEST_H_
+#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/outboundbot/OutboundBotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace OutboundBot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TerminateCallRequest : public RpcServiceRequest
+			{
+
+			public:
+				TerminateCallRequest();
+				~TerminateCallRequest();
+
+				std::string getCallId()const;
+				void setCallId(const std::string& callId);
+				std::string getInstanceId()const;
+				void setInstanceId(const std::string& instanceId);
+
+            private:
+				std::string callId_;
+				std::string instanceId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_

+ 57 - 0
outboundbot/include/alibabacloud/outboundbot/model/TerminateCallResult.h

@@ -0,0 +1,57 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_H_
+#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/outboundbot/OutboundBotExport.h>
+
+namespace AlibabaCloud
+{
+	namespace OutboundBot
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TerminateCallResult : public ServiceResult
+			{
+			public:
+
+
+				TerminateCallResult();
+				explicit TerminateCallResult(const std::string &payload);
+				~TerminateCallResult();
+				std::string getMessage()const;
+				int getHttpStatusCode()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				int httpStatusCode_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_H_

+ 108 - 0
outboundbot/src/OutboundBotClient.cc

@@ -1815,6 +1815,42 @@ OutboundBotClient::GetBaseStrategyPeriodOutcomeCallable OutboundBotClient::getBa
 	return task->get_future();
 }
 
+OutboundBotClient::GetConcurrentConversationQuotaOutcome OutboundBotClient::getConcurrentConversationQuota(const GetConcurrentConversationQuotaRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return GetConcurrentConversationQuotaOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return GetConcurrentConversationQuotaOutcome(GetConcurrentConversationQuotaResult(outcome.result()));
+	else
+		return GetConcurrentConversationQuotaOutcome(outcome.error());
+}
+
+void OutboundBotClient::getConcurrentConversationQuotaAsync(const GetConcurrentConversationQuotaRequest& request, const GetConcurrentConversationQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, getConcurrentConversationQuota(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+OutboundBotClient::GetConcurrentConversationQuotaOutcomeCallable OutboundBotClient::getConcurrentConversationQuotaCallable(const GetConcurrentConversationQuotaRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<GetConcurrentConversationQuotaOutcome()>>(
+			[this, request]()
+			{
+			return this->getConcurrentConversationQuota(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 OutboundBotClient::GetContactBlockListOutcome OutboundBotClient::getContactBlockList(const GetContactBlockListRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1887,6 +1923,42 @@ OutboundBotClient::GetContactWhiteListOutcomeCallable OutboundBotClient::getCont
 	return task->get_future();
 }
 
+OutboundBotClient::GetCurrentConcurrencyOutcome OutboundBotClient::getCurrentConcurrency(const GetCurrentConcurrencyRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return GetCurrentConcurrencyOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return GetCurrentConcurrencyOutcome(GetCurrentConcurrencyResult(outcome.result()));
+	else
+		return GetCurrentConcurrencyOutcome(outcome.error());
+}
+
+void OutboundBotClient::getCurrentConcurrencyAsync(const GetCurrentConcurrencyRequest& request, const GetCurrentConcurrencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, getCurrentConcurrency(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+OutboundBotClient::GetCurrentConcurrencyOutcomeCallable OutboundBotClient::getCurrentConcurrencyCallable(const GetCurrentConcurrencyRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<GetCurrentConcurrencyOutcome()>>(
+			[this, request]()
+			{
+			return this->getCurrentConcurrency(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 OutboundBotClient::GetEffectiveDaysOutcome OutboundBotClient::getEffectiveDays(const GetEffectiveDaysRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4047,6 +4119,42 @@ OutboundBotClient::TaskPreparingOutcomeCallable OutboundBotClient::taskPreparing
 	return task->get_future();
 }
 
+OutboundBotClient::TerminateCallOutcome OutboundBotClient::terminateCall(const TerminateCallRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return TerminateCallOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return TerminateCallOutcome(TerminateCallResult(outcome.result()));
+	else
+		return TerminateCallOutcome(outcome.error());
+}
+
+void OutboundBotClient::terminateCallAsync(const TerminateCallRequest& request, const TerminateCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, terminateCall(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+OutboundBotClient::TerminateCallOutcomeCallable OutboundBotClient::terminateCallCallable(const TerminateCallRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<TerminateCallOutcome()>>(
+			[this, request]()
+			{
+			return this->terminateCall(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 OutboundBotClient::UntagResourcesOutcome OutboundBotClient::untagResources(const UntagResourcesRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 13 - 0
outboundbot/src/model/CreateInstanceRequest.cc

@@ -71,6 +71,19 @@ void CreateInstanceRequest::setEndpoint(const std::string& endpoint)
 	setParameter("Endpoint", endpoint);
 }
 
+std::vector<std::string> CreateInstanceRequest::getCallingNumber()const
+{
+	return callingNumber_;
+}
+
+void CreateInstanceRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
+{
+	callingNumber_ = callingNumber;
+	for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
+		setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
+	}
+}
+
 std::string CreateInstanceRequest::getInstanceName()const
 {
 	return instanceName_;

+ 26 - 0
outboundbot/src/model/CreateScriptRequest.cc

@@ -93,6 +93,19 @@ void CreateScriptRequest::setInstanceId(const std::string& instanceId)
 	setParameter("InstanceId", instanceId);
 }
 
+std::vector<std::string> CreateScriptRequest::getScriptWaveform()const
+{
+	return scriptWaveform_;
+}
+
+void CreateScriptRequest::setScriptWaveform(const std::vector<std::string>& scriptWaveform)
+{
+	scriptWaveform_ = scriptWaveform;
+	for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) {
+		setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1));
+	}
+}
+
 std::string CreateScriptRequest::getAsrConfig()const
 {
 	return asrConfig_;
@@ -115,3 +128,16 @@ void CreateScriptRequest::setScriptDescription(const std::string& scriptDescript
 	setParameter("ScriptDescription", scriptDescription);
 }
 
+std::vector<std::string> CreateScriptRequest::getScriptContent()const
+{
+	return scriptContent_;
+}
+
+void CreateScriptRequest::setScriptContent(const std::vector<std::string>& scriptContent)
+{
+	scriptContent_ = scriptContent;
+	for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) {
+		setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1));
+	}
+}
+

+ 2 - 0
outboundbot/src/model/DescribeJobResult.cc

@@ -144,6 +144,8 @@ void DescribeJobResult::parse(const std::string &payload)
 			taskObject.taskId = jobNodeTasksTask["TaskId"].asString();
 		if(!jobNodeTasksTask["EndTime"].isNull())
 			taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString());
+		if(!jobNodeTasksTask["EndReason"].isNull())
+			taskObject.endReason = jobNodeTasksTask["EndReason"].asString();
 		auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"];
 		for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode)
 		{

+ 2 - 0
outboundbot/src/model/DescribeScriptResult.cc

@@ -66,6 +66,8 @@ void DescribeScriptResult::parse(const std::string &payload)
 		script_.asrConfig = scriptNode["AsrConfig"].asString();
 	if(!scriptNode["TtsConfig"].isNull())
 		script_.ttsConfig = scriptNode["TtsConfig"].asString();
+	if(!scriptNode["MiniPlaybackConfigEnabled"].isNull())
+		script_.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true";
 	if(!value["Code"].isNull())
 		code_ = value["Code"].asString();
 	if(!value["HttpStatusCode"].isNull())

+ 29 - 0
outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc

@@ -0,0 +1,29 @@
+/*
+ * 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 <alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h>
+
+using AlibabaCloud::OutboundBot::Model::GetConcurrentConversationQuotaRequest;
+
+GetConcurrentConversationQuotaRequest::GetConcurrentConversationQuotaRequest() :
+	RpcServiceRequest("outboundbot", "2019-12-26", "GetConcurrentConversationQuota")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+GetConcurrentConversationQuotaRequest::~GetConcurrentConversationQuotaRequest()
+{}
+

+ 86 - 0
outboundbot/src/model/GetConcurrentConversationQuotaResult.cc

@@ -0,0 +1,86 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/outboundbot/model/GetConcurrentConversationQuotaResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::OutboundBot;
+using namespace AlibabaCloud::OutboundBot::Model;
+
+GetConcurrentConversationQuotaResult::GetConcurrentConversationQuotaResult() :
+	ServiceResult()
+{}
+
+GetConcurrentConversationQuotaResult::GetConcurrentConversationQuotaResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+GetConcurrentConversationQuotaResult::~GetConcurrentConversationQuotaResult()
+{}
+
+void GetConcurrentConversationQuotaResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
+	if(!value["HttpStatusCode"].isNull())
+		httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
+	if(!value["MaxConcurrent"].isNull())
+		maxConcurrent_ = std::stoi(value["MaxConcurrent"].asString());
+	if(!value["Message"].isNull())
+		message_ = value["Message"].asString();
+	if(!value["RemainingConcurrent"].isNull())
+		remainingConcurrent_ = std::stoi(value["RemainingConcurrent"].asString());
+	if(!value["Success"].isNull())
+		success_ = value["Success"].asString() == "true";
+
+}
+
+int GetConcurrentConversationQuotaResult::getRemainingConcurrent()const
+{
+	return remainingConcurrent_;
+}
+
+std::string GetConcurrentConversationQuotaResult::getMessage()const
+{
+	return message_;
+}
+
+int GetConcurrentConversationQuotaResult::getMaxConcurrent()const
+{
+	return maxConcurrent_;
+}
+
+int GetConcurrentConversationQuotaResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+std::string GetConcurrentConversationQuotaResult::getCode()const
+{
+	return code_;
+}
+
+bool GetConcurrentConversationQuotaResult::getSuccess()const
+{
+	return success_;
+}
+

+ 40 - 0
outboundbot/src/model/GetCurrentConcurrencyRequest.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 <alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h>
+
+using AlibabaCloud::OutboundBot::Model::GetCurrentConcurrencyRequest;
+
+GetCurrentConcurrencyRequest::GetCurrentConcurrencyRequest() :
+	RpcServiceRequest("outboundbot", "2019-12-26", "GetCurrentConcurrency")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+GetCurrentConcurrencyRequest::~GetCurrentConcurrencyRequest()
+{}
+
+std::string GetCurrentConcurrencyRequest::getInstanceId()const
+{
+	return instanceId_;
+}
+
+void GetCurrentConcurrencyRequest::setInstanceId(const std::string& instanceId)
+{
+	instanceId_ = instanceId;
+	setParameter("InstanceId", instanceId);
+}
+

+ 93 - 0
outboundbot/src/model/GetCurrentConcurrencyResult.cc

@@ -0,0 +1,93 @@
+/*
+ * 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 <alibabacloud/outboundbot/model/GetCurrentConcurrencyResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::OutboundBot;
+using namespace AlibabaCloud::OutboundBot::Model;
+
+GetCurrentConcurrencyResult::GetCurrentConcurrencyResult() :
+	ServiceResult()
+{}
+
+GetCurrentConcurrencyResult::GetCurrentConcurrencyResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+GetCurrentConcurrencyResult::~GetCurrentConcurrencyResult()
+{}
+
+void GetCurrentConcurrencyResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].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["HttpStatusCode"].isNull())
+		httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
+	if(!value["MaxConcurrentConversation"].isNull())
+		maxConcurrentConversation_ = std::stoi(value["MaxConcurrentConversation"].asString());
+	if(!value["CurrentConcurrency"].isNull())
+		currentConcurrency_ = std::stoi(value["CurrentConcurrency"].asString());
+	if(!value["InstanceId"].isNull())
+		instanceId_ = value["InstanceId"].asString();
+
+}
+
+std::string GetCurrentConcurrencyResult::getMessage()const
+{
+	return message_;
+}
+
+int GetCurrentConcurrencyResult::getMaxConcurrentConversation()const
+{
+	return maxConcurrentConversation_;
+}
+
+std::string GetCurrentConcurrencyResult::getInstanceId()const
+{
+	return instanceId_;
+}
+
+int GetCurrentConcurrencyResult::getCurrentConcurrency()const
+{
+	return currentConcurrency_;
+}
+
+int GetCurrentConcurrencyResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+std::string GetCurrentConcurrencyResult::getCode()const
+{
+	return code_;
+}
+
+bool GetCurrentConcurrencyResult::getSuccess()const
+{
+	return success_;
+}
+

+ 2 - 0
outboundbot/src/model/ListJobGroupsAsyncResult.cc

@@ -63,6 +63,8 @@ void ListJobGroupsAsyncResult::parse(const std::string &payload)
 			jobGroupsObject.modifyTime = valueJobGroupsJobGroup["ModifyTime"].asString();
 		if(!valueJobGroupsJobGroup["ScriptVersion"].isNull())
 			jobGroupsObject.scriptVersion = valueJobGroupsJobGroup["ScriptVersion"].asString();
+		if(!valueJobGroupsJobGroup["TotalCallNum"].isNull())
+			jobGroupsObject.totalCallNum = std::stoi(valueJobGroupsJobGroup["TotalCallNum"].asString());
 		auto strategyNode = value["Strategy"];
 		if(!strategyNode["StartTime"].isNull())
 			jobGroupsObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString());

+ 2 - 0
outboundbot/src/model/ListJobGroupsResult.cc

@@ -70,6 +70,8 @@ void ListJobGroupsResult::parse(const std::string &payload)
 			jobGroupObject.scriptVersion = jobGroupsNodeListJobGroup["ScriptVersion"].asString();
 		if(!jobGroupsNodeListJobGroup["Status"].isNull())
 			jobGroupObject.status = jobGroupsNodeListJobGroup["Status"].asString();
+		if(!jobGroupsNodeListJobGroup["TotalCallNum"].isNull())
+			jobGroupObject.totalCallNum = std::stoi(jobGroupsNodeListJobGroup["TotalCallNum"].asString());
 		auto progressNode = value["Progress"];
 		if(!progressNode["Duration"].isNull())
 			jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString());

+ 2 - 0
outboundbot/src/model/ListSchedulerInstancesResult.cc

@@ -51,6 +51,8 @@ void ListSchedulerInstancesResult::parse(const std::string &payload)
 			schedulerInstancesObject.business = valueSchedulerInstancesSchedulerInstance["Business"].asString();
 		if(!valueSchedulerInstancesSchedulerInstance["MaxConcurrency"].isNull())
 			schedulerInstancesObject.maxConcurrency = std::stoi(valueSchedulerInstancesSchedulerInstance["MaxConcurrency"].asString());
+		if(!valueSchedulerInstancesSchedulerInstance["BaseStrategy"].isNull())
+			schedulerInstancesObject.baseStrategy = valueSchedulerInstancesSchedulerInstance["BaseStrategy"].asString();
 		schedulerInstances_.push_back(schedulerInstancesObject);
 	}
 	if(!value["Success"].isNull())

+ 2 - 0
outboundbot/src/model/ListScriptsResult.cc

@@ -74,6 +74,8 @@ void ListScriptsResult::parse(const std::string &payload)
 			scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString());
 		if(!scriptsNodeListScript["RejectReason"].isNull())
 			scriptObject.rejectReason = scriptsNodeListScript["RejectReason"].asString();
+		if(!scriptsNodeListScript["MiniPlaybackEnabled"].isNull())
+			scriptObject.miniPlaybackEnabled = scriptsNodeListScript["MiniPlaybackEnabled"].asString() == "true";
 		scripts_.list.push_back(scriptObject);
 	}
 	if(!value["Code"].isNull())

+ 13 - 0
outboundbot/src/model/ModifyInstanceRequest.cc

@@ -60,6 +60,19 @@ void ModifyInstanceRequest::setEndpoint(const std::string& endpoint)
 	setParameter("Endpoint", endpoint);
 }
 
+std::vector<std::string> ModifyInstanceRequest::getCallingNumber()const
+{
+	return callingNumber_;
+}
+
+void ModifyInstanceRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
+{
+	callingNumber_ = callingNumber;
+	for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
+		setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
+	}
+}
+
 std::string ModifyInstanceRequest::getInstanceId()const
 {
 	return instanceId_;

+ 47 - 10
outboundbot/src/model/ModifyScriptRequest.cc

@@ -82,6 +82,41 @@ void ModifyScriptRequest::setScriptId(const std::string& scriptId)
 	setParameter("ScriptId", scriptId);
 }
 
+std::vector<std::string> ModifyScriptRequest::getScriptWaveform()const
+{
+	return scriptWaveform_;
+}
+
+void ModifyScriptRequest::setScriptWaveform(const std::vector<std::string>& scriptWaveform)
+{
+	scriptWaveform_ = scriptWaveform;
+	for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) {
+		setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1));
+	}
+}
+
+std::string ModifyScriptRequest::getAsrConfig()const
+{
+	return asrConfig_;
+}
+
+void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig)
+{
+	asrConfig_ = asrConfig;
+	setParameter("AsrConfig", asrConfig);
+}
+
+bool ModifyScriptRequest::getMiniPlaybackEnabled()const
+{
+	return miniPlaybackEnabled_;
+}
+
+void ModifyScriptRequest::setMiniPlaybackEnabled(bool miniPlaybackEnabled)
+{
+	miniPlaybackEnabled_ = miniPlaybackEnabled;
+	setParameter("MiniPlaybackEnabled", miniPlaybackEnabled ? "true" : "false");
+}
+
 std::string ModifyScriptRequest::getChatbotId()const
 {
 	return chatbotId_;
@@ -104,25 +139,27 @@ void ModifyScriptRequest::setInstanceId(const std::string& instanceId)
 	setParameter("InstanceId", instanceId);
 }
 
-std::string ModifyScriptRequest::getAsrConfig()const
+std::string ModifyScriptRequest::getScriptDescription()const
 {
-	return asrConfig_;
+	return scriptDescription_;
 }
 
-void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig)
+void ModifyScriptRequest::setScriptDescription(const std::string& scriptDescription)
 {
-	asrConfig_ = asrConfig;
-	setParameter("AsrConfig", asrConfig);
+	scriptDescription_ = scriptDescription;
+	setParameter("ScriptDescription", scriptDescription);
 }
 
-std::string ModifyScriptRequest::getScriptDescription()const
+std::vector<std::string> ModifyScriptRequest::getScriptContent()const
 {
-	return scriptDescription_;
+	return scriptContent_;
 }
 
-void ModifyScriptRequest::setScriptDescription(const std::string& scriptDescription)
+void ModifyScriptRequest::setScriptContent(const std::vector<std::string>& scriptContent)
 {
-	scriptDescription_ = scriptDescription;
-	setParameter("ScriptDescription", scriptDescription);
+	scriptContent_ = scriptContent;
+	for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) {
+		setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1));
+	}
 }
 

+ 10 - 0
outboundbot/src/model/QueryJobsWithResultResult.cc

@@ -89,6 +89,16 @@ void QueryJobsWithResultResult::parse(const std::string &payload)
 				extraObject.value = latestTaskNodeExtrasExtra["Value"].asString();
 			jobObject.latestTask.extras.push_back(extraObject);
 		}
+		auto allTagHitsNode = latestTaskNode["TagHits"]["TagHit"];
+		for (auto latestTaskNodeTagHitsTagHit : allTagHitsNode)
+		{
+			Jobs::Job::LatestTask::TagHit tagHitObject;
+			if(!latestTaskNodeTagHitsTagHit["TagGroup"].isNull())
+				tagHitObject.tagGroup = latestTaskNodeTagHitsTagHit["TagGroup"].asString();
+			if(!latestTaskNodeTagHitsTagHit["TagName"].isNull())
+				tagHitObject.tagName = latestTaskNodeTagHitsTagHit["TagName"].asString();
+			jobObject.latestTask.tagHits.push_back(tagHitObject);
+		}
 		auto contactNode = latestTaskNode["Contact"];
 		if(!contactNode["PreferredPhoneNumber"].isNull())
 			jobObject.latestTask.contact.preferredPhoneNumber = contactNode["PreferredPhoneNumber"].asString();

+ 11 - 0
outboundbot/src/model/StartJobRequest.cc

@@ -51,6 +51,17 @@ void StartJobRequest::setCallingNumber(const std::vector<std::string>& callingNu
 	}
 }
 
+std::string StartJobRequest::getScriptId()const
+{
+	return scriptId_;
+}
+
+void StartJobRequest::setScriptId(const std::string& scriptId)
+{
+	scriptId_ = scriptId;
+	setParameter("ScriptId", scriptId);
+}
+
 std::string StartJobRequest::getInstanceId()const
 {
 	return instanceId_;

+ 15 - 0
outboundbot/src/model/StartJobResult.cc

@@ -49,6 +49,16 @@ void StartJobResult::parse(const std::string &payload)
 			taskIdsObject.value = valueTaskIdsKeyValuePair["Value"].asString();
 		taskIds_.push_back(taskIdsObject);
 	}
+	auto allCallIdsNode = value["CallIds"]["KeyValuePair"];
+	for (auto valueCallIdsKeyValuePair : allCallIdsNode)
+	{
+		KeyValuePair callIdsObject;
+		if(!valueCallIdsKeyValuePair["Key"].isNull())
+			callIdsObject.key = valueCallIdsKeyValuePair["Key"].asString();
+		if(!valueCallIdsKeyValuePair["Value"].isNull())
+			callIdsObject.value = valueCallIdsKeyValuePair["Value"].asString();
+		callIds_.push_back(callIdsObject);
+	}
 	if(!value["Code"].isNull())
 		code_ = value["Code"].asString();
 	if(!value["HttpStatusCode"].isNull())
@@ -60,6 +70,11 @@ void StartJobResult::parse(const std::string &payload)
 
 }
 
+std::vector<StartJobResult::KeyValuePair> StartJobResult::getCallIds()const
+{
+	return callIds_;
+}
+
 std::vector<StartJobResult::KeyValuePair> StartJobResult::getTaskIds()const
 {
 	return taskIds_;

+ 51 - 0
outboundbot/src/model/TerminateCallRequest.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 <alibabacloud/outboundbot/model/TerminateCallRequest.h>
+
+using AlibabaCloud::OutboundBot::Model::TerminateCallRequest;
+
+TerminateCallRequest::TerminateCallRequest() :
+	RpcServiceRequest("outboundbot", "2019-12-26", "TerminateCall")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+TerminateCallRequest::~TerminateCallRequest()
+{}
+
+std::string TerminateCallRequest::getCallId()const
+{
+	return callId_;
+}
+
+void TerminateCallRequest::setCallId(const std::string& callId)
+{
+	callId_ = callId;
+	setParameter("CallId", callId);
+}
+
+std::string TerminateCallRequest::getInstanceId()const
+{
+	return instanceId_;
+}
+
+void TerminateCallRequest::setInstanceId(const std::string& instanceId)
+{
+	instanceId_ = instanceId;
+	setParameter("InstanceId", instanceId);
+}
+

+ 72 - 0
outboundbot/src/model/TerminateCallResult.cc

@@ -0,0 +1,72 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/outboundbot/model/TerminateCallResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::OutboundBot;
+using namespace AlibabaCloud::OutboundBot::Model;
+
+TerminateCallResult::TerminateCallResult() :
+	ServiceResult()
+{}
+
+TerminateCallResult::TerminateCallResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+TerminateCallResult::~TerminateCallResult()
+{}
+
+void TerminateCallResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].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["HttpStatusCode"].isNull())
+		httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
+
+}
+
+std::string TerminateCallResult::getMessage()const
+{
+	return message_;
+}
+
+int TerminateCallResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+std::string TerminateCallResult::getCode()const
+{
+	return code_;
+}
+
+bool TerminateCallResult::getSuccess()const
+{
+	return success_;
+}
+