Compare commits

..

5 Commits

Author SHA1 Message Date
sdk-team
97286a49ca Release AddFaceVideoTemplate DeleteFaceVideoTemplate QueryFaceVideoTemplate MergeVideoModelFace. 2021-04-13 02:28:45 +00:00
sdk-team
4053c3aebe Export config api. 2021-04-12 12:39:25 +00:00
sdk-team
5df89b5fa1 Support GetDBTopology API. 2021-04-12 01:57:55 +00:00
sdk-team
08b85b98e8 Bank Card Ocr and Verify. 2021-04-09 07:13:41 +00:00
sdk-team
8712582b42 Update API param. 2021-04-09 04:02:49 +00:00
133 changed files with 6924 additions and 244 deletions

View File

@@ -1,3 +1,18 @@
2021-04-13 Version: 1.36.677
- Release AddFaceVideoTemplate DeleteFaceVideoTemplate QueryFaceVideoTemplate MergeVideoModelFace.
2021-04-12 Version: 1.36.676
- Export config api.
2021-04-12 Version: 1.36.675
- Support GetDBTopology API.
2021-04-09 Version: 1.36.674
- Bank Card Ocr and Verify.
2021-04-09 Version: 1.36.673
- Update API param.
2021-04-08 Version: 1.36.672
- Supported ModifyDtsJob and DeleteDtsJob.

View File

@@ -1 +1 @@
1.36.672
1.36.677

View File

