Compare commits
118 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c3ae151cb | ||
|
|
6d5e5142e1 | ||
|
|
68ed888149 | ||
|
|
e2f241db26 | ||
|
|
72fcc70ac5 | ||
|
|
92868c57c0 | ||
|
|
c0cebe1843 | ||
|
|
778feae703 | ||
|
|
4014391257 | ||
|
|
8b405dedc5 | ||
|
|
03d0b3ce63 | ||
|
|
0bab75ea88 | ||
|
|
2fa9cc7eb1 | ||
|
|
08d76a4567 | ||
|
|
417b73c84f | ||
|
|
722e455a40 | ||
|
|
692eef0b24 | ||
|
|
cffe37f2e6 | ||
|
|
f3e4ab14ee | ||
|
|
7052337f54 | ||
|
|
56cbac37fc | ||
|
|
51a7c5171c | ||
|
|
fe5dcd30f9 | ||
|
|
c5de90e7b9 | ||
|
|
b924b1d42c | ||
|
|
adf8ff200a | ||
|
|
82e2b63b6d | ||
|
|
ba1f21822e | ||
|
|
26180c8b09 | ||
|
|
40ea7cd46c | ||
|
|
b3e7020b42 | ||
|
|
9c901043d8 | ||
|
|
3086c83998 | ||
|
|
a36e9edeee | ||
|
|
3f43b4048c | ||
|
|
878b123ba6 | ||
|
|
d120c9d112 | ||
|
|
ffd9d00a13 | ||
|
|
db5e193d08 | ||
|
|
b2e60afde0 | ||
|
|
a0cde540cb | ||
|
|
e23adc1324 | ||
|
|
a1e11dbb5b | ||
|
|
5fb8057a45 | ||
|
|
fa0fe1ae07 | ||
|
|
89a2517800 | ||
|
|
d5af7a4c61 | ||
|
|
ca3cd3584e | ||
|
|
5dbd88a76d | ||
|
|
213faf8f4f | ||
|
|
d42d229efb | ||
|
|
bd57cca01a | ||
|
|
4b57f18912 | ||
|
|
4134095a0d | ||
|
|
b1e2b491e9 | ||
|
|
08961b2ff9 | ||
|
|
25cc56a91b | ||
|
|
1435718263 | ||
|
|
99a78222f2 | ||
|
|
4bfb40e4b1 | ||
|
|
1a4543ff56 | ||
|
|
779ed847e3 | ||
|
|
20fb930aaf | ||
|
|
a09a6e094a | ||
|
|
d78148b8be | ||
|
|
47cbc71c7f | ||
|
|
63135520bc | ||
|
|
d68d8044d3 | ||
|
|
7e07a62c24 | ||
|
|
6007aa1ea1 | ||
|
|
2de2101c40 | ||
|
|
c0bae997ea | ||
|
|
0060c7ff27 | ||
|
|
621eb3945b | ||
|
|
9b557e564e | ||
|
|
605dc1cf5a | ||
|
|
832a2a7525 | ||
|
|
4f195142c9 | ||
|
|
972958c1e3 | ||
|
|
c2bfeb1216 | ||
|
|
8383b37798 | ||
|
|
8ca3ea3fdf | ||
|
|
f5a4f56f2c | ||
|
|
ac0162b3c7 | ||
|
|
bd60fe6309 | ||
|
|
e2e36ad513 | ||
|
|
ad478b719d | ||
|
|
b4ecf9926e | ||
|
|
6b5999e621 | ||
|
|
8b83291bdb | ||
|
|
77ff21c58c | ||
|
|
624c480a29 | ||
|
|
8137298eb1 | ||
|
|
903d45f46a | ||
|
|
61cb10fe42 | ||
|
|
bc474a30c7 | ||
|
|
ec6303fa64 | ||
|
|
a4d37e4317 | ||
|
|
282e67d80b | ||
|
|
5ea308961d | ||
|
|
fae23e0d83 | ||
|
|
5f19402565 | ||
|
|
5b4362a577 | ||
|
|
c9ce5e2ef5 | ||
|
|
41c9cd85cf | ||
|
|
8a2d243786 | ||
|
|
1d81df8694 | ||
|
|
f2bd687fd6 | ||
|
|
dacf4c261f | ||
|
|
1f47213704 | ||
|
|
a6d2312246 | ||
|
|
d1bab4fe11 | ||
|
|
4e60cd4654 | ||
|
|
1bc2727696 | ||
|
|
8d73cf03cf | ||
|
|
3611eea277 | ||
|
|
c4b557376c | ||
|
|
24b001f51b |
369
CHANGELOG
369
CHANGELOG
@@ -1,3 +1,372 @@
|
||||
2022-04-21 Version: 1.36.1111
|
||||
- Supported new features for outbound.
|
||||
|
||||
2022-04-21 Version: 1.36.1110
|
||||
- Generated 2018-12-03 for `Sas`.
|
||||
|
||||
2022-04-21 Version: 1.36.1109
|
||||
- Add API OfflineTaskFlow.
|
||||
|
||||
2022-04-19 Version: 1.36.1108
|
||||
- Generated 2018-12-03 for `Sas`.
|
||||
|
||||
2022-04-18 Version: 1.36.1107
|
||||
- Change DescribeEventDetail Data.
|
||||
|
||||
2022-04-15 Version: 1.36.1106
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2022-04-15 Version: 1.36.1105
|
||||
- Rename the return of ListTaskFlow API.
|
||||
|
||||
2022-04-13 Version: 1.36.1104
|
||||
- Support throughput for API DescribeDisks.
|
||||
|
||||
|
||||
2022-04-12 Version: 1.36.1103
|
||||
- Remove redundant input for API ListTaskFlow.
|
||||
|
||||
2022-04-11 Version: 1.36.1102
|
||||
- Set multiple apis to public.
|
||||
|
||||
2022-04-07 Version: 1.36.1101
|
||||
- Update by SDK platform.
|
||||
|
||||
2022-04-07 Version: 1.36.1100
|
||||
- Update by sdk platform.
|
||||
|
||||
2022-04-06 Version: 1.36.1099
|
||||
- Release FeedbackSession.
|
||||
|
||||
2022-04-06 Version: 1.36.1098
|
||||
- Create App Group Support Schedule Busy Workers.
|
||||
|
||||
2022-04-06 Version: 1.36.1097
|
||||
- Add ListTagResources api.
|
||||
- Add TagResources api.
|
||||
- Add UntagResources api.
|
||||
|
||||
2022-04-06 Version: 1.36.1096
|
||||
- Support output dagName, dagOwnerId for api listTaskFlowAndScenario.
|
||||
- Change output DbType to DwDbType for api GetLhSpaceByName.
|
||||
|
||||
2022-03-31 Version: 1.36.1095
|
||||
- Supported ListTaskFlow, ListTaskFlowInstance, GetTaskInstanceRelation, GetLhSpaceByName, DeleteLakeHouseSpace, DeleteTaskFlow API.
|
||||
|
||||
2022-03-31 Version: 1.36.1094
|
||||
- CreateDataSourceItem.
|
||||
- ListDataSourceItem.
|
||||
|
||||
2022-03-30 Version: 1.36.1093
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2022-03-29 Version: 1.36.1092
|
||||
- Supported Trim, AndroidVivoPushMode, iOSInterruptionLevel, iOSRelevanceScore for Push and MassPush.
|
||||
|
||||
2022-03-28 Version: 1.36.1091
|
||||
- Support more params in text, clockWidget.
|
||||
|
||||
2022-03-25 Version: 1.36.1090
|
||||
- Iot_20180120 old version sdk.
|
||||
|
||||
2022-03-24 Version: 1.36.1089
|
||||
- Supported CreateLakeHouseSpace,AddLhMembers,DeleteLhMembers,ListLhTaskFlowAndScenario,ChangeLhDagOwner,ReDeployLhDagVersion API.
|
||||
|
||||
2022-03-23 Version: 1.36.1088
|
||||
- Update by sdk platform.
|
||||
|
||||
2022-03-21 Version: 1.36.1087
|
||||
- Get Job Support Query By Job Name.
|
||||
- Add Api Create Namespace.
|
||||
- Create App Support Set User Defined App Key.
|
||||
|
||||
2022-03-18 Version: 1.36.1086
|
||||
- Supported CreateStandardGroup, ListStandardGroups API.
|
||||
|
||||
2022-03-17 Version: 1.36.1085
|
||||
- Support Latest APIs.
|
||||
|
||||
2022-03-16 Version: 1.36.1084
|
||||
- Support Latest APIs.
|
||||
|
||||
2022-03-15 Version: 1.36.1083
|
||||
- Add tcpInternetEndpoint field for the api OnsInstanceBaseInfo.
|
||||
|
||||
2022-03-15 Version: 1.36.1082
|
||||
- Support collect logs to kafka.
|
||||
|
||||
2022-03-15 Version: 1.36.1081
|
||||
- Update by sdk platform.
|
||||
|
||||
2022-03-15 Version: 1.36.1080
|
||||
- Set multiple apis to private.
|
||||
|
||||
2022-03-14 Version: 1.36.1079
|
||||
- Iot_20180120 old version sdk.
|
||||
|
||||
2022-03-10 Version: 1.36.1078
|
||||
- Modify the input parameter Action of CreateCen to be required.
|
||||
|
||||
2022-03-10 Version: 1.36.1077
|
||||
- Disabled Spark Job API.
|
||||
|
||||
2022-03-09 Version: 1.36.1076
|
||||
- Support modify params.
|
||||
|
||||
2022-03-09 Version: 1.36.1075
|
||||
- Update RecognizeVideoCastCrewList.
|
||||
|
||||
2022-03-09 Version: 1.36.1074
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2022-03-07 Version: 1.36.1073
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2022-03-07 Version: 1.36.1072
|
||||
- Supported new features etc.
|
||||
|
||||
2022-03-07 Version: 1.36.1071
|
||||
- Supported new features for outbound.
|
||||
|
||||
2022-03-04 Version: 1.36.1070
|
||||
- Initialize APIs.
|
||||
|
||||
2022-03-03 Version: 1.36.1069
|
||||
- Release RecognizeVideoCastCrewList.
|
||||
|
||||
2022-02-24 Version: 1.36.1068
|
||||
- Add UpdateAnycastEipAddressAssociations Interface.
|
||||
|
||||
2022-02-23 Version: 1.36.1067
|
||||
- SDK.
|
||||
|
||||
2022-02-23 Version: 1.36.1066
|
||||
- Add AuthId.
|
||||
|
||||
2022-02-23 Version: 1.36.1065
|
||||
- Support remediation.
|
||||
|
||||
2022-02-22 Version: 1.36.1064
|
||||
- Deprecated the OnsTopicUpdate api, and will be offline soon.
|
||||
|
||||
2022-02-22 Version: 1.36.1063
|
||||
- Support RefreshProxyLevel.
|
||||
|
||||
2022-02-21 Version: 1.36.1062
|
||||
- Add event tasks.
|
||||
- DescribeInstance taskProgress.
|
||||
|
||||
2022-02-21 Version: 1.36.1061
|
||||
- Bugfix QueryMoniter.
|
||||
|
||||
2022-02-21 Version: 1.36.1060
|
||||
- Add DleteNacosInstance.
|
||||
- Change CreateCluster parameter.
|
||||
- Change UpdateNacosInstance errorCode.
|
||||
|
||||
2022-02-18 Version: 1.36.1059
|
||||
- Iot_20180120 build sdk.
|
||||
|
||||
2022-02-18 Version: 1.36.1058
|
||||
- Add Gis open service add data api.
|
||||
|
||||
2022-02-17 Version: 1.36.1057
|
||||
- Adjusted the call frequency limit of some APIs.
|
||||
|
||||
2022-02-16 Version: 1.36.1056
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2022-02-16 Version: 1.36.1055
|
||||
- Generated 2021-03-20 for `Emr`.
|
||||
|
||||
2022-02-16 Version: 1.36.1054
|
||||
- Fix normandy query api.
|
||||
|
||||
2022-02-11 Version: 1.36.1053
|
||||
- Add OTA API, including ReupgradeOTATask.
|
||||
|
||||
2022-02-10 Version: 1.36.1052
|
||||
- Add deleteNacosInstance.
|
||||
|
||||
2022-02-09 Version: 1.36.1051
|
||||
- Added api QueryWorksBloodRelationship.
|
||||
|
||||
2022-02-08 Version: 1.36.1050
|
||||
- Supported New Features.
|
||||
|
||||
2022-02-08 Version: 1.36.1049
|
||||
- Iot_20180120 oldversion sdk.
|
||||
|
||||
2022-01-28 Version: 1.36.1048
|
||||
- Support cloud disk.
|
||||
|
||||
2022-01-28 Version: 1.36.1047
|
||||
- Update by SDK platform.
|
||||
|
||||
2022-01-28 Version: 1.36.1046
|
||||
- Support SIP phone management.
|
||||
|
||||
2022-01-26 Version: 1.36.1045
|
||||
- CreateContact API Add ContactGroupName.
|
||||
|
||||
2022-01-26 Version: 1.36.1044
|
||||
- Fix some bugs.
|
||||
|
||||
2022-01-25 Version: 1.36.1043
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2022-01-25 Version: 1.36.1042
|
||||
- Supported new features for outbound.
|
||||
|
||||
2022-01-25 Version: 1.36.1041
|
||||
- Support Latest APIs.
|
||||
|
||||
2022-01-25 Version: 1.36.1040
|
||||
- Add APIs, include, ListSharedReports, ListFavoriteReports, ListRecentViewReports, CreateTicket, QueryTicketInfo, UpdateTicketNum, DelayTicketExpireTime, DelayTicketExpireTime.
|
||||
|
||||
2022-01-25 Version: 1.36.1039
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2022-01-25 Version: 1.36.1038
|
||||
- Supported Get Worker List.
|
||||
- Execute Job Support Designate Machine.
|
||||
- Job Interface Add Config.
|
||||
|
||||
2022-01-25 Version: 1.36.1037
|
||||
- Update DetectFace.
|
||||
|
||||
2022-01-21 Version: 1.36.1036
|
||||
- Supported new features etc.
|
||||
|
||||
2022-01-21 Version: 1.36.1035
|
||||
- Add Event Rule sql filter.
|
||||
|
||||
2022-01-21 Version: 1.36.1034
|
||||
- Add Event Rule sql filter.
|
||||
|
||||
2022-01-21 Version: 1.36.1033
|
||||
- Supported RestartDataCorrectSQLJob,PauseDataCorrectSQLJob API.
|
||||
- Supported ListDataCorrectPreCheckSQL to return tableNames information.
|
||||
|
||||
2022-01-19 Version: 1.36.1032
|
||||
- Upgrade Service for SMS.
|
||||
|
||||
2022-01-19 Version: 1.36.1031
|
||||
- ReportOneAgentInfo.
|
||||
|
||||
|
||||
2022-01-18 Version: 1.36.1030
|
||||
- Upgrade SDK.
|
||||
|
||||
2022-01-18 Version: 1.36.1029
|
||||
- Support describe price.
|
||||
|
||||
2022-01-14 Version: 1.36.1028
|
||||
- Supported more query conditions when searching resource group.
|
||||
|
||||
2022-01-14 Version: 1.36.1027
|
||||
- Supported more query conditions when searching resource group.
|
||||
|
||||
2022-01-13 Version: 1.36.1026
|
||||
- Supported New Features.
|
||||
|
||||
2022-01-12 Version: 1.36.1025
|
||||
- Supported new features for outbound.
|
||||
|
||||
2022-01-12 Version: 1.36.1024
|
||||
- Support folder for rule.
|
||||
|
||||
2022-01-11 Version: 1.36.1023
|
||||
- Support DeleteTransitRouter API.
|
||||
|
||||
2022-01-11 Version: 1.36.1022
|
||||
- Fix bugs.
|
||||
|
||||
2022-01-11 Version: 1.36.1021
|
||||
- Fix bugs.
|
||||
|
||||
2022-01-11 Version: 1.36.1020
|
||||
- Added reserve price range.
|
||||
|
||||
2022-01-07 Version: 1.36.1019
|
||||
- Support resource scheduler.
|
||||
|
||||
2022-01-07 Version: 1.36.1018
|
||||
- Add or modify APIs, include, QueryEmbeddedStaus, QueryWorks, QueryWorksByWorkspace.
|
||||
|
||||
2022-01-07 Version: 1.36.1017
|
||||
- Add or modify APIs, include, QueryEmbeddedStaus, QueryWorks, QueryWorksByWorkspace.
|
||||
|
||||
2022-01-07 Version: 1.36.1016
|
||||
- Support Service name.
|
||||
|
||||
2022-01-07 Version: 1.36.1015
|
||||
- Supported minReadyInstanceRatio parameter for deploy.
|
||||
|
||||
2022-01-07 Version: 1.36.1014
|
||||
- Support New API for Dypnsapi.
|
||||
|
||||
2022-01-06 Version: 1.36.1013
|
||||
- Fix bugs.
|
||||
|
||||
2022-01-06 Version: 1.36.1012
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2022-01-05 Version: 1.36.1011
|
||||
- Add new interface.
|
||||
|
||||
2022-01-05 Version: 1.36.1010
|
||||
- Fix bugx.
|
||||
|
||||
2021-12-31 Version: 1.36.1009
|
||||
- Update ErrorCode.
|
||||
|
||||
2021-12-30 Version: 1.36.1008
|
||||
- Supported Get Worker List.
|
||||
- Execute Job Support Designate Machine.
|
||||
|
||||
2021-12-30 Version: 1.36.1007
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2021-12-30 Version: 1.36.1006
|
||||
- Support AUTH for CreateEventSubscribe.
|
||||
|
||||
2021-12-30 Version: 1.36.1005
|
||||
- Update by sdk platform.
|
||||
|
||||
2021-12-30 Version: 1.36.1004
|
||||
- Add new interface.
|
||||
|
||||
2021-12-29 Version: 1.36.1003
|
||||
- Supported new features etc.
|
||||
|
||||
2021-12-29 Version: 1.36.1002
|
||||
- Supported new features for outbound.
|
||||
|
||||
2021-12-29 Version: 1.36.1001
|
||||
- Add ListDcdnEsTemplateInfo.
|
||||
|
||||
2021-12-29 Version: 1.36.1000
|
||||
- Add ListDcdnEsTemplateInfo.
|
||||
|
||||
2021-12-28 Version: 1.36.999
|
||||
- Support managed rule query.
|
||||
|
||||
2021-12-27 Version: 1.36.998
|
||||
- Support ACR EE, OSS, EIP for deploy.
|
||||
|
||||
2021-12-27 Version: 1.36.997
|
||||
- DescribeDBInstances Add CapacityUnit.
|
||||
|
||||
2021-12-27 Version: 1.36.996
|
||||
- Update DeleteFCTrigger.
|
||||
|
||||
2021-12-27 Version: 1.36.995
|
||||
- Add CreateDcdnSubTask.
|
||||
|
||||
2021-12-27 Version: 1.36.994
|
||||
- Add DescribeScdnDomainCcInfo.
|
||||
|
||||
2021-12-24 Version: 1.36.993
|
||||
- Supported CheckBlockVolumeName api for Checking the volume name has been already used by the OSS bucket folder.
|
||||
|
||||
|
||||
@@ -149,6 +149,8 @@ set(alb_public_header_model
|
||||
include/alibabacloud/alb/model/UpdateListenerAttributeResult.h
|
||||
include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h
|
||||
include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerAddressTypeConfigRequest.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerAddressTypeConfigResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h
|
||||
include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h
|
||||
@@ -296,6 +298,8 @@ set(alb_src
|
||||
src/model/UpdateListenerAttributeResult.cc
|
||||
src/model/UpdateListenerLogConfigRequest.cc
|
||||
src/model/UpdateListenerLogConfigResult.cc
|
||||
src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc
|
||||
src/model/UpdateLoadBalancerAddressTypeConfigResult.cc
|
||||
src/model/UpdateLoadBalancerAttributeRequest.cc
|
||||
src/model/UpdateLoadBalancerAttributeResult.cc
|
||||
src/model/UpdateLoadBalancerEditionRequest.cc
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
#include "model/UpdateListenerAttributeResult.h"
|
||||
#include "model/UpdateListenerLogConfigRequest.h"
|
||||
#include "model/UpdateListenerLogConfigResult.h"
|
||||
#include "model/UpdateLoadBalancerAddressTypeConfigRequest.h"
|
||||
#include "model/UpdateLoadBalancerAddressTypeConfigResult.h"
|
||||
#include "model/UpdateLoadBalancerAttributeRequest.h"
|
||||
#include "model/UpdateLoadBalancerAttributeResult.h"
|
||||
#include "model/UpdateLoadBalancerEditionRequest.h"
|
||||
@@ -367,6 +369,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateListenerLogConfigResult> UpdateListenerLogConfigOutcome;
|
||||
typedef std::future<UpdateListenerLogConfigOutcome> UpdateListenerLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateListenerLogConfigRequest&, const UpdateListenerLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateListenerLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLoadBalancerAddressTypeConfigResult> UpdateLoadBalancerAddressTypeConfigOutcome;
|
||||
typedef std::future<UpdateLoadBalancerAddressTypeConfigOutcome> UpdateLoadBalancerAddressTypeConfigOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerAddressTypeConfigRequest&, const UpdateLoadBalancerAddressTypeConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerAddressTypeConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLoadBalancerAttributeResult> UpdateLoadBalancerAttributeOutcome;
|
||||
typedef std::future<UpdateLoadBalancerAttributeOutcome> UpdateLoadBalancerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerAttributeRequest&, const UpdateLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerAttributeAsyncHandler;
|
||||
@@ -588,6 +593,9 @@ namespace AlibabaCloud
|
||||
UpdateListenerLogConfigOutcome updateListenerLogConfig(const Model::UpdateListenerLogConfigRequest &request)const;
|
||||
void updateListenerLogConfigAsync(const Model::UpdateListenerLogConfigRequest& request, const UpdateListenerLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateListenerLogConfigOutcomeCallable updateListenerLogConfigCallable(const Model::UpdateListenerLogConfigRequest& request) const;
|
||||
UpdateLoadBalancerAddressTypeConfigOutcome updateLoadBalancerAddressTypeConfig(const Model::UpdateLoadBalancerAddressTypeConfigRequest &request)const;
|
||||
void updateLoadBalancerAddressTypeConfigAsync(const Model::UpdateLoadBalancerAddressTypeConfigRequest& request, const UpdateLoadBalancerAddressTypeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLoadBalancerAddressTypeConfigOutcomeCallable updateLoadBalancerAddressTypeConfigCallable(const Model::UpdateLoadBalancerAddressTypeConfigRequest& request) const;
|
||||
UpdateLoadBalancerAttributeOutcome updateLoadBalancerAttribute(const Model::UpdateLoadBalancerAttributeRequest &request)const;
|
||||
void updateLoadBalancerAttributeAsync(const Model::UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLoadBalancerAttributeOutcomeCallable updateLoadBalancerAttributeCallable(const Model::UpdateLoadBalancerAttributeRequest& request) const;
|
||||
|
||||
@@ -76,6 +76,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -139,6 +139,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -52,6 +52,10 @@ public:
|
||||
int cookieTimeout;
|
||||
std::string stickySessionType;
|
||||
};
|
||||
struct UchConfig {
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
CreateServerGroupRequest();
|
||||
~CreateServerGroupRequest();
|
||||
std::string getServerGroupName() const;
|
||||
@@ -68,6 +72,8 @@ public:
|
||||
void setProtocol(const std::string &protocol);
|
||||
bool getUpstreamKeepaliveEnabled() const;
|
||||
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
|
||||
std::string getServiceName() const;
|
||||
void setServiceName(const std::string &serviceName);
|
||||
StickySessionConfig getStickySessionConfig() const;
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
@@ -78,6 +84,8 @@ public:
|
||||
void setServerGroupType(const std::string &serverGroupType);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
UchConfig getUchConfig() const;
|
||||
void setUchConfig(const UchConfig &uchConfig);
|
||||
|
||||
private:
|
||||
std::string serverGroupName_;
|
||||
@@ -87,11 +95,13 @@ private:
|
||||
std::string resourceGroupId_;
|
||||
std::string protocol_;
|
||||
bool upstreamKeepaliveEnabled_;
|
||||
std::string serviceName_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
bool ipv6Enabled_;
|
||||
std::string serverGroupType_;
|
||||
std::string vpcId_;
|
||||
UchConfig uchConfig_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
|
||||
@@ -67,6 +67,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct LoadBalancerAddress
|
||||
{
|
||||
std::string intranetAddress;
|
||||
std::string address;
|
||||
std::string ipv6Address;
|
||||
};
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setLoadBalancerNames(const std::vector<std::string> &loadBalancerNames);
|
||||
std::vector<std::string> getLoadBalancerIds() const;
|
||||
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
|
||||
std::vector<std::string> getLoadBalancerEditions() const;
|
||||
void setLoadBalancerEditions(const std::vector<std::string> &loadBalancerEditions);
|
||||
std::string getAddressIpVersion() const;
|
||||
void setAddressIpVersion(const std::string &addressIpVersion);
|
||||
std::string getResourceGroupId() const;
|
||||
@@ -70,6 +72,7 @@ public:
|
||||
private:
|
||||
std::vector<std::string> loadBalancerNames_;
|
||||
std::vector<std::string> loadBalancerIds_;
|
||||
std::vector<std::string> loadBalancerEditions_;
|
||||
std::string addressIpVersion_;
|
||||
std::string resourceGroupId_;
|
||||
std::string nextToken_;
|
||||
|
||||
@@ -101,10 +101,20 @@ namespace AlibabaCloud
|
||||
{
|
||||
int qPS;
|
||||
};
|
||||
struct CorsConfig
|
||||
{
|
||||
std::string allowCredentials;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
std::vector<std::string> allowOrigin;
|
||||
std::vector<std::string> allowHeaders;
|
||||
long maxAge;
|
||||
std::vector<std::string> allowMethods;
|
||||
};
|
||||
int order;
|
||||
FixedResponseConfig fixedResponseConfig;
|
||||
std::string type;
|
||||
RedirectConfig redirectConfig;
|
||||
CorsConfig corsConfig;
|
||||
ForwardGroupConfig forwardGroupConfig;
|
||||
RemoveHeaderConfig removeHeaderConfig;
|
||||
InsertHeaderConfig insertHeaderConfig;
|
||||
|
||||
@@ -58,6 +58,11 @@ namespace AlibabaCloud
|
||||
std::string stickySessionType;
|
||||
bool stickySessionEnabled;
|
||||
};
|
||||
struct UchConfig
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
@@ -66,6 +71,7 @@ namespace AlibabaCloud
|
||||
bool serviceManagedEnabled;
|
||||
std::vector<std::string> relatedLoadBalancerIds;
|
||||
std::string resourceGroupId;
|
||||
UchConfig uchConfig;
|
||||
std::string scheduler;
|
||||
bool upstreamKeepaliveEnabled;
|
||||
StickySessionConfig stickySessionConfig;
|
||||
@@ -76,6 +82,7 @@ namespace AlibabaCloud
|
||||
bool ipv6Enabled;
|
||||
bool configManagedEnabled;
|
||||
std::string vpcId;
|
||||
std::string serviceName;
|
||||
std::string serviceManagedMode;
|
||||
HealthCheckConfig healthCheckConfig;
|
||||
std::string protocol;
|
||||
|
||||
@@ -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_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerAddressTypeConfigRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ZoneMappings {
|
||||
std::string vSwitchId;
|
||||
std::string zoneId;
|
||||
std::string allocationId;
|
||||
};
|
||||
UpdateLoadBalancerAddressTypeConfigRequest();
|
||||
~UpdateLoadBalancerAddressTypeConfigRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getAddressType() const;
|
||||
void setAddressType(const std::string &addressType);
|
||||
std::string getDryRun() const;
|
||||
void setDryRun(const std::string &dryRun);
|
||||
std::vector<ZoneMappings> getZoneMappings() const;
|
||||
void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string addressType_;
|
||||
std::string dryRun_;
|
||||
std::vector<ZoneMappings> zoneMappings_;
|
||||
std::string loadBalancerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alb/AlbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerAddressTypeConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateLoadBalancerAddressTypeConfigResult();
|
||||
explicit UpdateLoadBalancerAddressTypeConfigResult(const std::string &payload);
|
||||
~UpdateLoadBalancerAddressTypeConfigResult();
|
||||
std::string getJobId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_
|
||||
@@ -76,6 +76,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -140,6 +140,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -52,6 +52,10 @@ public:
|
||||
int cookieTimeout;
|
||||
std::string stickySessionType;
|
||||
};
|
||||
struct UchConfig {
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
UpdateServerGroupAttributeRequest();
|
||||
~UpdateServerGroupAttributeRequest();
|
||||
std::string getServerGroupName() const;
|
||||
@@ -66,10 +70,14 @@ public:
|
||||
void setServerGroupId(const std::string &serverGroupId);
|
||||
bool getUpstreamKeepaliveEnabled() const;
|
||||
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
|
||||
std::string getServiceName() const;
|
||||
void setServiceName(const std::string &serviceName);
|
||||
StickySessionConfig getStickySessionConfig() const;
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
UchConfig getUchConfig() const;
|
||||
void setUchConfig(const UchConfig &uchConfig);
|
||||
|
||||
private:
|
||||
std::string serverGroupName_;
|
||||
@@ -78,8 +86,10 @@ private:
|
||||
std::string scheduler_;
|
||||
std::string serverGroupId_;
|
||||
bool upstreamKeepaliveEnabled_;
|
||||
std::string serviceName_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
UchConfig uchConfig_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
|
||||
@@ -2355,6 +2355,42 @@ AlbClient::UpdateListenerLogConfigOutcomeCallable AlbClient::updateListenerLogCo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerAddressTypeConfigOutcome AlbClient::updateLoadBalancerAddressTypeConfig(const UpdateLoadBalancerAddressTypeConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLoadBalancerAddressTypeConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLoadBalancerAddressTypeConfigOutcome(UpdateLoadBalancerAddressTypeConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateLoadBalancerAddressTypeConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlbClient::updateLoadBalancerAddressTypeConfigAsync(const UpdateLoadBalancerAddressTypeConfigRequest& request, const UpdateLoadBalancerAddressTypeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLoadBalancerAddressTypeConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerAddressTypeConfigOutcomeCallable AlbClient::updateLoadBalancerAddressTypeConfigCallable(const UpdateLoadBalancerAddressTypeConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLoadBalancerAddressTypeConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLoadBalancerAddressTypeConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlbClient::UpdateLoadBalancerAttributeOutcome AlbClient::updateLoadBalancerAttribute(const UpdateLoadBalancerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -87,6 +87,20 @@ void CreateRuleRequest::setRuleActions(const std::vector<CreateRuleRequest::Rule
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Value", ruleActions[dep1].insertHeaderConfig.value);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Key", ruleActions[dep1].insertHeaderConfig.key);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficLimitConfig.QPS", std::to_string(ruleActions[dep1].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowCredentials", ruleActions[dep1].corsConfig.allowCredentials);
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowOrigin.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowOrigin[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.MaxAge", std::to_string(ruleActions[dep1].corsConfig.maxAge));
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowMethods.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowMethods[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowHeaders[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.exposeHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.exposeHeaders[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Path", ruleActions[dep1].redirectConfig.path);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Protocol", ruleActions[dep1].redirectConfig.protocol);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Port", ruleActions[dep1].redirectConfig.port);
|
||||
|
||||
@@ -97,6 +97,20 @@ void CreateRulesRequest::setRules(const std::vector<CreateRulesRequest::Rules> &
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowOrigin.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowMethods.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
|
||||
@@ -105,6 +105,15 @@ void CreateServerGroupRequest::setUpstreamKeepaliveEnabled(bool upstreamKeepaliv
|
||||
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateServerGroupRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const {
|
||||
return stickySessionConfig_;
|
||||
}
|
||||
@@ -153,3 +162,13 @@ void CreateServerGroupRequest::setVpcId(const std::string &vpcId) {
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
CreateServerGroupRequest::UchConfig CreateServerGroupRequest::getUchConfig() const {
|
||||
return uchConfig_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setUchConfig(const CreateServerGroupRequest::UchConfig &uchConfig) {
|
||||
uchConfig_ = uchConfig;
|
||||
setParameter(std::string("UchConfig") + ".Type", uchConfig.type);
|
||||
setParameter(std::string("UchConfig") + ".Value", uchConfig.value);
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,8 @@ void GetLoadBalancerAttributeResult::parse(const std::string &payload)
|
||||
loadBalancerAddressesObject.address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].asString();
|
||||
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].isNull())
|
||||
loadBalancerAddressesObject.ipv6Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].asString();
|
||||
if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddress"].isNull())
|
||||
loadBalancerAddressesObject.intranetAddress = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["IntranetAddress"].asString();
|
||||
zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject);
|
||||
}
|
||||
zoneMappings_.push_back(zoneMappingsObject);
|
||||
|
||||
@@ -47,6 +47,17 @@ void ListLoadBalancersRequest::setLoadBalancerIds(const std::vector<ListLoadBala
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<ListLoadBalancersRequest::std::string> ListLoadBalancersRequest::getLoadBalancerEditions() const {
|
||||
return loadBalancerEditions_;
|
||||
}
|
||||
|
||||
void ListLoadBalancersRequest::setLoadBalancerEditions(const std::vector<ListLoadBalancersRequest::std::string> &loadBalancerEditions) {
|
||||
loadBalancerEditions_ = loadBalancerEditions;
|
||||
for(int dep1 = 0; dep1 != loadBalancerEditions.size(); dep1++) {
|
||||
setParameter(std::string("LoadBalancerEditions") + "." + std::to_string(dep1 + 1), loadBalancerEditions[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getAddressIpVersion() const {
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
@@ -141,6 +141,23 @@ void ListRulesResult::parse(const std::string &payload)
|
||||
auto trafficLimitConfigNode = value["TrafficLimitConfig"];
|
||||
if(!trafficLimitConfigNode["QPS"].isNull())
|
||||
ruleActionsObject.trafficLimitConfig.qPS = std::stoi(trafficLimitConfigNode["QPS"].asString());
|
||||
auto corsConfigNode = value["CorsConfig"];
|
||||
if(!corsConfigNode["AllowCredentials"].isNull())
|
||||
ruleActionsObject.corsConfig.allowCredentials = corsConfigNode["AllowCredentials"].asString();
|
||||
if(!corsConfigNode["MaxAge"].isNull())
|
||||
ruleActionsObject.corsConfig.maxAge = std::stol(corsConfigNode["MaxAge"].asString());
|
||||
auto allAllowOrigin = corsConfigNode["AllowOrigin"]["AllowOrigin"];
|
||||
for (auto value : allAllowOrigin)
|
||||
ruleActionsObject.corsConfig.allowOrigin.push_back(value.asString());
|
||||
auto allAllowMethods = corsConfigNode["AllowMethods"]["AllowMethods"];
|
||||
for (auto value : allAllowMethods)
|
||||
ruleActionsObject.corsConfig.allowMethods.push_back(value.asString());
|
||||
auto allAllowHeaders = corsConfigNode["AllowHeaders"]["AllowHeaders"];
|
||||
for (auto value : allAllowHeaders)
|
||||
ruleActionsObject.corsConfig.allowHeaders.push_back(value.asString());
|
||||
auto allExposeHeaders = corsConfigNode["ExposeHeaders"]["ExposeHeaders"];
|
||||
for (auto value : allExposeHeaders)
|
||||
ruleActionsObject.corsConfig.exposeHeaders.push_back(value.asString());
|
||||
rulesObject.ruleActions.push_back(ruleActionsObject);
|
||||
}
|
||||
auto allRuleConditionsNode = valueRulesRule["RuleConditions"]["Condition"];
|
||||
|
||||
@@ -71,6 +71,8 @@ void ListServerGroupsResult::parse(const std::string &payload)
|
||||
serverGroupsObject.ipv6Enabled = valueServerGroupsServerGroup["Ipv6Enabled"].asString() == "true";
|
||||
if(!valueServerGroupsServerGroup["ServerCount"].isNull())
|
||||
serverGroupsObject.serverCount = std::stoi(valueServerGroupsServerGroup["ServerCount"].asString());
|
||||
if(!valueServerGroupsServerGroup["ServiceName"].isNull())
|
||||
serverGroupsObject.serviceName = valueServerGroupsServerGroup["ServiceName"].asString();
|
||||
auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"];
|
||||
for (auto valueServerGroupsServerGroupTagsTag : allTagsNode)
|
||||
{
|
||||
@@ -121,6 +123,11 @@ void ListServerGroupsResult::parse(const std::string &payload)
|
||||
serverGroupsObject.stickySessionConfig.stickySessionEnabled = stickySessionConfigNode["StickySessionEnabled"].asString() == "true";
|
||||
if(!stickySessionConfigNode["StickySessionType"].isNull())
|
||||
serverGroupsObject.stickySessionConfig.stickySessionType = stickySessionConfigNode["StickySessionType"].asString();
|
||||
auto uchConfigNode = value["UchConfig"];
|
||||
if(!uchConfigNode["Type"].isNull())
|
||||
serverGroupsObject.uchConfig.type = uchConfigNode["Type"].asString();
|
||||
if(!uchConfigNode["Value"].isNull())
|
||||
serverGroupsObject.uchConfig.value = uchConfigNode["Value"].asString();
|
||||
auto allRelatedLoadBalancerIds = value["RelatedLoadBalancerIds"]["RelatedLoadBalancerId"];
|
||||
for (auto value : allRelatedLoadBalancerIds)
|
||||
serverGroupsObject.relatedLoadBalancerIds.push_back(value.asString());
|
||||
|
||||
76
alb/src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc
Normal file
76
alb/src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/alb/model/UpdateLoadBalancerAddressTypeConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Alb::Model::UpdateLoadBalancerAddressTypeConfigRequest;
|
||||
|
||||
UpdateLoadBalancerAddressTypeConfigRequest::UpdateLoadBalancerAddressTypeConfigRequest()
|
||||
: RpcServiceRequest("alb", "2020-06-16", "UpdateLoadBalancerAddressTypeConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLoadBalancerAddressTypeConfigRequest::~UpdateLoadBalancerAddressTypeConfigRequest() {}
|
||||
|
||||
std::string UpdateLoadBalancerAddressTypeConfigRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerAddressTypeConfigRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerAddressTypeConfigRequest::getAddressType() const {
|
||||
return addressType_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerAddressTypeConfigRequest::setAddressType(const std::string &addressType) {
|
||||
addressType_ = addressType;
|
||||
setParameter(std::string("AddressType"), addressType);
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerAddressTypeConfigRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerAddressTypeConfigRequest::setDryRun(const std::string &dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun);
|
||||
}
|
||||
|
||||
std::vector<UpdateLoadBalancerAddressTypeConfigRequest::ZoneMappings> UpdateLoadBalancerAddressTypeConfigRequest::getZoneMappings() const {
|
||||
return zoneMappings_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerAddressTypeConfigRequest::setZoneMappings(const std::vector<UpdateLoadBalancerAddressTypeConfigRequest::ZoneMappings> &zoneMappings) {
|
||||
zoneMappings_ = zoneMappings;
|
||||
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
|
||||
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerAddressTypeConfigRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
void UpdateLoadBalancerAddressTypeConfigRequest::setLoadBalancerId(const std::string &loadBalancerId) {
|
||||
loadBalancerId_ = loadBalancerId;
|
||||
setParameter(std::string("LoadBalancerId"), loadBalancerId);
|
||||
}
|
||||
|
||||
51
alb/src/model/UpdateLoadBalancerAddressTypeConfigResult.cc
Normal file
51
alb/src/model/UpdateLoadBalancerAddressTypeConfigResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alb/model/UpdateLoadBalancerAddressTypeConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alb;
|
||||
using namespace AlibabaCloud::Alb::Model;
|
||||
|
||||
UpdateLoadBalancerAddressTypeConfigResult::UpdateLoadBalancerAddressTypeConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLoadBalancerAddressTypeConfigResult::UpdateLoadBalancerAddressTypeConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLoadBalancerAddressTypeConfigResult::~UpdateLoadBalancerAddressTypeConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateLoadBalancerAddressTypeConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateLoadBalancerAddressTypeConfigResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,20 @@ void UpdateRuleAttributeRequest::setRuleActions(const std::vector<UpdateRuleAttr
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Value", ruleActions[dep1].insertHeaderConfig.value);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Key", ruleActions[dep1].insertHeaderConfig.key);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficLimitConfig.QPS", std::to_string(ruleActions[dep1].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowCredentials", ruleActions[dep1].corsConfig.allowCredentials);
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowOrigin.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowOrigin[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.MaxAge", std::to_string(ruleActions[dep1].corsConfig.maxAge));
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowMethods.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowMethods[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowHeaders[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.exposeHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.exposeHeaders[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Path", ruleActions[dep1].redirectConfig.path);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Protocol", ruleActions[dep1].redirectConfig.protocol);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Port", ruleActions[dep1].redirectConfig.port);
|
||||
|
||||
@@ -98,6 +98,20 @@ void UpdateRulesAttributeRequest::setRules(const std::vector<UpdateRulesAttribut
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowOrigin.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowMethods.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
|
||||
@@ -96,6 +96,15 @@ void UpdateServerGroupAttributeRequest::setUpstreamKeepaliveEnabled(bool upstrea
|
||||
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateServerGroupAttributeRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void UpdateServerGroupAttributeRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
UpdateServerGroupAttributeRequest::StickySessionConfig UpdateServerGroupAttributeRequest::getStickySessionConfig() const {
|
||||
return stickySessionConfig_;
|
||||
}
|
||||
@@ -117,3 +126,13 @@ void UpdateServerGroupAttributeRequest::setDryRun(bool dryRun) {
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
UpdateServerGroupAttributeRequest::UchConfig UpdateServerGroupAttributeRequest::getUchConfig() const {
|
||||
return uchConfig_;
|
||||
}
|
||||
|
||||
void UpdateServerGroupAttributeRequest::setUchConfig(const UpdateServerGroupAttributeRequest::UchConfig &uchConfig) {
|
||||
uchConfig_ = uchConfig;
|
||||
setParameter(std::string("UchConfig") + ".Type", uchConfig.type);
|
||||
setParameter(std::string("UchConfig") + ".Value", uchConfig.value);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTrafficMarkingPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTrafficMarkingPolicyResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRouteEntryRequest.h
|
||||
@@ -294,6 +296,8 @@ set(cbn_src
|
||||
src/model/DeleteRouteServiceInCenResult.cc
|
||||
src/model/DeleteTrafficMarkingPolicyRequest.cc
|
||||
src/model/DeleteTrafficMarkingPolicyResult.cc
|
||||
src/model/DeleteTransitRouterRequest.cc
|
||||
src/model/DeleteTransitRouterResult.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentRequest.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentResult.cc
|
||||
src/model/DeleteTransitRouterRouteEntryRequest.cc
|
||||
|
||||
@@ -84,6 +84,8 @@
|
||||
#include "model/DeleteRouteServiceInCenResult.h"
|
||||
#include "model/DeleteTrafficMarkingPolicyRequest.h"
|
||||
#include "model/DeleteTrafficMarkingPolicyResult.h"
|
||||
#include "model/DeleteTransitRouterRequest.h"
|
||||
#include "model/DeleteTransitRouterResult.h"
|
||||
#include "model/DeleteTransitRouterPeerAttachmentRequest.h"
|
||||
#include "model/DeleteTransitRouterPeerAttachmentResult.h"
|
||||
#include "model/DeleteTransitRouterRouteEntryRequest.h"
|
||||
@@ -332,6 +334,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteTrafficMarkingPolicyResult> DeleteTrafficMarkingPolicyOutcome;
|
||||
typedef std::future<DeleteTrafficMarkingPolicyOutcome> DeleteTrafficMarkingPolicyOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTrafficMarkingPolicyRequest&, const DeleteTrafficMarkingPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrafficMarkingPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterResult> DeleteTransitRouterOutcome;
|
||||
typedef std::future<DeleteTransitRouterOutcome> DeleteTransitRouterOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterRequest&, const DeleteTransitRouterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterPeerAttachmentResult> DeleteTransitRouterPeerAttachmentOutcome;
|
||||
typedef std::future<DeleteTransitRouterPeerAttachmentOutcome> DeleteTransitRouterPeerAttachmentOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterPeerAttachmentRequest&, const DeleteTransitRouterPeerAttachmentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterPeerAttachmentAsyncHandler;
|
||||
@@ -649,6 +654,9 @@ namespace AlibabaCloud
|
||||
DeleteTrafficMarkingPolicyOutcome deleteTrafficMarkingPolicy(const Model::DeleteTrafficMarkingPolicyRequest &request)const;
|
||||
void deleteTrafficMarkingPolicyAsync(const Model::DeleteTrafficMarkingPolicyRequest& request, const DeleteTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTrafficMarkingPolicyOutcomeCallable deleteTrafficMarkingPolicyCallable(const Model::DeleteTrafficMarkingPolicyRequest& request) const;
|
||||
DeleteTransitRouterOutcome deleteTransitRouter(const Model::DeleteTransitRouterRequest &request)const;
|
||||
void deleteTransitRouterAsync(const Model::DeleteTransitRouterRequest& request, const DeleteTransitRouterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterOutcomeCallable deleteTransitRouterCallable(const Model::DeleteTransitRouterRequest& request) const;
|
||||
DeleteTransitRouterPeerAttachmentOutcome deleteTransitRouterPeerAttachment(const Model::DeleteTransitRouterPeerAttachmentRequest &request)const;
|
||||
void deleteTransitRouterPeerAttachmentAsync(const Model::DeleteTransitRouterPeerAttachmentRequest& request, const DeleteTransitRouterPeerAttachmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterPeerAttachmentOutcomeCallable deleteTransitRouterPeerAttachmentCallable(const Model::DeleteTransitRouterPeerAttachmentRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setTransitRouterName(const std::string &transitRouterName);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getServiceMode() const;
|
||||
void setServiceMode(const std::string &serviceMode);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getCenId() const;
|
||||
@@ -56,6 +58,7 @@ public:
|
||||
private:
|
||||
std::string transitRouterName_;
|
||||
long resourceOwnerId_;
|
||||
std::string serviceMode_;
|
||||
std::string clientToken_;
|
||||
std::string cenId_;
|
||||
std::string type_;
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
~CreateTransitRouterVpcAttachmentRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getServiceMode() const;
|
||||
void setServiceMode(const std::string &serviceMode);
|
||||
long getVpcOwnerId() const;
|
||||
void setVpcOwnerId(long vpcOwnerId);
|
||||
std::string getClientToken() const;
|
||||
@@ -75,6 +77,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string serviceMode_;
|
||||
long vpcOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string cenId_;
|
||||
|
||||
@@ -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_CBN_MODEL_DELETETRANSITROUTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cbn {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteTransitRouterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteTransitRouterRequest();
|
||||
~DeleteTransitRouterRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTransitRouterId() const;
|
||||
void setTransitRouterId(const std::string &transitRouterId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string transitRouterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cbn
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteTransitRouterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTransitRouterResult();
|
||||
explicit DeleteTransitRouterResult(const std::string &payload);
|
||||
~DeleteTransitRouterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERRESULT_H_
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string zoneId;
|
||||
std::string vSwitchId;
|
||||
std::string networkInterfaceId;
|
||||
};
|
||||
std::string status;
|
||||
std::string transitRouterAttachmentId;
|
||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::string transitRouterAttachmentName;
|
||||
std::string resourceType;
|
||||
std::vector<TransitRouterAttachment::ZoneMapping> zoneMappings;
|
||||
std::string serviceMode;
|
||||
std::string transitRouterAttachmentDescription;
|
||||
long vpcOwnerId;
|
||||
std::string transitRouterId;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string transitRouterDescription;
|
||||
std::string transitRouterName;
|
||||
std::string regionId;
|
||||
std::string serviceMode;
|
||||
std::string transitRouterId;
|
||||
long aliUid;
|
||||
};
|
||||
|
||||
@@ -1167,6 +1167,42 @@ CbnClient::DeleteTrafficMarkingPolicyOutcomeCallable CbnClient::deleteTrafficMar
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterOutcome CbnClient::deleteTransitRouter(const DeleteTransitRouterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTransitRouterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTransitRouterOutcome(DeleteTransitRouterResult(outcome.result()));
|
||||
else
|
||||
return DeleteTransitRouterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteTransitRouterAsync(const DeleteTransitRouterRequest& request, const DeleteTransitRouterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTransitRouter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterOutcomeCallable CbnClient::deleteTransitRouterCallable(const DeleteTransitRouterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTransitRouterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTransitRouter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterPeerAttachmentOutcome CbnClient::deleteTransitRouterPeerAttachment(const DeleteTransitRouterPeerAttachmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -43,6 +43,15 @@ void CreateTransitRouterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterRequest::getServiceMode() const {
|
||||
return serviceMode_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterRequest::setServiceMode(const std::string &serviceMode) {
|
||||
serviceMode_ = serviceMode;
|
||||
setParameter(std::string("ServiceMode"), serviceMode);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateTransitRouterVpcAttachmentRequest::setResourceOwnerId(long resourceOw
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpcAttachmentRequest::getServiceMode() const {
|
||||
return serviceMode_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpcAttachmentRequest::setServiceMode(const std::string &serviceMode) {
|
||||
serviceMode_ = serviceMode;
|
||||
setParameter(std::string("ServiceMode"), serviceMode);
|
||||
}
|
||||
|
||||
long CreateTransitRouterVpcAttachmentRequest::getVpcOwnerId() const {
|
||||
return vpcOwnerId_;
|
||||
}
|
||||
|
||||
90
cbn/src/model/DeleteTransitRouterRequest.cc
Normal file
90
cbn/src/model/DeleteTransitRouterRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteTransitRouterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteTransitRouterRequest;
|
||||
|
||||
DeleteTransitRouterRequest::DeleteTransitRouterRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DeleteTransitRouter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTransitRouterRequest::~DeleteTransitRouterRequest() {}
|
||||
|
||||
long DeleteTransitRouterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteTransitRouterRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteTransitRouterResult.cc
Normal file
44
cbn/src/model/DeleteTransitRouterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/cbn/model/DeleteTransitRouterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteTransitRouterResult::DeleteTransitRouterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTransitRouterResult::DeleteTransitRouterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTransitRouterResult::~DeleteTransitRouterResult()
|
||||
{}
|
||||
|
||||
void DeleteTransitRouterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ void ListTransitRouterVpcAttachmentsResult::parse(const std::string &payload)
|
||||
transitRouterAttachmentsObject.vpcRegionId = valueTransitRouterAttachmentsTransitRouterAttachment["VpcRegionId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["ServiceMode"].isNull())
|
||||
transitRouterAttachmentsObject.serviceMode = valueTransitRouterAttachmentsTransitRouterAttachment["ServiceMode"].asString();
|
||||
auto allZoneMappingsNode = valueTransitRouterAttachmentsTransitRouterAttachment["ZoneMappings"]["ZoneMapping"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping : allZoneMappingsNode)
|
||||
{
|
||||
@@ -71,6 +73,8 @@ void ListTransitRouterVpcAttachmentsResult::parse(const std::string &payload)
|
||||
zoneMappingsObject.zoneId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["ZoneId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["VSwitchId"].isNull())
|
||||
zoneMappingsObject.vSwitchId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["VSwitchId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["NetworkInterfaceId"].isNull())
|
||||
zoneMappingsObject.networkInterfaceId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["NetworkInterfaceId"].asString();
|
||||
transitRouterAttachmentsObject.zoneMappings.push_back(zoneMappingsObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
|
||||
@@ -61,6 +61,8 @@ void ListTransitRoutersResult::parse(const std::string &payload)
|
||||
transitRoutersObject.aliUid = std::stol(valueTransitRoutersTransitRouter["AliUid"].asString());
|
||||
if(!valueTransitRoutersTransitRouter["RegionId"].isNull())
|
||||
transitRoutersObject.regionId = valueTransitRoutersTransitRouter["RegionId"].asString();
|
||||
if(!valueTransitRoutersTransitRouter["ServiceMode"].isNull())
|
||||
transitRoutersObject.serviceMode = valueTransitRoutersTransitRouter["ServiceMode"].asString();
|
||||
transitRouters_.push_back(transitRoutersObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -65,6 +65,8 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/GetCallDetailRecordResult.h
|
||||
include/alibabacloud/ccc/model/GetCampaignRequest.h
|
||||
include/alibabacloud/ccc/model/GetCampaignResult.h
|
||||
include/alibabacloud/ccc/model/GetCaseFileUploadUrlRequest.h
|
||||
include/alibabacloud/ccc/model/GetCaseFileUploadUrlResult.h
|
||||
include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h
|
||||
include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h
|
||||
include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h
|
||||
@@ -197,6 +199,8 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/ReadyForServiceResult.h
|
||||
include/alibabacloud/ccc/model/RegisterDeviceRequest.h
|
||||
include/alibabacloud/ccc/model/RegisterDeviceResult.h
|
||||
include/alibabacloud/ccc/model/RegisterDevicesRequest.h
|
||||
include/alibabacloud/ccc/model/RegisterDevicesResult.h
|
||||
include/alibabacloud/ccc/model/ReleaseCallRequest.h
|
||||
include/alibabacloud/ccc/model/ReleaseCallResult.h
|
||||
include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h
|
||||
@@ -294,6 +298,8 @@ set(ccc_src
|
||||
src/model/GetCallDetailRecordResult.cc
|
||||
src/model/GetCampaignRequest.cc
|
||||
src/model/GetCampaignResult.cc
|
||||
src/model/GetCaseFileUploadUrlRequest.cc
|
||||
src/model/GetCaseFileUploadUrlResult.cc
|
||||
src/model/GetHistoricalCallerReportRequest.cc
|
||||
src/model/GetHistoricalCallerReportResult.cc
|
||||
src/model/GetHistoricalInstanceReportRequest.cc
|
||||
@@ -426,6 +432,8 @@ set(ccc_src
|
||||
src/model/ReadyForServiceResult.cc
|
||||
src/model/RegisterDeviceRequest.cc
|
||||
src/model/RegisterDeviceResult.cc
|
||||
src/model/RegisterDevicesRequest.cc
|
||||
src/model/RegisterDevicesResult.cc
|
||||
src/model/ReleaseCallRequest.cc
|
||||
src/model/ReleaseCallResult.cc
|
||||
src/model/RemovePersonalNumbersFromUserRequest.cc
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
#include "model/GetCallDetailRecordResult.h"
|
||||
#include "model/GetCampaignRequest.h"
|
||||
#include "model/GetCampaignResult.h"
|
||||
#include "model/GetCaseFileUploadUrlRequest.h"
|
||||
#include "model/GetCaseFileUploadUrlResult.h"
|
||||
#include "model/GetHistoricalCallerReportRequest.h"
|
||||
#include "model/GetHistoricalCallerReportResult.h"
|
||||
#include "model/GetHistoricalInstanceReportRequest.h"
|
||||
@@ -198,6 +200,8 @@
|
||||
#include "model/ReadyForServiceResult.h"
|
||||
#include "model/RegisterDeviceRequest.h"
|
||||
#include "model/RegisterDeviceResult.h"
|
||||
#include "model/RegisterDevicesRequest.h"
|
||||
#include "model/RegisterDevicesResult.h"
|
||||
#include "model/ReleaseCallRequest.h"
|
||||
#include "model/ReleaseCallResult.h"
|
||||
#include "model/RemovePersonalNumbersFromUserRequest.h"
|
||||
@@ -323,6 +327,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCampaignResult> GetCampaignOutcome;
|
||||
typedef std::future<GetCampaignOutcome> GetCampaignOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetCampaignRequest&, const GetCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCampaignAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCaseFileUploadUrlResult> GetCaseFileUploadUrlOutcome;
|
||||
typedef std::future<GetCaseFileUploadUrlOutcome> GetCaseFileUploadUrlOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetCaseFileUploadUrlRequest&, const GetCaseFileUploadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCaseFileUploadUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHistoricalCallerReportResult> GetHistoricalCallerReportOutcome;
|
||||
typedef std::future<GetHistoricalCallerReportOutcome> GetHistoricalCallerReportOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetHistoricalCallerReportRequest&, const GetHistoricalCallerReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHistoricalCallerReportAsyncHandler;
|
||||
@@ -521,6 +528,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RegisterDeviceResult> RegisterDeviceOutcome;
|
||||
typedef std::future<RegisterDeviceOutcome> RegisterDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RegisterDeviceRequest&, const RegisterDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterDevicesResult> RegisterDevicesOutcome;
|
||||
typedef std::future<RegisterDevicesOutcome> RegisterDevicesOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RegisterDevicesRequest&, const RegisterDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDevicesAsyncHandler;
|
||||
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;
|
||||
@@ -667,6 +677,9 @@ namespace AlibabaCloud
|
||||
GetCampaignOutcome getCampaign(const Model::GetCampaignRequest &request)const;
|
||||
void getCampaignAsync(const Model::GetCampaignRequest& request, const GetCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCampaignOutcomeCallable getCampaignCallable(const Model::GetCampaignRequest& request) const;
|
||||
GetCaseFileUploadUrlOutcome getCaseFileUploadUrl(const Model::GetCaseFileUploadUrlRequest &request)const;
|
||||
void getCaseFileUploadUrlAsync(const Model::GetCaseFileUploadUrlRequest& request, const GetCaseFileUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCaseFileUploadUrlOutcomeCallable getCaseFileUploadUrlCallable(const Model::GetCaseFileUploadUrlRequest& request) const;
|
||||
GetHistoricalCallerReportOutcome getHistoricalCallerReport(const Model::GetHistoricalCallerReportRequest &request)const;
|
||||
void getHistoricalCallerReportAsync(const Model::GetHistoricalCallerReportRequest& request, const GetHistoricalCallerReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHistoricalCallerReportOutcomeCallable getHistoricalCallerReportCallable(const Model::GetHistoricalCallerReportRequest& request) const;
|
||||
@@ -865,6 +878,9 @@ namespace AlibabaCloud
|
||||
RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const;
|
||||
void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const;
|
||||
RegisterDevicesOutcome registerDevices(const Model::RegisterDevicesRequest &request)const;
|
||||
void registerDevicesAsync(const Model::RegisterDevicesRequest& request, const RegisterDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterDevicesOutcomeCallable registerDevicesCallable(const Model::RegisterDevicesRequest& request) const;
|
||||
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;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -61,16 +61,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -62,16 +62,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace AlibabaCloud
|
||||
std::string extension;
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string userId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
};
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,18 +63,18 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::string uri;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
||||
GetCallDetailRecordRequest();
|
||||
~GetCallDetailRecordRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getContactId()const;
|
||||
void setContactId(const std::string& contactId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string contactId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_GETCASEFILEUPLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLREQUEST_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 GetCaseFileUploadUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetCaseFileUploadUrlRequest();
|
||||
~GetCaseFileUploadUrlRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getFileName()const;
|
||||
void setFileName(const std::string& fileName);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string fileName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLRESULT_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 GetCaseFileUploadUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string caseFileKey;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
GetCaseFileUploadUrlResult();
|
||||
explicit GetCaseFileUploadUrlResult(const std::string &payload);
|
||||
~GetCaseFileUploadUrlResult();
|
||||
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_GETCASEFILEUPLOADURLRESULT_H_
|
||||
@@ -52,8 +52,8 @@ namespace AlibabaCloud
|
||||
struct SkillGroup
|
||||
{
|
||||
std::string description;
|
||||
std::string instanceId;
|
||||
int phoneNumberCount;
|
||||
std::string instanceId;
|
||||
int userCount;
|
||||
std::string displayName;
|
||||
std::string skillGroupId;
|
||||
@@ -62,8 +62,8 @@ namespace AlibabaCloud
|
||||
bool active;
|
||||
std::string usage;
|
||||
std::string number;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string userId;
|
||||
std::vector<PhoneNumber::SkillGroup> skillGroups;
|
||||
std::string city;
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
long callsQueued;
|
||||
long callsAbandonedInRing;
|
||||
long callsHandled;
|
||||
long callsAbandonedInIVR;
|
||||
long statsTime;
|
||||
long callsAbandonedInIVR;
|
||||
};
|
||||
struct OutboundItem
|
||||
{
|
||||
|
||||
@@ -34,14 +34,19 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string sipServerUrl;
|
||||
std::string deviceId;
|
||||
std::string userKey;
|
||||
std::string userKey2;
|
||||
std::string extension;
|
||||
std::string agentServerUrl;
|
||||
std::string deviceId;
|
||||
std::string sipServerUrl;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
std::string signature;
|
||||
std::string userKey;
|
||||
std::string displayName;
|
||||
std::string deviceExt;
|
||||
std::string signature2;
|
||||
std::string workMode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
long loggedInAgents;
|
||||
long readyAgents;
|
||||
long waitingCalls;
|
||||
long interactiveCalls;
|
||||
long totalAgents;
|
||||
long interactiveCalls;
|
||||
long workingAgents;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,15 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string extension;
|
||||
std::string loginName;
|
||||
std::string roleName;
|
||||
std::string email;
|
||||
std::string instanceId;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string deviceId;
|
||||
std::string mobile;
|
||||
std::string roleId;
|
||||
std::string extension;
|
||||
std::string roleName;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string deviceExt;
|
||||
std::string workMode;
|
||||
};
|
||||
|
||||
|
||||
@@ -42,8 +42,8 @@ namespace AlibabaCloud
|
||||
std::string channelState;
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -61,16 +61,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string description;
|
||||
std::string skillGroupName;
|
||||
std::string instanceId;
|
||||
int phoneNumberCount;
|
||||
std::string instanceId;
|
||||
int userCount;
|
||||
std::string displayName;
|
||||
std::string skillGroupId;
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace AlibabaCloud
|
||||
struct ConfigItem
|
||||
{
|
||||
std::string objectType;
|
||||
std::string instanceId;
|
||||
std::string objectId;
|
||||
std::string instanceId;
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -37,10 +37,10 @@ namespace AlibabaCloud
|
||||
struct ContactFlow
|
||||
{
|
||||
std::string type;
|
||||
std::string createdTime;
|
||||
std::string description;
|
||||
std::string contactFlowId;
|
||||
std::string createdTime;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string definition;
|
||||
bool published;
|
||||
std::vector<std::string> numberList;
|
||||
|
||||
@@ -38,17 +38,17 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct Inbound
|
||||
{
|
||||
long callsAbandonedInQueue;
|
||||
float serviceLevel20;
|
||||
long callsAbandonedInQueue;
|
||||
long totalWorkTime;
|
||||
long callsRinged;
|
||||
long totalHoldTime;
|
||||
long callsRinged;
|
||||
float averageHoldTime;
|
||||
long callsAbandoned;
|
||||
long callsOffered;
|
||||
long maxRingTime;
|
||||
long callsHold;
|
||||
long callsOffered;
|
||||
float satisfactionIndex;
|
||||
long callsHold;
|
||||
long maxAbandonedInRingTime;
|
||||
long totalRingTime;
|
||||
float handleRate;
|
||||
@@ -61,14 +61,14 @@ namespace AlibabaCloud
|
||||
float satisfactionRate;
|
||||
long callsAttendedTransferOut;
|
||||
long totalAbandonTime;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long maxAbandonedInQueueTime;
|
||||
long callsTimeout;
|
||||
long satisfactionSurveysOffered;
|
||||
long callsAbandonedInRing;
|
||||
long callsHandled;
|
||||
long callsOverflow;
|
||||
long callsHandled;
|
||||
long maxWaitTime;
|
||||
long satisfactionSurveysResponded;
|
||||
long callsAttendedTransferIn;
|
||||
@@ -80,20 +80,20 @@ namespace AlibabaCloud
|
||||
float averageWorkTime;
|
||||
long callsBlindTransferOut;
|
||||
long totalAbandonedInQueueTime;
|
||||
long callsBlindTransferIn;
|
||||
long maxWorkTime;
|
||||
long callsBlindTransferIn;
|
||||
float abandonRate;
|
||||
};
|
||||
struct Outbound
|
||||
{
|
||||
long totalDialingTime;
|
||||
long totalWorkTime;
|
||||
long callsRinged;
|
||||
long totalHoldTime;
|
||||
long callsRinged;
|
||||
float averageHoldTime;
|
||||
long maxRingTime;
|
||||
long callsHold;
|
||||
float satisfactionIndex;
|
||||
long callsHold;
|
||||
long totalRingTime;
|
||||
float averageDialingTime;
|
||||
long callsAnswered;
|
||||
@@ -104,16 +104,16 @@ namespace AlibabaCloud
|
||||
float satisfactionRate;
|
||||
long callsAttendedTransferOut;
|
||||
float answerRate;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long satisfactionSurveysOffered;
|
||||
long satisfactionSurveysResponded;
|
||||
long callsAttendedTransferIn;
|
||||
float averageRingTime;
|
||||
float averageWorkTime;
|
||||
long callsBlindTransferOut;
|
||||
long callsBlindTransferIn;
|
||||
long maxWorkTime;
|
||||
long callsBlindTransferIn;
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
@@ -122,8 +122,8 @@ namespace AlibabaCloud
|
||||
long totalCalls;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
float averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float averageHoldTime;
|
||||
float satisfactionIndex;
|
||||
float averageBreakTime;
|
||||
long satisfactionSurveysResponded;
|
||||
@@ -131,14 +131,14 @@ namespace AlibabaCloud
|
||||
float averageReadyTime;
|
||||
long totalLoggedInTime;
|
||||
long maxTalkTime;
|
||||
float satisfactionRate;
|
||||
float averageWorkTime;
|
||||
long maxReadyTime;
|
||||
float satisfactionRate;
|
||||
long maxBreakTime;
|
||||
long maxWorkTime;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
long maxBreakTime;
|
||||
float occupancyRate;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
};
|
||||
Outbound outbound;
|
||||
Overall overall;
|
||||
|
||||
@@ -54,8 +54,8 @@ namespace AlibabaCloud
|
||||
struct SkillGroup
|
||||
{
|
||||
std::string description;
|
||||
std::string instanceId;
|
||||
int phoneNumberCount;
|
||||
std::string instanceId;
|
||||
int userCount;
|
||||
std::string displayName;
|
||||
std::string skillGroupId;
|
||||
@@ -64,8 +64,8 @@ namespace AlibabaCloud
|
||||
bool active;
|
||||
std::string usage;
|
||||
std::string number;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string userId;
|
||||
std::vector<PhoneNumber::SkillGroup> skillGroups;
|
||||
std::string city;
|
||||
|
||||
@@ -58,8 +58,8 @@ namespace AlibabaCloud
|
||||
std::string description;
|
||||
std::string consoleUrl;
|
||||
std::string domainName;
|
||||
std::string aliyunUid;
|
||||
long createTime;
|
||||
std::string aliyunUid;
|
||||
std::vector<CallCenterInstance::PhoneNumber> numberList;
|
||||
std::string id;
|
||||
std::string name;
|
||||
|
||||
@@ -37,21 +37,21 @@ namespace AlibabaCloud
|
||||
struct Inbound
|
||||
{
|
||||
long totalWorkTime;
|
||||
long callsRinged;
|
||||
long totalHoldTime;
|
||||
long callsRinged;
|
||||
float averageHoldTime;
|
||||
long callsOffered;
|
||||
long maxRingTime;
|
||||
long callsHold;
|
||||
long callsOffered;
|
||||
float satisfactionIndex;
|
||||
long callsHold;
|
||||
long totalRingTime;
|
||||
float handleRate;
|
||||
long totalTalkTime;
|
||||
long maxTalkTime;
|
||||
float satisfactionRate;
|
||||
long callsAttendedTransferOut;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long satisfactionSurveysOffered;
|
||||
long callsHandled;
|
||||
long satisfactionSurveysResponded;
|
||||
@@ -59,19 +59,19 @@ namespace AlibabaCloud
|
||||
float averageRingTime;
|
||||
float averageWorkTime;
|
||||
long callsBlindTransferOut;
|
||||
long callsBlindTransferIn;
|
||||
long maxWorkTime;
|
||||
long callsBlindTransferIn;
|
||||
};
|
||||
struct Outbound
|
||||
{
|
||||
long totalDialingTime;
|
||||
long totalWorkTime;
|
||||
long callsRinged;
|
||||
long totalHoldTime;
|
||||
long callsRinged;
|
||||
float averageHoldTime;
|
||||
long maxRingTime;
|
||||
long callsHold;
|
||||
float satisfactionIndex;
|
||||
long callsHold;
|
||||
long totalRingTime;
|
||||
float averageDialingTime;
|
||||
long callsAnswered;
|
||||
@@ -82,27 +82,27 @@ namespace AlibabaCloud
|
||||
float satisfactionRate;
|
||||
long callsAttendedTransferOut;
|
||||
float answerRate;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long satisfactionSurveysOffered;
|
||||
long satisfactionSurveysResponded;
|
||||
long callsAttendedTransferIn;
|
||||
float averageRingTime;
|
||||
float averageWorkTime;
|
||||
long callsBlindTransferOut;
|
||||
long callsBlindTransferIn;
|
||||
long maxWorkTime;
|
||||
long callsBlindTransferIn;
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
long totalReadyTime;
|
||||
long lastCheckoutTime;
|
||||
long totalBreakTime;
|
||||
long totalCalls;
|
||||
long totalBreakTime;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
float averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float averageHoldTime;
|
||||
float satisfactionIndex;
|
||||
float averageBreakTime;
|
||||
long firstCheckInTime;
|
||||
@@ -114,11 +114,11 @@ namespace AlibabaCloud
|
||||
float averageWorkTime;
|
||||
long maxReadyTime;
|
||||
float satisfactionRate;
|
||||
long maxBreakTime;
|
||||
long maxWorkTime;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
long maxBreakTime;
|
||||
float occupancyRate;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
};
|
||||
Outbound outbound;
|
||||
Overall overall;
|
||||
|
||||
@@ -36,17 +36,17 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct Inbound
|
||||
{
|
||||
long callsAbandonedInQueue;
|
||||
float serviceLevel20;
|
||||
long callsAbandonedInQueue;
|
||||
long totalWorkTime;
|
||||
long callsRinged;
|
||||
long totalHoldTime;
|
||||
long callsRinged;
|
||||
float averageHoldTime;
|
||||
long callsAbandoned;
|
||||
long callsOffered;
|
||||
long maxRingTime;
|
||||
long callsHold;
|
||||
long callsOffered;
|
||||
float satisfactionIndex;
|
||||
long callsHold;
|
||||
long maxAbandonedInRingTime;
|
||||
long totalRingTime;
|
||||
float handleRate;
|
||||
@@ -59,14 +59,14 @@ namespace AlibabaCloud
|
||||
float satisfactionRate;
|
||||
long callsAttendedTransferOut;
|
||||
long totalAbandonTime;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long maxAbandonedInQueueTime;
|
||||
long callsTimeout;
|
||||
long satisfactionSurveysOffered;
|
||||
long callsAbandonedInRing;
|
||||
long callsHandled;
|
||||
long callsOverflow;
|
||||
long callsHandled;
|
||||
long maxWaitTime;
|
||||
long satisfactionSurveysResponded;
|
||||
long callsAttendedTransferIn;
|
||||
@@ -78,20 +78,20 @@ namespace AlibabaCloud
|
||||
float averageWorkTime;
|
||||
long callsBlindTransferOut;
|
||||
long totalAbandonedInQueueTime;
|
||||
long callsBlindTransferIn;
|
||||
long maxWorkTime;
|
||||
long callsBlindTransferIn;
|
||||
float abandonRate;
|
||||
};
|
||||
struct Outbound
|
||||
{
|
||||
long totalDialingTime;
|
||||
long totalWorkTime;
|
||||
long callsRinged;
|
||||
long totalHoldTime;
|
||||
long callsRinged;
|
||||
float averageHoldTime;
|
||||
long maxRingTime;
|
||||
long callsHold;
|
||||
float satisfactionIndex;
|
||||
long callsHold;
|
||||
long totalRingTime;
|
||||
float averageDialingTime;
|
||||
long callsAnswered;
|
||||
@@ -102,16 +102,16 @@ namespace AlibabaCloud
|
||||
float satisfactionRate;
|
||||
long callsAttendedTransferOut;
|
||||
float answerRate;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
long satisfactionSurveysOffered;
|
||||
long satisfactionSurveysResponded;
|
||||
long callsAttendedTransferIn;
|
||||
float averageRingTime;
|
||||
float averageWorkTime;
|
||||
long callsBlindTransferOut;
|
||||
long callsBlindTransferIn;
|
||||
long maxWorkTime;
|
||||
long callsBlindTransferIn;
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
@@ -120,8 +120,8 @@ namespace AlibabaCloud
|
||||
long totalCalls;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
float averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float averageHoldTime;
|
||||
float satisfactionIndex;
|
||||
float averageBreakTime;
|
||||
long satisfactionSurveysResponded;
|
||||
@@ -129,14 +129,14 @@ namespace AlibabaCloud
|
||||
float averageReadyTime;
|
||||
long totalLoggedInTime;
|
||||
long maxTalkTime;
|
||||
float satisfactionRate;
|
||||
float averageWorkTime;
|
||||
long maxReadyTime;
|
||||
float satisfactionRate;
|
||||
long maxBreakTime;
|
||||
long maxWorkTime;
|
||||
float averageTalkTime;
|
||||
long maxHoldTime;
|
||||
long maxBreakTime;
|
||||
float occupancyRate;
|
||||
long maxHoldTime;
|
||||
float averageTalkTime;
|
||||
};
|
||||
Outbound outbound;
|
||||
Overall overall;
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace AlibabaCloud
|
||||
std::string instance;
|
||||
std::string nodeName;
|
||||
long enterTime;
|
||||
std::string contactId;
|
||||
std::string nodeExitCode;
|
||||
std::string contactId;
|
||||
std::string channelId;
|
||||
std::string channelVariables;
|
||||
std::string flowId;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool active;
|
||||
std::string number;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string city;
|
||||
std::string province;
|
||||
};
|
||||
|
||||
@@ -39,8 +39,8 @@ namespace AlibabaCloud
|
||||
bool active;
|
||||
std::string usage;
|
||||
std::string number;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string city;
|
||||
std::string province;
|
||||
};
|
||||
|
||||
@@ -44,8 +44,8 @@ namespace AlibabaCloud
|
||||
std::string name;
|
||||
};
|
||||
std::string usage;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowId;
|
||||
std::string createTime;
|
||||
std::vector<PhoneNumber::SkillGroup> skillGroups;
|
||||
std::string city;
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
std::string contactType;
|
||||
std::string contactDisposition;
|
||||
std::string instanceId;
|
||||
std::string agentIds;
|
||||
long startTime;
|
||||
std::string agentIds;
|
||||
long duration;
|
||||
std::string contactId;
|
||||
std::string callDuration;
|
||||
|
||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
||||
ListSipCallRecordsRequest();
|
||||
~ListSipCallRecordsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getContactIdList()const;
|
||||
void setContactIdList(const std::string& contactIdList);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string contactIdList_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct UserSkillLevel
|
||||
{
|
||||
std::string skillGroupName;
|
||||
std::string skillLevel;
|
||||
std::string skillGroupName;
|
||||
std::string skillGroupId;
|
||||
};
|
||||
int totalCount;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string loginName;
|
||||
std::string roleName;
|
||||
std::string skillGroupName;
|
||||
int skillLevel;
|
||||
std::string skillGroupName;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string skillGroupId;
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string loginName;
|
||||
std::string email;
|
||||
std::string deviceId;
|
||||
std::vector<UserDetail::UserSkillLevel> skillLevelList;
|
||||
bool primaryAccount;
|
||||
long ramId;
|
||||
@@ -59,9 +60,12 @@ namespace AlibabaCloud
|
||||
std::string displayId;
|
||||
std::string mobile;
|
||||
std::string roleId;
|
||||
std::string extension;
|
||||
std::string roleName;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string deviceExt;
|
||||
std::string workMode;
|
||||
};
|
||||
int totalCount;
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace AlibabaCloud
|
||||
std::string releaseInitiator;
|
||||
std::string callType;
|
||||
int index;
|
||||
std::string associatedData;
|
||||
std::string skillGroupId;
|
||||
std::string associatedData;
|
||||
std::string channelId;
|
||||
long timestamp;
|
||||
std::string releaseReason;
|
||||
@@ -63,16 +63,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -62,16 +62,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string mobile;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
std::string extension;
|
||||
std::string userId;
|
||||
long heartbeat;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
long reserved;
|
||||
};
|
||||
UserContext userContext;
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace AlibabaCloud
|
||||
std::string extension;
|
||||
std::string userState;
|
||||
std::string instanceId;
|
||||
std::string breakCode;
|
||||
std::string deviceId;
|
||||
std::string userId;
|
||||
std::string breakCode;
|
||||
bool outboundScenario;
|
||||
std::string jobId;
|
||||
std::string workMode;
|
||||
std::string jobId;
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
};
|
||||
|
||||
|
||||
57
ccc/include/alibabacloud/ccc/model/RegisterDevicesRequest.h
Normal file
57
ccc/include/alibabacloud/ccc/model/RegisterDevicesRequest.h
Normal 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_REGISTERDEVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESREQUEST_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 RegisterDevicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RegisterDevicesRequest();
|
||||
~RegisterDevicesRequest();
|
||||
|
||||
std::string getUserIdListJson()const;
|
||||
void setUserIdListJson(const std::string& userIdListJson);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string userIdListJson_;
|
||||
std::string deviceId_;
|
||||
std::string password_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/RegisterDevicesResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/RegisterDevicesResult.h
Normal 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_REGISTERDEVICESRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESRESULT_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 RegisterDevicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RegisterDevicesResult();
|
||||
explicit RegisterDevicesResult(const std::string &payload);
|
||||
~RegisterDevicesResult();
|
||||
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_REGISTERDEVICESRESULT_H_
|
||||
@@ -69,6 +69,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
};
|
||||
UserContext userContext;
|
||||
long contextId;
|
||||
CallContext callContext;
|
||||
};
|
||||
|
||||
|
||||
@@ -843,6 +843,42 @@ CCCClient::GetCampaignOutcomeCallable CCCClient::getCampaignCallable(const GetCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::GetCaseFileUploadUrlOutcome CCCClient::getCaseFileUploadUrl(const GetCaseFileUploadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetCaseFileUploadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetCaseFileUploadUrlOutcome(GetCaseFileUploadUrlResult(outcome.result()));
|
||||
else
|
||||
return GetCaseFileUploadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::getCaseFileUploadUrlAsync(const GetCaseFileUploadUrlRequest& request, const GetCaseFileUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getCaseFileUploadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::GetCaseFileUploadUrlOutcomeCallable CCCClient::getCaseFileUploadUrlCallable(const GetCaseFileUploadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetCaseFileUploadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getCaseFileUploadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::GetHistoricalCallerReportOutcome CCCClient::getHistoricalCallerReport(const GetHistoricalCallerReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3219,6 +3255,42 @@ CCCClient::RegisterDeviceOutcomeCallable CCCClient::registerDeviceCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::RegisterDevicesOutcome CCCClient::registerDevices(const RegisterDevicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RegisterDevicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RegisterDevicesOutcome(RegisterDevicesResult(outcome.result()));
|
||||
else
|
||||
return RegisterDevicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::registerDevicesAsync(const RegisterDevicesRequest& request, const RegisterDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, registerDevices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::RegisterDevicesOutcomeCallable CCCClient::registerDevicesCallable(const RegisterDevicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RegisterDevicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->registerDevices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ReleaseCallOutcome CCCClient::releaseCall(const ReleaseCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,18 +39,18 @@ void AssignUsersResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Sync"].isNull())
|
||||
sync_ = value["Sync"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["WorkflowId"].isNull())
|
||||
workflowId_ = value["WorkflowId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -51,63 +51,63 @@ void BargeInCallResult::parse(const std::string &payload)
|
||||
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["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].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["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].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["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["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();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
|
||||
@@ -51,59 +51,59 @@ void BlindTransferResult::parse(const std::string &payload)
|
||||
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["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].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();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].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["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["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();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
|
||||
@@ -53,61 +53,61 @@ void CancelAttendedTransferResult::parse(const std::string &payload)
|
||||
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["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].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();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].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["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["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();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
|
||||
@@ -40,24 +40,24 @@ void ChangeWorkModeResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["BreakCode"].isNull())
|
||||
data_.breakCode = dataNode["BreakCode"].asString();
|
||||
if(!dataNode["DeviceId"].isNull())
|
||||
data_.deviceId = dataNode["DeviceId"].asString();
|
||||
if(!dataNode["Extension"].isNull())
|
||||
data_.extension = dataNode["Extension"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["OutboundScenario"].isNull())
|
||||
data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true";
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["UserState"].isNull())
|
||||
data_.userState = dataNode["UserState"].asString();
|
||||
if(!dataNode["WorkMode"].isNull())
|
||||
data_.workMode = dataNode["WorkMode"].asString();
|
||||
if(!dataNode["DeviceId"].isNull())
|
||||
data_.deviceId = dataNode["DeviceId"].asString();
|
||||
if(!dataNode["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["BreakCode"].isNull())
|
||||
data_.breakCode = dataNode["BreakCode"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["OutboundScenario"].isNull())
|
||||
data_.outboundScenario = dataNode["OutboundScenario"].asString() == "true";
|
||||
if(!dataNode["UserState"].isNull())
|
||||
data_.userState = dataNode["UserState"].asString();
|
||||
auto allSignedSkillGroupIdList = dataNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.signedSkillGroupIdList.push_back(value.asString());
|
||||
|
||||
@@ -51,67 +51,67 @@ void CoachCallResult::parse(const std::string &payload)
|
||||
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["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].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["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].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();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Uri"].isNull())
|
||||
data_.userContext.uri = userContextNode["Uri"].asString();
|
||||
if(!userContextNode["DeviceState"].isNull())
|
||||
data_.userContext.deviceState = userContextNode["DeviceState"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
|
||||
@@ -53,63 +53,63 @@ void CompleteAttendedTransferResult::parse(const std::string &payload)
|
||||
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["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Index"].isNull())
|
||||
channelContextObject.index = std::stoi(callContextNodeChannelContextsChannelContext["Index"].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["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["SkillGroupId"].isNull())
|
||||
channelContextObject.skillGroupId = callContextNodeChannelContextsChannelContext["SkillGroupId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].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["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["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();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
|
||||
@@ -42,14 +42,14 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void CreateSkillGroupResult::parse(const std::string &payload)
|
||||
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["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["SkillGroupId"].isNull())
|
||||
|
||||
@@ -42,18 +42,18 @@ void CreateUserResult::parse(const std::string &payload)
|
||||
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["Email"].isNull())
|
||||
data_.email = dataNode["Email"].asString();
|
||||
if(!dataNode["LoginName"].isNull())
|
||||
data_.loginName = dataNode["LoginName"].asString();
|
||||
if(!dataNode["WorkMode"].isNull())
|
||||
data_.workMode = dataNode["WorkMode"].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());
|
||||
|
||||
@@ -27,17 +27,6 @@ GetCallDetailRecordRequest::GetCallDetailRecordRequest() :
|
||||
GetCallDetailRecordRequest::~GetCallDetailRecordRequest()
|
||||
{}
|
||||
|
||||
std::string GetCallDetailRecordRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetCallDetailRecordRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetCallDetailRecordRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
@@ -49,3 +38,14 @@ void GetCallDetailRecordRequest::setContactId(const std::string& contactId)
|
||||
setParameter("ContactId", contactId);
|
||||
}
|
||||
|
||||
std::string GetCallDetailRecordRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetCallDetailRecordRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user