@@ -21,6 +21,12 @@ set(ccc_public_header
include/alibabacloud/ccc/CCCExport.h )
set(ccc_public_header_model
include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h
include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h
include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h
include/alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsResult.h
include/alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h
include/alibabacloud/ccc/model/AddSkillGroupsToUserResult.h
include/alibabacloud/ccc/model/AnswerCallRequest.h
include/alibabacloud/ccc/model/AnswerCallResult.h
include/alibabacloud/ccc/model/BargeInCallRequest.h
@@ -33,6 +39,12 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/ChangeWorkModeResult.h
include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h
include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h
include/alibabacloud/ccc/model/CreateSkillGroupRequest.h
include/alibabacloud/ccc/model/CreateSkillGroupResult.h
include/alibabacloud/ccc/model/CreateUserRequest.h
include/alibabacloud/ccc/model/CreateUserResult.h
include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h
include/alibabacloud/ccc/model/DeleteSkillGroupResult.h
include/alibabacloud/ccc/model/GetLoginDetailsRequest.h
include/alibabacloud/ccc/model/GetLoginDetailsResult.h
include/alibabacloud/ccc/model/GetMonoRecordingRequest.h
@@ -61,10 +73,14 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h
include/alibabacloud/ccc/model/ListConfigItemsRequest.h
include/alibabacloud/ccc/model/ListConfigItemsResult.h
include/alibabacloud/ccc/model/ListContactFlowsRequest.h
include/alibabacloud/ccc/model/ListContactFlowsResult.h
include/alibabacloud/ccc/model/ListDevicesRequest.h
include/alibabacloud/ccc/model/ListDevicesResult.h
include/alibabacloud/ccc/model/ListHistoricalAgentReportRequest.h
include/alibabacloud/ccc/model/ListHistoricalAgentReportResult.h
include/alibabacloud/ccc/model/ListInstancesOfUserRequest.h
include/alibabacloud/ccc/model/ListInstancesOfUserResult.h
include/alibabacloud/ccc/model/ListOutboundNumbersOfUserRequest.h
include/alibabacloud/ccc/model/ListOutboundNumbersOfUserResult.h
include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h
@@ -75,8 +91,18 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/ListRecentCallDetailRecordsResult.h
include/alibabacloud/ccc/model/ListSkillLevelsOfUserRequest.h
include/alibabacloud/ccc/model/ListSkillLevelsOfUserResult.h
include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h
include/alibabacloud/ccc/model/ListUserLevelsOfSkillGroupResult.h
include/alibabacloud/ccc/model/MakeCallRequest.h
include/alibabacloud/ccc/model/MakeCallResult.h
include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h
include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h
include/alibabacloud/ccc/model/ModifySkillGroupRequest.h
include/alibabacloud/ccc/model/ModifySkillGroupResult.h
include/alibabacloud/ccc/model/ModifyUserRequest.h
include/alibabacloud/ccc/model/ModifyUserResult.h
include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h
include/alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupResult.h
include/alibabacloud/ccc/model/MonitorCallRequest.h
include/alibabacloud/ccc/model/MonitorCallResult.h
include/alibabacloud/ccc/model/MuteCallRequest.h
@@ -91,6 +117,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/RegisterDeviceResult.h
include/alibabacloud/ccc/model/ReleaseCallRequest.h
include/alibabacloud/ccc/model/ReleaseCallResult.h
include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h
include/alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h
include/alibabacloud/ccc/model/ResetAgentStateRequest.h
include/alibabacloud/ccc/model/ResetAgentStateResult.h
include/alibabacloud/ccc/model/RetrieveCallRequest.h
@@ -101,6 +129,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/SignInGroupResult.h
include/alibabacloud/ccc/model/SignOutGroupRequest.h
include/alibabacloud/ccc/model/SignOutGroupResult.h
include/alibabacloud/ccc/model/StartBack2BackCallRequest.h
include/alibabacloud/ccc/model/StartBack2BackCallResult.h
include/alibabacloud/ccc/model/TakeBreakRequest.h
include/alibabacloud/ccc/model/TakeBreakResult.h
include/alibabacloud/ccc/model/UnmuteCallRequest.h
@@ -108,6 +138,12 @@ set(ccc_public_header_model
set(ccc_src
src/CCCClient.cc
src/model/AddNumbersToSkillGroupRequest.cc
src/model/AddNumbersToSkillGroupResult.cc
src/model/AddPhoneNumberToSkillGroupsRequest.cc
src/model/AddPhoneNumberToSkillGroupsResult.cc
src/model/AddSkillGroupsToUserRequest.cc
src/model/AddSkillGroupsToUserResult.cc
src/model/AnswerCallRequest.cc
src/model/AnswerCallResult.cc
src/model/BargeInCallRequest.cc
@@ -120,6 +156,12 @@ set(ccc_src
src/model/ChangeWorkModeResult.cc
src/model/CompleteAttendedTransferRequest.cc
src/model/CompleteAttendedTransferResult.cc
src/model/CreateSkillGroupRequest.cc
src/model/CreateSkillGroupResult.cc
src/model/CreateUserRequest.cc
src/model/CreateUserResult.cc
src/model/DeleteSkillGroupRequest.cc
src/model/DeleteSkillGroupResult.cc
src/model/GetLoginDetailsRequest.cc
src/model/GetLoginDetailsResult.cc
src/model/GetMonoRecordingRequest.cc
@@ -148,10 +190,14 @@ set(ccc_src
src/model/ListCallDetailRecordsResult.cc
src/model/ListConfigItemsRequest.cc
src/model/ListConfigItemsResult.cc
src/model/ListContactFlowsRequest.cc
src/model/ListContactFlowsResult.cc
src/model/ListDevicesRequest.cc
src/model/ListDevicesResult.cc
src/model/ListHistoricalAgentReportRequest.cc
src/model/ListHistoricalAgentReportResult.cc
src/model/ListInstancesOfUserRequest.cc
src/model/ListInstancesOfUserResult.cc
src/model/ListOutboundNumbersOfUserRequest.cc
src/model/ListOutboundNumbersOfUserResult.cc
src/model/ListPrivilegesOfUserRequest.cc
@@ -162,8 +208,18 @@ set(ccc_src
src/model/ListRecentCallDetailRecordsResult.cc
src/model/ListSkillLevelsOfUserRequest.cc
src/model/ListSkillLevelsOfUserResult.cc
src/model/ListUserLevelsOfSkillGroupRequest.cc
src/model/ListUserLevelsOfSkillGroupResult.cc
src/model/MakeCallRequest.cc
src/model/MakeCallResult.cc
src/model/ModifyPhoneNumberRequest.cc
src/model/ModifyPhoneNumberResult.cc
src/model/ModifySkillGroupRequest.cc
src/model/ModifySkillGroupResult.cc
src/model/ModifyUserRequest.cc
src/model/ModifyUserResult.cc
src/model/ModifyUserLevelsOfSkillGroupRequest.cc
src/model/ModifyUserLevelsOfSkillGroupResult.cc
src/model/MonitorCallRequest.cc
src/model/MonitorCallResult.cc
src/model/MuteCallRequest.cc
@@ -178,6 +234,8 @@ set(ccc_src
src/model/RegisterDeviceResult.cc
src/model/ReleaseCallRequest.cc
src/model/ReleaseCallResult.cc
src/model/RemovePhoneNumbersFromSkillGroupRequest.cc
src/model/RemovePhoneNumbersFromSkillGroupResult.cc
src/model/ResetAgentStateRequest.cc
src/model/ResetAgentStateResult.cc
src/model/RetrieveCallRequest.cc
@@ -188,6 +246,8 @@ set(ccc_src
src/model/SignInGroupResult.cc
src/model/SignOutGroupRequest.cc
src/model/SignOutGroupResult.cc
src/model/StartBack2BackCallRequest.cc
src/model/StartBack2BackCallResult.cc
src/model/TakeBreakRequest.cc
src/model/TakeBreakResult.cc
src/model/UnmuteCallRequest.cc

View File

@@ -22,6 +22,12 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "CCCExport.h"
#include "model/AddNumbersToSkillGroupRequest.h"
#include "model/AddNumbersToSkillGroupResult.h"
#include "model/AddPhoneNumberToSkillGroupsRequest.h"
#include "model/AddPhoneNumberToSkillGroupsResult.h"
#include "model/AddSkillGroupsToUserRequest.h"
#include "model/AddSkillGroupsToUserResult.h"
#include "model/AnswerCallRequest.h"
#include "model/AnswerCallResult.h"
#include "model/BargeInCallRequest.h"
@@ -34,6 +40,12 @@
#include "model/ChangeWorkModeResult.h"
#include "model/CompleteAttendedTransferRequest.h"
#include "model/CompleteAttendedTransferResult.h"
#include "model/CreateSkillGroupRequest.h"
#include "model/CreateSkillGroupResult.h"
#include "model/CreateUserRequest.h"
#include "model/CreateUserResult.h"
#include "model/DeleteSkillGroupRequest.h"
#include "model/DeleteSkillGroupResult.h"
#include "model/GetLoginDetailsRequest.h"
#include "model/GetLoginDetailsResult.h"
#include "model/GetMonoRecordingRequest.h"
@@ -62,10 +74,14 @@
#include "model/ListCallDetailRecordsResult.h"
#include "model/ListConfigItemsRequest.h"
#include "model/ListConfigItemsResult.h"
#include "model/ListContactFlowsRequest.h"
#include "model/ListContactFlowsResult.h"
#include "model/ListDevicesRequest.h"
#include "model/ListDevicesResult.h"
#include "model/ListHistoricalAgentReportRequest.h"
#include "model/ListHistoricalAgentReportResult.h"
#include "model/ListInstancesOfUserRequest.h"
#include "model/ListInstancesOfUserResult.h"
#include "model/ListOutboundNumbersOfUserRequest.h"
#include "model/ListOutboundNumbersOfUserResult.h"
#include "model/ListPrivilegesOfUserRequest.h"
@@ -76,8 +92,18 @@
#include "model/ListRecentCallDetailRecordsResult.h"
#include "model/ListSkillLevelsOfUserRequest.h"
#include "model/ListSkillLevelsOfUserResult.h"
#include "model/ListUserLevelsOfSkillGroupRequest.h"
#include "model/ListUserLevelsOfSkillGroupResult.h"
#include "model/MakeCallRequest.h"
#include "model/MakeCallResult.h"
#include "model/ModifyPhoneNumberRequest.h"
#include "model/ModifyPhoneNumberResult.h"
#include "model/ModifySkillGroupRequest.h"
#include "model/ModifySkillGroupResult.h"
#include "model/ModifyUserRequest.h"
#include "model/ModifyUserResult.h"
#include "model/ModifyUserLevelsOfSkillGroupRequest.h"
#include "model/ModifyUserLevelsOfSkillGroupResult.h"
#include "model/MonitorCallRequest.h"
#include "model/MonitorCallResult.h"
#include "model/MuteCallRequest.h"
@@ -92,6 +118,8 @@
#include "model/RegisterDeviceResult.h"
#include "model/ReleaseCallRequest.h"
#include "model/ReleaseCallResult.h"
#include "model/RemovePhoneNumbersFromSkillGroupRequest.h"
#include "model/RemovePhoneNumbersFromSkillGroupResult.h"
#include "model/ResetAgentStateRequest.h"
#include "model/ResetAgentStateResult.h"
#include "model/RetrieveCallRequest.h"
@@ -102,6 +130,8 @@
#include "model/SignInGroupResult.h"
#include "model/SignOutGroupRequest.h"
#include "model/SignOutGroupResult.h"
#include "model/StartBack2BackCallRequest.h"
#include "model/StartBack2BackCallResult.h"
#include "model/TakeBreakRequest.h"
#include "model/TakeBreakResult.h"
#include "model/UnmuteCallRequest.h"
@@ -115,6 +145,15 @@ namespace AlibabaCloud
class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddNumbersToSkillGroupResult> AddNumbersToSkillGroupOutcome;
typedef std::future<AddNumbersToSkillGroupOutcome> AddNumbersToSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddNumbersToSkillGroupRequest&, const AddNumbersToSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddNumbersToSkillGroupAsyncHandler;
typedef Outcome<Error, Model::AddPhoneNumberToSkillGroupsResult> AddPhoneNumberToSkillGroupsOutcome;
typedef std::future<AddPhoneNumberToSkillGroupsOutcome> AddPhoneNumberToSkillGroupsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddPhoneNumberToSkillGroupsRequest&, const AddPhoneNumberToSkillGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddPhoneNumberToSkillGroupsAsyncHandler;
typedef Outcome<Error, Model::AddSkillGroupsToUserResult> AddSkillGroupsToUserOutcome;
typedef std::future<AddSkillGroupsToUserOutcome> AddSkillGroupsToUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddSkillGroupsToUserRequest&, const AddSkillGroupsToUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSkillGroupsToUserAsyncHandler;
typedef Outcome<Error, Model::AnswerCallResult> AnswerCallOutcome;
typedef std::future<AnswerCallOutcome> AnswerCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AnswerCallRequest&, const AnswerCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AnswerCallAsyncHandler;
@@ -133,6 +172,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CompleteAttendedTransferResult> CompleteAttendedTransferOutcome;
typedef std::future<CompleteAttendedTransferOutcome> CompleteAttendedTransferOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::CompleteAttendedTransferRequest&, const CompleteAttendedTransferOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompleteAttendedTransferAsyncHandler;
typedef Outcome<Error, Model::CreateSkillGroupResult> CreateSkillGroupOutcome;
typedef std::future<CreateSkillGroupOutcome> CreateSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::CreateSkillGroupRequest&, const CreateSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSkillGroupAsyncHandler;
typedef Outcome<Error, Model::CreateUserResult> CreateUserOutcome;
typedef std::future<CreateUserOutcome> CreateUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::CreateUserRequest&, const CreateUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserAsyncHandler;
typedef Outcome<Error, Model::DeleteSkillGroupResult> DeleteSkillGroupOutcome;
typedef std::future<DeleteSkillGroupOutcome> DeleteSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::DeleteSkillGroupRequest&, const DeleteSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSkillGroupAsyncHandler;
typedef Outcome<Error, Model::GetLoginDetailsResult> GetLoginDetailsOutcome;
typedef std::future<GetLoginDetailsOutcome> GetLoginDetailsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::GetLoginDetailsRequest&, const GetLoginDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLoginDetailsAsyncHandler;
@@ -175,12 +223,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListConfigItemsResult> ListConfigItemsOutcome;
typedef std::future<ListConfigItemsOutcome> ListConfigItemsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListConfigItemsRequest&, const ListConfigItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigItemsAsyncHandler;
typedef Outcome<Error, Model::ListContactFlowsResult> ListContactFlowsOutcome;
typedef std::future<ListContactFlowsOutcome> ListContactFlowsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListContactFlowsRequest&, const ListContactFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListContactFlowsAsyncHandler;
typedef Outcome<Error, Model::ListDevicesResult> ListDevicesOutcome;
typedef std::future<ListDevicesOutcome> ListDevicesOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListDevicesRequest&, const ListDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicesAsyncHandler;
typedef Outcome<Error, Model::ListHistoricalAgentReportResult> ListHistoricalAgentReportOutcome;
typedef std::future<ListHistoricalAgentReportOutcome> ListHistoricalAgentReportOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListHistoricalAgentReportRequest&, const ListHistoricalAgentReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListHistoricalAgentReportAsyncHandler;
typedef Outcome<Error, Model::ListInstancesOfUserResult> ListInstancesOfUserOutcome;
typedef std::future<ListInstancesOfUserOutcome> ListInstancesOfUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListInstancesOfUserRequest&, const ListInstancesOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesOfUserAsyncHandler;
typedef Outcome<Error, Model::ListOutboundNumbersOfUserResult> ListOutboundNumbersOfUserOutcome;
typedef std::future<ListOutboundNumbersOfUserOutcome> ListOutboundNumbersOfUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListOutboundNumbersOfUserRequest&, const ListOutboundNumbersOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOutboundNumbersOfUserAsyncHandler;
@@ -196,9 +250,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListSkillLevelsOfUserResult> ListSkillLevelsOfUserOutcome;
typedef std::future<ListSkillLevelsOfUserOutcome> ListSkillLevelsOfUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListSkillLevelsOfUserRequest&, const ListSkillLevelsOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSkillLevelsOfUserAsyncHandler;
typedef Outcome<Error, Model::ListUserLevelsOfSkillGroupResult> ListUserLevelsOfSkillGroupOutcome;
typedef std::future<ListUserLevelsOfSkillGroupOutcome> ListUserLevelsOfSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListUserLevelsOfSkillGroupRequest&, const ListUserLevelsOfSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserLevelsOfSkillGroupAsyncHandler;
typedef Outcome<Error, Model::MakeCallResult> MakeCallOutcome;
typedef std::future<MakeCallOutcome> MakeCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::MakeCallRequest&, const MakeCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MakeCallAsyncHandler;
typedef Outcome<Error, Model::ModifyPhoneNumberResult> ModifyPhoneNumberOutcome;
typedef std::future<ModifyPhoneNumberOutcome> ModifyPhoneNumberOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ModifyPhoneNumberRequest&, const ModifyPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneNumberAsyncHandler;
typedef Outcome<Error, Model::ModifySkillGroupResult> ModifySkillGroupOutcome;
typedef std::future<ModifySkillGroupOutcome> ModifySkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ModifySkillGroupRequest&, const ModifySkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySkillGroupAsyncHandler;
typedef Outcome<Error, Model::ModifyUserResult> ModifyUserOutcome;
typedef std::future<ModifyUserOutcome> ModifyUserOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ModifyUserRequest&, const ModifyUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserAsyncHandler;
typedef Outcome<Error, Model::ModifyUserLevelsOfSkillGroupResult> ModifyUserLevelsOfSkillGroupOutcome;
typedef std::future<ModifyUserLevelsOfSkillGroupOutcome> ModifyUserLevelsOfSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ModifyUserLevelsOfSkillGroupRequest&, const ModifyUserLevelsOfSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserLevelsOfSkillGroupAsyncHandler;
typedef Outcome<Error, Model::MonitorCallResult> MonitorCallOutcome;
typedef std::future<MonitorCallOutcome> MonitorCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::MonitorCallRequest&, const MonitorCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MonitorCallAsyncHandler;
@@ -220,6 +289,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ReleaseCallResult> ReleaseCallOutcome;
typedef std::future<ReleaseCallOutcome> ReleaseCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ReleaseCallRequest&, const ReleaseCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseCallAsyncHandler;
typedef Outcome<Error, Model::RemovePhoneNumbersFromSkillGroupResult> RemovePhoneNumbersFromSkillGroupOutcome;
typedef std::future<RemovePhoneNumbersFromSkillGroupOutcome> RemovePhoneNumbersFromSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::RemovePhoneNumbersFromSkillGroupRequest&, const RemovePhoneNumbersFromSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemovePhoneNumbersFromSkillGroupAsyncHandler;
typedef Outcome<Error, Model::ResetAgentStateResult> ResetAgentStateOutcome;
typedef std::future<ResetAgentStateOutcome> ResetAgentStateOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ResetAgentStateRequest&, const ResetAgentStateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetAgentStateAsyncHandler;
@@ -235,6 +307,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SignOutGroupResult> SignOutGroupOutcome;
typedef std::future<SignOutGroupOutcome> SignOutGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::SignOutGroupRequest&, const SignOutGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SignOutGroupAsyncHandler;
typedef Outcome<Error, Model::StartBack2BackCallResult> StartBack2BackCallOutcome;
typedef std::future<StartBack2BackCallOutcome> StartBack2BackCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::StartBack2BackCallRequest&, const StartBack2BackCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartBack2BackCallAsyncHandler;
typedef Outcome<Error, Model::TakeBreakResult> TakeBreakOutcome;
typedef std::future<TakeBreakOutcome> TakeBreakOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::TakeBreakRequest&, const TakeBreakOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TakeBreakAsyncHandler;
@@ -246,6 +321,15 @@ namespace AlibabaCloud
CCCClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CCCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CCCClient();
AddNumbersToSkillGroupOutcome addNumbersToSkillGroup(const Model::AddNumbersToSkillGroupRequest &request)const;
void addNumbersToSkillGroupAsync(const Model::AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddNumbersToSkillGroupOutcomeCallable addNumbersToSkillGroupCallable(const Model::AddNumbersToSkillGroupRequest& request) const;
AddPhoneNumberToSkillGroupsOutcome addPhoneNumberToSkillGroups(const Model::AddPhoneNumberToSkillGroupsRequest &request)const;
void addPhoneNumberToSkillGroupsAsync(const Model::AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddPhoneNumberToSkillGroupsOutcomeCallable addPhoneNumberToSkillGroupsCallable(const Model::AddPhoneNumberToSkillGroupsRequest& request) const;
AddSkillGroupsToUserOutcome addSkillGroupsToUser(const Model::AddSkillGroupsToUserRequest &request)const;
void addSkillGroupsToUserAsync(const Model::AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddSkillGroupsToUserOutcomeCallable addSkillGroupsToUserCallable(const Model::AddSkillGroupsToUserRequest& request) const;
AnswerCallOutcome answerCall(const Model::AnswerCallRequest &request)const;
void answerCallAsync(const Model::AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AnswerCallOutcomeCallable answerCallCallable(const Model::AnswerCallRequest& request) const;
@@ -264,6 +348,15 @@ namespace AlibabaCloud
CompleteAttendedTransferOutcome completeAttendedTransfer(const Model::CompleteAttendedTransferRequest &request)const;
void completeAttendedTransferAsync(const Model::CompleteAttendedTransferRequest& request, const CompleteAttendedTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CompleteAttendedTransferOutcomeCallable completeAttendedTransferCallable(const Model::CompleteAttendedTransferRequest& request) const;
CreateSkillGroupOutcome createSkillGroup(const Model::CreateSkillGroupRequest &request)const;
void createSkillGroupAsync(const Model::CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSkillGroupOutcomeCallable createSkillGroupCallable(const Model::CreateSkillGroupRequest& request) const;
CreateUserOutcome createUser(const Model::CreateUserRequest &request)const;
void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const;
DeleteSkillGroupOutcome deleteSkillGroup(const Model::DeleteSkillGroupRequest &request)const;
void deleteSkillGroupAsync(const Model::DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSkillGroupOutcomeCallable deleteSkillGroupCallable(const Model::DeleteSkillGroupRequest& request) const;
GetLoginDetailsOutcome getLoginDetails(const Model::GetLoginDetailsRequest &request)const;
void getLoginDetailsAsync(const Model::GetLoginDetailsRequest& request, const GetLoginDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLoginDetailsOutcomeCallable getLoginDetailsCallable(const Model::GetLoginDetailsRequest& request) const;
@@ -306,12 +399,18 @@ namespace AlibabaCloud
ListConfigItemsOutcome listConfigItems(const Model::ListConfigItemsRequest &request)const;
void listConfigItemsAsync(const Model::ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListConfigItemsOutcomeCallable listConfigItemsCallable(const Model::ListConfigItemsRequest& request) const;
ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const;
void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const;
ListDevicesOutcome listDevices(const Model::ListDevicesRequest &request)const;
void listDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDevicesOutcomeCallable listDevicesCallable(const Model::ListDevicesRequest& request) const;
ListHistoricalAgentReportOutcome listHistoricalAgentReport(const Model::ListHistoricalAgentReportRequest &request)const;
void listHistoricalAgentReportAsync(const Model::ListHistoricalAgentReportRequest& request, const ListHistoricalAgentReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListHistoricalAgentReportOutcomeCallable listHistoricalAgentReportCallable(const Model::ListHistoricalAgentReportRequest& request) const;
ListInstancesOfUserOutcome listInstancesOfUser(const Model::ListInstancesOfUserRequest &request)const;
void listInstancesOfUserAsync(const Model::ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstancesOfUserOutcomeCallable listInstancesOfUserCallable(const Model::ListInstancesOfUserRequest& request) const;
ListOutboundNumbersOfUserOutcome listOutboundNumbersOfUser(const Model::ListOutboundNumbersOfUserRequest &request)const;
void listOutboundNumbersOfUserAsync(const Model::ListOutboundNumbersOfUserRequest& request, const ListOutboundNumbersOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListOutboundNumbersOfUserOutcomeCallable listOutboundNumbersOfUserCallable(const Model::ListOutboundNumbersOfUserRequest& request) const;
@@ -327,9 +426,24 @@ namespace AlibabaCloud
ListSkillLevelsOfUserOutcome listSkillLevelsOfUser(const Model::ListSkillLevelsOfUserRequest &request)const;
void listSkillLevelsOfUserAsync(const Model::ListSkillLevelsOfUserRequest& request, const ListSkillLevelsOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSkillLevelsOfUserOutcomeCallable listSkillLevelsOfUserCallable(const Model::ListSkillLevelsOfUserRequest& request) const;
ListUserLevelsOfSkillGroupOutcome listUserLevelsOfSkillGroup(const Model::ListUserLevelsOfSkillGroupRequest &request)const;
void listUserLevelsOfSkillGroupAsync(const Model::ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserLevelsOfSkillGroupOutcomeCallable listUserLevelsOfSkillGroupCallable(const Model::ListUserLevelsOfSkillGroupRequest& request) const;
MakeCallOutcome makeCall(const Model::MakeCallRequest &request)const;
void makeCallAsync(const Model::MakeCallRequest& request, const MakeCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MakeCallOutcomeCallable makeCallCallable(const Model::MakeCallRequest& request) const;
ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const;
void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const;
ModifySkillGroupOutcome modifySkillGroup(const Model::ModifySkillGroupRequest &request)const;
void modifySkillGroupAsync(const Model::ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySkillGroupOutcomeCallable modifySkillGroupCallable(const Model::ModifySkillGroupRequest& request) const;
ModifyUserOutcome modifyUser(const Model::ModifyUserRequest &request)const;
void modifyUserAsync(const Model::ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyUserOutcomeCallable modifyUserCallable(const Model::ModifyUserRequest& request) const;
ModifyUserLevelsOfSkillGroupOutcome modifyUserLevelsOfSkillGroup(const Model::ModifyUserLevelsOfSkillGroupRequest &request)const;
void modifyUserLevelsOfSkillGroupAsync(const Model::ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyUserLevelsOfSkillGroupOutcomeCallable modifyUserLevelsOfSkillGroupCallable(const Model::ModifyUserLevelsOfSkillGroupRequest& request) const;
MonitorCallOutcome monitorCall(const Model::MonitorCallRequest &request)const;
void monitorCallAsync(const Model::MonitorCallRequest& request, const MonitorCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MonitorCallOutcomeCallable monitorCallCallable(const Model::MonitorCallRequest& request) const;
@@ -351,6 +465,9 @@ namespace AlibabaCloud
ReleaseCallOutcome releaseCall(const Model::ReleaseCallRequest &request)const;
void releaseCallAsync(const Model::ReleaseCallRequest& request, const ReleaseCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleaseCallOutcomeCallable releaseCallCallable(const Model::ReleaseCallRequest& request) const;
RemovePhoneNumbersFromSkillGroupOutcome removePhoneNumbersFromSkillGroup(const Model::RemovePhoneNumbersFromSkillGroupRequest &request)const;
void removePhoneNumbersFromSkillGroupAsync(const Model::RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemovePhoneNumbersFromSkillGroupOutcomeCallable removePhoneNumbersFromSkillGroupCallable(const Model::RemovePhoneNumbersFromSkillGroupRequest& request) const;
ResetAgentStateOutcome resetAgentState(const Model::ResetAgentStateRequest &request)const;
void resetAgentStateAsync(const Model::ResetAgentStateRequest& request, const ResetAgentStateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetAgentStateOutcomeCallable resetAgentStateCallable(const Model::ResetAgentStateRequest& request) const;
@@ -366,6 +483,9 @@ namespace AlibabaCloud
SignOutGroupOutcome signOutGroup(const Model::SignOutGroupRequest &request)const;
void signOutGroupAsync(const Model::SignOutGroupRequest& request, const SignOutGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SignOutGroupOutcomeCallable signOutGroupCallable(const Model::SignOutGroupRequest& request) const;
StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const;
void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const;
TakeBreakOutcome takeBreak(const Model::TakeBreakRequest &request)const;
void takeBreakAsync(const Model::TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TakeBreakOutcomeCallable takeBreakCallable(const Model::TakeBreakRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT AddNumbersToSkillGroupRequest : public RpcServiceRequest
{
public:
AddNumbersToSkillGroupRequest();
~AddNumbersToSkillGroupRequest();
std::string getNumberList()const;
void setNumberList(const std::string& numberList);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
private:
std::string numberList_;
std::string instanceId_;
std::string skillGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDNUMBERSTOSKILLGROUPREQUEST_H_

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT AddPhoneNumberToSkillGroupsRequest : public RpcServiceRequest
{
public:
AddPhoneNumberToSkillGroupsRequest();
~AddPhoneNumberToSkillGroupsRequest();
std::string getNumber()const;
void setNumber(const std::string& number);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupIdList()const;
void setSkillGroupIdList(const std::string& skillGroupIdList);
private:
std::string number_;
std::string instanceId_;
std::string skillGroupIdList_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERTOSKILLGROUPSREQUEST_H_

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserRequest : public RpcServiceRequest
{
public:
AddSkillGroupsToUserRequest();
~AddSkillGroupsToUserRequest();
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillLevelList()const;
void setSkillLevelList(const std::string& skillLevelList);
private:
std::string userId_;
std::string instanceId_;
std::string skillLevelList_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERREQUEST_H_

View File

@@ -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_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT AddSkillGroupsToUserResult : public ServiceResult
{
public:
AddSkillGroupsToUserResult();
explicit AddSkillGroupsToUserResult(const std::string &payload);
~AddSkillGroupsToUserResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<std::string> getParams()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<std::string> params_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDSKILLGROUPSTOUSERRESULT_H_

View File

@@ -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_CCC_MODEL_CREATESKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupRequest : public RpcServiceRequest
{
public:
CreateSkillGroupRequest();
~CreateSkillGroupRequest();
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getDisplayName()const;
void setDisplayName(const std::string& displayName);
std::string getName()const;
void setName(const std::string& name);
private:
std::string description_;
std::string instanceId_;
std::string displayName_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* 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_CCC_MODEL_CREATESKILLGROUPRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupResult : public ServiceResult
{
public:
struct Data
{
std::string description;
std::string instanceId;
std::string skillGroupId;
std::string name;
};
CreateSkillGroupResult();
explicit CreateSkillGroupResult(const std::string &payload);
~CreateSkillGroupResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT CreateUserRequest : public RpcServiceRequest
{
public:
CreateUserRequest();
~CreateUserRequest();
std::string getLoginName()const;
void setLoginName(const std::string& loginName);
std::string getRoleId()const;
void setRoleId(const std::string& roleId);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getWorkMode()const;
void setWorkMode(const std::string& workMode);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getDisplayName()const;
void setDisplayName(const std::string& displayName);
bool getResetPassword()const;
void setResetPassword(bool resetPassword);
std::string getSkillLevelList()const;
void setSkillLevelList(const std::string& skillLevelList);
std::string getEmail()const;
void setEmail(const std::string& email);
private:
std::string loginName_;
std::string roleId_;
std::string mobile_;
std::string workMode_;
std::string instanceId_;
std::string displayName_;
bool resetPassword_;
std::string skillLevelList_;
std::string email_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_

View File

@@ -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_CCC_MODEL_CREATEUSERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT CreateUserResult : public ServiceResult
{
public:
struct Data
{
std::string extension;
std::string loginName;
std::string email;
std::string userId;
std::string displayName;
std::string mobile;
std::string workMode;
};
CreateUserResult();
explicit CreateUserResult(const std::string &payload);
~CreateUserResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<std::string> getParams()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<std::string> params_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupRequest : public RpcServiceRequest
{
public:
DeleteSkillGroupRequest();
~DeleteSkillGroupRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
bool getForce()const;
void setForce(bool force);
private:
std::string instanceId_;
std::string skillGroupId_;
bool force_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_

View File

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

View File

@@ -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_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListContactFlowsRequest : public RpcServiceRequest
{
public:
ListContactFlowsRequest();
~ListContactFlowsRequest();
std::string getType()const;
void setType(const std::string& type);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
int getPageSize()const;
void setPageSize(int pageSize);
private:
std::string type_;
int pageNumber_;
std::string instanceId_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSREQUEST_H_

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult
{
public:
struct Data
{
struct ContactFlow
{
std::string type;
std::string createdTime;
std::string description;
std::string contactFlowId;
std::string instanceId;
std::string definition;
bool published;
std::vector<std::string> numberList;
std::string draftId;
std::string updatedTime;
std::string editor;
std::string name;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<ContactFlow> list;
};
ListContactFlowsResult();
explicit ListContactFlowsResult(const std::string &payload);
~ListContactFlowsResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_

View File

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

View File

@@ -0,0 +1,113 @@
/*
* 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_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListInstancesOfUserResult : public ServiceResult
{
public:
struct Data
{
struct CallCenterInstance
{
struct User
{
std::string extension;
std::string loginName;
std::string roleName;
std::string email;
std::string instanceId;
std::string userId;
std::string displayName;
std::string mobile;
std::string roleId;
std::string workMode;
};
struct PhoneNumber
{
struct SkillGroup
{
std::string description;
std::string instanceId;
int phoneNumberCount;
int userCount;
std::string displayName;
std::string skillGroupId;
std::string name;
};
bool active;
std::string usage;
std::string number;
std::string contactFlowId;
std::string instanceId;
std::string userId;
std::vector<PhoneNumber::SkillGroup> skillGroups;
std::string city;
std::string province;
};
std::string status;
std::vector<CallCenterInstance::User> adminList;
std::string description;
std::string consoleUrl;
std::string domainName;
std::string aliyunUid;
std::vector<CallCenterInstance::PhoneNumber> numberList;
std::string id;
std::string name;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<CallCenterInstance> list;
};
ListInstancesOfUserResult();
explicit ListInstancesOfUserResult(const std::string &payload);
~ListInstancesOfUserResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<std::string> getParams()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<std::string> params_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTINSTANCESOFUSERRESULT_H_

View File

@@ -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_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupRequest : public RpcServiceRequest
{
public:
ListUserLevelsOfSkillGroupRequest();
~ListUserLevelsOfSkillGroupRequest();
bool getIsMember()const;
void setIsMember(bool isMember);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getSearchPattern()const;
void setSearchPattern(const std::string& searchPattern);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
int getPageSize()const;
void setPageSize(int pageSize);
private:
bool isMember_;
int pageNumber_;
std::string searchPattern_;
std::string instanceId_;
std::string skillGroupId_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPREQUEST_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListUserLevelsOfSkillGroupResult : public ServiceResult
{
public:
struct Data
{
struct UserSkillLevel
{
std::string loginName;
std::string roleName;
std::string skillGroupName;
int skillLevel;
std::string userId;
std::string displayName;
std::string skillGroupId;
std::string roleId;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<UserSkillLevel> list;
};
ListUserLevelsOfSkillGroupResult();
explicit ListUserLevelsOfSkillGroupResult(const std::string &payload);
~ListUserLevelsOfSkillGroupResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERLEVELSOFSKILLGROUPRESULT_H_

View File

@@ -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_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ModifyPhoneNumberRequest : public RpcServiceRequest
{
public:
ModifyPhoneNumberRequest();
~ModifyPhoneNumberRequest();
std::string getContactFlowId()const;
void setContactFlowId(const std::string& contactFlowId);
std::string getUsage()const;
void setUsage(const std::string& usage);
std::string getNumber()const;
void setNumber(const std::string& number);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string contactFlowId_;
std::string usage_;
std::string number_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYPHONENUMBERREQUEST_H_

View File

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

View File

@@ -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_CCC_MODEL_MODIFYSKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ModifySkillGroupRequest : public RpcServiceRequest
{
public:
ModifySkillGroupRequest();
~ModifySkillGroupRequest();
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
std::string getDisplayName()const;
void setDisplayName(const std::string& displayName);
private:
std::string description_;
std::string instanceId_;
std::string skillGroupId_;
std::string displayName_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYSKILLGROUPREQUEST_H_

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupRequest : public RpcServiceRequest
{
public:
ModifyUserLevelsOfSkillGroupRequest();
~ModifyUserLevelsOfSkillGroupRequest();
std::string getUserLevelList()const;
void setUserLevelList(const std::string& userLevelList);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
private:
std::string userLevelList_;
std::string instanceId_;
std::string skillGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPREQUEST_H_

View File

@@ -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_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ModifyUserLevelsOfSkillGroupResult : public ServiceResult
{
public:
ModifyUserLevelsOfSkillGroupResult();
explicit ModifyUserLevelsOfSkillGroupResult(const std::string &payload);
~ModifyUserLevelsOfSkillGroupResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERLEVELSOFSKILLGROUPRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ModifyUserRequest : public RpcServiceRequest
{
public:
ModifyUserRequest();
~ModifyUserRequest();
std::string getRoleId()const;
void setRoleId(const std::string& roleId);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getWorkMode()const;
void setWorkMode(const std::string& workMode);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string roleId_;
std::string mobile_;
std::string workMode_;
std::string userId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERREQUEST_H_

View File

@@ -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_CCC_MODEL_MODIFYUSERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_MODIFYUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ModifyUserResult : public ServiceResult
{
public:
ModifyUserResult();
explicit ModifyUserResult(const std::string &payload);
~ModifyUserResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<std::string> getParams()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<std::string> params_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_MODIFYUSERRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT RemovePhoneNumbersFromSkillGroupRequest : public RpcServiceRequest
{
public:
RemovePhoneNumbersFromSkillGroupRequest();
~RemovePhoneNumbersFromSkillGroupRequest();
std::string getNumberList()const;
void setNumberList(const std::string& numberList);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
private:
std::string numberList_;
std::string instanceId_;
std::string skillGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERSFROMSKILLGROUPREQUEST_H_

View File

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

View File

@@ -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_CCC_MODEL_STARTBACK2BACKCALLREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT StartBack2BackCallRequest : public RpcServiceRequest
{
public:
StartBack2BackCallRequest();
~StartBack2BackCallRequest();
std::string getCallee()const;
void setCallee(const std::string& callee);
std::string getBroker()const;
void setBroker(const std::string& broker);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getAdditionalBroker()const;
void setAdditionalBroker(const std::string& additionalBroker);
std::string getTags()const;
void setTags(const std::string& tags);
int getTimeoutSeconds()const;
void setTimeoutSeconds(int timeoutSeconds);
std::string getCaller()const;
void setCaller(const std::string& caller);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string callee_;
std::string broker_;
std::string userId_;
std::string additionalBroker_;
std::string tags_;
int timeoutSeconds_;
std::string caller_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLREQUEST_H_

View File

@@ -0,0 +1,105 @@
/*
* 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_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT StartBack2BackCallResult : public ServiceResult
{
public:
struct Data
{
struct CallContext
{
struct ChannelContext
{
std::string destination;
std::string channelState;
std::string releaseInitiator;
std::string callType;
std::string associatedData;
std::string channelId;
long timestamp;
std::string releaseReason;
std::string channelFlags;
std::string originator;
std::string userId;
std::string userExtension;
std::string jobId;
};
std::string instanceId;
std::string callType;
std::string jobId;
std::vector<ChannelContext> channelContexts;
};
struct UserContext
{
std::string userState;
std::string instanceId;
std::string breakCode;
std::string deviceId;
bool outboundScenario;
std::string mobile;
std::string uri;
std::vector<std::string> signedSkillGroupIdList;
std::string extension;
std::string deviceState;
std::string userId;
long heartbeat;
std::string jobId;
std::string workMode;
long reserved;
};
UserContext userContext;
CallContext callContext;
};
StartBack2BackCallResult();
explicit StartBack2BackCallResult(const std::string &payload);
~StartBack2BackCallResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<std::string> getParams()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<std::string> params_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_STARTBACK2BACKCALLRESULT_H_

View File

@@ -51,6 +51,114 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access
CCCClient::~CCCClient()
{}
CCCClient::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddNumbersToSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddNumbersToSkillGroupOutcome(AddNumbersToSkillGroupResult(outcome.result()));
else
return AddNumbersToSkillGroupOutcome(outcome.error());
}
void CCCClient::addNumbersToSkillGroupAsync(const AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addNumbersToSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::AddNumbersToSkillGroupOutcomeCallable CCCClient::addNumbersToSkillGroupCallable(const AddNumbersToSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddNumbersToSkillGroupOutcome()>>(
[this, request]()
{
return this->addNumbersToSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::AddPhoneNumberToSkillGroupsOutcome CCCClient::addPhoneNumberToSkillGroups(const AddPhoneNumberToSkillGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddPhoneNumberToSkillGroupsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddPhoneNumberToSkillGroupsOutcome(AddPhoneNumberToSkillGroupsResult(outcome.result()));
else
return AddPhoneNumberToSkillGroupsOutcome(outcome.error());
}
void CCCClient::addPhoneNumberToSkillGroupsAsync(const AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addPhoneNumberToSkillGroups(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::AddPhoneNumberToSkillGroupsOutcomeCallable CCCClient::addPhoneNumberToSkillGroupsCallable(const AddPhoneNumberToSkillGroupsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddPhoneNumberToSkillGroupsOutcome()>>(
[this, request]()
{
return this->addPhoneNumberToSkillGroups(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::AddSkillGroupsToUserOutcome CCCClient::addSkillGroupsToUser(const AddSkillGroupsToUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddSkillGroupsToUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddSkillGroupsToUserOutcome(AddSkillGroupsToUserResult(outcome.result()));
else
return AddSkillGroupsToUserOutcome(outcome.error());
}
void CCCClient::addSkillGroupsToUserAsync(const AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addSkillGroupsToUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::AddSkillGroupsToUserOutcomeCallable CCCClient::addSkillGroupsToUserCallable(const AddSkillGroupsToUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddSkillGroupsToUserOutcome()>>(
[this, request]()
{
return this->addSkillGroupsToUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::AnswerCallOutcome CCCClient::answerCall(const AnswerCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -267,6 +375,114 @@ CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTr
return task->get_future();
}
CCCClient::CreateSkillGroupOutcome CCCClient::createSkillGroup(const CreateSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateSkillGroupOutcome(CreateSkillGroupResult(outcome.result()));
else
return CreateSkillGroupOutcome(outcome.error());
}
void CCCClient::createSkillGroupAsync(const CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::CreateSkillGroupOutcomeCallable CCCClient::createSkillGroupCallable(const CreateSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateSkillGroupOutcome()>>(
[this, request]()
{
return this->createSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::CreateUserOutcome CCCClient::createUser(const CreateUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateUserOutcome(CreateUserResult(outcome.result()));
else
return CreateUserOutcome(outcome.error());
}
void CCCClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateUserOutcome()>>(
[this, request]()
{
return this->createUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteSkillGroupOutcome(DeleteSkillGroupResult(outcome.result()));
else
return DeleteSkillGroupOutcome(outcome.error());
}
void CCCClient::deleteSkillGroupAsync(const DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(const DeleteSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteSkillGroupOutcome()>>(
[this, request]()
{
return this->deleteSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetLoginDetailsOutcome CCCClient::getLoginDetails(const GetLoginDetailsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,6 +987,42 @@ CCCClient::ListConfigItemsOutcomeCallable CCCClient::listConfigItemsCallable(con
return task->get_future();
}
CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListContactFlowsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result()));
else
return ListContactFlowsOutcome(outcome.error());
}
void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listContactFlows(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListContactFlowsOutcome()>>(
[this, request]()
{
return this->listContactFlows(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListDevicesOutcome CCCClient::listDevices(const ListDevicesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -843,6 +1095,42 @@ CCCClient::ListHistoricalAgentReportOutcomeCallable CCCClient::listHistoricalAge
return task->get_future();
}
CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListInstancesOfUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListInstancesOfUserOutcome(ListInstancesOfUserResult(outcome.result()));
else
return ListInstancesOfUserOutcome(outcome.error());
}
void CCCClient::listInstancesOfUserAsync(const ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listInstancesOfUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCallable(const ListInstancesOfUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListInstancesOfUserOutcome()>>(
[this, request]()
{
return this->listInstancesOfUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListOutboundNumbersOfUserOutcome CCCClient::listOutboundNumbersOfUser(const ListOutboundNumbersOfUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,6 +1311,42 @@ CCCClient::ListSkillLevelsOfUserOutcomeCallable CCCClient::listSkillLevelsOfUser
return task->get_future();
}
CCCClient::ListUserLevelsOfSkillGroupOutcome CCCClient::listUserLevelsOfSkillGroup(const ListUserLevelsOfSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListUserLevelsOfSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListUserLevelsOfSkillGroupOutcome(ListUserLevelsOfSkillGroupResult(outcome.result()));
else
return ListUserLevelsOfSkillGroupOutcome(outcome.error());
}
void CCCClient::listUserLevelsOfSkillGroupAsync(const ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listUserLevelsOfSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListUserLevelsOfSkillGroupOutcomeCallable CCCClient::listUserLevelsOfSkillGroupCallable(const ListUserLevelsOfSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListUserLevelsOfSkillGroupOutcome()>>(
[this, request]()
{
return this->listUserLevelsOfSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::MakeCallOutcome CCCClient::makeCall(const MakeCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1383,150 @@ CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallReq
return task->get_future();
}
CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyPhoneNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyPhoneNumberOutcome(ModifyPhoneNumberResult(outcome.result()));
else
return ModifyPhoneNumberOutcome(outcome.error());
}
void CCCClient::modifyPhoneNumberAsync(const ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyPhoneNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable(const ModifyPhoneNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyPhoneNumberOutcome()>>(
[this, request]()
{
return this->modifyPhoneNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ModifySkillGroupOutcome CCCClient::modifySkillGroup(const ModifySkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifySkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifySkillGroupOutcome(ModifySkillGroupResult(outcome.result()));
else
return ModifySkillGroupOutcome(outcome.error());
}
void CCCClient::modifySkillGroupAsync(const ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifySkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(const ModifySkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifySkillGroupOutcome()>>(
[this, request]()
{
return this->modifySkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ModifyUserOutcome CCCClient::modifyUser(const ModifyUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyUserOutcome(ModifyUserResult(outcome.result()));
else
return ModifyUserOutcome(outcome.error());
}
void CCCClient::modifyUserAsync(const ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyUserOutcome()>>(
[this, request]()
{
return this->modifyUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ModifyUserLevelsOfSkillGroupOutcome CCCClient::modifyUserLevelsOfSkillGroup(const ModifyUserLevelsOfSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyUserLevelsOfSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyUserLevelsOfSkillGroupOutcome(ModifyUserLevelsOfSkillGroupResult(outcome.result()));
else
return ModifyUserLevelsOfSkillGroupOutcome(outcome.error());
}
void CCCClient::modifyUserLevelsOfSkillGroupAsync(const ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyUserLevelsOfSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ModifyUserLevelsOfSkillGroupOutcomeCallable CCCClient::modifyUserLevelsOfSkillGroupCallable(const ModifyUserLevelsOfSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyUserLevelsOfSkillGroupOutcome()>>(
[this, request]()
{
return this->modifyUserLevelsOfSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::MonitorCallOutcome CCCClient::monitorCall(const MonitorCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1311,6 +1779,42 @@ CCCClient::ReleaseCallOutcomeCallable CCCClient::releaseCallCallable(const Relea
return task->get_future();
}
CCCClient::RemovePhoneNumbersFromSkillGroupOutcome CCCClient::removePhoneNumbersFromSkillGroup(const RemovePhoneNumbersFromSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemovePhoneNumbersFromSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RemovePhoneNumbersFromSkillGroupOutcome(RemovePhoneNumbersFromSkillGroupResult(outcome.result()));
else
return RemovePhoneNumbersFromSkillGroupOutcome(outcome.error());
}
void CCCClient::removePhoneNumbersFromSkillGroupAsync(const RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, removePhoneNumbersFromSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::RemovePhoneNumbersFromSkillGroupOutcomeCallable CCCClient::removePhoneNumbersFromSkillGroupCallable(const RemovePhoneNumbersFromSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RemovePhoneNumbersFromSkillGroupOutcome()>>(
[this, request]()
{
return this->removePhoneNumbersFromSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ResetAgentStateOutcome CCCClient::resetAgentState(const ResetAgentStateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1491,6 +1995,42 @@ CCCClient::SignOutGroupOutcomeCallable CCCClient::signOutGroupCallable(const Sig
return task->get_future();
}
CCCClient::StartBack2BackCallOutcome CCCClient::startBack2BackCall(const StartBack2BackCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartBack2BackCallOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartBack2BackCallOutcome(StartBack2BackCallResult(outcome.result()));
else
return StartBack2BackCallOutcome(outcome.error());
}
void CCCClient::startBack2BackCallAsync(const StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startBack2BackCall(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallable(const StartBack2BackCallRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartBack2BackCallOutcome()>>(
[this, request]()
{
return this->startBack2BackCall(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::AddNumbersToSkillGroupRequest;
AddNumbersToSkillGroupRequest::AddNumbersToSkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "AddNumbersToSkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
AddNumbersToSkillGroupRequest::~AddNumbersToSkillGroupRequest()
{}
std::string AddNumbersToSkillGroupRequest::getNumberList()const
{
return numberList_;
}
void AddNumbersToSkillGroupRequest::setNumberList(const std::string& numberList)
{
numberList_ = numberList;
setParameter("NumberList", numberList);
}
std::string AddNumbersToSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void AddNumbersToSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddNumbersToSkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void AddNumbersToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/AddPhoneNumberToSkillGroupsRequest.h>
using AlibabaCloud::CCC::Model::AddPhoneNumberToSkillGroupsRequest;
AddPhoneNumberToSkillGroupsRequest::AddPhoneNumberToSkillGroupsRequest() :
RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumberToSkillGroups")
{
setMethod(HttpRequest::Method::Post);
}
AddPhoneNumberToSkillGroupsRequest::~AddPhoneNumberToSkillGroupsRequest()
{}
std::string AddPhoneNumberToSkillGroupsRequest::getNumber()const
{
return number_;
}
void AddPhoneNumberToSkillGroupsRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}
std::string AddPhoneNumberToSkillGroupsRequest::getInstanceId()const
{
return instanceId_;
}
void AddPhoneNumberToSkillGroupsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddPhoneNumberToSkillGroupsRequest::getSkillGroupIdList()const
{
return skillGroupIdList_;
}
void AddPhoneNumberToSkillGroupsRequest::setSkillGroupIdList(const std::string& skillGroupIdList)
{
skillGroupIdList_ = skillGroupIdList;
setParameter("SkillGroupIdList", skillGroupIdList);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/AddSkillGroupsToUserRequest.h>
using AlibabaCloud::CCC::Model::AddSkillGroupsToUserRequest;
AddSkillGroupsToUserRequest::AddSkillGroupsToUserRequest() :
RpcServiceRequest("ccc", "2020-07-01", "AddSkillGroupsToUser")
{
setMethod(HttpRequest::Method::Post);
}
AddSkillGroupsToUserRequest::~AddSkillGroupsToUserRequest()
{}
std::string AddSkillGroupsToUserRequest::getUserId()const
{
return userId_;
}
void AddSkillGroupsToUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}
std::string AddSkillGroupsToUserRequest::getInstanceId()const
{
return instanceId_;
}
void AddSkillGroupsToUserRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddSkillGroupsToUserRequest::getSkillLevelList()const
{
return skillLevelList_;
}
void AddSkillGroupsToUserRequest::setSkillLevelList(const std::string& skillLevelList)
{
skillLevelList_ = skillLevelList;
setParameter("SkillLevelList", skillLevelList);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/CreateSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::CreateSkillGroupRequest;
CreateSkillGroupRequest::CreateSkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "CreateSkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateSkillGroupRequest::~CreateSkillGroupRequest()
{}
std::string CreateSkillGroupRequest::getDescription()const
{
return description_;
}
void CreateSkillGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateSkillGroupRequest::getDisplayName()const
{
return displayName_;
}
void CreateSkillGroupRequest::setDisplayName(const std::string& displayName)
{
displayName_ = displayName;
setParameter("DisplayName", displayName);
}
std::string CreateSkillGroupRequest::getName()const
{
return name_;
}
void CreateSkillGroupRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -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 <alibabacloud/ccc/model/CreateSkillGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
CreateSkillGroupResult::CreateSkillGroupResult() :
ServiceResult()
{}
CreateSkillGroupResult::CreateSkillGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSkillGroupResult::~CreateSkillGroupResult()
{}
void CreateSkillGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
if(!dataNode["InstanceId"].isNull())
data_.instanceId = dataNode["InstanceId"].asString();
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["SkillGroupId"].isNull())
data_.skillGroupId = dataNode["SkillGroupId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateSkillGroupResult::getMessage()const
{
return message_;
}
int CreateSkillGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
CreateSkillGroupResult::Data CreateSkillGroupResult::getData()const
{
return data_;
}
std::string CreateSkillGroupResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/CreateUserRequest.h>
using AlibabaCloud::CCC::Model::CreateUserRequest;
CreateUserRequest::CreateUserRequest() :
RpcServiceRequest("ccc", "2020-07-01", "CreateUser")
{
setMethod(HttpRequest::Method::Post);
}
CreateUserRequest::~CreateUserRequest()
{}
std::string CreateUserRequest::getLoginName()const
{
return loginName_;
}
void CreateUserRequest::setLoginName(const std::string& loginName)
{
loginName_ = loginName;
setParameter("LoginName", loginName);
}
std::string CreateUserRequest::getRoleId()const
{
return roleId_;
}
void CreateUserRequest::setRoleId(const std::string& roleId)
{
roleId_ = roleId;
setParameter("RoleId", roleId);
}
std::string CreateUserRequest::getMobile()const
{
return mobile_;
}
void CreateUserRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setParameter("Mobile", mobile);
}
std::string CreateUserRequest::getWorkMode()const
{
return workMode_;
}
void CreateUserRequest::setWorkMode(const std::string& workMode)
{
workMode_ = workMode;
setParameter("WorkMode", workMode);
}
std::string CreateUserRequest::getInstanceId()const
{
return instanceId_;
}
void CreateUserRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateUserRequest::getDisplayName()const
{
return displayName_;
}
void CreateUserRequest::setDisplayName(const std::string& displayName)
{
displayName_ = displayName;
setParameter("DisplayName", displayName);
}
bool CreateUserRequest::getResetPassword()const
{
return resetPassword_;
}
void CreateUserRequest::setResetPassword(bool resetPassword)
{
resetPassword_ = resetPassword;
setParameter("ResetPassword", resetPassword ? "true" : "false");
}
std::string CreateUserRequest::getSkillLevelList()const
{
return skillLevelList_;
}
void CreateUserRequest::setSkillLevelList(const std::string& skillLevelList)
{
skillLevelList_ = skillLevelList;
setParameter("SkillLevelList", skillLevelList);
}
std::string CreateUserRequest::getEmail()const
{
return email_;
}
void CreateUserRequest::setEmail(const std::string& email)
{
email_ = email;
setParameter("Email", email);
}

View File

@@ -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/ccc/model/CreateUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
CreateUserResult::CreateUserResult() :
ServiceResult()
{}
CreateUserResult::CreateUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserResult::~CreateUserResult()
{}
void CreateUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DisplayName"].isNull())
data_.displayName = dataNode["DisplayName"].asString();
if(!dataNode["Email"].isNull())
data_.email = dataNode["Email"].asString();
if(!dataNode["Extension"].isNull())
data_.extension = dataNode["Extension"].asString();
if(!dataNode["LoginName"].isNull())
data_.loginName = dataNode["LoginName"].asString();
if(!dataNode["Mobile"].isNull())
data_.mobile = dataNode["Mobile"].asString();
if(!dataNode["UserId"].isNull())
data_.userId = dataNode["UserId"].asString();
if(!dataNode["WorkMode"].isNull())
data_.workMode = dataNode["WorkMode"].asString();
auto allParams = value["Params"]["Param"];
for (const auto &item : allParams)
params_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateUserResult::getMessage()const
{
return message_;
}
int CreateUserResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<std::string> CreateUserResult::getParams()const
{
return params_;
}
CreateUserResult::Data CreateUserResult::getData()const
{
return data_;
}
std::string CreateUserResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/DeleteSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::DeleteSkillGroupRequest;
DeleteSkillGroupRequest::DeleteSkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "DeleteSkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSkillGroupRequest::~DeleteSkillGroupRequest()
{}
std::string DeleteSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteSkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}
bool DeleteSkillGroupRequest::getForce()const
{
return force_;
}
void DeleteSkillGroupRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListContactFlowsRequest.h>
using AlibabaCloud::CCC::Model::ListContactFlowsRequest;
ListContactFlowsRequest::ListContactFlowsRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListContactFlows")
{
setMethod(HttpRequest::Method::Post);
}
ListContactFlowsRequest::~ListContactFlowsRequest()
{}
std::string ListContactFlowsRequest::getType()const
{
return type_;
}
void ListContactFlowsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
int ListContactFlowsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListContactFlowsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListContactFlowsRequest::getInstanceId()const
{
return instanceId_;
}
void ListContactFlowsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListContactFlowsRequest::getPageSize()const
{
return pageSize_;
}
void ListContactFlowsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,108 @@
/*
* 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/ccc/model/ListContactFlowsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListContactFlowsResult::ListContactFlowsResult() :
ServiceResult()
{}
ListContactFlowsResult::ListContactFlowsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListContactFlowsResult::~ListContactFlowsResult()
{}
void ListContactFlowsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allListNode = dataNode["List"]["ContactFlow"];
for (auto dataNodeListContactFlow : allListNode)
{
Data::ContactFlow contactFlowObject;
if(!dataNodeListContactFlow["ContactFlowId"].isNull())
contactFlowObject.contactFlowId = dataNodeListContactFlow["ContactFlowId"].asString();
if(!dataNodeListContactFlow["CreatedTime"].isNull())
contactFlowObject.createdTime = dataNodeListContactFlow["CreatedTime"].asString();
if(!dataNodeListContactFlow["Definition"].isNull())
contactFlowObject.definition = dataNodeListContactFlow["Definition"].asString();
if(!dataNodeListContactFlow["Description"].isNull())
contactFlowObject.description = dataNodeListContactFlow["Description"].asString();
if(!dataNodeListContactFlow["DraftId"].isNull())
contactFlowObject.draftId = dataNodeListContactFlow["DraftId"].asString();
if(!dataNodeListContactFlow["Editor"].isNull())
contactFlowObject.editor = dataNodeListContactFlow["Editor"].asString();
if(!dataNodeListContactFlow["InstanceId"].isNull())
contactFlowObject.instanceId = dataNodeListContactFlow["InstanceId"].asString();
if(!dataNodeListContactFlow["Name"].isNull())
contactFlowObject.name = dataNodeListContactFlow["Name"].asString();
if(!dataNodeListContactFlow["Published"].isNull())
contactFlowObject.published = dataNodeListContactFlow["Published"].asString() == "true";
if(!dataNodeListContactFlow["Type"].isNull())
contactFlowObject.type = dataNodeListContactFlow["Type"].asString();
if(!dataNodeListContactFlow["UpdatedTime"].isNull())
contactFlowObject.updatedTime = dataNodeListContactFlow["UpdatedTime"].asString();
auto allNumberList = value["NumberList"]["NumberList"];
for (auto value : allNumberList)
contactFlowObject.numberList.push_back(value.asString());
data_.list.push_back(contactFlowObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListContactFlowsResult::getMessage()const
{
return message_;
}
int ListContactFlowsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListContactFlowsResult::Data ListContactFlowsResult::getData()const
{
return data_;
}
std::string ListContactFlowsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListInstancesOfUserRequest.h>
using AlibabaCloud::CCC::Model::ListInstancesOfUserRequest;
ListInstancesOfUserRequest::ListInstancesOfUserRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListInstancesOfUser")
{
setMethod(HttpRequest::Method::Post);
}
ListInstancesOfUserRequest::~ListInstancesOfUserRequest()
{}
int ListInstancesOfUserRequest::getPageNumber()const
{
return pageNumber_;
}
void ListInstancesOfUserRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListInstancesOfUserRequest::getPageSize()const
{
return pageSize_;
}
void ListInstancesOfUserRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,173 @@
/*
* 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/ccc/model/ListInstancesOfUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListInstancesOfUserResult::ListInstancesOfUserResult() :
ServiceResult()
{}
ListInstancesOfUserResult::ListInstancesOfUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancesOfUserResult::~ListInstancesOfUserResult()
{}
void ListInstancesOfUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allListNode = dataNode["List"]["CallCenterInstance"];
for (auto dataNodeListCallCenterInstance : allListNode)
{
Data::CallCenterInstance callCenterInstanceObject;
if(!dataNodeListCallCenterInstance["AliyunUid"].isNull())
callCenterInstanceObject.aliyunUid = dataNodeListCallCenterInstance["AliyunUid"].asString();
if(!dataNodeListCallCenterInstance["ConsoleUrl"].isNull())
callCenterInstanceObject.consoleUrl = dataNodeListCallCenterInstance["ConsoleUrl"].asString();
if(!dataNodeListCallCenterInstance["Description"].isNull())
callCenterInstanceObject.description = dataNodeListCallCenterInstance["Description"].asString();
if(!dataNodeListCallCenterInstance["DomainName"].isNull())
callCenterInstanceObject.domainName = dataNodeListCallCenterInstance["DomainName"].asString();
if(!dataNodeListCallCenterInstance["Id"].isNull())
callCenterInstanceObject.id = dataNodeListCallCenterInstance["Id"].asString();
if(!dataNodeListCallCenterInstance["Name"].isNull())
callCenterInstanceObject.name = dataNodeListCallCenterInstance["Name"].asString();
if(!dataNodeListCallCenterInstance["Status"].isNull())
callCenterInstanceObject.status = dataNodeListCallCenterInstance["Status"].asString();
auto allAdminListNode = dataNodeListCallCenterInstance["AdminList"]["User"];
for (auto dataNodeListCallCenterInstanceAdminListUser : allAdminListNode)
{
Data::CallCenterInstance::User adminListObject;
if(!dataNodeListCallCenterInstanceAdminListUser["DisplayName"].isNull())
adminListObject.displayName = dataNodeListCallCenterInstanceAdminListUser["DisplayName"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["Email"].isNull())
adminListObject.email = dataNodeListCallCenterInstanceAdminListUser["Email"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["Extension"].isNull())
adminListObject.extension = dataNodeListCallCenterInstanceAdminListUser["Extension"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["InstanceId"].isNull())
adminListObject.instanceId = dataNodeListCallCenterInstanceAdminListUser["InstanceId"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["LoginName"].isNull())
adminListObject.loginName = dataNodeListCallCenterInstanceAdminListUser["LoginName"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["Mobile"].isNull())
adminListObject.mobile = dataNodeListCallCenterInstanceAdminListUser["Mobile"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["RoleId"].isNull())
adminListObject.roleId = dataNodeListCallCenterInstanceAdminListUser["RoleId"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["RoleName"].isNull())
adminListObject.roleName = dataNodeListCallCenterInstanceAdminListUser["RoleName"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["UserId"].isNull())
adminListObject.userId = dataNodeListCallCenterInstanceAdminListUser["UserId"].asString();
if(!dataNodeListCallCenterInstanceAdminListUser["WorkMode"].isNull())
adminListObject.workMode = dataNodeListCallCenterInstanceAdminListUser["WorkMode"].asString();
callCenterInstanceObject.adminList.push_back(adminListObject);
}
auto allNumberListNode = dataNodeListCallCenterInstance["NumberList"]["PhoneNumber"];
for (auto dataNodeListCallCenterInstanceNumberListPhoneNumber : allNumberListNode)
{
Data::CallCenterInstance::PhoneNumber numberListObject;
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].isNull())
numberListObject.active = dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].asString() == "true";
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].isNull())
numberListObject.city = dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].isNull())
numberListObject.contactFlowId = dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].isNull())
numberListObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].isNull())
numberListObject.number = dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].isNull())
numberListObject.province = dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].isNull())
numberListObject.usage = dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].isNull())
numberListObject.userId = dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].asString();
auto allSkillGroupsNode = dataNodeListCallCenterInstanceNumberListPhoneNumber["SkillGroups"]["SkillGroup"];
for (auto dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode)
{
Data::CallCenterInstance::PhoneNumber::SkillGroup skillGroupsObject;
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].isNull())
skillGroupsObject.description = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].isNull())
skillGroupsObject.displayName = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].isNull())
skillGroupsObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].isNull())
skillGroupsObject.name = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].isNull())
skillGroupsObject.phoneNumberCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].asString());
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull())
skillGroupsObject.skillGroupId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString();
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].isNull())
skillGroupsObject.userCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].asString());
numberListObject.skillGroups.push_back(skillGroupsObject);
}
callCenterInstanceObject.numberList.push_back(numberListObject);
}
data_.list.push_back(callCenterInstanceObject);
}
auto allParams = value["Params"]["Param"];
for (const auto &item : allParams)
params_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListInstancesOfUserResult::getMessage()const
{
return message_;
}
int ListInstancesOfUserResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<std::string> ListInstancesOfUserResult::getParams()const
{
return params_;
}
ListInstancesOfUserResult::Data ListInstancesOfUserResult::getData()const
{
return data_;
}
std::string ListInstancesOfUserResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/ccc/model/ListUserLevelsOfSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::ListUserLevelsOfSkillGroupRequest;
ListUserLevelsOfSkillGroupRequest::ListUserLevelsOfSkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListUserLevelsOfSkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
ListUserLevelsOfSkillGroupRequest::~ListUserLevelsOfSkillGroupRequest()
{}
bool ListUserLevelsOfSkillGroupRequest::getIsMember()const
{
return isMember_;
}
void ListUserLevelsOfSkillGroupRequest::setIsMember(bool isMember)
{
isMember_ = isMember;
setParameter("IsMember", isMember ? "true" : "false");
}
int ListUserLevelsOfSkillGroupRequest::getPageNumber()const
{
return pageNumber_;
}
void ListUserLevelsOfSkillGroupRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListUserLevelsOfSkillGroupRequest::getSearchPattern()const
{
return searchPattern_;
}
void ListUserLevelsOfSkillGroupRequest::setSearchPattern(const std::string& searchPattern)
{
searchPattern_ = searchPattern;
setParameter("SearchPattern", searchPattern);
}
std::string ListUserLevelsOfSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void ListUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListUserLevelsOfSkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void ListUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}
int ListUserLevelsOfSkillGroupRequest::getPageSize()const
{
return pageSize_;
}
void ListUserLevelsOfSkillGroupRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,99 @@
/*
* 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/ccc/model/ListUserLevelsOfSkillGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult() :
ServiceResult()
{}
ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListUserLevelsOfSkillGroupResult::~ListUserLevelsOfSkillGroupResult()
{}
void ListUserLevelsOfSkillGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allListNode = dataNode["List"]["UserSkillLevel"];
for (auto dataNodeListUserSkillLevel : allListNode)
{
Data::UserSkillLevel userSkillLevelObject;
if(!dataNodeListUserSkillLevel["DisplayName"].isNull())
userSkillLevelObject.displayName = dataNodeListUserSkillLevel["DisplayName"].asString();
if(!dataNodeListUserSkillLevel["LoginName"].isNull())
userSkillLevelObject.loginName = dataNodeListUserSkillLevel["LoginName"].asString();
if(!dataNodeListUserSkillLevel["RoleId"].isNull())
userSkillLevelObject.roleId = dataNodeListUserSkillLevel["RoleId"].asString();
if(!dataNodeListUserSkillLevel["RoleName"].isNull())
userSkillLevelObject.roleName = dataNodeListUserSkillLevel["RoleName"].asString();
if(!dataNodeListUserSkillLevel["SkillGroupId"].isNull())
userSkillLevelObject.skillGroupId = dataNodeListUserSkillLevel["SkillGroupId"].asString();
if(!dataNodeListUserSkillLevel["SkillGroupName"].isNull())
userSkillLevelObject.skillGroupName = dataNodeListUserSkillLevel["SkillGroupName"].asString();
if(!dataNodeListUserSkillLevel["SkillLevel"].isNull())
userSkillLevelObject.skillLevel = std::stoi(dataNodeListUserSkillLevel["SkillLevel"].asString());
if(!dataNodeListUserSkillLevel["UserId"].isNull())
userSkillLevelObject.userId = dataNodeListUserSkillLevel["UserId"].asString();
data_.list.push_back(userSkillLevelObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListUserLevelsOfSkillGroupResult::getMessage()const
{
return message_;
}
int ListUserLevelsOfSkillGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListUserLevelsOfSkillGroupResult::Data ListUserLevelsOfSkillGroupResult::getData()const
{
return data_;
}
std::string ListUserLevelsOfSkillGroupResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ModifyPhoneNumberRequest.h>
using AlibabaCloud::CCC::Model::ModifyPhoneNumberRequest;
ModifyPhoneNumberRequest::ModifyPhoneNumberRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ModifyPhoneNumber")
{
setMethod(HttpRequest::Method::Post);
}
ModifyPhoneNumberRequest::~ModifyPhoneNumberRequest()
{}
std::string ModifyPhoneNumberRequest::getContactFlowId()const
{
return contactFlowId_;
}
void ModifyPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId)
{
contactFlowId_ = contactFlowId;
setParameter("ContactFlowId", contactFlowId);
}
std::string ModifyPhoneNumberRequest::getUsage()const
{
return usage_;
}
void ModifyPhoneNumberRequest::setUsage(const std::string& usage)
{
usage_ = usage;
setParameter("Usage", usage);
}
std::string ModifyPhoneNumberRequest::getNumber()const
{
return number_;
}
void ModifyPhoneNumberRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}
std::string ModifyPhoneNumberRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyPhoneNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ModifySkillGroupRequest.h>
using AlibabaCloud::CCC::Model::ModifySkillGroupRequest;
ModifySkillGroupRequest::ModifySkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ModifySkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
ModifySkillGroupRequest::~ModifySkillGroupRequest()
{}
std::string ModifySkillGroupRequest::getDescription()const
{
return description_;
}
void ModifySkillGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string ModifySkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void ModifySkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifySkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void ModifySkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}
std::string ModifySkillGroupRequest::getDisplayName()const
{
return displayName_;
}
void ModifySkillGroupRequest::setDisplayName(const std::string& displayName)
{
displayName_ = displayName;
setParameter("DisplayName", displayName);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::ModifyUserLevelsOfSkillGroupRequest;
ModifyUserLevelsOfSkillGroupRequest::ModifyUserLevelsOfSkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ModifyUserLevelsOfSkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
ModifyUserLevelsOfSkillGroupRequest::~ModifyUserLevelsOfSkillGroupRequest()
{}
std::string ModifyUserLevelsOfSkillGroupRequest::getUserLevelList()const
{
return userLevelList_;
}
void ModifyUserLevelsOfSkillGroupRequest::setUserLevelList(const std::string& userLevelList)
{
userLevelList_ = userLevelList;
setParameter("UserLevelList", userLevelList);
}
std::string ModifyUserLevelsOfSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyUserLevelsOfSkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void ModifyUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}

View File

@@ -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/ccc/model/ModifyUserLevelsOfSkillGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult() :
ServiceResult()
{}
ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyUserLevelsOfSkillGroupResult::~ModifyUserLevelsOfSkillGroupResult()
{}
void ModifyUserLevelsOfSkillGroupResult::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["Data"].isNull())
data_ = value["Data"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ModifyUserLevelsOfSkillGroupResult::getMessage()const
{
return message_;
}
int ModifyUserLevelsOfSkillGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ModifyUserLevelsOfSkillGroupResult::getData()const
{
return data_;
}
std::string ModifyUserLevelsOfSkillGroupResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ModifyUserRequest.h>
using AlibabaCloud::CCC::Model::ModifyUserRequest;
ModifyUserRequest::ModifyUserRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ModifyUser")
{
setMethod(HttpRequest::Method::Post);
}
ModifyUserRequest::~ModifyUserRequest()
{}
std::string ModifyUserRequest::getRoleId()const
{
return roleId_;
}
void ModifyUserRequest::setRoleId(const std::string& roleId)
{
roleId_ = roleId;
setParameter("RoleId", roleId);
}
std::string ModifyUserRequest::getMobile()const
{
return mobile_;
}
void ModifyUserRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setParameter("Mobile", mobile);
}
std::string ModifyUserRequest::getWorkMode()const
{
return workMode_;
}
void ModifyUserRequest::setWorkMode(const std::string& workMode)
{
workMode_ = workMode;
setParameter("WorkMode", workMode);
}
std::string ModifyUserRequest::getUserId()const
{
return userId_;
}
void ModifyUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}
std::string ModifyUserRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyUserRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/ccc/model/ModifyUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ModifyUserResult::ModifyUserResult() :
ServiceResult()
{}
ModifyUserResult::ModifyUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyUserResult::~ModifyUserResult()
{}
void ModifyUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allParams = value["Params"]["Param"];
for (const auto &item : allParams)
params_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ModifyUserResult::getMessage()const
{
return message_;
}
int ModifyUserResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<std::string> ModifyUserResult::getParams()const
{
return params_;
}
std::string ModifyUserResult::getData()const
{
return data_;
}
std::string ModifyUserResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::RemovePhoneNumbersFromSkillGroupRequest;
RemovePhoneNumbersFromSkillGroupRequest::RemovePhoneNumbersFromSkillGroupRequest() :
RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumbersFromSkillGroup")
{
setMethod(HttpRequest::Method::Post);
}
RemovePhoneNumbersFromSkillGroupRequest::~RemovePhoneNumbersFromSkillGroupRequest()
{}
std::string RemovePhoneNumbersFromSkillGroupRequest::getNumberList()const
{
return numberList_;
}
void RemovePhoneNumbersFromSkillGroupRequest::setNumberList(const std::string& numberList)
{
numberList_ = numberList;
setParameter("NumberList", numberList);
}
std::string RemovePhoneNumbersFromSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void RemovePhoneNumbersFromSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string RemovePhoneNumbersFromSkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void RemovePhoneNumbersFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/StartBack2BackCallRequest.h>
using AlibabaCloud::CCC::Model::StartBack2BackCallRequest;
StartBack2BackCallRequest::StartBack2BackCallRequest() :
RpcServiceRequest("ccc", "2020-07-01", "StartBack2BackCall")
{
setMethod(HttpRequest::Method::Post);
}
StartBack2BackCallRequest::~StartBack2BackCallRequest()
{}
std::string StartBack2BackCallRequest::getCallee()const
{
return callee_;
}
void StartBack2BackCallRequest::setCallee(const std::string& callee)
{
callee_ = callee;
setParameter("Callee", callee);
}
std::string StartBack2BackCallRequest::getBroker()const
{
return broker_;
}
void StartBack2BackCallRequest::setBroker(const std::string& broker)
{
broker_ = broker;
setParameter("Broker", broker);
}
std::string StartBack2BackCallRequest::getUserId()const
{
return userId_;
}
void StartBack2BackCallRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}
std::string StartBack2BackCallRequest::getAdditionalBroker()const
{
return additionalBroker_;
}
void StartBack2BackCallRequest::setAdditionalBroker(const std::string& additionalBroker)
{
additionalBroker_ = additionalBroker;
setParameter("AdditionalBroker", additionalBroker);
}
std::string StartBack2BackCallRequest::getTags()const
{
return tags_;
}
void StartBack2BackCallRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
int StartBack2BackCallRequest::getTimeoutSeconds()const
{
return timeoutSeconds_;
}
void StartBack2BackCallRequest::setTimeoutSeconds(int timeoutSeconds)
{
timeoutSeconds_ = timeoutSeconds;
setParameter("TimeoutSeconds", std::to_string(timeoutSeconds));
}
std::string StartBack2BackCallRequest::getCaller()const
{
return caller_;
}
void StartBack2BackCallRequest::setCaller(const std::string& caller)
{
caller_ = caller;
setParameter("Caller", caller);
}
std::string StartBack2BackCallRequest::getInstanceId()const
{
return instanceId_;
}
void StartBack2BackCallRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,150 @@
/*
* 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/ccc/model/StartBack2BackCallResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
StartBack2BackCallResult::StartBack2BackCallResult() :
ServiceResult()
{}
StartBack2BackCallResult::StartBack2BackCallResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartBack2BackCallResult::~StartBack2BackCallResult()
{}
void StartBack2BackCallResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto callContextNode = dataNode["CallContext"];
if(!callContextNode["CallType"].isNull())
data_.callContext.callType = callContextNode["CallType"].asString();
if(!callContextNode["InstanceId"].isNull())
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
if(!callContextNode["JobId"].isNull())
data_.callContext.jobId = callContextNode["JobId"].asString();
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
{
Data::CallContext::ChannelContext channelContextObject;
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
data_.callContext.channelContexts.push_back(channelContextObject);
}
auto userContextNode = dataNode["UserContext"];
if(!userContextNode["BreakCode"].isNull())
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
if(!userContextNode["DeviceId"].isNull())
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
if(!userContextNode["DeviceState"].isNull())
data_.userContext.deviceState = userContextNode["DeviceState"].asString();
if(!userContextNode["Extension"].isNull())
data_.userContext.extension = userContextNode["Extension"].asString();
if(!userContextNode["Heartbeat"].isNull())
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
if(!userContextNode["InstanceId"].isNull())
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
if(!userContextNode["JobId"].isNull())
data_.userContext.jobId = userContextNode["JobId"].asString();
if(!userContextNode["Mobile"].isNull())
data_.userContext.mobile = userContextNode["Mobile"].asString();
if(!userContextNode["OutboundScenario"].isNull())
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
if(!userContextNode["Reserved"].isNull())
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
if(!userContextNode["Uri"].isNull())
data_.userContext.uri = userContextNode["Uri"].asString();
if(!userContextNode["UserId"].isNull())
data_.userContext.userId = userContextNode["UserId"].asString();
if(!userContextNode["UserState"].isNull())
data_.userContext.userState = userContextNode["UserState"].asString();
if(!userContextNode["WorkMode"].isNull())
data_.userContext.workMode = userContextNode["WorkMode"].asString();
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
for (auto value : allSignedSkillGroupIdList)
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
auto allParams = value["Params"]["Param"];
for (const auto &item : allParams)
params_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string StartBack2BackCallResult::getMessage()const
{
return message_;
}
int StartBack2BackCallResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<std::string> StartBack2BackCallResult::getParams()const
{
return params_;
}
StartBack2BackCallResult::Data StartBack2BackCallResult::getData()const
{
return data_;
}
std::string StartBack2BackCallResult::getCode()const
{
return code_;
}

View File

@@ -97,8 +97,6 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
include/alibabacloud/cloudauth/model/LivenessDetectRequest.h
include/alibabacloud/cloudauth/model/LivenessDetectResult.h
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
@@ -113,6 +111,8 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/UpdateFaceConfigResult.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
include/alibabacloud/cloudauth/model/VerifyBankElementRequest.h
include/alibabacloud/cloudauth/model/VerifyBankElementResult.h
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
include/alibabacloud/cloudauth/model/VerifyDeviceResult.h
include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h
@@ -196,8 +196,6 @@ set(cloudauth_src
src/model/InitFaceVerifyResult.cc
src/model/InitSmartVerifyRequest.cc
src/model/InitSmartVerifyResult.cc
src/model/LivenessDetectRequest.cc
src/model/LivenessDetectResult.cc
src/model/LivenessFaceVerifyRequest.cc
src/model/LivenessFaceVerifyResult.cc
src/model/ModifyDeviceInfoRequest.cc
@@ -212,6 +210,8 @@ set(cloudauth_src
src/model/UpdateFaceConfigResult.cc
src/model/UpdateVerifySettingRequest.cc
src/model/UpdateVerifySettingResult.cc
src/model/VerifyBankElementRequest.cc
src/model/VerifyBankElementResult.cc
src/model/VerifyDeviceRequest.cc
src/model/VerifyDeviceResult.cc
src/model/VerifyMaterialRequest.cc

View File

@@ -98,8 +98,6 @@
#include "model/InitFaceVerifyResult.h"
#include "model/InitSmartVerifyRequest.h"
#include "model/InitSmartVerifyResult.h"
#include "model/LivenessDetectRequest.h"
#include "model/LivenessDetectResult.h"
#include "model/LivenessFaceVerifyRequest.h"
#include "model/LivenessFaceVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
@@ -114,6 +112,8 @@
#include "model/UpdateFaceConfigResult.h"
#include "model/UpdateVerifySettingRequest.h"
#include "model/UpdateVerifySettingResult.h"
#include "model/VerifyBankElementRequest.h"
#include "model/VerifyBankElementResult.h"
#include "model/VerifyDeviceRequest.h"
#include "model/VerifyDeviceResult.h"
#include "model/VerifyMaterialRequest.h"
@@ -241,9 +241,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::LivenessDetectResult> LivenessDetectOutcome;
typedef std::future<LivenessDetectOutcome> LivenessDetectOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::LivenessDetectRequest&, const LivenessDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessDetectAsyncHandler;
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
@@ -265,6 +262,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
typedef Outcome<Error, Model::VerifyBankElementResult> VerifyBankElementOutcome;
typedef std::future<VerifyBankElementOutcome> VerifyBankElementOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::VerifyBankElementRequest&, const VerifyBankElementOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyBankElementAsyncHandler;
typedef Outcome<Error, Model::VerifyDeviceResult> VerifyDeviceOutcome;
typedef std::future<VerifyDeviceOutcome> VerifyDeviceOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::VerifyDeviceRequest&, const VerifyDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDeviceAsyncHandler;
@@ -390,9 +390,6 @@ namespace AlibabaCloud
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
LivenessDetectOutcome livenessDetect(const Model::LivenessDetectRequest &request)const;
void livenessDetectAsync(const Model::LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LivenessDetectOutcomeCallable livenessDetectCallable(const Model::LivenessDetectRequest& request) const;
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
@@ -414,6 +411,9 @@ namespace AlibabaCloud
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
VerifyBankElementOutcome verifyBankElement(const Model::VerifyBankElementRequest &request)const;
void verifyBankElementAsync(const Model::VerifyBankElementRequest& request, const VerifyBankElementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyBankElementOutcomeCallable verifyBankElementCallable(const Model::VerifyBankElementRequest& request) const;
VerifyDeviceOutcome verifyDevice(const Model::VerifyDeviceRequest &request)const;
void verifyDeviceAsync(const Model::VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyDeviceOutcomeCallable verifyDeviceCallable(const Model::VerifyDeviceRequest& request) const;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getCertFile()const;
void setCertFile(const std::string& certFile);
std::string getCertNationalEmblemUrl()const;
void setCertNationalEmblemUrl(const std::string& certNationalEmblemUrl);
std::string getCertName()const;
void setCertName(const std::string& certName);
std::string getMode()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
private:
std::string certFile_;
std::string certNationalEmblemUrl_;
std::string certName_;
std::string mode_;
std::string certNo_;

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct ResultObject
{
std::string passed;
std::string certifyId;
std::string materialInfo;
std::string subCode;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
InitSmartVerifyRequest();
~InitSmartVerifyRequest();
std::string getIdName()const;
void setIdName(const std::string& idName);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getCertifyId()const;
@@ -63,6 +65,8 @@ namespace AlibabaCloud
void setCertName(const std::string& certName);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getIdNo()const;
void setIdNo(const std::string& idNo);
long getSceneId()const;
void setSceneId(long sceneId);
std::string getCallbackToken()const;
@@ -73,6 +77,7 @@ namespace AlibabaCloud
void setCallbackUrl(const std::string& callbackUrl);
private:
std::string idName_;
std::string userId_;
std::string certifyId_;
std::string facePictureBase64_;
@@ -87,6 +92,7 @@ namespace AlibabaCloud
std::string ip_;
std::string certName_;
std::string mobile_;
std::string idNo_;
long sceneId_;
std::string callbackToken_;
std::string ossBucketName_;

View File

@@ -1,60 +0,0 @@
/*
* 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_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectRequest : public RpcServiceRequest
{
public:
LivenessDetectRequest();
~LivenessDetectRequest();
std::string getMediaCategory()const;
void setMediaCategory(const std::string& mediaCategory);
std::string getMediaUrl()const;
void setMediaUrl(const std::string& mediaUrl);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getMediaFile()const;
void setMediaFile(const std::string& mediaFile);
private:
std::string mediaCategory_;
std::string mediaUrl_;
std::string bizType_;
std::string bizId_;
std::string mediaFile_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyBankElementRequest : public RpcServiceRequest
{
public:
VerifyBankElementRequest();
~VerifyBankElementRequest();
std::string getIdName()const;
void setIdName(const std::string& idName);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getBankCardUrl()const;
void setBankCardUrl(const std::string& bankCardUrl);
std::string getIdNo()const;
void setIdNo(const std::string& idNo);
std::string getBankCardNo()const;
void setBankCardNo(const std::string& bankCardNo);
std::string getMode()const;
void setMode(const std::string& mode);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getBankCardFile()const;
void setBankCardFile(const std::string& bankCardFile);
long getSceneId()const;
void setSceneId(long sceneId);
private:
std::string idName_;
std::string mobile_;
std::string bankCardUrl_;
std::string idNo_;
std::string bankCardNo_;
std::string mode_;
std::string outerOrderNo_;
std::string bankCardFile_;
long sceneId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTRESULT_H_
#include <string>
#include <vector>
@@ -29,20 +29,21 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectResult : public ServiceResult
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyBankElementResult : public ServiceResult
{
public:
struct ResultObject
{
std::string passed;
float score;
std::string frameUrl;
std::string certifyId;
std::string materialInfo;
std::string subCode;
};
LivenessDetectResult();
explicit LivenessDetectResult(const std::string &payload);
~LivenessDetectResult();
VerifyBankElementResult();
explicit VerifyBankElementResult(const std::string &payload);
~VerifyBankElementResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
@@ -58,4 +59,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTRESULT_H_

View File

@@ -1419,42 +1419,6 @@ CloudauthClient::InitSmartVerifyOutcomeCallable CloudauthClient::initSmartVerify
return task->get_future();
}
CloudauthClient::LivenessDetectOutcome CloudauthClient::livenessDetect(const LivenessDetectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LivenessDetectOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LivenessDetectOutcome(LivenessDetectResult(outcome.result()));
else
return LivenessDetectOutcome(outcome.error());
}
void CloudauthClient::livenessDetectAsync(const LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, livenessDetect(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::LivenessDetectOutcomeCallable CloudauthClient::livenessDetectCallable(const LivenessDetectRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LivenessDetectOutcome()>>(
[this, request]()
{
return this->livenessDetect(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::LivenessFaceVerifyOutcome CloudauthClient::livenessFaceVerify(const LivenessFaceVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1707,6 +1671,42 @@ CloudauthClient::UpdateVerifySettingOutcomeCallable CloudauthClient::updateVerif
return task->get_future();
}
CloudauthClient::VerifyBankElementOutcome CloudauthClient::verifyBankElement(const VerifyBankElementRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyBankElementOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyBankElementOutcome(VerifyBankElementResult(outcome.result()));
else
return VerifyBankElementOutcome(outcome.error());
}
void CloudauthClient::verifyBankElementAsync(const VerifyBankElementRequest& request, const VerifyBankElementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyBankElement(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::VerifyBankElementOutcomeCallable CloudauthClient::verifyBankElementCallable(const VerifyBankElementRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyBankElementOutcome()>>(
[this, request]()
{
return this->verifyBankElement(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::VerifyDeviceOutcome CloudauthClient::verifyDevice(const VerifyDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -38,6 +38,17 @@ void ElementSmartVerifyRequest::setCertFile(const std::string& certFile)
setBodyParameter("CertFile", certFile);
}
std::string ElementSmartVerifyRequest::getCertNationalEmblemUrl()const
{
return certNationalEmblemUrl_;
}
void ElementSmartVerifyRequest::setCertNationalEmblemUrl(const std::string& certNationalEmblemUrl)
{
certNationalEmblemUrl_ = certNationalEmblemUrl;
setBodyParameter("CertNationalEmblemUrl", certNationalEmblemUrl);
}
std::string ElementSmartVerifyRequest::getCertName()const
{
return certName_;

View File

@@ -46,6 +46,8 @@ void ElementSmartVerifyResult::parse(const std::string &payload)
resultObject_.subCode = resultObjectNode["SubCode"].asString();
if(!resultObjectNode["MaterialInfo"].isNull())
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
if(!resultObjectNode["CertifyId"].isNull())
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())

View File

@@ -27,6 +27,17 @@ InitSmartVerifyRequest::InitSmartVerifyRequest() :
InitSmartVerifyRequest::~InitSmartVerifyRequest()
{}
std::string InitSmartVerifyRequest::getIdName()const
{
return idName_;
}
void InitSmartVerifyRequest::setIdName(const std::string& idName)
{
idName_ = idName;
setBodyParameter("IdName", idName);
}
std::string InitSmartVerifyRequest::getUserId()const
{
return userId_;
@@ -181,6 +192,17 @@ void InitSmartVerifyRequest::setMobile(const std::string& mobile)
setBodyParameter("Mobile", mobile);
}
std::string InitSmartVerifyRequest::getIdNo()const
{
return idNo_;
}
void InitSmartVerifyRequest::setIdNo(const std::string& idNo)
{
idNo_ = idNo;
setBodyParameter("IdNo", idNo);
}
long InitSmartVerifyRequest::getSceneId()const
{
return sceneId_;

View File

@@ -1,84 +0,0 @@
/*
* 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/cloudauth/model/LivenessDetectRequest.h>
using AlibabaCloud::Cloudauth::Model::LivenessDetectRequest;
LivenessDetectRequest::LivenessDetectRequest() :
RpcServiceRequest("cloudauth", "2020-11-12", "LivenessDetect")
{
setMethod(HttpRequest::Method::Post);
}
LivenessDetectRequest::~LivenessDetectRequest()
{}
std::string LivenessDetectRequest::getMediaCategory()const
{
return mediaCategory_;
}
void LivenessDetectRequest::setMediaCategory(const std::string& mediaCategory)
{
mediaCategory_ = mediaCategory;
setBodyParameter("MediaCategory", mediaCategory);
}
std::string LivenessDetectRequest::getMediaUrl()const
{
return mediaUrl_;
}
void LivenessDetectRequest::setMediaUrl(const std::string& mediaUrl)
{
mediaUrl_ = mediaUrl;
setBodyParameter("MediaUrl", mediaUrl);
}
std::string LivenessDetectRequest::getBizType()const
{
return bizType_;
}
void LivenessDetectRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setBodyParameter("BizType", bizType);
}
std::string LivenessDetectRequest::getBizId()const
{
return bizId_;
}
void LivenessDetectRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}
std::string LivenessDetectRequest::getMediaFile()const
{
return mediaFile_;
}
void LivenessDetectRequest::setMediaFile(const std::string& mediaFile)
{
mediaFile_ = mediaFile;
setBodyParameter("MediaFile", mediaFile);
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/VerifyBankElementRequest.h>
using AlibabaCloud::Cloudauth::Model::VerifyBankElementRequest;
VerifyBankElementRequest::VerifyBankElementRequest() :
RpcServiceRequest("cloudauth", "2020-06-18", "VerifyBankElement")
{
setMethod(HttpRequest::Method::Post);
}
VerifyBankElementRequest::~VerifyBankElementRequest()
{}
std::string VerifyBankElementRequest::getIdName()const
{
return idName_;
}
void VerifyBankElementRequest::setIdName(const std::string& idName)
{
idName_ = idName;
setBodyParameter("IdName", idName);
}
std::string VerifyBankElementRequest::getMobile()const
{
return mobile_;
}
void VerifyBankElementRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setBodyParameter("Mobile", mobile);
}
std::string VerifyBankElementRequest::getBankCardUrl()const
{
return bankCardUrl_;
}
void VerifyBankElementRequest::setBankCardUrl(const std::string& bankCardUrl)
{
bankCardUrl_ = bankCardUrl;
setBodyParameter("BankCardUrl", bankCardUrl);
}
std::string VerifyBankElementRequest::getIdNo()const
{
return idNo_;
}
void VerifyBankElementRequest::setIdNo(const std::string& idNo)
{
idNo_ = idNo;
setBodyParameter("IdNo", idNo);
}
std::string VerifyBankElementRequest::getBankCardNo()const
{
return bankCardNo_;
}
void VerifyBankElementRequest::setBankCardNo(const std::string& bankCardNo)
{
bankCardNo_ = bankCardNo;
setBodyParameter("BankCardNo", bankCardNo);
}
std::string VerifyBankElementRequest::getMode()const
{
return mode_;
}
void VerifyBankElementRequest::setMode(const std::string& mode)
{
mode_ = mode;
setBodyParameter("Mode", mode);
}
std::string VerifyBankElementRequest::getOuterOrderNo()const
{
return outerOrderNo_;
}
void VerifyBankElementRequest::setOuterOrderNo(const std::string& outerOrderNo)
{
outerOrderNo_ = outerOrderNo;
setBodyParameter("OuterOrderNo", outerOrderNo);
}
std::string VerifyBankElementRequest::getBankCardFile()const
{
return bankCardFile_;
}
void VerifyBankElementRequest::setBankCardFile(const std::string& bankCardFile)
{
bankCardFile_ = bankCardFile;
setBodyParameter("BankCardFile", bankCardFile);
}
long VerifyBankElementRequest::getSceneId()const
{
return sceneId_;
}
void VerifyBankElementRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setBodyParameter("SceneId", std::to_string(sceneId));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/LivenessDetectResult.h>
#include <alibabacloud/cloudauth/model/VerifyBankElementResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
LivenessDetectResult::LivenessDetectResult() :
VerifyBankElementResult::VerifyBankElementResult() :
ServiceResult()
{}
LivenessDetectResult::LivenessDetectResult(const std::string &payload) :
VerifyBankElementResult::VerifyBankElementResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LivenessDetectResult::~LivenessDetectResult()
VerifyBankElementResult::~VerifyBankElementResult()
{}
void LivenessDetectResult::parse(const std::string &payload)
void VerifyBankElementResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -42,28 +42,30 @@ void LivenessDetectResult::parse(const std::string &payload)
auto resultObjectNode = value["ResultObject"];
if(!resultObjectNode["Passed"].isNull())
resultObject_.passed = resultObjectNode["Passed"].asString();
if(!resultObjectNode["Score"].isNull())
resultObject_.score = std::stof(resultObjectNode["Score"].asString());
if(!resultObjectNode["FrameUrl"].isNull())
resultObject_.frameUrl = resultObjectNode["FrameUrl"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!resultObjectNode["SubCode"].isNull())
resultObject_.subCode = resultObjectNode["SubCode"].asString();
if(!resultObjectNode["MaterialInfo"].isNull())
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
if(!resultObjectNode["CertifyId"].isNull())
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
LivenessDetectResult::ResultObject LivenessDetectResult::getResultObject()const
VerifyBankElementResult::ResultObject VerifyBankElementResult::getResultObject()const
{
return resultObject_;
}
std::string LivenessDetectResult::getMessage()const
std::string VerifyBankElementResult::getMessage()const
{
return message_;
}
std::string LivenessDetectResult::getCode()const
std::string VerifyBankElementResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<Api name="GetDBTopology" status="online" version="2018-11-01" product="dms-enterprise" authType="AK" showJsonItemName="false" visibility="Public" fileTransfer="false" responseLog="enable" keepClientResourceOwnerId="true"><Parameters><Parameter name="dbId" tagName="LogicDbId" type="Long" required="true" tagPosition="Query" minValue="1" maxValue="9223372036854775807"/><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System"/><Parameter name="actionName" tagName="Action" type="String" required="false" tagPosition="System"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System"/><Parameter name="IspSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System"/><Parameter name="tid" tagName="Tid" type="Long" required="false" tagPosition="Query" minValue="1" maxValue="9223372036854775807"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" defaultValue="center"/></Parameters><IspProtocol protocol="http" retries="-1" timeout="10000" httpHost="http://api-dms-share-${regionId}.aliyun-inc.com/worknode/openapi/meta/database/logic/getDBTopology" sign="true" signKeyName="dms-enterprise-prod" signPolicy="Local" resultType="Object"/><ErrorMapping exceptionExpress="success=false,errorCode,message,httpStatusCode"/><IsvProtocol protocol="HTTP|HTTPS" method="GET|POST"/><ResultMapping><Member tagName="RequestId" type="String" name="requestId"/><Member tagName="ErrorCode" type="String" name="errorCode"/><Member tagName="ErrorMessage" type="String" name="message"/><Member tagName="Success" type="Boolean" name="success"/><Struct tagName="DBTopology" name="data"><Member tagName="LogicDbId" type="Long" name="dbId"/><Member tagName="SearchName" type="String" name="searchName"/><Member tagName="Alias" type="String" name="alias"/><Member tagName="LogicDbName" type="String" name="schemaName"/><Member tagName="EnvType" type="String" name="envType"/><Member tagName="DbType" type="String" name="dbType"/><Array tagName="DBTopologyInfoList" itemName="DBTopologyInfo" name="dbTopologyInfoList"><Member tagName="InstanceSource" type="String" name="instanceSource"/><Member tagName="InstanceResourceId" type="String" name="instanceResourceId"/><Member tagName="InstanceId" type="Long" name="instanceId"/><Member tagName="SearchName" type="String" name="dbSearchName"/><Member tagName="DbId" type="Long" name="dbId"/><Member tagName="CatalogName" type="String" name="catalogName"/><Member tagName="RegionId" type="String" name="idc"/><Member tagName="EnvType" type="String" name="envType"/><Member tagName="DbType" type="String" name="dbType"/><Member tagName="SchemaName" type="String" name="schemaName"/></Array></Struct></ResultMapping><FlowControl controlUnit="Second" apiDefault="100" userDefault="100"/></Api>

View File

@@ -61,6 +61,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/ExecuteStructSyncResult.h
include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h
include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h
include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h
include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h
include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h
include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesResult.h
include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h
@@ -218,6 +220,8 @@ set(dms-enterprise_src
src/model/ExecuteStructSyncResult.cc
src/model/GetApprovalDetailRequest.cc
src/model/GetApprovalDetailResult.cc
src/model/GetDBTopologyRequest.cc
src/model/GetDBTopologyResult.cc
src/model/GetDataCorrectBackupFilesRequest.cc
src/model/GetDataCorrectBackupFilesResult.cc
src/model/GetDataCorrectOrderDetailRequest.cc

View File

@@ -62,6 +62,8 @@
#include "model/ExecuteStructSyncResult.h"
#include "model/GetApprovalDetailRequest.h"
#include "model/GetApprovalDetailResult.h"
#include "model/GetDBTopologyRequest.h"
#include "model/GetDBTopologyResult.h"
#include "model/GetDataCorrectBackupFilesRequest.h"
#include "model/GetDataCorrectBackupFilesResult.h"
#include "model/GetDataCorrectOrderDetailRequest.h"
@@ -245,6 +247,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetApprovalDetailResult> GetApprovalDetailOutcome;
typedef std::future<GetApprovalDetailOutcome> GetApprovalDetailOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetApprovalDetailRequest&, const GetApprovalDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetApprovalDetailAsyncHandler;
typedef Outcome<Error, Model::GetDBTopologyResult> GetDBTopologyOutcome;
typedef std::future<GetDBTopologyOutcome> GetDBTopologyOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDBTopologyRequest&, const GetDBTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBTopologyAsyncHandler;
typedef Outcome<Error, Model::GetDataCorrectBackupFilesResult> GetDataCorrectBackupFilesOutcome;
typedef std::future<GetDataCorrectBackupFilesOutcome> GetDataCorrectBackupFilesOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataCorrectBackupFilesRequest&, const GetDataCorrectBackupFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataCorrectBackupFilesAsyncHandler;
@@ -481,6 +486,9 @@ namespace AlibabaCloud
GetApprovalDetailOutcome getApprovalDetail(const Model::GetApprovalDetailRequest &request)const;
void getApprovalDetailAsync(const Model::GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetApprovalDetailOutcomeCallable getApprovalDetailCallable(const Model::GetApprovalDetailRequest& request) const;
GetDBTopologyOutcome getDBTopology(const Model::GetDBTopologyRequest &request)const;
void getDBTopologyAsync(const Model::GetDBTopologyRequest& request, const GetDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDBTopologyOutcomeCallable getDBTopologyCallable(const Model::GetDBTopologyRequest& request) const;
GetDataCorrectBackupFilesOutcome getDataCorrectBackupFiles(const Model::GetDataCorrectBackupFilesRequest &request)const;
void getDataCorrectBackupFilesAsync(const Model::GetDataCorrectBackupFilesRequest& request, const GetDataCorrectBackupFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDataCorrectBackupFilesOutcomeCallable getDataCorrectBackupFilesCallable(const Model::GetDataCorrectBackupFilesRequest& request) const;

View File

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

View File

@@ -0,0 +1,80 @@
/*
* 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_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDBTopologyResult : public ServiceResult
{
public:
struct DBTopology
{
struct DBTopologyInfo
{
std::string instanceSource;
std::string instanceResourceId;
long instanceId;
std::string searchName;
long dbId;
std::string catalogName;
std::string regionId;
std::string envType;
std::string dbType;
std::string schemaName;
};
long logicDbId;
std::string searchName;
std::string alias;
std::string logicDbName;
std::vector<DBTopologyInfo> dBTopologyInfoList;
std::string envType;
std::string dbType;
};
GetDBTopologyResult();
explicit GetDBTopologyResult(const std::string &payload);
~GetDBTopologyResult();
DBTopology getDBTopology()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
DBTopology dBTopology_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYRESULT_H_

View File

@@ -771,6 +771,42 @@ Dms_enterpriseClient::GetApprovalDetailOutcomeCallable Dms_enterpriseClient::get
return task->get_future();
}
Dms_enterpriseClient::GetDBTopologyOutcome Dms_enterpriseClient::getDBTopology(const GetDBTopologyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDBTopologyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDBTopologyOutcome(GetDBTopologyResult(outcome.result()));
else
return GetDBTopologyOutcome(outcome.error());
}
void Dms_enterpriseClient::getDBTopologyAsync(const GetDBTopologyRequest& request, const GetDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDBTopology(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::GetDBTopologyOutcomeCallable Dms_enterpriseClient::getDBTopologyCallable(const GetDBTopologyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDBTopologyOutcome()>>(
[this, request]()
{
return this->getDBTopology(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::GetDataCorrectBackupFilesOutcome Dms_enterpriseClient::getDataCorrectBackupFiles(const GetDataCorrectBackupFilesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetDBTopologyRequest;
GetDBTopologyRequest::GetDBTopologyRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTopology")
{
setMethod(HttpRequest::Method::Post);
}
GetDBTopologyRequest::~GetDBTopologyRequest()
{}
long GetDBTopologyRequest::getLogicDbId()const
{
return logicDbId_;
}
void GetDBTopologyRequest::setLogicDbId(long logicDbId)
{
logicDbId_ = logicDbId;
setParameter("LogicDbId", std::to_string(logicDbId));
}
long GetDBTopologyRequest::getTid()const
{
return tid_;
}
void GetDBTopologyRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,109 @@
/*
* 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/dms-enterprise/model/GetDBTopologyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetDBTopologyResult::GetDBTopologyResult() :
ServiceResult()
{}
GetDBTopologyResult::GetDBTopologyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDBTopologyResult::~GetDBTopologyResult()
{}
void GetDBTopologyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dBTopologyNode = value["DBTopology"];
if(!dBTopologyNode["LogicDbId"].isNull())
dBTopology_.logicDbId = std::stol(dBTopologyNode["LogicDbId"].asString());
if(!dBTopologyNode["SearchName"].isNull())
dBTopology_.searchName = dBTopologyNode["SearchName"].asString();
if(!dBTopologyNode["Alias"].isNull())
dBTopology_.alias = dBTopologyNode["Alias"].asString();
if(!dBTopologyNode["LogicDbName"].isNull())
dBTopology_.logicDbName = dBTopologyNode["LogicDbName"].asString();
if(!dBTopologyNode["EnvType"].isNull())
dBTopology_.envType = dBTopologyNode["EnvType"].asString();
if(!dBTopologyNode["DbType"].isNull())
dBTopology_.dbType = dBTopologyNode["DbType"].asString();
auto allDBTopologyInfoListNode = dBTopologyNode["DBTopologyInfoList"]["DBTopologyInfo"];
for (auto dBTopologyNodeDBTopologyInfoListDBTopologyInfo : allDBTopologyInfoListNode)
{
DBTopology::DBTopologyInfo dBTopologyInfoObject;
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].isNull())
dBTopologyInfoObject.instanceSource = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].isNull())
dBTopologyInfoObject.instanceResourceId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].isNull())
dBTopologyInfoObject.instanceId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].asString());
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].isNull())
dBTopologyInfoObject.searchName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbId"].isNull())
dBTopologyInfoObject.dbId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbId"].asString());
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].isNull())
dBTopologyInfoObject.catalogName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].isNull())
dBTopologyInfoObject.regionId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].isNull())
dBTopologyInfoObject.envType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].isNull())
dBTopologyInfoObject.dbType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].asString();
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SchemaName"].isNull())
dBTopologyInfoObject.schemaName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SchemaName"].asString();
dBTopology_.dBTopologyInfoList.push_back(dBTopologyInfoObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetDBTopologyResult::DBTopology GetDBTopologyResult::getDBTopology()const
{
return dBTopology_;
}
std::string GetDBTopologyResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDBTopologyResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDBTopologyResult::getSuccess()const
{
return success_;
}

View File

@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<Version name="2018-11-01" product="dms-enterprise" apiStyle="RPC" isolationType="outer"><Parameters/><ErrorMapping exceptionExpress="success=false,errorCode,message,httpStatusCode"><ErrorCodes><ErrorCode errorCode="InstanceExisted" errorMessage="The specified instance already exists." code="InstanceExisted" type="user" httpCode="403"/><ErrorCode errorCode="InstanceNoEnoughNumber" errorMessage="The maximum number of instances allowed for the enterprise is exceeded." code="InstanceNoEnoughNumber" type="user" httpCode="403"/><ErrorCode errorCode="InternalError" errorMessage="Internal server error." code="InternalError" type="user" httpCode="500"/><ErrorCode errorCode="NoPermission" errorMessage="You are not authorized to perform this operation." code="NoPermission" type="user" httpCode="403"/><ErrorCode errorCode="NotSupportYet" errorMessage="This feature is not supported." code="NotSupportYet" type="user" httpCode="403"/><ErrorCode errorCode="SecurityRuleNotExist" errorMessage="The specified security rule does not exist." code="SecurityRuleNotExist" type="user" httpCode="404"/><ErrorCode errorCode="TenantExpired" errorMessage="The tenant has expired." code="TenantExpired" type="user" httpCode="404"/><ErrorCode errorCode="TenantNotExist" errorMessage="The specified tenant does not exist." code="TenantNotExist" type="user" httpCode="404"/><ErrorCode errorCode="TenantStatusIllegal" errorMessage="The tenant status is invalid." code="TenantStatusIllegal" type="user" httpCode="404"/><ErrorCode errorCode="UserExisted" errorMessage="The specified user already exists." code="UserExisted" type="user" httpCode="403"/><ErrorCode errorCode="UserNoEnoughNumber" errorMessage="The maximum number of users allowed for the enterprise is exceeded." code="UserNoEnoughNumber" type="user" httpCode="403"/><ErrorCode errorCode="UserNotExist" errorMessage="The specified user does not exist." code="UserNotExist" type="user" httpCode="404"/><ErrorCode errorCode="UserStatusIllegal" errorMessage="The user status is invalid." code="UserStatusIllegal" type="user" httpCode="404"/></ErrorCodes></ErrorMapping><Apis><Api name="SubmitStructSyncOrderApproval"/><Api name="ListDatabaseUserPermssions"/><Api name="ListSensitiveColumns"/><Api name="ListUsers"/><Api name="SubmitOrderApproval"/><Api name="GrantUserPermission"/><Api name="GetMetaTableDetailInfo"/><Api name="GetDataCorrectSQLFile"/><Api name="CreateFreeLockCorrectOrder"/><Api name="CreateOrder"/><Api name="ListDatabases"/><Api name="ListUserPermissions"/><Api name="ListWorkFlowTemplates"/><Api name="GetDataExportOrderDetail"/><Api name="ListInstances"/><Api name="GetUserUploadFileJob"/><Api name="ListDDLPublishRecords"/><Api name="GetStructSyncJobDetail"/><Api name="CreateUploadOSSFileJob"/><Api name="SearchDatabase"/><Api name="SyncDatabaseMeta"/><Api name="GetUser"/><Api name="ExecuteStructSync"/><Api name="GetDataCorrectOrderDetail"/><Api name="ListColumns"/><Api name="RevokeUserPermission"/><Api name="GetMetaTableColumn"/><Api name="EnableUser"/><Api name="UpdateInstance"/><Api name="ExecuteScript"/><Api name="ListDBTaskSQLJobDetail"/><Api name="DisableUser"/><Api name="GetApprovalDetail"/><Api name="GetUserActiveTenant"/><Api name="RegisterUser"/><Api name="GetInstance"/><Api name="GetPermApplyOrderDetail"/><Api name="ListIndexes"/><Api name="ListLogicTables"/><Api name="GetTableTopology"/><Api name="GetDataExportDownloadURL"/><Api name="CreateDataCronClearOrder"/><Api name="CreatePublishGroupTask"/><Api name="GetDatabase"/><Api name="GetOwnerApplyOrderDetail"/><Api name="GetOpLog"/><Api name="SearchTable"/><Api name="ListDBTaskSQLJob"/><Api name="DeleteUser"/><Api name="GetDataCronClearTaskDetailList"/><Api name="GetStructSyncJobAnalyzeResult"/><Api name="ApproveOrder"/><Api name="GetDataCorrectTaskDetail"/><Api name="CreateUploadFileJob"/><Api name="ListLogicDatabases"/><Api name="CreateDataImportOrder"/><Api name="CloseOrder"/><Api name="SyncInstanceMeta"/><Api name="ListOrders"/><Api name="GetOrderBaseInfo"/><Api name="ListUserTenants"/><Api name="SetOwners"/><Api name="CreateDataCorrectOrder"/><Api name="GetLogicDatabase"/><Api name="GetDataCorrectBackupFiles"/><Api name="RegisterInstance"/><Api name="CreateStructSyncOrder"/><Api name="ExecuteDataExport"/><Api name="ExecuteDataCorrect"/><Api name="ListTables"/><Api name="ListWorkFlowNodes"/><Api name="GetStructSyncOrderDetail"/><Api name="ListSensitiveColumnsDetail"/><Api name="UpdateUser"/><Api name="GetStructSyncExecSqlDetail"/><Api name="CheckFinishMission"/><Api name="DeleteInstance"/><Api name="GetTableDBTopology"/></Apis></Version>
<Version name="2018-11-01" product="dms-enterprise" apiStyle="RPC" isolationType="outer"><Parameters/><ErrorMapping exceptionExpress="success=false,errorCode,message,httpStatusCode"><ErrorCodes><ErrorCode errorCode="InstanceExisted" errorMessage="The specified instance already exists." code="InstanceExisted" type="user" httpCode="403"/><ErrorCode errorCode="InstanceNoEnoughNumber" errorMessage="The maximum number of instances allowed for the enterprise is exceeded." code="InstanceNoEnoughNumber" type="user" httpCode="403"/><ErrorCode errorCode="InternalError" errorMessage="Internal server error." code="InternalError" type="user" httpCode="500"/><ErrorCode errorCode="NoPermission" errorMessage="You are not authorized to perform this operation." code="NoPermission" type="user" httpCode="403"/><ErrorCode errorCode="NotSupportYet" errorMessage="This feature is not supported." code="NotSupportYet" type="user" httpCode="403"/><ErrorCode errorCode="SecurityRuleNotExist" errorMessage="The specified security rule does not exist." code="SecurityRuleNotExist" type="user" httpCode="404"/><ErrorCode errorCode="TenantExpired" errorMessage="The tenant has expired." code="TenantExpired" type="user" httpCode="404"/><ErrorCode errorCode="TenantNotExist" errorMessage="The specified tenant does not exist." code="TenantNotExist" type="user" httpCode="404"/><ErrorCode errorCode="TenantStatusIllegal" errorMessage="The tenant status is invalid." code="TenantStatusIllegal" type="user" httpCode="404"/><ErrorCode errorCode="UserExisted" errorMessage="The specified user already exists." code="UserExisted" type="user" httpCode="403"/><ErrorCode errorCode="UserNoEnoughNumber" errorMessage="The maximum number of users allowed for the enterprise is exceeded." code="UserNoEnoughNumber" type="user" httpCode="403"/><ErrorCode errorCode="UserNotExist" errorMessage="The specified user does not exist." code="UserNotExist" type="user" httpCode="404"/><ErrorCode errorCode="UserStatusIllegal" errorMessage="The user status is invalid." code="UserStatusIllegal" type="user" httpCode="404"/></ErrorCodes></ErrorMapping><Apis><Api name="SubmitStructSyncOrderApproval"/><Api name="ListDatabaseUserPermssions"/><Api name="ListSensitiveColumns"/><Api name="ListUsers"/><Api name="SubmitOrderApproval"/><Api name="GrantUserPermission"/><Api name="GetMetaTableDetailInfo"/><Api name="GetDataCorrectSQLFile"/><Api name="CreateFreeLockCorrectOrder"/><Api name="CreateOrder"/><Api name="ListDatabases"/><Api name="ListUserPermissions"/><Api name="ListWorkFlowTemplates"/><Api name="GetDataExportOrderDetail"/><Api name="ListInstances"/><Api name="GetUserUploadFileJob"/><Api name="ListDDLPublishRecords"/><Api name="GetStructSyncJobDetail"/><Api name="CreateUploadOSSFileJob"/><Api name="SearchDatabase"/><Api name="GetDBTopology"/><Api name="SyncDatabaseMeta"/><Api name="GetUser"/><Api name="ExecuteStructSync"/><Api name="GetDataCorrectOrderDetail"/><Api name="ListColumns"/><Api name="RevokeUserPermission"/><Api name="GetMetaTableColumn"/><Api name="EnableUser"/><Api name="UpdateInstance"/><Api name="ExecuteScript"/><Api name="ListDBTaskSQLJobDetail"/><Api name="DisableUser"/><Api name="GetApprovalDetail"/><Api name="GetUserActiveTenant"/><Api name="RegisterUser"/><Api name="GetInstance"/><Api name="GetPermApplyOrderDetail"/><Api name="ListIndexes"/><Api name="ListLogicTables"/><Api name="GetTableTopology"/><Api name="GetDataExportDownloadURL"/><Api name="CreateDataCronClearOrder"/><Api name="CreatePublishGroupTask"/><Api name="GetDatabase"/><Api name="GetOwnerApplyOrderDetail"/><Api name="GetOpLog"/><Api name="SearchTable"/><Api name="ListDBTaskSQLJob"/><Api name="DeleteUser"/><Api name="GetDataCronClearTaskDetailList"/><Api name="GetStructSyncJobAnalyzeResult"/><Api name="ApproveOrder"/><Api name="GetDataCorrectTaskDetail"/><Api name="CreateUploadFileJob"/><Api name="ListLogicDatabases"/><Api name="CreateDataImportOrder"/><Api name="CloseOrder"/><Api name="SyncInstanceMeta"/><Api name="ListOrders"/><Api name="GetOrderBaseInfo"/><Api name="ListUserTenants"/><Api name="SetOwners"/><Api name="CreateDataCorrectOrder"/><Api name="GetLogicDatabase"/><Api name="GetDataCorrectBackupFiles"/><Api name="RegisterInstance"/><Api name="CreateStructSyncOrder"/><Api name="ExecuteDataExport"/><Api name="ExecuteDataCorrect"/><Api name="ListTables"/><Api name="ListWorkFlowNodes"/><Api name="GetStructSyncOrderDetail"/><Api name="ListSensitiveColumnsDetail"/><Api name="UpdateUser"/><Api name="GetStructSyncExecSqlDetail"/><Api name="CheckFinishMission"/><Api name="DeleteInstance"/><Api name="GetTableDBTopology"/></Apis></Version>

View File

@@ -31,21 +31,21 @@ QualitycheckClient::QualitycheckClient(const Credentials &credentials, const Cli
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Qualitycheck");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
QualitycheckClient::QualitycheckClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Qualitycheck");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
QualitycheckClient::QualitycheckClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Qualitycheck");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
QualitycheckClient::~QualitycheckClient()

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api fileTransfer="true" responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="videoenhan" controlPolicy="black_list" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="AbstractEcommerceVideo" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="videoUrl" tagName="VideoUrl" type="String" required="true" fileOssUrl="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="ip" tagName="proxy_original_source_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="duration" tagName="Duration" type="Float" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="width" tagName="Width" type="Integer" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/><Parameter name="height" tagName="Height" type="Integer" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="2" apiDefault="9" special="commonSpecials" /><PreIspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="VideoUrl" visibility="Public" type="String" name="VideoUrl" nullToEmpty="false"/><Member tagName="VideoCoverUrl" visibility="Public" type="String" name="VideoCoverUrl"/></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api fileTransfer="true" responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="videoenhan" controlPolicy="black_list" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="AbstractFilmVideo" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="videoUrl" tagName="VideoUrl" type="String" required="true" fileOssUrl="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="ip" tagName="proxy_original_source_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="length" tagName="Length" type="Integer" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="1" apiDefault="3" special="commonSpecials" /><PreIspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="VideoUrl" visibility="Public" type="String" name="VideoUrl" nullToEmpty="false"/></Struct></ResultMapping></Api>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api fileTransfer="true" responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="videoenhan" controlPolicy="black_list" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="EraseVideoLogo" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="videoUrl" tagName="VideoUrl" type="String" required="true" fileOssUrl="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="boxes" tagName="Boxes" type="RepeatList" required="false" tagPosition="Body" checkRepeatListAll="false" maxNumber="100" invokeDataType="Json" visibility="Public"><Parameters><Parameter name="h" tagName="H" type="Float" required="false" checkRepeatListAll="false" checkBlank="false" visibility="Public"/><Parameter name="w" tagName="W" type="Float" required="false" checkRepeatListAll="false" checkBlank="false" visibility="Public"/><Parameter name="x" tagName="X" type="Float" required="false" checkRepeatListAll="false" checkBlank="false" visibility="Public"/><Parameter name="y" tagName="Y" type="Float" required="false" checkRepeatListAll="false" checkBlank="false" visibility="Public"/></Parameters></Parameter><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/></Parameters><FlowControl controlUnit="Second" userDefault="1" apiDefault="3" special="commonSpecials" /><PreIspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="VideoUrl" visibility="Public" type="String" name="VideoUrl" nullToEmpty="false"/></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api fileTransfer="true" responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="videoenhan" controlPolicy="black_list" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="EraseVideoSubtitles" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="videoUrl" tagName="VideoUrl" type="String" required="true" fileOssUrl="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="bx" tagName="BX" type="Float" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/><Parameter name="by" tagName="BY" type="Float" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/><Parameter name="bw" tagName="BW" type="Float" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/><Parameter name="bh" tagName="BH" type="Float" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/><Parameter name="ip" tagName="proxy_original_source_ip" type="String" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" userDefault="1" apiDefault="3" special="commonSpecials" /><PreIspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/videoenhan#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="VideoUrl" visibility="Public" type="String" name="VideoUrl" nullToEmpty="false"/></Struct></ResultMapping></Api>

Some files were not shown because too many files have changed in this diff Show More