Compare commits
212 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfe051d983 | ||
|
|
5e5610d91f | ||
|
|
88ef8f3618 | ||
|
|
7f3826c2f9 | ||
|
|
596b96d689 | ||
|
|
43169f9d50 | ||
|
|
c99809b8e4 | ||
|
|
85e2f3ebe4 | ||
|
|
a6d33574bd | ||
|
|
c17dc7c79a | ||
|
|
563e907601 | ||
|
|
33a44c856d | ||
|
|
f877a9ef39 | ||
|
|
eb7ab33440 | ||
|
|
6a5f788210 | ||
|
|
fdc3251134 | ||
|
|
043df1b674 | ||
|
|
5f3caa1943 | ||
|
|
01dcff0b7c | ||
|
|
ae7e11733f | ||
|
|
da28515bd8 | ||
|
|
138dbdc61e | ||
|
|
b429dcc915 | ||
|
|
57daafe4cc | ||
|
|
ecd09578e8 | ||
|
|
78df52c437 | ||
|
|
e477d06dea | ||
|
|
e00a04b071 | ||
|
|
48fc5dfe8c | ||
|
|
6cfcc11657 | ||
|
|
7b7c45cb26 | ||
|
|
cf825c63a5 | ||
|
|
fc29617d7d | ||
|
|
352be1dd14 | ||
|
|
66910b1961 | ||
|
|
790577e792 | ||
|
|
1ee62b8677 | ||
|
|
21edc7f283 | ||
|
|
919f98cbdd | ||
|
|
ad045aa702 | ||
|
|
6e65f364a1 | ||
|
|
bc0df2dcec | ||
|
|
9664fb1b00 | ||
|
|
0df947c481 | ||
|
|
9b7dbef9c8 | ||
|
|
e5522c68c8 | ||
|
|
24eaa468b9 | ||
|
|
44ac453806 | ||
|
|
aa71e41fab | ||
|
|
2fb169a7d4 | ||
|
|
bdfb1e8514 | ||
|
|
cc52fb9dd8 | ||
|
|
893339c43d | ||
|
|
012634c7ea | ||
|
|
892b77665e | ||
|
|
ded565f3f3 | ||
|
|
66cfddf930 | ||
|
|
819afce83a | ||
|
|
e93d1a7c5c | ||
|
|
6072a0309b | ||
|
|
cb0d2daccc | ||
|
|
231cbea1ef | ||
|
|
cbab25c0c1 | ||
|
|
da6b0bb892 | ||
|
|
76e63d3f8d | ||
|
|
374b56dd63 | ||
|
|
f189a9dbb2 | ||
|
|
f87f6a1649 | ||
|
|
d26289131f | ||
|
|
6119508e3b | ||
|
|
1f03f4f394 | ||
|
|
214a571b8a | ||
|
|
b3d7dcffc4 | ||
|
|
623d36b29e | ||
|
|
643f3a01b8 | ||
|
|
61e665d20e | ||
|
|
13aa2520bf | ||
|
|
bc8404e573 | ||
|
|
59a99f2145 | ||
|
|
f0ad440f3d | ||
|
|
6b2d4bad71 | ||
|
|
a2308b2c95 | ||
|
|
1a86503742 | ||
|
|
ccec5843c8 | ||
|
|
6182017316 | ||
|
|
a2e022baf7 | ||
|
|
cb75e762ab | ||
|
|
e82b02a876 | ||
|
|
d66718d980 | ||
|
|
5e73931c1d | ||
|
|
f2a390fbc8 | ||
|
|
46a517571d | ||
|
|
eadff9b0ef | ||
|
|
6e9b1bebe0 | ||
|
|
857329972e | ||
|
|
b2637b8f3c | ||
|
|
844fe8856e | ||
|
|
02d22470b7 | ||
|
|
6c1391eb82 | ||
|
|
60a0077509 | ||
|
|
ee5b4ca599 | ||
|
|
e96ffc6afe | ||
|
|
19a082eb56 | ||
|
|
002d5fb06f | ||
|
|
c960a34373 | ||
|
|
84adbb2cb8 | ||
|
|
db4f78e6de | ||
|
|
0ef5cd3c63 | ||
|
|
0625a8a681 | ||
|
|
aa84ad7f2e | ||
|
|
94a811bc97 | ||
|
|
dd85f78d9d | ||
|
|
aa1d797d41 | ||
|
|
42253f9e7a | ||
|
|
1c29ae37e8 | ||
|
|
e5d87b63dc | ||
|
|
317456660d | ||
|
|
a9f9414abb | ||
|
|
5aaae25e49 | ||
|
|
9a2a29f308 | ||
|
|
127c992829 | ||
|
|
e16ab91844 | ||
|
|
3cb89d84bd | ||
|
|
7282a6a906 | ||
|
|
0ca5beb247 | ||
|
|
13ea4f0698 | ||
|
|
fe5f64d980 | ||
|
|
51b845ce56 | ||
|
|
f6d7b208a9 | ||
|
|
076567c0c7 | ||
|
|
20195cdd92 | ||
|
|
7e24ec0ded | ||
|
|
6443abbf11 | ||
|
|
33d0687c01 | ||
|
|
fb82ffd6b1 | ||
|
|
a9f8d260ed | ||
|
|
62484954fe | ||
|
|
0880c7f722 | ||
|
|
364cab6ffa | ||
|
|
c64664f7bb | ||
|
|
9d5cbb556b | ||
|
|
32f06474af | ||
|
|
9117549b3d | ||
|
|
4c070ae8ee | ||
|
|
8eb39b6f8f | ||
|
|
ff2fa8f66f | ||
|
|
a6256086a8 | ||
|
|
9e756213fa | ||
|
|
87f2db5065 | ||
|
|
8bc596cc81 | ||
|
|
dacb1c69b7 | ||
|
|
4c89122ae8 | ||
|
|
b333d4f03c | ||
|
|
b1d844c587 | ||
|
|
383f1e0cd3 | ||
|
|
6d41511442 | ||
|
|
d3de3f8736 | ||
|
|
02c620b5a5 | ||
|
|
459c875c7d | ||
|
|
3d5f029c8a | ||
|
|
62e3b9762a | ||
|
|
134bd61cdc | ||
|
|
6d9e7147f1 | ||
|
|
d63881daa0 | ||
|
|
06552e53d8 | ||
|
|
d29cf439dd | ||
|
|
4782139aab | ||
|
|
07e2b81c13 | ||
|
|
1911aed209 | ||
|
|
af057eb153 | ||
|
|
76c5ad81b7 | ||
|
|
339cf28edd | ||
|
|
6ecfd8332a | ||
|
|
1c441b53f5 | ||
|
|
482abf2f25 | ||
|
|
8968d04f56 | ||
|
|
a28f39fd8c | ||
|
|
ff129e3660 | ||
|
|
3ea4f50703 | ||
|
|
7f8b47c92f | ||
|
|
4fa1912a54 | ||
|
|
c3794202f0 | ||
|
|
442f784284 | ||
|
|
9c389f5683 | ||
|
|
a1ba8b4381 | ||
|
|
74bebe2a77 | ||
|
|
d27410f202 | ||
|
|
3b1093ffe3 | ||
|
|
f2c01c7abe | ||
|
|
e34557650b | ||
|
|
c3ff60fd73 | ||
|
|
4caef74421 | ||
|
|
0dd42f38c4 | ||
|
|
b61a72e58e | ||
|
|
b11cedef5e | ||
|
|
e19f2fa847 | ||
|
|
4a15d5788a | ||
|
|
85da4ff587 | ||
|
|
7721032f82 | ||
|
|
2d1a1c0e06 | ||
|
|
7bf9e855c8 | ||
|
|
b87f210c4c | ||
|
|
24a354cffd | ||
|
|
7be1f34dae | ||
|
|
89523ed659 | ||
|
|
6b7af1732d | ||
|
|
f725320265 | ||
|
|
728ece9cd1 | ||
|
|
dd93fdf1c5 | ||
|
|
78ee1b30bd | ||
|
|
96d9eb7efd | ||
|
|
e796f2acdb |
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
name: "Bug Report"
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
<!--
|
||||
Thank you for reporting a possible bug in Alibaba Cloud C++ SDK
|
||||
|
||||
Please fill in as much of the template below as you can.
|
||||
|
||||
Product and API: the product and API you are working on when bug occurs
|
||||
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
|
||||
How to Reproduce: If possible, please provide code that demonstrates the problem,
|
||||
keeping it as simple and free of external dependencies as you can.
|
||||
|
||||
If crash, please provide the stack trace.
|
||||
|
||||
If build error, please provide compiler information: compiler and version, etc
|
||||
-->
|
||||
|
||||
* **Product and API**:
|
||||
* **Platform**:
|
||||
* **How to Reproduce**
|
||||
|
||||
<!-- Please provide more details below this comment. -->
|
||||
28
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
Normal file
28
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
name: "缺陷问题反馈"
|
||||
about: 提交缺陷问题反馈
|
||||
|
||||
---
|
||||
|
||||
<!--
|
||||
感谢提交问题反馈。
|
||||
|
||||
请提供尽量全面的信息协助问题定位修复。
|
||||
|
||||
产品和接口:问题发生时工作所在的产品和调用的API
|
||||
平台:操作系统信息,类型,版本
|
||||
|
||||
如果可能,请提供一份最小问题复现代码。
|
||||
|
||||
如果崩溃,请提供错误栈。
|
||||
|
||||
如果编译出错,请提供 cmake 版本,编译器版本,编译命令等信息。
|
||||
|
||||
-->
|
||||
|
||||
* **产品和接口**:
|
||||
* **平台**:
|
||||
* **最小代码**:
|
||||
|
||||
<!-- 请提供其他可能协助问题定位的信息 -->
|
||||
|
||||
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
tools/endpoints.json
|
||||
initCoverage.info
|
||||
testCoverage.info
|
||||
coverageReport/
|
||||
Testing/
|
||||
.vscode/
|
||||
ft_build/
|
||||
ut_build/
|
||||
sdk_build/
|
||||
test/httpserver/node_modules
|
||||
test/httpserver/package-lock.json
|
||||
test/httpserver/nohup.out
|
||||
|
||||
15
.travis.yml
Normal file
15
.travis.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
dist: xenial
|
||||
sudo: require
|
||||
language: cpp
|
||||
compiler: gcc
|
||||
|
||||
install:
|
||||
- sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev nodejs npm
|
||||
|
||||
script:
|
||||
- ./unit_test.sh
|
||||
- ./generate_code_cov.sh
|
||||
- ./function_test.sh
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
16
3rdparty/CMakeLists.txt
vendored
16
3rdparty/CMakeLists.txt
vendored
@@ -16,7 +16,8 @@
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Add(jsoncpp
|
||||
URL https://github.com/open-source-parsers/jsoncpp/archive/0.10.5.tar.gz
|
||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp-0.10.5.tar.gz
|
||||
URL_HASH MD5=db146bac5a126ded9bd728ab7b61ed6b
|
||||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
-DJSONCPP_WITH_TESTS=OFF
|
||||
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
|
||||
@@ -28,7 +29,8 @@ if(CMAKE_HOST_WIN32)
|
||||
)
|
||||
|
||||
ExternalProject_Add(curl
|
||||
URL https://github.com/curl/curl/releases/download/curl-7_55_1/curl-7.55.1.tar.gz
|
||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/curl-7.55.1.tar.gz
|
||||
URL_HASH MD5=3b832160a8c9c40075fd71191960307c
|
||||
CMAKE_ARGS -DBUILD_CURL_EXE=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
@@ -40,10 +42,12 @@ ExternalProject_Add(curl
|
||||
endif()
|
||||
|
||||
ExternalProject_Add(catch
|
||||
URL https://github.com/catchorg/Catch2/releases/download/v2.0.1/catch.hpp
|
||||
DOWNLOAD_NO_EXTRACT 1
|
||||
CONFIGURE_COMMAND ""
|
||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/catch-2.0.1.hpp
|
||||
URL_HASH MD5=9b3d2cb5c0f9532cddfbbfd0a622f0af
|
||||
DOWNLOAD_COMMAND ""
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND ""
|
||||
INSTALL_COMMAND
|
||||
${CMAKE_COMMAND} -E copy_if_different <DOWNLOADED_FILE> <INSTALL_DIR>
|
||||
${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/catch-2.0.1.hpp <INSTALL_DIR>/catch.hpp
|
||||
)
|
||||
|
||||
12012
3rdparty/catch-2.0.1.hpp
vendored
Normal file
12012
3rdparty/catch-2.0.1.hpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
3rdparty/curl-7.55.1.tar.gz
vendored
Normal file
BIN
3rdparty/curl-7.55.1.tar.gz
vendored
Normal file
Binary file not shown.
BIN
3rdparty/jsoncpp-0.10.5.tar.gz
vendored
Normal file
BIN
3rdparty/jsoncpp-0.10.5.tar.gz
vendored
Normal file
Binary file not shown.
599
CHANGELOG
599
CHANGELOG
@@ -1,3 +1,602 @@
|
||||
2019-03-13 Version: 1.34.15
|
||||
1, Update Dependency
|
||||
|
||||
2019-03-13 Version: 1.34.14
|
||||
1, Update Dependency
|
||||
|
||||
2019-03-13 Version: 1.34.13
|
||||
1, Update Dependency
|
||||
|
||||
2019-03-13 Version: 1.34.12
|
||||
1, Distinguish between system and service parameters
|
||||
|
||||
2019-03-13 Version: 1.34.11
|
||||
1, add DescribeDemands interface
|
||||
|
||||
2019-03-13 Version: 1.34.10
|
||||
1, Distinguish between system and service parameters
|
||||
|
||||
2019-03-12 Version: 1.34.9
|
||||
1, add agency infomation
|
||||
2, update sdk core resources
|
||||
|
||||
2018-12-20 Version: 1.34.8
|
||||
1, Sync CDN API.
|
||||
|
||||
2018-12-11 Version: 1.34.7
|
||||
1, Sync CDN API.
|
||||
|
||||
2018-12-06 Version: 1.34.6
|
||||
1, Add DescribeLiveDomainRealTimeBpsData, DescribeLiveDomainRealTimeHttpCodeData,DescribeLiveDomainRealTimeTrafficData.
|
||||
2, Update DescirbeCasterChannels and DescribeCasterStreamUrl.
|
||||
|
||||
|
||||
2018-12-03 Version: 1.34.5
|
||||
1, Sync CDN API.
|
||||
|
||||
2018-12-03 Version: 1.34.4
|
||||
1, Sync CDN API.
|
||||
|
||||
2018-12-03 Version: 1.34.3
|
||||
1, Update 2014-11-11 API.
|
||||
|
||||
2018-12-03 Version: 1.34.2
|
||||
1, Add a parameter to RemoveInstances.
|
||||
|
||||
2018-11-30 Version: 1.34.1
|
||||
1, Add new apis called AddVodTemplate, UpdateVodTemplate, DeleteVodTemplate, ListVodTemplate, GetVodTemplate and SetDefaultVodTemplate which support vodtemplate feature.
|
||||
2, Add a new api called CreateUploadAttachedMedia to get upload auth for attached media
|
||||
3, Add new apis called AddWorkFlow, UpdateWorkFlow, DeleteWorkFlow, ListWorkFlow, GetWorkFlow which support workflow feature.
|
||||
|
||||
2018-11-28 Version: 1.34.0
|
||||
1, Add RedeployInstance interface, and support to migrate ecs instance with specified maintenance events actively
|
||||
|
||||
2018-11-28 Version: 1.33.6
|
||||
1, Add APIs InvokeThingsService, SetDevicesProperty and QueryDeviceByTags .
|
||||
|
||||
2018-11-27 Version: 1.33.5
|
||||
1, Add APIs InvokeThingsService, SetDevicesProperty and QueryDeviceByTags .
|
||||
|
||||
2018-11-22 Version: 1.33.4
|
||||
1, Increase the scene field
|
||||
|
||||
2018-11-22 Version: 1.33.3
|
||||
1, Add parameter DeletionProtection when creating instance and modifying instance attribute
|
||||
|
||||
|
||||
2018-11-21 Version: 1.33.2
|
||||
1, Add new apis called AddWatermark, UpdateWatermark, DeleteWatermark, ListWatermarks, GetWatermark and SetDefaultWatermark which support watermark feature.
|
||||
2, Add a new api called RegisterMedia which supports registration of audio and video media files that already exist in the OSS bucket.
|
||||
3, Add the field named OverrideParams to SubmitTranscodeJobs api request.
|
||||
|
||||
2018-11-16 Version: 1.33.1
|
||||
1, update version
|
||||
|
||||
2018-11-15 Version: 1.33.0
|
||||
1, ECS support ipv6Address
|
||||
|
||||
2018-11-14 Version: 1.32.0
|
||||
1, Better support for hybrid cluster.
|
||||
|
||||
2018-11-13 Version: 1.31.0
|
||||
1, Add FuzzyMatchDomainSensitiveWord interface,Support fuzzy matching sensitive words.
|
||||
2, Add BatchFuzzyMatchDomainSensitiveWord interface,Support batch fuzzy matching sensitive words.
|
||||
3, Add DynamicCheck properties for results of CheckDomain interface.
|
||||
|
||||
2018-11-10 Version: 1.30.5
|
||||
1, Update SetWaitingRoomConfig.
|
||||
|
||||
2018-11-08 Version: 1.30.4
|
||||
1, Fix the http response receive bug
|
||||
|
||||
2018-11-08 Version: 1.30.3
|
||||
1, Update Version.
|
||||
|
||||
|
||||
2018-11-07 Version: 1.30.2
|
||||
1, Add API CreateTemplate,DeleteTemplate,GetAllTemplate,GetTemplateInfo.
|
||||
2, Add API GetTaskStatus,StartTask,StopTask.
|
||||
3, Add API GetTaskParam,UpdateTaskParam.
|
||||
|
||||
|
||||
2018-11-02 Version: 1.30.1
|
||||
1, deviceName and productKey can be used instead of iotId.
|
||||
2, New productKey fields for queryauthentication output parameter.
|
||||
3, New deviceName fields for queryauthentication output parameter.
|
||||
|
||||
2018-11-02 Version: 1.30.0
|
||||
1, first version
|
||||
|
||||
2018-10-31 Version: 1.29.5
|
||||
1, Update SetWaitingRoomConfig.
|
||||
|
||||
2018-10-31 Version: 1.29.4
|
||||
1, Add SetWaitingRoomConfig.
|
||||
|
||||
2018-10-31 Version: 1.29.3
|
||||
1, Add SetWaitingRoomConfig.
|
||||
|
||||
2018-10-30 Version: 1.29.2
|
||||
1, Add API DescribeLiveDomainBpsData,DescribeLiveDomainTrafficData.
|
||||
|
||||
|
||||
2018-10-26 Version: 1.29.1
|
||||
1, Return AuditConclusions in SubmitMaterials API.
|
||||
|
||||
2018-10-25 Version: 1.29.0
|
||||
1, Add apis for trademark domains.
|
||||
2, Add QueryDomainAdminDivision api.
|
||||
|
||||
2018-10-16 Version: 1.28.3
|
||||
1, This version add MetricQuery interface to support retcode and apm metric query.
|
||||
|
||||
2018-10-16 Version: 1.28.2
|
||||
1, This version add MetricQuery interface to support retcode and apm metric query.
|
||||
|
||||
2018-10-16 Version: 1.28.1
|
||||
1, This version add MetricQuery interface to support retcode and apm metric query.
|
||||
|
||||
2018-10-16 Version: 1.28.0
|
||||
1, Delete deprecated and unusable apis : AddIpRange, UnbindIpRange, BindIpRange, DescribeIntranetAttributeKb, DescribeIpRanges, ModifyIntranetBandwidthKb, DescribeEventDetail, CheckAutoSnapshotPolicy, CheckDiskEnableAutoSnapshotValidation, DescribeAutoSnapshotPolicy
|
||||
2, Add instance topology api DescribeInstanceTopology
|
||||
3, Add mount point in DescribeDisksFullStatus
|
||||
|
||||
|
||||
2018-10-16 Version: 1.27.11
|
||||
1, remove set group tags API.
|
||||
|
||||
2018-10-13 Version: 1.27.10
|
||||
1, Add device group related APIs.
|
||||
|
||||
2018-10-13 Version: 1.27.9
|
||||
1, Add device group related APIs.
|
||||
|
||||
2018-10-13 Version: 1.27.8
|
||||
1, Add device group related APIs.
|
||||
|
||||
2018-10-11 Version: 1.27.7
|
||||
1, Add a new api called DeleteMezzanines to clear mezzanine infos and storages.
|
||||
2, Add the field called PlayConfig to GetVideoPlayAuth and GetPlayInfo api request.
|
||||
3, Add a new api called UpdateImageInfos to update image information.
|
||||
|
||||
2018-10-09 Version: 1.27.6
|
||||
1, v1.0.0-->v1.0.1
|
||||
2, provider new region:beijing/shenzhen/zhangjiakou
|
||||
3, provider service for VPC user;
|
||||
|
||||
2018-09-30 Version: 1.27.5
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-09-29 Version: 1.27.4
|
||||
1, Sync cdn api.
|
||||
|
||||
2018-09-29 Version: 1.27.3
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-09-29 Version: 1.27.2
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-09-28 Version: 1.27.1
|
||||
1, Add one api, QueryAppDeviceList.
|
||||
|
||||
2018-09-27 Version: 1.27.0
|
||||
1, Add new API ListQueues, modify API SetAutoScaleConfig to support queue related features.
|
||||
|
||||
2018-09-27 Version: 1.26.4
|
||||
1, modify getFaces Api
|
||||
|
||||
2018-09-27 Version: 1.26.3
|
||||
1, modify getFaces Api
|
||||
|
||||
2018-09-25 Version: 1.26.2
|
||||
1, Add GetHotlineRecord and QueryHotlineRecord interface, version 1.0.0
|
||||
|
||||
2018-09-17 Version: 1.26.1
|
||||
1, Add field for AddCasterVideoResource, DescribeCasterVideoResources, ModifyCasterVideoResource.
|
||||
|
||||
|
||||
2018-09-14 Version: 1.26.0
|
||||
1, Add DedicatedHost Feature
|
||||
|
||||
2018-09-13 Version: 1.25.3
|
||||
1, Add CreateChannelToken.
|
||||
|
||||
|
||||
2018-09-06 Version: 1.25.2
|
||||
1, AutoScaling support launchTemplate.
|
||||
|
||||
2018-09-06 Version: 1.25.1
|
||||
1, Add API deleteProduct.
|
||||
2, Move all API to version 20180120.
|
||||
|
||||
2018-09-05 Version: 1.25.0
|
||||
1, Add new APIs with control policy for querying price
|
||||
|
||||
2018-09-03 Version: 1.24.2
|
||||
1, voice identify interface
|
||||
2, client upload credentials interface
|
||||
|
||||
2018-09-03 Version: 1.24.1
|
||||
1, Add new service API:FindServiceStatisticalData, which can support query service statistical data.
|
||||
|
||||
2018-08-28 Version: 1.24.0
|
||||
1, Add new APIs for profiling application performance: GetCloudMetricProfiling, etc.
|
||||
2, Add new APIs to support Shifter container applications: AddContainerApp, etc.
|
||||
|
||||
2018-08-28 Version: 1.23.4
|
||||
1, Add param for DescribeRegions,support AcceptLanguage,RegionEndpoint.
|
||||
|
||||
2018-08-27 Version: 1.23.3
|
||||
1, add Ess alarm task api, CreateAlarm, DeleteAlarm, DescribeAlarms, DeleteAlarm, EnableAlarm, DisableAlarm
|
||||
|
||||
|
||||
2018-08-27 Version: 1.23.2
|
||||
1, Add api GetGatewayBySubDevice.
|
||||
2, Modified the time related response parameters.
|
||||
3, Add messageId in response with InvokeThingService,SetDeviceProperty and NotifyAddThingTopo.
|
||||
|
||||
2018-08-23 Version: 1.23.1
|
||||
1, RunInstance add privateIpAddress.
|
||||
|
||||
2018-08-22 Version: 1.23.0
|
||||
1, Add api CreateSimulatedSystemEvents, support creating one or more simulated system events.
|
||||
2, Add api CancelSimulatedSystemEvents, support cancelling one or more simulated system events.
|
||||
|
||||
2018-08-21 Version: 1.22.9
|
||||
1, Repair describeLaunchTemplateVersions securityEnhancementStrategy type
|
||||
|
||||
2018-08-21 Version: 1.22.8
|
||||
1, Add api: MoPenQueryCanvas, MoPenDoRecognize, MoPenSendMqttMessage, MoPenFindGroup
|
||||
|
||||
2018-08-17 Version: 1.22.7
|
||||
1, Add a new api called DeleteImage to clear the image resource.
|
||||
2, Add the field called AdditionType and OutputType to GetMezzanineInfo api request.
|
||||
3, Add the field called OutputType to GetMezzanineInfo api response.
|
||||
4, Add the field called CreationTime and ModificationTime to GetPlayInfo api response.
|
||||
|
||||
2018-08-17 Version: 1.22.6
|
||||
1, New apkpubkey fields for queryauthentication output parameter.
|
||||
2, New packagename fields for queryauthentication output parameter.
|
||||
3, New clientId fields for queryauthentication output parameter.
|
||||
|
||||
2018-08-16 Version: 1.22.5
|
||||
1, ModifyScalingConfiguration add imageName.
|
||||
2, CreateScalingConfiguration add imageName.
|
||||
|
||||
2018-08-15 Version: 1.22.4
|
||||
1, Fix bug in GetMaterials API.
|
||||
2, GetVerifyToken added a new param VerifyConfigs
|
||||
|
||||
2018-08-15 Version: 1.22.3
|
||||
1, Add domain operation api AddLiveDomain,DeleteLiveDomain,DescribeLiveDomainDetail,StartLiveDomain,StopLiveDomain.
|
||||
2, Add certificate operation api DescribeLiveCertificateDetail,DescribeLiveCertificateList,SetLiveDomainCertificate.
|
||||
3, Add domain config api BatchSetLiveDomainConfigs,BatchDeleteLiveDomainConfigs,DeleteLiveSpecificConfig,DescribeLiveDomainConfigs.
|
||||
|
||||
2018-08-15 Version: 1.22.2
|
||||
1, Update ecs tag to 20 maximum
|
||||
|
||||
|
||||
2018-08-14 Version: 1.22.1
|
||||
1, Change parameter name of Dialogue
|
||||
|
||||
2018-08-13 Version: 1.22.0
|
||||
1, New userinfo fields for registerface input parameter.
|
||||
2, New userinfo fields for updateface input parameter.
|
||||
3, New userinfo fields for queryface output parameter.
|
||||
|
||||
2018-08-13 Version: 1.21.6
|
||||
1, Add cross domain support.
|
||||
2, Add parameter SerialNumber to interface RebootSmartAccessGateway.
|
||||
|
||||
2018-08-08 Version: 1.21.5
|
||||
1, The official release 4.0.0
|
||||
|
||||
2018-08-08 Version: 1.21.4
|
||||
1, Update FC apis.
|
||||
|
||||
2018-08-08 Version: 1.21.3
|
||||
1, First release.
|
||||
|
||||
2018-08-07 Version: 1.21.2
|
||||
1, Add api GetGatewayBySubDevice.
|
||||
2, Modified the time related response parameters.
|
||||
3, Add messageId in response with InvokeThingService,SetDeviceProperty and NotifyAddThingTopo.
|
||||
|
||||
2018-08-05 Version: 1.21.1
|
||||
1, Add Interface SubmitSubtitleJob
|
||||
2, Support convert ttml、stl subtitle to vtt
|
||||
|
||||
2018-08-03 Version: 1.21.0
|
||||
1, Add new API AddLocalNodes, for adding local machine to a hybrid cluster
|
||||
|
||||
2018-08-01 Version: 1.20.5
|
||||
1, Add new API GetConversationDetailByContactId
|
||||
|
||||
2018-08-01 Version: 1.20.4
|
||||
1, Add api: MoPenQueryCanvas, MoPenDoRecognize, MoPenSendMqttMessage, MoPenFindGroup
|
||||
|
||||
2018-07-31 Version: 1.20.3
|
||||
1, Support describePrice for market image, add return detailInfo in interface describePrice
|
||||
|
||||
2018-07-26 Version: 1.20.2
|
||||
1, Add BatchGetJobMetricInfo API.
|
||||
2, Add BatchGetPluginConfigInfo API.
|
||||
3, Add GetJobTopology API.
|
||||
|
||||
2018-07-25 Version: 1.20.1
|
||||
1, Add RemoveTerminals API.
|
||||
|
||||
|
||||
2018-07-13 Version: 1.20.0
|
||||
1, New APIs for batch executing commands in cluster: InvokeShellCommand, ListCommands, etc.
|
||||
2, New APIs for HybridCluster (link E-HPC with cluster in local IDC): CreateHybridCluster, etc.
|
||||
3, New APIs for Container applications: AddContainerApp, etc.
|
||||
|
||||
2018-07-11 Version: 1.19.3
|
||||
1, new function: Attach and Detach Rds instance of scalingGroup.
|
||||
|
||||
|
||||
2018-07-11 Version: 1.19.2
|
||||
1, Add DetectFaceAttributesService.
|
||||
2, Add cloudauthPageUrl to GetVerifyTokenResponse.
|
||||
|
||||
2018-07-05 Version: 1.19.1
|
||||
1, new function, attach/detach load balancer of scalingGroup
|
||||
|
||||
2018-07-05 Version: 1.19.0
|
||||
1, A new optional parameter 'Perspectives' is introduced to the 'Chat' API. By filling this parameter when calling 'Chat', you'll get the knowledge base content within the specified perspectives.
|
||||
|
||||
2018-06-28 Version: 1.18.1
|
||||
1, ScalingConfiguration support hostName and passwordInherit
|
||||
2, ScalingConfiguration support modify
|
||||
|
||||
2018-06-27 Version: 1.18.0
|
||||
1, Modify QueryDomainRealNameVerificationInfo Api, add a return value IdentityCredentialUrl, which is domain real name verification image, you can download it via a HTTP get request,It has validity for 30 seconds.
|
||||
2, Modify QueryRegistrantProfileRealNameVerificationInfo Api, add a return value IdentityCredentialUrl, which is domain real name verification image, you can download it via a HTTP get request,It has validity for 30 seconds
|
||||
|
||||
|
||||
2018-06-27 Version: 1.17.10
|
||||
1, DescribeNetworkInterfaces support query with vpcId
|
||||
|
||||
2018-06-22 Version: 1.17.9
|
||||
1, rtc openapi
|
||||
|
||||
|
||||
2018-06-21 Version: 1.17.8
|
||||
1, This is add InstanceList.
|
||||
|
||||
2018-06-20 Version: 1.17.7
|
||||
1, Add InstanceList in product security information query.
|
||||
|
||||
2018-06-20 Version: 1.17.6
|
||||
1, Add InstanceList in product security information query.
|
||||
|
||||
2018-06-14 Version: 1.17.5
|
||||
1, Add passwordInherit.
|
||||
|
||||
2018-06-13 Version: 1.17.4
|
||||
1, Add API AddCasterEpisodeGroupContent,CreateCaster.
|
||||
2, Add Parameter fillMode for AddCasterLayout,ModifyCasterLayout.
|
||||
3, Add return value fillMode DescribeCasterLayouts.
|
||||
4, Update ErrorCode for StartCaster,StartCasterScene,DescribeCasters,CopyCaster.
|
||||
5, Update ErrorCode for ModifyCasterLayout,DeleteCasterLayout,DeleteLiveAppRecordConfig.
|
||||
6, Update ForbidLiveStream,DescribeLiveStreamsPublishList,DescribeLiveStreamsOnlineList.
|
||||
|
||||
2018-06-13 Version: 1.17.3
|
||||
1, Add lifecycleHook.
|
||||
|
||||
2018-06-08 Version: 1.17.2
|
||||
1, Add scdn interface,support scdn.
|
||||
|
||||
2018-06-06 Version: 1.17.1
|
||||
1, Change the type of srcUid to int.
|
||||
|
||||
2018-06-06 Version: 1.17.0
|
||||
1, Add interface DescribePhoneInfo, DescribeDdosDefenseInfo, DescribeRiskListDetail, DescribePunishList.
|
||||
|
||||
2018-05-29 Version: 1.16.0
|
||||
1, Add new interface DescribePhoneInfo to SDK.
|
||||
|
||||
2018-05-28 Version: 1.15.0
|
||||
1, Add face 1-N,1-1 scan interface.
|
||||
|
||||
2018-05-28 Version: 1.14.0
|
||||
1, ValidateSecurityGroup API
|
||||
|
||||
2018-05-28 Version: 1.13.0
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-05-23 Version: 1.12.0
|
||||
1, Add CreateDrdsAccount API, to support creating account for all databases of a DRDS instance.
|
||||
|
||||
2018-05-23 Version: 1.11.0
|
||||
1, Update API version to 2018-04-12.
|
||||
2, New APIs in this new version: StartCluster, StopCluster, RecoverCluster, StartNodes, StopNodes, ListCustomImages. Support stopping a post-paid cluster or partial nodes of a cluster to save cost.
|
||||
3, New parameters for CreateCluster API: EcsChargeType. Support creating a pre-paid cluster.
|
||||
4, New parameters for CreateCluster API: DeploymentMode. Support creating a cluster with fewer manager nodes.
|
||||
|
||||
2018-05-23 Version: 1.10.3
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-05-22 Version: 1.10.2
|
||||
1, add DescribeMigrateTasks,DescribeOssDownloads,CheckRecoveryConditions.
|
||||
2, modify DescribeDBInstanceAttribute.
|
||||
|
||||
2018-05-17 Version: 1.10.1
|
||||
1, Supporting ethnicGroup and idCardStartDate fields in GetMaterials api
|
||||
|
||||
2018-05-17 Version: 1.10.0
|
||||
1, the first version of private dns SDK
|
||||
|
||||
2018-05-11 Version: 1.9.1
|
||||
1, Add Function Compute interface,support Function Compute.
|
||||
|
||||
2018-05-09 Version: 1.9.0
|
||||
1, Add apis for domain broker.
|
||||
|
||||
2018-05-08 Version: 1.8.2
|
||||
1, Add instance params.
|
||||
|
||||
2018-05-08 Version: 1.8.1
|
||||
1, Remove DescribeAccountAttributes.
|
||||
|
||||
2018-05-02 Version: 1.8.0
|
||||
1, Add new interface InstallCloudAssistant, support Cloud Assistant client installation.
|
||||
2, Add new interface DescribeCloudAssistantStatus, support Cloud Assistant client status detection.
|
||||
|
||||
2018-04-28 Version: 1.7.3
|
||||
1, Add dcdn domain interface,Support add、modify、delete、query dcdn domain.
|
||||
2, Add dcdn config interface,Support set、delete、query domain config.
|
||||
|
||||
2018-04-28 Version: 1.7.2
|
||||
1, Add dcdn domain interface,Support add、modify、delete、query dcdn domain.
|
||||
2, Add dcdn config interface,Support set、delete、query domain config.
|
||||
|
||||
2018-04-27 Version: 1.7.1
|
||||
1, release hsm open api
|
||||
2, hsm open api includes DescribeRegions, DescribeInstances, ModityInstance, ConfigNetwork, ConfigWhiteList
|
||||
|
||||
2018-04-26 Version: 1.7.0
|
||||
1, Add apis for domain group.
|
||||
3, Add fields for QueryDomainList.
|
||||
|
||||
2018-04-24 Version: 1.6.5
|
||||
1, add interface FetchPhotos
|
||||
2, add xflush log param unixTimestamp
|
||||
|
||||
2018-04-23 Version: 1.6.4
|
||||
1, DescribeInstanceHistoryEvents adds parameter instanceEventTypes and instanceEventCycleStatuss.
|
||||
2, InstanceId parameter is not necessary for DescribeInstanceHistoryEvents now.
|
||||
3, DescribeInstancesFullStatus adds parameter instanceEventTypes.
|
||||
|
||||
2018-04-23 Version: 1.6.3
|
||||
1, Add notificationConfiguration.
|
||||
2, Add standby status.
|
||||
|
||||
2018-04-17 Version: 1.6.2
|
||||
1, EditPhotos add input param TakenAt
|
||||
2, add FetchMomentPhotos
|
||||
3, ListAlbums add return param Remark
|
||||
|
||||
2018-04-11 Version: 1.6.1
|
||||
1, GetLibrary/FetchLibraries add return ctime
|
||||
2, Editphotos add input param takenAt
|
||||
|
||||
2018-04-10 Version: 1.6.0
|
||||
1, Add three interfaces CreateNetworkInterfacePermission DeleteNetworkInterfacePermission DescribeNetworkInterfacePermissions.
|
||||
|
||||
2018-04-10 Version: 1.5.1
|
||||
1, publish Project API.
|
||||
2, publish Service API.
|
||||
3, publish Service order API.
|
||||
4, publish Credential API.
|
||||
5, publish CAS API.
|
||||
|
||||
2018-04-08 Version: 1.5.0
|
||||
1, Add voice asynchronous scan interface.
|
||||
|
||||
2018-04-03 Version: 1.4.0
|
||||
1, Add APIs for domain transfer in and transfer out.
|
||||
2, Add APIs for poll and acknowledge domain task.
|
||||
3, Add API for query domain group list.
|
||||
|
||||
2018-03-30 Version: 1.3.8
|
||||
1, API QueryCustomerSaleInfo arguments update.
|
||||
|
||||
2018-03-29 Version: 1.3.7
|
||||
1, edit FetchLibraries return param format
|
||||
|
||||
2018-03-27 Version: 1.3.6
|
||||
1, Rename QueryCustomerSaleInfo to RegionName.
|
||||
|
||||
2018-03-27 Version: 1.3.5
|
||||
1, publish Project API.
|
||||
2, publish Service API.
|
||||
3, publish Service order API.
|
||||
4, publish Credential API.
|
||||
5, publish CAS API.
|
||||
|
||||
2018-03-27 Version: 1.3.4
|
||||
1, add interface FetchLibraries
|
||||
|
||||
2018-03-23 Version: 1.3.3
|
||||
1, interface DescribeInstanceTypes output InstancePpsRx InstancePpsTx
|
||||
|
||||
2018-03-23 Version: 1.3.2
|
||||
1, interface DescribeInstanceTypes output InstancePpsRx InstancePpsTx
|
||||
|
||||
2018-03-23 Version: 1.3.1
|
||||
1, ModifyPrepayInstanceSpec support migrateAcrossZone.
|
||||
|
||||
2018-03-23 Version: 1.3.0
|
||||
1, Add 'QueryDevicesByAccount' and 'QueryDevicesByAlias' Api.
|
||||
2, Remove 'QueryPushDetail' Api.
|
||||
|
||||
2018-03-20 Version: 1.2.16
|
||||
1, add FetchAlbumTagPhotos
|
||||
2, CreatePhoto add optional param TakenAt
|
||||
|
||||
2018-03-16 Version: 1.2.15
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.14
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.13
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.12
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.11
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.10
|
||||
1, Add QueryCustomerSaleInfo API.
|
||||
|
||||
2018-03-14 Version: 1.2.9
|
||||
1, Support predefine endpoints parse
|
||||
|
||||
2018-03-13 Version: 1.2.8
|
||||
1, API GetQuotaHistoryInfo fix field error.
|
||||
|
||||
2018-03-07 Version: 1.2.7
|
||||
1, add GetAlbumsByNames
|
||||
2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
|
||||
3, add return IdStr for string
|
||||
|
||||
2018-03-06 Version: 1.2.6
|
||||
1, add GetAlbumsByNames
|
||||
2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
|
||||
3, add return IdStr for string
|
||||
|
||||
|
||||
2018-03-06 Version: 1.2.5
|
||||
1, add GetAlbumsByNames
|
||||
2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
|
||||
3, add return IdStr for string
|
||||
|
||||
2018-02-28 Version: 1.2.4
|
||||
1, Add query resource inventory API.
|
||||
2, Add query topology API.
|
||||
|
||||
2018-02-27 Version: 1.2.3
|
||||
1, Add query topology API.
|
||||
|
||||
2018-02-27 Version: 1.2.2
|
||||
1, Add new API: ListRecordingsByContactId.
|
||||
|
||||
|
||||
2018-02-27 Version: 1.2.1
|
||||
1, Add Action API.
|
||||
|
||||
|
||||
158
CMakeLists.txt
158
CMakeLists.txt
@@ -1,65 +1,95 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
|
||||
file(STRINGS "VERSION" version)
|
||||
|
||||
project(alibabacloud-sdk VERSION ${version})
|
||||
|
||||
message(STATUS "Project version: ${PROJECT_VERSION}")
|
||||
|
||||
set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix")
|
||||
option(BUILD_SHARED_LIBS "Enable shared library" ON)
|
||||
option(BUILD_UNIT_TESTS "Enable unit tests" OFF)
|
||||
option(BUILD_FUNCTION_TESTS "Enable function test" OFF)
|
||||
|
||||
set(LIB_TYPE STATIC)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(LIB_TYPE SHARED)
|
||||
add_definitions(-DALIBABACLOUD_SHARED)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL
|
||||
PROPERTY
|
||||
USE_FOLDERS ON)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
include(ExternalProject)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_subdirectory(3rdparty)
|
||||
add_subdirectory(core)
|
||||
|
||||
if(BUILD_UNIT_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(test/core)
|
||||
endif()
|
||||
|
||||
if(BUILD_FUNCTION_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(test/function_test/cdn)
|
||||
add_subdirectory(test/function_test/core)
|
||||
add_subdirectory(test/function_test/ecs)
|
||||
add_subdirectory(test/function_test/nlp)
|
||||
add_subdirectory(test/function_test/rds)
|
||||
add_subdirectory(test/function_test/slb)
|
||||
add_subdirectory(test/function_test/vpc)
|
||||
endif()
|
||||
|
||||
add_subdirectory(ecs)
|
||||
add_subdirectory(slb)
|
||||
add_subdirectory(vpc)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(cloudphoto)
|
||||
add_subdirectory(ess)
|
||||
add_subdirectory(tesladam)
|
||||
add_subdirectory(cms)
|
||||
add_subdirectory(afs)
|
||||
add_subdirectory(aegis)
|
||||
add_subdirectory(ehpc)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ccc)
|
||||
add_subdirectory(teslamaxcompute)
|
||||
add_subdirectory(push)
|
||||
add_subdirectory(csb)
|
||||
add_subdirectory(domain)
|
||||
add_subdirectory(green)
|
||||
add_subdirectory(hsm)
|
||||
add_subdirectory(dcdn)
|
||||
add_subdirectory(pvtz)
|
||||
add_subdirectory(cloudauth)
|
||||
add_subdirectory(dyvmsapi)
|
||||
add_subdirectory(drds)
|
||||
add_subdirectory(jarvis)
|
||||
add_subdirectory(scdn)
|
||||
add_subdirectory(live)
|
||||
add_subdirectory(rtc)
|
||||
add_subdirectory(chatbot)
|
||||
add_subdirectory(teslastream)
|
||||
add_subdirectory(mopen)
|
||||
add_subdirectory(mts)
|
||||
add_subdirectory(iot)
|
||||
add_subdirectory(linkface)
|
||||
add_subdirectory(ots)
|
||||
add_subdirectory(smartag)
|
||||
add_subdirectory(vod)
|
||||
add_subdirectory(ccs)
|
||||
add_subdirectory(saf)
|
||||
add_subdirectory(arms)
|
||||
add_subdirectory(lubancloud)
|
||||
add_subdirectory(alimt)
|
||||
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
|
||||
file(STRINGS "VERSION" version)
|
||||
|
||||
project(alibabacloud-sdk VERSION ${version})
|
||||
|
||||
message(STATUS "Project version: ${PROJECT_VERSION}")
|
||||
|
||||
set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix")
|
||||
option(BUILD_SHARED_LIBS "Enable shared library" ON)
|
||||
option(BUILD_TESTS "Enable tests" ON)
|
||||
|
||||
set(LIB_TYPE STATIC)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(LIB_TYPE SHARED)
|
||||
add_definitions(-DALIBABACLOUD_SHARED)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL
|
||||
PROPERTY
|
||||
USE_FOLDERS ON)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
include(ExternalProject)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_subdirectory(3rdparty)
|
||||
add_subdirectory(core)
|
||||
|
||||
if(BUILD_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(core-tests)
|
||||
endif()
|
||||
add_subdirectory(ecs)
|
||||
add_subdirectory(slb)
|
||||
add_subdirectory(vpc)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(cloudphoto)
|
||||
add_subdirectory(ess)
|
||||
add_subdirectory(tesladam)
|
||||
add_subdirectory(cms)
|
||||
add_subdirectory(afs)
|
||||
add_subdirectory(aegis)
|
||||
add_subdirectory(ehpc)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(xspace)
|
||||
add_subdirectory(jarvis-public)
|
||||
4
LICENSE
4
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
Copyright 2009-2019 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.
|
||||
@@ -10,4 +10,4 @@ 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.
|
||||
limitations under the License.
|
||||
|
||||
205
README.md
Normal file → Executable file
205
README.md
Normal file → Executable file
@@ -1,82 +1,118 @@
|
||||
# Alibaba Cloud SDK for C++
|
||||
# Alibaba Cloud C++ Software Development Kit
|
||||
[中文文档](./README_zh.md)
|
||||
|
||||
欢迎使用阿里云开发者工具套件(SDK)。
|
||||
[](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
|
||||
[](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
适用于阿里云的 C++ SDK 提供了一组现代化的 C++(C++ 11 或更高版本)接口,让您不用复杂编程即可访问云服务器、云监控等多个阿里云服务。
|
||||
The Alibaba Cloud C++ Software Development Kit (SDK) allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
||||
|
||||
完成本文档中的操作开始使用 C++ SDK。
|
||||
This document introduces how to obtain and call Alibaba Cloud C++ SDK.
|
||||
|
||||
## 前提条件
|
||||
If you have any problem while using C++ SDK, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
|
||||
|
||||
在使用 C++ SDK 前,确保您已经:
|
||||
## Prerequisites
|
||||
|
||||
* 注册了阿里云账号并获取了访问密钥(AccessKey)。
|
||||
- To use Alibaba Cloud C++ SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
|
||||
> **说明:** 为了保证您的账号安全,建议您使用RAM账号来访问阿里云服务。阿里云账号对拥有的资源有全部权限。RAM账号由阿里云账号授权创建,仅有对特定资源限定的操作权限。详情[参见RAM](https://help.aliyun.com/document_detail/28647.html)。
|
||||
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
|
||||
|
||||
* 开通了云产品服务。有些云产品如对象存储(OSS)需要先在[阿里云控制台](https://home.console.aliyun.com)开通服务。
|
||||
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
|
||||
|
||||
* 安装支持 C++ 11 或更高版本的编译器:
|
||||
* Visual Studio 2015 或以上版本
|
||||
* 或 GCC 4.9 或以上版本
|
||||
- To use Alibaba Cloud C++ SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
|
||||
|
||||
## 从源代码构建 SDK
|
||||
- C++11 supported compiler installed
|
||||
- Windows: Visual Studio 2015 or newer
|
||||
- Linux: GCC 4.9 or newer
|
||||
- CMake 3.0 or newer
|
||||
- 4G memory or more
|
||||
|
||||
1. 从 GitHub 下载或 Git 克隆 [aliyun-openapi-cpp-sdk](https://github.com/aliyun/aliyun-openapi-cpp-sdk)
|
||||
## Install C++ SDK from source code
|
||||
|
||||
* 直接下载 https://github.com/aliyun/aliyun-openapi-cpp-sdk/archive/master.zip
|
||||
* 使用 Git 命令获取
|
||||
|
||||
```
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
2. 安装 cmake 3.0 或以上版本,进入 SDK 创建生成必要的构建文件
|
||||
|
||||
```
|
||||
cd <path/to/aliyun-openapi-cpp-sdk>
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake ..
|
||||
```
|
||||
|
||||
### Windows
|
||||
|
||||
进入 sdk_build 目录使用 Visual Studio 打开 alibabacloud-sdk.sln 生成解决方案。
|
||||
|
||||
或者您也可以使用 VS 的开发人员命令提示符,执行以下命令编译并安装:
|
||||
|
||||
```
|
||||
msbuild ALL_BUILD.vcxproj
|
||||
msbuild INSTALL.vcxproj
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
要在 Linux 平台进行编译, 您必须安装依赖的外部库文件 libcurl、libopenssl、libuuid、libjsoncpp, 通常情况下,系统的包管理器中的会有提供。
|
||||
1. Install third-party libraries on the Linux platform, including `libcurl`, `libopenssl`, `libuuid`, and `libjsoncpp`.
|
||||
|
||||
例如:在基于 Redhat / Fedora 的系统上安装这些软件包
|
||||
- Run the following commands on the `Redhat/Fedora` system
|
||||
```
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
- Run the following commands on the `Debian/Ubuntu` system
|
||||
```
|
||||
sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev
|
||||
```
|
||||
2. Run the following commands to clone source codes from GitHub.
|
||||
|
||||
```
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
在安装依赖库后执行以下命令编译并安装:
|
||||
3. Build and install SDK
|
||||
|
||||
```
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
- Manually build and install
|
||||
|
||||
## 如何使用 C++ SDK
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
在调用 C++ SDK时,您首先需要配置预处理器定义 ALIBABACLOUD_SHARED 以引用阿里云 C++ SDK 的共享库,然后通过创建 Client 实例提供身份验证,并指定云服务的地域,然后发送API请求。
|
||||
- Or you may do this with `easyinstall.sh` in the source directory
|
||||
|
||||
以下代码展示了如何调用 DescribeInstancesAPI 查询指定地域所有 ECS 实例的详细信息。
|
||||
```shell
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh
|
||||
```
|
||||
|
||||
> **说明:** 您需要替换示例中的 your-region-id、your-access-key-id 和 your-access-key-secret 的值。
|
||||
**The C++ SDK will be installed to `/usr`.**
|
||||
|
||||
```
|
||||
### windows
|
||||
|
||||
1. Install [perl](https://www.perl.org/get.html#win32).
|
||||
|
||||
2. Run the following command to clone code from Github via git-bash:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
2. Build Visual Studio solution
|
||||
|
||||
- Change directory to source code and make directory sdk_build
|
||||
|
||||
- Open CMake UI and
|
||||
|
||||
- `Browse Source` to open source code directory.
|
||||
|
||||
- `Browse build` to open the created sdk_build directory
|
||||
|
||||
- `Configure`
|
||||
|
||||
- `Generate`
|
||||
|
||||
3. Build and Install C++ SDK
|
||||
|
||||
- Open `aliyun-openapi-cpp-sdk\\sdk_build\\alibabacloud-sdk.sln` with Visual Studio
|
||||
|
||||
- Select `Release`
|
||||
|
||||
- Check INSTALL option from Build -> Configuration Manager
|
||||
|
||||
- Build->Build Solutions to build.
|
||||
|
||||
**SDK will be installed to `C:\Program File (x86)\alibabacloud-sdk`**
|
||||
|
||||
|
||||
## Use the C++ SDK
|
||||
|
||||
Before using C++ SDK, you must first configure the preprocessor to define `ALIBABACLOUD_SHARED` to achieve dynamic linking with Alibaba Cloud C++ SDK shared libraries. Then you must create a client instance, specify the region of cloud services and provide authentication parameters before sending API requests.
|
||||
|
||||
The following code shows how to call the [DescribeInstances](~~25506~~) API of ECS to query detailed information of all ECS instances in a specific region.
|
||||
|
||||
```cpp
|
||||
#include <iostream>
|
||||
#include <alibabacloud/core/AlibabaCloud.h>
|
||||
#include <alibabacloud/ecs/EcsClient.h>
|
||||
@@ -84,35 +120,44 @@ sudo make install
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
// 初始化 SDK
|
||||
AlibabaCloud::InitializeSdk();
|
||||
int main(int argc, char** argv) {
|
||||
// Initialize the SDK
|
||||
AlibabaCloud::InitializeSdk();
|
||||
|
||||
// 配置 ecs 实例
|
||||
ClientConfiguration configuration("<your-region-id>");
|
||||
EcsClient client("<your-access-key-id>", "<your-access-key-secret>", configuration);
|
||||
// Configure the ECS instance
|
||||
ClientConfiguration configuration("<your-region-id>");
|
||||
EcsClient client("<your-access-key-id>", "<your-access-key-secret>", configuration);
|
||||
|
||||
// 创建API请求并设置参数
|
||||
Model::DescribeInstancesRequest request;
|
||||
request.setPageSize(10);
|
||||
// Create an API request and set parameters
|
||||
Model::DescribeInstancesRequest request;
|
||||
request.setPageSize(10);
|
||||
|
||||
auto outcome = client.describeInstances(request);
|
||||
if (!outcome.isSuccess())
|
||||
{
|
||||
// 异常处理
|
||||
std::cout << outcome.error().errorCode() << std::endl;
|
||||
AlibabaCloud::ShutdownSdk();
|
||||
return -1;
|
||||
}
|
||||
|
||||
std::cout << "totalCount: " << outcome.result().getTotalCount() << std::endl;
|
||||
auto outcome = client.describeInstances(request);
|
||||
if (!outcome.isSuccess()) {
|
||||
// Handle exceptions
|
||||
std::cout << outcome.error().errorCode() << std::endl;
|
||||
AlibabaCloud::ShutdownSdk();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// 关闭 SDK
|
||||
AlibabaCloud::ShutdownSdk();
|
||||
return 0;
|
||||
std::cout << "totalCount: " << outcome.result().getTotalCount() << std::endl;
|
||||
|
||||
// Close the SDK
|
||||
AlibabaCloud::ShutdownSdk();
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
## 许可协议
|
||||
请参阅 LICENSE 文件(Apache 2.0 许可证)。
|
||||
Copy the above to ecs_test.cc, then build with the following command.
|
||||
|
||||
```bash
|
||||
~$ g++ -o ecstest ecs_test.cc --std=c++11 -lalibabacloud-sdk-core -l alibabacloud-sdk-ecs
|
||||
~$ ./ecstest
|
||||
# Result or error message will be shown here.
|
||||
~$
|
||||
```
|
||||
|
||||
**More [examples](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
|
||||
|
||||
## LICENSE
|
||||
Please refer to [LICENSE](https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/LICENSE) (Apache 2.0 LICENSE).
|
||||
|
||||
171
README_zh.md
Normal file
171
README_zh.md
Normal file
@@ -0,0 +1,171 @@
|
||||
# 阿里云开发者C++工具套件
|
||||
|
||||
[](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
|
||||
[](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
欢迎使用阿里云开发者工具套件(SDK)。
|
||||
|
||||
适用于阿里云的 C++ SDK 提供了一组现代化的 C++(C++ 11 或更高版本)接口,让您不用复杂编程即可访问云服务器、云监控等多个阿里云服务。
|
||||
|
||||
如果您在使用SDK的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
|
||||
完成本文档中的操作开始使用 C++ SDK。
|
||||
|
||||
## 前提条件
|
||||
|
||||
在使用 C++ SDK 前,确保您已经:
|
||||
|
||||
* 注册了阿里云账号并获取了访问密钥(AccessKey)。
|
||||
|
||||
> **说明:** 为了保证您的账号安全,建议您使用RAM账号来访问阿里云服务。阿里云账号对拥有的资源有全部权限。RAM账号由阿里云账号授权创建,仅有对特定资源限定的操作权限。详情[参见RAM](https://help.aliyun.com/document_detail/28647.html)。
|
||||
|
||||
* 开通了云产品服务。有些云产品如对象存储(OSS)需要先在[阿里云控制台](https://home.console.aliyun.com)开通服务。
|
||||
|
||||
* 安装支持 C++ 11 或更高版本的编译器:
|
||||
* Windows: Visual Studio 2015 或以上版本
|
||||
* Linux: GCC 4.9 或以上版本
|
||||
|
||||
* 安装 CMake 3.0 或以上版本
|
||||
* 建议 4G 或以上内存
|
||||
|
||||
## 从源代码构建 SDK
|
||||
|
||||
1. 从 GitHub 下载或 Git 克隆 [aliyun-openapi-cpp-sdk](https://github.com/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
* 直接下载 https://github.com/aliyun/aliyun-openapi-cpp-sdk/archive/master.zip
|
||||
* 使用 Git 命令获取
|
||||
|
||||
```
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
2. 创建生成必要的构建文件
|
||||
|
||||
```bash
|
||||
cd <path/to/aliyun-openapi-cpp-sdk>
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake ..
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
要在 Linux 平台进行编译, 您必须安装依赖的外部库文件 libcurl、libopenssl、libuuid、libjsoncpp, 通常情况下,系统的包管理器中的会有提供。
|
||||
|
||||
例如:在基于 Redhat / Fedora 的系统上安装这些软件包
|
||||
|
||||
```bash
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
|
||||
在基于 Debian/Ubuntu 的系统
|
||||
```bash
|
||||
sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev
|
||||
```
|
||||
|
||||
在安装依赖库后执行以下命令编译并安装:
|
||||
|
||||
手动编译安装
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
或者通过 `easyinstall.sh`一键式安装
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh
|
||||
```
|
||||
|
||||
**C++ SDK 将被安装在 `/usr`.**
|
||||
|
||||
|
||||
### Windows
|
||||
|
||||
通过 cmake 生成 Visual Studio 解决方案:
|
||||
|
||||
在 aliyun-openapi-cpp-sdk 下创建 sdk_build 目录
|
||||
|
||||
打开 cmake-ui 选择源代码目录和构建目录,点击 `配置(configure)` 和 `生成(generate)` 构建 VS 解决方案。
|
||||
|
||||
进入 sdk_build 目录使用 Visual Studio 打开 alibabacloud-sdk.sln 解决方案。
|
||||
|
||||
选择构建 `Release` 输出,并打开配置管理器勾选 `INSTALL`。
|
||||
|
||||
构建 -> 生成解决方案。
|
||||
|
||||
或者您也可以使用 VS 的开发人员命令提示符,执行以下命令编译并安装:
|
||||
|
||||
```
|
||||
msbuild ALL_BUILD.vcxproj
|
||||
msbuild INSTALL.vcxproj
|
||||
```
|
||||
|
||||
**C++ SDK 将安装在 `C:\Program File (x86)\alibabacloud-sdk` 目录**
|
||||
|
||||
**注意:请以管理员身份运行 Visual Studio,否则无法安装 SDK**
|
||||
|
||||
## 如何使用 C++ SDK
|
||||
|
||||
在调用 C++ SDK时,您首先需要配置预处理器定义 ALIBABACLOUD_SHARED 以引用阿里云 C++ SDK 的共享库,然后通过创建 Client 实例提供身份验证,并指定云服务的地域,然后发送API请求。
|
||||
|
||||
以下代码展示了如何调用 DescribeInstancesAPI 查询指定地域所有 ECS 实例的详细信息。
|
||||
|
||||
> **说明:** 您需要替换示例中的 your-region-id、your-access-key-id 和 your-access-key-secret 的值。
|
||||
|
||||
```
|
||||
#include <iostream>
|
||||
#include <alibabacloud/core/AlibabaCloud.h>
|
||||
#include <alibabacloud/ecs/EcsClient.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
// 初始化 SDK
|
||||
AlibabaCloud::InitializeSdk();
|
||||
|
||||
// 配置 ecs 实例
|
||||
ClientConfiguration configuration("<your-region-id>");
|
||||
EcsClient client("<your-access-key-id>", "<your-access-key-secret>", configuration);
|
||||
|
||||
// 创建API请求并设置参数
|
||||
Model::DescribeInstancesRequest request;
|
||||
request.setPageSize(10);
|
||||
|
||||
auto outcome = client.describeInstances(request);
|
||||
if (!outcome.isSuccess()) {
|
||||
// 异常处理
|
||||
std::cout << outcome.error().errorCode() << std::endl;
|
||||
AlibabaCloud::ShutdownSdk();
|
||||
return -1;
|
||||
}
|
||||
|
||||
std::cout << "totalCount: " << outcome.result().getTotalCount() << std::endl;
|
||||
|
||||
// 关闭 SDK
|
||||
AlibabaCloud::ShutdownSdk();
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
复制上述文件到 ecs_test.cc。
|
||||
|
||||
Linux 下
|
||||
|
||||
```bash
|
||||
~$ g++ -o ecstest ecs_test.cc --std=c++11 -lalibabacloud-sdk-core -l alibabacloud-sdk-ecs
|
||||
~$ ./ecstest
|
||||
# 结果或错误返回将在此展示
|
||||
~$
|
||||
```
|
||||
|
||||
**更多 [例程](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples) 请(参考)[https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/examples/README_zh.md]**
|
||||
|
||||
## 许可协议
|
||||
请参阅 LICENSE 文件(Apache 2.0 许可证)。
|
||||
@@ -230,7 +230,6 @@ namespace AlibabaCloud
|
||||
QueryCrackEventOutcomeCallable queryCrackEventCallable(const Model::QueryCrackEventRequest& request) const;
|
||||
|
||||
private:
|
||||
virtual EndpointOutcome endpoint()const override;
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Aegis;
|
||||
using namespace AlibabaCloud::Aegis::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "aegis";
|
||||
}
|
||||
|
||||
AegisClient::AegisClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "vipaegis");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis");
|
||||
}
|
||||
|
||||
AegisClient::AegisClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "vipaegis");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis");
|
||||
}
|
||||
|
||||
AegisClient::AegisClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "vipaegis");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis");
|
||||
}
|
||||
|
||||
AegisClient::~AegisClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome AegisClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
AegisClient::GetEntityListOutcome AegisClient::getEntityList(const GetEntityListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetEntityListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -97,7 +89,7 @@ AegisClient::GetEntityListOutcomeCallable AegisClient::getEntityListCallable(con
|
||||
|
||||
AegisClient::GetStatisticsByUuidOutcome AegisClient::getStatisticsByUuid(const GetStatisticsByUuidRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatisticsByUuidOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -133,7 +125,7 @@ AegisClient::GetStatisticsByUuidOutcomeCallable AegisClient::getStatisticsByUuid
|
||||
|
||||
AegisClient::GetStatisticsOutcome AegisClient::getStatistics(const GetStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -169,7 +161,7 @@ AegisClient::GetStatisticsOutcomeCallable AegisClient::getStatisticsCallable(con
|
||||
|
||||
AegisClient::DescribeVulDetailsOutcome AegisClient::describeVulDetails(const DescribeVulDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -205,7 +197,7 @@ AegisClient::DescribeVulDetailsOutcomeCallable AegisClient::describeVulDetailsCa
|
||||
|
||||
AegisClient::DeleteStrategyOutcome AegisClient::deleteStrategy(const DeleteStrategyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteStrategyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -241,7 +233,7 @@ AegisClient::DeleteStrategyOutcomeCallable AegisClient::deleteStrategyCallable(c
|
||||
|
||||
AegisClient::GetCrackStatisticsOutcome AegisClient::getCrackStatistics(const GetCrackStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetCrackStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -277,7 +269,7 @@ AegisClient::GetCrackStatisticsOutcomeCallable AegisClient::getCrackStatisticsCa
|
||||
|
||||
AegisClient::DescribeWarningOutcome AegisClient::describeWarning(const DescribeWarningRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWarningOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -313,7 +305,7 @@ AegisClient::DescribeWarningOutcomeCallable AegisClient::describeWarningCallable
|
||||
|
||||
AegisClient::ReleaseInstanceOutcome AegisClient::releaseInstance(const ReleaseInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReleaseInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -349,7 +341,7 @@ AegisClient::ReleaseInstanceOutcomeCallable AegisClient::releaseInstanceCallable
|
||||
|
||||
AegisClient::DescribeSuspiciousEventsOutcome AegisClient::describeSuspiciousEvents(const DescribeSuspiciousEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSuspiciousEventsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -385,7 +377,7 @@ AegisClient::DescribeSuspiciousEventsOutcomeCallable AegisClient::describeSuspic
|
||||
|
||||
AegisClient::CreateInstanceOutcome AegisClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -421,7 +413,7 @@ AegisClient::CreateInstanceOutcomeCallable AegisClient::createInstanceCallable(c
|
||||
|
||||
AegisClient::DescribeVulListOutcome AegisClient::describeVulList(const DescribeVulListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -457,7 +449,7 @@ AegisClient::DescribeVulListOutcomeCallable AegisClient::describeVulListCallable
|
||||
|
||||
AegisClient::UpgradeInstanceOutcome AegisClient::upgradeInstance(const UpgradeInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpgradeInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -493,7 +485,7 @@ AegisClient::UpgradeInstanceOutcomeCallable AegisClient::upgradeInstanceCallable
|
||||
|
||||
AegisClient::RenewInstanceOutcome AegisClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -529,7 +521,7 @@ AegisClient::RenewInstanceOutcomeCallable AegisClient::renewInstanceCallable(con
|
||||
|
||||
AegisClient::DescribeStrategyTargetOutcome AegisClient::describeStrategyTarget(const DescribeStrategyTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStrategyTargetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -565,7 +557,7 @@ AegisClient::DescribeStrategyTargetOutcomeCallable AegisClient::describeStrategy
|
||||
|
||||
AegisClient::QueryLoginEventOutcome AegisClient::queryLoginEvent(const QueryLoginEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryLoginEventOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -601,7 +593,7 @@ AegisClient::QueryLoginEventOutcomeCallable AegisClient::queryLoginEventCallable
|
||||
|
||||
AegisClient::GetAccountStatisticsOutcome AegisClient::getAccountStatistics(const GetAccountStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccountStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -637,7 +629,7 @@ AegisClient::GetAccountStatisticsOutcomeCallable AegisClient::getAccountStatisti
|
||||
|
||||
AegisClient::ModifyStrategyOutcome AegisClient::modifyStrategy(const ModifyStrategyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyStrategyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -673,7 +665,7 @@ AegisClient::ModifyStrategyOutcomeCallable AegisClient::modifyStrategyCallable(c
|
||||
|
||||
AegisClient::ModifyStrategyTargetOutcome AegisClient::modifyStrategyTarget(const ModifyStrategyTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyStrategyTargetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -709,7 +701,7 @@ AegisClient::ModifyStrategyTargetOutcomeCallable AegisClient::modifyStrategyTarg
|
||||
|
||||
AegisClient::ModifyBatchIgnoreVulOutcome AegisClient::modifyBatchIgnoreVul(const ModifyBatchIgnoreVulRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyBatchIgnoreVulOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -745,7 +737,7 @@ AegisClient::ModifyBatchIgnoreVulOutcomeCallable AegisClient::modifyBatchIgnoreV
|
||||
|
||||
AegisClient::DescribeWebshellOutcome AegisClient::describeWebshell(const DescribeWebshellRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWebshellOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -781,7 +773,7 @@ AegisClient::DescribeWebshellOutcomeCallable AegisClient::describeWebshellCallab
|
||||
|
||||
AegisClient::DescribeStratetyDetailOutcome AegisClient::describeStratetyDetail(const DescribeStratetyDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStratetyDetailOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -817,7 +809,7 @@ AegisClient::DescribeStratetyDetailOutcomeCallable AegisClient::describeStratety
|
||||
|
||||
AegisClient::DescribeStratetyOutcome AegisClient::describeStratety(const DescribeStratetyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStratetyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -853,7 +845,7 @@ AegisClient::DescribeStratetyOutcomeCallable AegisClient::describeStratetyCallab
|
||||
|
||||
AegisClient::DescribeLoginLogsOutcome AegisClient::describeLoginLogs(const DescribeLoginLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoginLogsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -889,7 +881,7 @@ AegisClient::DescribeLoginLogsOutcomeCallable AegisClient::describeLoginLogsCall
|
||||
|
||||
AegisClient::QueryCrackEventOutcome AegisClient::queryCrackEvent(const QueryCrackEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCrackEventOutcome(endpointOutcome.error());
|
||||
|
||||
|
||||
@@ -134,7 +134,6 @@ namespace AlibabaCloud
|
||||
AnalyzeNvcOutcomeCallable analyzeNvcCallable(const Model::AnalyzeNvcRequest& request) const;
|
||||
|
||||
private:
|
||||
virtual EndpointOutcome endpoint()const override;
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Afs;
|
||||
using namespace AlibabaCloud::Afs::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "afs";
|
||||
}
|
||||
|
||||
AfsClient::AfsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AfsClient::AfsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AfsClient::AfsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AfsClient::~AfsClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome AfsClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
AfsClient::DescribeEarlyWarningOutcome AfsClient::describeEarlyWarning(const DescribeEarlyWarningRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEarlyWarningOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -94,10 +86,10 @@ AfsClient::DescribeEarlyWarningOutcomeCallable AfsClient::describeEarlyWarningCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::SetEarlyWarningOutcome AfsClient::setEarlyWarning(const SetEarlyWarningRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetEarlyWarningOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -130,10 +122,10 @@ AfsClient::SetEarlyWarningOutcomeCallable AfsClient::setEarlyWarningCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaIpCityOutcome AfsClient::describeCaptchaIpCity(const DescribeCaptchaIpCityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaIpCityOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -166,10 +158,10 @@ AfsClient::DescribeCaptchaIpCityOutcomeCallable AfsClient::describeCaptchaIpCity
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::ConfigurationStyleOutcome AfsClient::configurationStyle(const ConfigurationStyleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConfigurationStyleOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -202,10 +194,10 @@ AfsClient::ConfigurationStyleOutcomeCallable AfsClient::configurationStyleCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaMinOutcome AfsClient::describeCaptchaMin(const DescribeCaptchaMinRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaMinOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -238,10 +230,10 @@ AfsClient::DescribeCaptchaMinOutcomeCallable AfsClient::describeCaptchaMinCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaRiskOutcome AfsClient::describeCaptchaRisk(const DescribeCaptchaRiskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaRiskOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -274,10 +266,10 @@ AfsClient::DescribeCaptchaRiskOutcomeCallable AfsClient::describeCaptchaRiskCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::AuthenticateSigOutcome AfsClient::authenticateSig(const AuthenticateSigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AuthenticateSigOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -310,10 +302,10 @@ AfsClient::AuthenticateSigOutcomeCallable AfsClient::authenticateSigCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeConfigNameOutcome AfsClient::describeConfigName(const DescribeConfigNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigNameOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -346,10 +338,10 @@ AfsClient::DescribeConfigNameOutcomeCallable AfsClient::describeConfigNameCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaDayOutcome AfsClient::describeCaptchaDay(const DescribeCaptchaDayRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaDayOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -382,10 +374,10 @@ AfsClient::DescribeCaptchaDayOutcomeCallable AfsClient::describeCaptchaDayCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribePersonMachineListOutcome AfsClient::describePersonMachineList(const DescribePersonMachineListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePersonMachineListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -418,10 +410,10 @@ AfsClient::DescribePersonMachineListOutcomeCallable AfsClient::describePersonMac
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::CreateConfigurationOutcome AfsClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -454,10 +446,10 @@ AfsClient::CreateConfigurationOutcomeCallable AfsClient::createConfigurationCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::AnalyzeNvcOutcome AfsClient::analyzeNvc(const AnalyzeNvcRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AnalyzeNvcOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -490,4 +482,4 @@ AfsClient::AnalyzeNvcOutcomeCallable AfsClient::analyzeNvcCallable(const Analyze
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
|
||||
90
alimt/CMakeLists.txt
Normal file
90
alimt/CMakeLists.txt
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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(alimt_public_header
|
||||
include/alibabacloud/alimt/AlimtClient.h
|
||||
include/alibabacloud/alimt/AlimtExport.h )
|
||||
|
||||
set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralResult.h )
|
||||
|
||||
set(alimt_src
|
||||
src/AlimtClient.cc
|
||||
src/model/TranslateECommerceRequest.cc
|
||||
src/model/TranslateECommerceResult.cc
|
||||
src/model/TranslateGeneralRequest.cc
|
||||
src/model/TranslateGeneralResult.cc )
|
||||
|
||||
add_library(alimt ${LIB_TYPE}
|
||||
${alimt_public_header}
|
||||
${alimt_public_header_model}
|
||||
${alimt_src})
|
||||
|
||||
set_target_properties(alimt
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}alimt
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(alimt
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ALIMT_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(alimt
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(alimt
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(alimt
|
||||
jsoncpp)
|
||||
target_include_directories(alimt
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(alimt
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(alimt
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(alimt
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(alimt
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${alimt_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alimt)
|
||||
install(FILES ${alimt_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alimt/model)
|
||||
install(TARGETS alimt
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
62
alimt/include/alibabacloud/alimt/AlimtClient.h
Normal file
62
alimt/include/alibabacloud/alimt/AlimtClient.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_ALIMTCLIENT_H_
|
||||
#define ALIBABACLOUD_ALIMT_ALIMTCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AlimtExport.h"
|
||||
#include "model/TranslateECommerceRequest.h"
|
||||
#include "model/TranslateECommerceResult.h"
|
||||
#include "model/TranslateGeneralRequest.h"
|
||||
#include "model/TranslateGeneralResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT AlimtClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::TranslateECommerceResult> TranslateECommerceOutcome;
|
||||
typedef std::future<TranslateECommerceOutcome> TranslateECommerceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateECommerceRequest&, const TranslateECommerceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateECommerceAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateGeneralResult> TranslateGeneralOutcome;
|
||||
typedef std::future<TranslateGeneralOutcome> TranslateGeneralOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateGeneralRequest&, const TranslateGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateGeneralAsyncHandler;
|
||||
|
||||
AlimtClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AlimtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AlimtClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AlimtClient();
|
||||
TranslateECommerceOutcome translateECommerce(const Model::TranslateECommerceRequest &request)const;
|
||||
void translateECommerceAsync(const Model::TranslateECommerceRequest& request, const TranslateECommerceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateECommerceOutcomeCallable translateECommerceCallable(const Model::TranslateECommerceRequest& request) const;
|
||||
TranslateGeneralOutcome translateGeneral(const Model::TranslateGeneralRequest &request)const;
|
||||
void translateGeneralAsync(const Model::TranslateGeneralRequest& request, const TranslateGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateGeneralOutcomeCallable translateGeneralCallable(const Model::TranslateGeneralRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ALIMT_ALIMTCLIENT_H_
|
||||
32
alimt/include/alibabacloud/alimt/AlimtExport.h
Normal file
32
alimt/include/alibabacloud/alimt/AlimtExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_ALIMT_ALIMTEXPORT_H_
|
||||
#define ALIBABACLOUD_ALIMT_ALIMTEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ALIMT_LIBRARY)
|
||||
# define ALIBABACLOUD_ALIMT_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ALIMT_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ALIMT_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ALIMT_ALIMTEXPORT_H_
|
||||
@@ -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_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateECommerceRequest();
|
||||
~TranslateECommerceRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string targetLanguage_;
|
||||
std::string scene_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
TranslateECommerceResult();
|
||||
explicit TranslateECommerceResult(const std::string &payload);
|
||||
~TranslateECommerceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCERESULT_H_
|
||||
@@ -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_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateGeneralRequest();
|
||||
~TranslateGeneralRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string targetLanguage_;
|
||||
std::string scene_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALRESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
TranslateGeneralResult();
|
||||
explicit TranslateGeneralResult(const std::string &payload);
|
||||
~TranslateGeneralResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALRESULT_H_
|
||||
125
alimt/src/AlimtClient.cc
Normal file
125
alimt/src/AlimtClient.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* 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/alimt/AlimtClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "alimt";
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
{}
|
||||
|
||||
AlimtClient::TranslateECommerceOutcome AlimtClient::translateECommerce(const TranslateECommerceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateECommerceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateECommerceOutcome(TranslateECommerceResult(outcome.result()));
|
||||
else
|
||||
return TranslateECommerceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::translateECommerceAsync(const TranslateECommerceRequest& request, const TranslateECommerceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateECommerce(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::TranslateECommerceOutcomeCallable AlimtClient::translateECommerceCallable(const TranslateECommerceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateECommerceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateECommerce(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateGeneralOutcome AlimtClient::translateGeneral(const TranslateGeneralRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateGeneralOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateGeneralOutcome(TranslateGeneralResult(outcome.result()));
|
||||
else
|
||||
return TranslateGeneralOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::translateGeneralAsync(const TranslateGeneralRequest& request, const TranslateGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateGeneral(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::TranslateGeneralOutcomeCallable AlimtClient::translateGeneralCallable(const TranslateGeneralRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateGeneralOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateGeneral(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
82
alimt/src/model/TranslateECommerceRequest.cc
Normal file
82
alimt/src/model/TranslateECommerceRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/alimt/model/TranslateECommerceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
|
||||
|
||||
TranslateECommerceRequest::TranslateECommerceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
|
||||
{}
|
||||
|
||||
TranslateECommerceRequest::~TranslateECommerceRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateECommerceRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setParameter("SourceText", sourceText);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setParameter("FormatType", formatType);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void TranslateECommerceRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setParameter("Scene", scene);
|
||||
}
|
||||
|
||||
67
alimt/src/model/TranslateECommerceResult.cc
Normal file
67
alimt/src/model/TranslateECommerceResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateECommerceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
TranslateECommerceResult::TranslateECommerceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateECommerceResult::TranslateECommerceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateECommerceResult::~TranslateECommerceResult()
|
||||
{}
|
||||
|
||||
void TranslateECommerceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TranslateECommerceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TranslateECommerceResult::Data TranslateECommerceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int TranslateECommerceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
alimt/src/model/TranslateGeneralRequest.cc
Normal file
82
alimt/src/model/TranslateGeneralRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/alimt/model/TranslateGeneralRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
|
||||
|
||||
TranslateGeneralRequest::TranslateGeneralRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
|
||||
{}
|
||||
|
||||
TranslateGeneralRequest::~TranslateGeneralRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateGeneralRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setParameter("SourceText", sourceText);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setParameter("FormatType", formatType);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void TranslateGeneralRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setParameter("Scene", scene);
|
||||
}
|
||||
|
||||
67
alimt/src/model/TranslateGeneralResult.cc
Normal file
67
alimt/src/model/TranslateGeneralResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateGeneralResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
TranslateGeneralResult::TranslateGeneralResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateGeneralResult::TranslateGeneralResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateGeneralResult::~TranslateGeneralResult()
|
||||
{}
|
||||
|
||||
void TranslateGeneralResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TranslateGeneralResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TranslateGeneralResult::Data TranslateGeneralResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int TranslateGeneralResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
90
arms/CMakeLists.txt
Normal file
90
arms/CMakeLists.txt
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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(arms_public_header
|
||||
include/alibabacloud/arms/ARMSClient.h
|
||||
include/alibabacloud/arms/ARMSExport.h )
|
||||
|
||||
set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
|
||||
include/alibabacloud/arms/model/ARMSQueryDataSetResult.h
|
||||
include/alibabacloud/arms/model/MetricQueryRequest.h
|
||||
include/alibabacloud/arms/model/MetricQueryResult.h )
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
src/model/ARMSQueryDataSetRequest.cc
|
||||
src/model/ARMSQueryDataSetResult.cc
|
||||
src/model/MetricQueryRequest.cc
|
||||
src/model/MetricQueryResult.cc )
|
||||
|
||||
add_library(arms ${LIB_TYPE}
|
||||
${arms_public_header}
|
||||
${arms_public_header_model}
|
||||
${arms_src})
|
||||
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}arms
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ARMS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(arms
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(arms
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(arms
|
||||
jsoncpp)
|
||||
target_include_directories(arms
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(arms
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(arms
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(arms
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${arms_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms)
|
||||
install(FILES ${arms_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms/model)
|
||||
install(TARGETS arms
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
62
arms/include/alibabacloud/arms/ARMSClient.h
Normal file
62
arms/include/alibabacloud/arms/ARMSClient.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ARMSExport.h"
|
||||
#include "model/ARMSQueryDataSetRequest.h"
|
||||
#include "model/ARMSQueryDataSetResult.h"
|
||||
#include "model/MetricQueryRequest.h"
|
||||
#include "model/MetricQueryResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ARMSQueryDataSetResult> ARMSQueryDataSetOutcome;
|
||||
typedef std::future<ARMSQueryDataSetOutcome> ARMSQueryDataSetOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ARMSQueryDataSetRequest&, const ARMSQueryDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ARMSQueryDataSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::MetricQueryResult> MetricQueryOutcome;
|
||||
typedef std::future<MetricQueryOutcome> MetricQueryOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::MetricQueryRequest&, const MetricQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MetricQueryAsyncHandler;
|
||||
|
||||
ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ARMSClient();
|
||||
ARMSQueryDataSetOutcome aRMSQueryDataSet(const Model::ARMSQueryDataSetRequest &request)const;
|
||||
void aRMSQueryDataSetAsync(const Model::ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ARMSQueryDataSetOutcomeCallable aRMSQueryDataSetCallable(const Model::ARMSQueryDataSetRequest& request) const;
|
||||
MetricQueryOutcome metricQuery(const Model::MetricQueryRequest &request)const;
|
||||
void metricQueryAsync(const Model::MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MetricQueryOutcomeCallable metricQueryCallable(const Model::MetricQueryRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
32
arms/include/alibabacloud/arms/ARMSExport.h
Normal file
32
arms/include/alibabacloud/arms/ARMSExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_ARMS_ARMSEXPORT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ARMS_LIBRARY)
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
114
arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
Normal file
114
arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetRequest : public RpcServiceRequest
|
||||
{
|
||||
struct OptionalDims
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct RequiredDims
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Dimensions
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ARMSQueryDataSetRequest();
|
||||
~ARMSQueryDataSetRequest();
|
||||
|
||||
std::string getDateStr()const;
|
||||
void setDateStr(const std::string& dateStr);
|
||||
long getMinTime()const;
|
||||
void setMinTime(long minTime);
|
||||
bool getReduceTail()const;
|
||||
void setReduceTail(bool reduceTail);
|
||||
long getMaxTime()const;
|
||||
void setMaxTime(long maxTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::vector<OptionalDims> getOptionalDims()const;
|
||||
void setOptionalDims(const std::vector<OptionalDims>& optionalDims);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
int getIntervalInSec()const;
|
||||
void setIntervalInSec(int intervalInSec);
|
||||
bool getIsDrillDown()const;
|
||||
void setIsDrillDown(bool isDrillDown);
|
||||
bool getHungryMode()const;
|
||||
void setHungryMode(bool hungryMode);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOrderByKey()const;
|
||||
void setOrderByKey(const std::string& orderByKey);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
std::vector<RequiredDims> getRequiredDims()const;
|
||||
void setRequiredDims(const std::vector<RequiredDims>& requiredDims);
|
||||
long getDatasetId()const;
|
||||
void setDatasetId(long datasetId);
|
||||
std::vector<Dimensions> getDimensions()const;
|
||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
||||
|
||||
private:
|
||||
std::string dateStr_;
|
||||
long minTime_;
|
||||
bool reduceTail_;
|
||||
long maxTime_;
|
||||
std::string accessKeyId_;
|
||||
std::vector<OptionalDims> optionalDims_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
bool isDrillDown_;
|
||||
bool hungryMode_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string orderByKey_;
|
||||
int limit_;
|
||||
std::vector<RequiredDims> requiredDims_;
|
||||
long datasetId_;
|
||||
std::vector<Dimensions> dimensions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_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_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ARMSQueryDataSetResult();
|
||||
explicit ARMSQueryDataSetResult(const std::string &payload);
|
||||
~ARMSQueryDataSetResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
86
arms/include/alibabacloud/arms/model/MetricQueryRequest.h
Normal file
86
arms/include/alibabacloud/arms/model/MetricQueryRequest.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Filters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
MetricQueryRequest();
|
||||
~MetricQueryRequest();
|
||||
|
||||
int getIintervalInSec()const;
|
||||
void setIintervalInSec(int iintervalInSec);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
std::string getMetric()const;
|
||||
void setMetric(const std::string& metric);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::vector<std::string> getDimensions()const;
|
||||
void setDimensions(const std::vector<std::string>& dimensions);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
int iintervalInSec_;
|
||||
std::vector<std::string> measures_;
|
||||
std::string metric_;
|
||||
std::string securityToken_;
|
||||
int limit_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::vector<std::string> dimensions_;
|
||||
std::string order_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/MetricQueryResult.h
Normal file
51
arms/include/alibabacloud/arms/model/MetricQueryResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
MetricQueryResult();
|
||||
explicit MetricQueryResult(const std::string &payload);
|
||||
~MetricQueryResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
125
arms/src/ARMSClient.cc
Normal file
125
arms/src/ARMSClient.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* 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/arms/ARMSClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "ARMS";
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ARMSClient::~ARMSClient()
|
||||
{}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcome ARMSClient::aRMSQueryDataSet(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(ARMSQueryDataSetResult(outcome.result()));
|
||||
else
|
||||
return ARMSQueryDataSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::aRMSQueryDataSetAsync(const ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, aRMSQueryDataSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcomeCallable ARMSClient::aRMSQueryDataSetCallable(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ARMSQueryDataSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->aRMSQueryDataSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcome ARMSClient::metricQuery(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MetricQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MetricQueryOutcome(MetricQueryResult(outcome.result()));
|
||||
else
|
||||
return MetricQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::metricQueryAsync(const MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, metricQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcomeCallable ARMSClient::metricQueryCallable(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MetricQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->metricQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
236
arms/src/model/ARMSQueryDataSetRequest.cc
Normal file
236
arms/src/model/ARMSQueryDataSetRequest.cc
Normal file
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ARMSQueryDataSetRequest;
|
||||
|
||||
ARMSQueryDataSetRequest::ARMSQueryDataSetRequest() :
|
||||
RpcServiceRequest("arms", "2018-10-15", "ARMSQueryDataSet")
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetRequest::~ARMSQueryDataSetRequest()
|
||||
{}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getDateStr()const
|
||||
{
|
||||
return dateStr_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setDateStr(const std::string& dateStr)
|
||||
{
|
||||
dateStr_ = dateStr;
|
||||
setParameter("DateStr", dateStr);
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getMinTime()const
|
||||
{
|
||||
return minTime_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setMinTime(long minTime)
|
||||
{
|
||||
minTime_ = minTime;
|
||||
setParameter("MinTime", std::to_string(minTime));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getReduceTail()const
|
||||
{
|
||||
return reduceTail_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setReduceTail(bool reduceTail)
|
||||
{
|
||||
reduceTail_ = reduceTail;
|
||||
setParameter("ReduceTail", std::to_string(reduceTail));
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getMaxTime()const
|
||||
{
|
||||
return maxTime_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setMaxTime(long maxTime)
|
||||
{
|
||||
maxTime_ = maxTime;
|
||||
setParameter("MaxTime", std::to_string(maxTime));
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::OptionalDims> ARMSQueryDataSetRequest::getOptionalDims()const
|
||||
{
|
||||
return optionalDims_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setOptionalDims(const std::vector<OptionalDims>& optionalDims)
|
||||
{
|
||||
optionalDims_ = optionalDims;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= optionalDims.size(); i++) {
|
||||
auto obj = optionalDims.at(i);
|
||||
std::string str ="OptionalDims."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ARMSQueryDataSetRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
|
||||
int ARMSQueryDataSetRequest::getIntervalInSec()const
|
||||
{
|
||||
return intervalInSec_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getIsDrillDown()const
|
||||
{
|
||||
return isDrillDown_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setIsDrillDown(bool isDrillDown)
|
||||
{
|
||||
isDrillDown_ = isDrillDown;
|
||||
setParameter("IsDrillDown", std::to_string(isDrillDown));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getHungryMode()const
|
||||
{
|
||||
return hungryMode_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setHungryMode(bool hungryMode)
|
||||
{
|
||||
hungryMode_ = hungryMode;
|
||||
setParameter("HungryMode", std::to_string(hungryMode));
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getOrderByKey()const
|
||||
{
|
||||
return orderByKey_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setOrderByKey(const std::string& orderByKey)
|
||||
{
|
||||
orderByKey_ = orderByKey;
|
||||
setParameter("OrderByKey", orderByKey);
|
||||
}
|
||||
|
||||
int ARMSQueryDataSetRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::RequiredDims> ARMSQueryDataSetRequest::getRequiredDims()const
|
||||
{
|
||||
return requiredDims_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setRequiredDims(const std::vector<RequiredDims>& requiredDims)
|
||||
{
|
||||
requiredDims_ = requiredDims;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= requiredDims.size(); i++) {
|
||||
auto obj = requiredDims.at(i);
|
||||
std::string str ="RequiredDims."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getDatasetId()const
|
||||
{
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setDatasetId(long datasetId)
|
||||
{
|
||||
datasetId_ = datasetId;
|
||||
setParameter("DatasetId", std::to_string(datasetId));
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::Dimensions> ARMSQueryDataSetRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= dimensions.size(); i++) {
|
||||
auto obj = dimensions.at(i);
|
||||
std::string str ="Dimensions."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
52
arms/src/model/ARMSQueryDataSetResult.cc
Normal file
52
arms/src/model/ARMSQueryDataSetResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ARMSQueryDataSetResult::~ARMSQueryDataSetResult()
|
||||
{}
|
||||
|
||||
void ARMSQueryDataSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
167
arms/src/model/MetricQueryRequest.cc
Normal file
167
arms/src/model/MetricQueryRequest.cc
Normal file
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
* 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/arms/model/MetricQueryRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::MetricQueryRequest;
|
||||
|
||||
MetricQueryRequest::MetricQueryRequest() :
|
||||
RpcServiceRequest("arms", "2018-10-15", "MetricQuery")
|
||||
{}
|
||||
|
||||
MetricQueryRequest::~MetricQueryRequest()
|
||||
{}
|
||||
|
||||
int MetricQueryRequest::getIintervalInSec()const
|
||||
{
|
||||
return iintervalInSec_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setIintervalInSec(int iintervalInSec)
|
||||
{
|
||||
iintervalInSec_ = iintervalInSec;
|
||||
setParameter("IintervalInSec", std::to_string(iintervalInSec));
|
||||
}
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
int MetricQueryRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long MetricQueryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
long MetricQueryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<MetricQueryRequest::Filters> MetricQueryRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= filters.size(); i++) {
|
||||
auto obj = filters.at(i);
|
||||
std::string str ="Filters."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setDimensions(const std::vector<std::string>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
for(int i = 0; i!= dimensions.size(); i++)
|
||||
setParameter("Dimensions."+ std::to_string(i), dimensions.at(i));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
arms/src/model/MetricQueryResult.cc
Normal file
52
arms/src/model/MetricQueryResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/arms/model/MetricQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
MetricQueryResult::MetricQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MetricQueryResult::MetricQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MetricQueryResult::~MetricQueryResult()
|
||||
{}
|
||||
|
||||
void MetricQueryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string MetricQueryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
398
ccc/CMakeLists.txt
Normal file
398
ccc/CMakeLists.txt
Normal file
@@ -0,0 +1,398 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(ccc_public_header
|
||||
include/alibabacloud/ccc/CCCClient.h
|
||||
include/alibabacloud/ccc/CCCExport.h )
|
||||
|
||||
set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/GetJobListRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobListResult.h
|
||||
include/alibabacloud/ccc/model/ListUsersRequest.h
|
||||
include/alibabacloud/ccc/model/ListUsersResult.h
|
||||
include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h
|
||||
include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h
|
||||
include/alibabacloud/ccc/model/TwoPartiesCallRequest.h
|
||||
include/alibabacloud/ccc/model/TwoPartiesCallResult.h
|
||||
include/alibabacloud/ccc/model/DeleteSurveyRequest.h
|
||||
include/alibabacloud/ccc/model/DeleteSurveyResult.h
|
||||
include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h
|
||||
include/alibabacloud/ccc/model/ListPhoneNumbersResult.h
|
||||
include/alibabacloud/ccc/model/DownloadUnreachableContactsRequest.h
|
||||
include/alibabacloud/ccc/model/DownloadUnreachableContactsResult.h
|
||||
include/alibabacloud/ccc/model/DialogueRequest.h
|
||||
include/alibabacloud/ccc/model/DialogueResult.h
|
||||
include/alibabacloud/ccc/model/RefreshTokenRequest.h
|
||||
include/alibabacloud/ccc/model/RefreshTokenResult.h
|
||||
include/alibabacloud/ccc/model/CreateBatchJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CreateBatchJobsResult.h
|
||||
include/alibabacloud/ccc/model/RequestLoginInfoRequest.h
|
||||
include/alibabacloud/ccc/model/RequestLoginInfoResult.h
|
||||
include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobTemplateDownloadParamsResult.h
|
||||
include/alibabacloud/ccc/model/RemoveUsersRequest.h
|
||||
include/alibabacloud/ccc/model/RemoveUsersResult.h
|
||||
include/alibabacloud/ccc/model/CancelPredictiveJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CancelPredictiveJobsResult.h
|
||||
include/alibabacloud/ccc/model/StartBack2BackCallRequest.h
|
||||
include/alibabacloud/ccc/model/StartBack2BackCallResult.h
|
||||
include/alibabacloud/ccc/model/PublishSurveyRequest.h
|
||||
include/alibabacloud/ccc/model/PublishSurveyResult.h
|
||||
include/alibabacloud/ccc/model/GetUserRequest.h
|
||||
include/alibabacloud/ccc/model/GetUserResult.h
|
||||
include/alibabacloud/ccc/model/GetConversationListRequest.h
|
||||
include/alibabacloud/ccc/model/GetConversationListResult.h
|
||||
include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h
|
||||
include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h
|
||||
include/alibabacloud/ccc/model/ListJobsByGroupRequest.h
|
||||
include/alibabacloud/ccc/model/ListJobsByGroupResult.h
|
||||
include/alibabacloud/ccc/model/ListPredictiveJobStatusRequest.h
|
||||
include/alibabacloud/ccc/model/ListPredictiveJobStatusResult.h
|
||||
include/alibabacloud/ccc/model/ListJobGroupsRequest.h
|
||||
include/alibabacloud/ccc/model/ListJobGroupsResult.h
|
||||
include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h
|
||||
include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h
|
||||
include/alibabacloud/ccc/model/AddPhoneNumberRequest.h
|
||||
include/alibabacloud/ccc/model/AddPhoneNumberResult.h
|
||||
include/alibabacloud/ccc/model/ListRecordingsRequest.h
|
||||
include/alibabacloud/ccc/model/ListRecordingsResult.h
|
||||
include/alibabacloud/ccc/model/EncryptRequest.h
|
||||
include/alibabacloud/ccc/model/EncryptResult.h
|
||||
include/alibabacloud/ccc/model/SubmitBatchJobsRequest.h
|
||||
include/alibabacloud/ccc/model/SubmitBatchJobsResult.h
|
||||
include/alibabacloud/ccc/model/ListSurveysRequest.h
|
||||
include/alibabacloud/ccc/model/ListSurveysResult.h
|
||||
include/alibabacloud/ccc/model/GetJobDataUploadParamsRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobDataUploadParamsResult.h
|
||||
include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsRequest.h
|
||||
include/alibabacloud/ccc/model/ListBasicStatisticsReportSubItemsResult.h
|
||||
include/alibabacloud/ccc/model/SuspendJobsRequest.h
|
||||
include/alibabacloud/ccc/model/SuspendJobsResult.h
|
||||
include/alibabacloud/ccc/model/GetJobGroupRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobGroupResult.h
|
||||
include/alibabacloud/ccc/model/GetJobStatusByCallIdRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobStatusByCallIdResult.h
|
||||
include/alibabacloud/ccc/model/ListUnreachableContactsRequest.h
|
||||
include/alibabacloud/ccc/model/ListUnreachableContactsResult.h
|
||||
include/alibabacloud/ccc/model/ModifySkillGroupRequest.h
|
||||
include/alibabacloud/ccc/model/ModifySkillGroupResult.h
|
||||
include/alibabacloud/ccc/model/GetConversationDetailByContactIdRequest.h
|
||||
include/alibabacloud/ccc/model/GetConversationDetailByContactIdResult.h
|
||||
include/alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h
|
||||
include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h
|
||||
include/alibabacloud/ccc/model/LaunchAppraiseRequest.h
|
||||
include/alibabacloud/ccc/model/LaunchAppraiseResult.h
|
||||
include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h
|
||||
include/alibabacloud/ccc/model/DeleteSkillGroupResult.h
|
||||
include/alibabacloud/ccc/model/ModifyUserRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyUserResult.h
|
||||
include/alibabacloud/ccc/model/ListSkillGroupsRequest.h
|
||||
include/alibabacloud/ccc/model/ListSkillGroupsResult.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioRequest.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioResult.h
|
||||
include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h
|
||||
include/alibabacloud/ccc/model/RemovePhoneNumberResult.h
|
||||
include/alibabacloud/ccc/model/PickLocalNumberRequest.h
|
||||
include/alibabacloud/ccc/model/PickLocalNumberResult.h
|
||||
include/alibabacloud/ccc/model/GetJobRequest.h
|
||||
include/alibabacloud/ccc/model/GetJobResult.h
|
||||
include/alibabacloud/ccc/model/StartJobRequest.h
|
||||
include/alibabacloud/ccc/model/StartJobResult.h
|
||||
include/alibabacloud/ccc/model/CancelJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CancelJobsResult.h
|
||||
include/alibabacloud/ccc/model/GetConfigRequest.h
|
||||
include/alibabacloud/ccc/model/GetConfigResult.h
|
||||
include/alibabacloud/ccc/model/DownloadRecordingRequest.h
|
||||
include/alibabacloud/ccc/model/DownloadRecordingResult.h
|
||||
include/alibabacloud/ccc/model/GenerateAgentStatisticReportRequest.h
|
||||
include/alibabacloud/ccc/model/GenerateAgentStatisticReportResult.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioFromTemplateRequest.h
|
||||
include/alibabacloud/ccc/model/CreateScenarioFromTemplateResult.h
|
||||
include/alibabacloud/ccc/model/CreateJobGroupRequest.h
|
||||
include/alibabacloud/ccc/model/CreateJobGroupResult.h
|
||||
include/alibabacloud/ccc/model/GetTaskListRequest.h
|
||||
include/alibabacloud/ccc/model/GetTaskListResult.h
|
||||
include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportRequest.h
|
||||
include/alibabacloud/ccc/model/DownloadOriginalStatisticsReportResult.h
|
||||
include/alibabacloud/ccc/model/ListScenarioTemplatesRequest.h
|
||||
include/alibabacloud/ccc/model/ListScenarioTemplatesResult.h
|
||||
include/alibabacloud/ccc/model/ResumeJobsRequest.h
|
||||
include/alibabacloud/ccc/model/ResumeJobsResult.h
|
||||
include/alibabacloud/ccc/model/AssignUsersRequest.h
|
||||
include/alibabacloud/ccc/model/AssignUsersResult.h
|
||||
include/alibabacloud/ccc/model/GetSurveyRequest.h
|
||||
include/alibabacloud/ccc/model/GetSurveyResult.h
|
||||
include/alibabacloud/ccc/model/ListRolesRequest.h
|
||||
include/alibabacloud/ccc/model/ListRolesResult.h
|
||||
include/alibabacloud/ccc/model/ListConfigRequest.h
|
||||
include/alibabacloud/ccc/model/ListConfigResult.h
|
||||
include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h
|
||||
include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h
|
||||
include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h
|
||||
include/alibabacloud/ccc/model/ListScenariosRequest.h
|
||||
include/alibabacloud/ccc/model/ListScenariosResult.h
|
||||
include/alibabacloud/ccc/model/ListRealTimeAgentRequest.h
|
||||
include/alibabacloud/ccc/model/ListRealTimeAgentResult.h
|
||||
include/alibabacloud/ccc/model/AssignJobsRequest.h
|
||||
include/alibabacloud/ccc/model/AssignJobsResult.h
|
||||
include/alibabacloud/ccc/model/CreateUserRequest.h
|
||||
include/alibabacloud/ccc/model/CreateUserResult.h
|
||||
include/alibabacloud/ccc/model/ListPrivilegesOfUserRequest.h
|
||||
include/alibabacloud/ccc/model/ListPrivilegesOfUserResult.h
|
||||
include/alibabacloud/ccc/model/GetNumberRegionInfoRequest.h
|
||||
include/alibabacloud/ccc/model/GetNumberRegionInfoResult.h
|
||||
include/alibabacloud/ccc/model/GetScenarioRequest.h
|
||||
include/alibabacloud/ccc/model/GetScenarioResult.h
|
||||
include/alibabacloud/ccc/model/CreatePredictiveJobsRequest.h
|
||||
include/alibabacloud/ccc/model/CreatePredictiveJobsResult.h
|
||||
include/alibabacloud/ccc/model/GetAgentDataRequest.h
|
||||
include/alibabacloud/ccc/model/GetAgentDataResult.h
|
||||
include/alibabacloud/ccc/model/CreateSurveyRequest.h
|
||||
include/alibabacloud/ccc/model/CreateSurveyResult.h
|
||||
include/alibabacloud/ccc/model/ListJobStatusRequest.h
|
||||
include/alibabacloud/ccc/model/ListJobStatusResult.h
|
||||
include/alibabacloud/ccc/model/ModifySurveyRequest.h
|
||||
include/alibabacloud/ccc/model/ModifySurveyResult.h
|
||||
include/alibabacloud/ccc/model/ModifyScenarioRequest.h
|
||||
include/alibabacloud/ccc/model/ModifyScenarioResult.h
|
||||
include/alibabacloud/ccc/model/CreateSkillGroupRequest.h
|
||||
include/alibabacloud/ccc/model/CreateSkillGroupResult.h
|
||||
include/alibabacloud/ccc/model/GetServiceExtensionsRequest.h
|
||||
include/alibabacloud/ccc/model/GetServiceExtensionsResult.h
|
||||
include/alibabacloud/ccc/model/ListContactFlowsRequest.h
|
||||
include/alibabacloud/ccc/model/ListContactFlowsResult.h
|
||||
include/alibabacloud/ccc/model/DeleteJobGroupRequest.h
|
||||
include/alibabacloud/ccc/model/DeleteJobGroupResult.h )
|
||||
|
||||
set(ccc_src
|
||||
src/CCCClient.cc
|
||||
src/model/GetJobListRequest.cc
|
||||
src/model/GetJobListResult.cc
|
||||
src/model/ListUsersRequest.cc
|
||||
src/model/ListUsersResult.cc
|
||||
src/model/ListSkillGroupsOfUserRequest.cc
|
||||
src/model/ListSkillGroupsOfUserResult.cc
|
||||
src/model/TwoPartiesCallRequest.cc
|
||||
src/model/TwoPartiesCallResult.cc
|
||||
src/model/DeleteSurveyRequest.cc
|
||||
src/model/DeleteSurveyResult.cc
|
||||
src/model/ListPhoneNumbersRequest.cc
|
||||
src/model/ListPhoneNumbersResult.cc
|
||||
src/model/DownloadUnreachableContactsRequest.cc
|
||||
src/model/DownloadUnreachableContactsResult.cc
|
||||
src/model/DialogueRequest.cc
|
||||
src/model/DialogueResult.cc
|
||||
src/model/RefreshTokenRequest.cc
|
||||
src/model/RefreshTokenResult.cc
|
||||
src/model/CreateBatchJobsRequest.cc
|
||||
src/model/CreateBatchJobsResult.cc
|
||||
src/model/RequestLoginInfoRequest.cc
|
||||
src/model/RequestLoginInfoResult.cc
|
||||
src/model/GetJobTemplateDownloadParamsRequest.cc
|
||||
src/model/GetJobTemplateDownloadParamsResult.cc
|
||||
src/model/RemoveUsersRequest.cc
|
||||
src/model/RemoveUsersResult.cc
|
||||
src/model/CancelPredictiveJobsRequest.cc
|
||||
src/model/CancelPredictiveJobsResult.cc
|
||||
src/model/StartBack2BackCallRequest.cc
|
||||
src/model/StartBack2BackCallResult.cc
|
||||
src/model/PublishSurveyRequest.cc
|
||||
src/model/PublishSurveyResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/GetConversationListRequest.cc
|
||||
src/model/GetConversationListResult.cc
|
||||
src/model/ListUsersOfSkillGroupRequest.cc
|
||||
src/model/ListUsersOfSkillGroupResult.cc
|
||||
src/model/ListJobsByGroupRequest.cc
|
||||
src/model/ListJobsByGroupResult.cc
|
||||
src/model/ListPredictiveJobStatusRequest.cc
|
||||
src/model/ListPredictiveJobStatusResult.cc
|
||||
src/model/ListJobGroupsRequest.cc
|
||||
src/model/ListJobGroupsResult.cc
|
||||
src/model/ListCallDetailRecordsRequest.cc
|
||||
src/model/ListCallDetailRecordsResult.cc
|
||||
src/model/AddPhoneNumberRequest.cc
|
||||
src/model/AddPhoneNumberResult.cc
|
||||
src/model/ListRecordingsRequest.cc
|
||||
src/model/ListRecordingsResult.cc
|
||||
src/model/EncryptRequest.cc
|
||||
src/model/EncryptResult.cc
|
||||
src/model/SubmitBatchJobsRequest.cc
|
||||
src/model/SubmitBatchJobsResult.cc
|
||||
src/model/ListSurveysRequest.cc
|
||||
src/model/ListSurveysResult.cc
|
||||
src/model/GetJobDataUploadParamsRequest.cc
|
||||
src/model/GetJobDataUploadParamsResult.cc
|
||||
src/model/ListBasicStatisticsReportSubItemsRequest.cc
|
||||
src/model/ListBasicStatisticsReportSubItemsResult.cc
|
||||
src/model/SuspendJobsRequest.cc
|
||||
src/model/SuspendJobsResult.cc
|
||||
src/model/GetJobGroupRequest.cc
|
||||
src/model/GetJobGroupResult.cc
|
||||
src/model/GetJobStatusByCallIdRequest.cc
|
||||
src/model/GetJobStatusByCallIdResult.cc
|
||||
src/model/ListUnreachableContactsRequest.cc
|
||||
src/model/ListUnreachableContactsResult.cc
|
||||
src/model/ModifySkillGroupRequest.cc
|
||||
src/model/ModifySkillGroupResult.cc
|
||||
src/model/GetConversationDetailByContactIdRequest.cc
|
||||
src/model/GetConversationDetailByContactIdResult.cc
|
||||
src/model/ListRecordingsByContactIdRequest.cc
|
||||
src/model/ListRecordingsByContactIdResult.cc
|
||||
src/model/LaunchAppraiseRequest.cc
|
||||
src/model/LaunchAppraiseResult.cc
|
||||
src/model/DeleteSkillGroupRequest.cc
|
||||
src/model/DeleteSkillGroupResult.cc
|
||||
src/model/ModifyUserRequest.cc
|
||||
src/model/ModifyUserResult.cc
|
||||
src/model/ListSkillGroupsRequest.cc
|
||||
src/model/ListSkillGroupsResult.cc
|
||||
src/model/CreateScenarioRequest.cc
|
||||
src/model/CreateScenarioResult.cc
|
||||
src/model/RemovePhoneNumberRequest.cc
|
||||
src/model/RemovePhoneNumberResult.cc
|
||||
src/model/PickLocalNumberRequest.cc
|
||||
src/model/PickLocalNumberResult.cc
|
||||
src/model/GetJobRequest.cc
|
||||
src/model/GetJobResult.cc
|
||||
src/model/StartJobRequest.cc
|
||||
src/model/StartJobResult.cc
|
||||
src/model/CancelJobsRequest.cc
|
||||
src/model/CancelJobsResult.cc
|
||||
src/model/GetConfigRequest.cc
|
||||
src/model/GetConfigResult.cc
|
||||
src/model/DownloadRecordingRequest.cc
|
||||
src/model/DownloadRecordingResult.cc
|
||||
src/model/GenerateAgentStatisticReportRequest.cc
|
||||
src/model/GenerateAgentStatisticReportResult.cc
|
||||
src/model/CreateScenarioFromTemplateRequest.cc
|
||||
src/model/CreateScenarioFromTemplateResult.cc
|
||||
src/model/CreateJobGroupRequest.cc
|
||||
src/model/CreateJobGroupResult.cc
|
||||
src/model/GetTaskListRequest.cc
|
||||
src/model/GetTaskListResult.cc
|
||||
src/model/DownloadOriginalStatisticsReportRequest.cc
|
||||
src/model/DownloadOriginalStatisticsReportResult.cc
|
||||
src/model/ListScenarioTemplatesRequest.cc
|
||||
src/model/ListScenarioTemplatesResult.cc
|
||||
src/model/ResumeJobsRequest.cc
|
||||
src/model/ResumeJobsResult.cc
|
||||
src/model/AssignUsersRequest.cc
|
||||
src/model/AssignUsersResult.cc
|
||||
src/model/GetSurveyRequest.cc
|
||||
src/model/GetSurveyResult.cc
|
||||
src/model/ListRolesRequest.cc
|
||||
src/model/ListRolesResult.cc
|
||||
src/model/ListConfigRequest.cc
|
||||
src/model/ListConfigResult.cc
|
||||
src/model/LaunchShortMessageAppraiseRequest.cc
|
||||
src/model/LaunchShortMessageAppraiseResult.cc
|
||||
src/model/ModifyPhoneNumberRequest.cc
|
||||
src/model/ModifyPhoneNumberResult.cc
|
||||
src/model/ListScenariosRequest.cc
|
||||
src/model/ListScenariosResult.cc
|
||||
src/model/ListRealTimeAgentRequest.cc
|
||||
src/model/ListRealTimeAgentResult.cc
|
||||
src/model/AssignJobsRequest.cc
|
||||
src/model/AssignJobsResult.cc
|
||||
src/model/CreateUserRequest.cc
|
||||
src/model/CreateUserResult.cc
|
||||
src/model/ListPrivilegesOfUserRequest.cc
|
||||
src/model/ListPrivilegesOfUserResult.cc
|
||||
src/model/GetNumberRegionInfoRequest.cc
|
||||
src/model/GetNumberRegionInfoResult.cc
|
||||
src/model/GetScenarioRequest.cc
|
||||
src/model/GetScenarioResult.cc
|
||||
src/model/CreatePredictiveJobsRequest.cc
|
||||
src/model/CreatePredictiveJobsResult.cc
|
||||
src/model/GetAgentDataRequest.cc
|
||||
src/model/GetAgentDataResult.cc
|
||||
src/model/CreateSurveyRequest.cc
|
||||
src/model/CreateSurveyResult.cc
|
||||
src/model/ListJobStatusRequest.cc
|
||||
src/model/ListJobStatusResult.cc
|
||||
src/model/ModifySurveyRequest.cc
|
||||
src/model/ModifySurveyResult.cc
|
||||
src/model/ModifyScenarioRequest.cc
|
||||
src/model/ModifyScenarioResult.cc
|
||||
src/model/CreateSkillGroupRequest.cc
|
||||
src/model/CreateSkillGroupResult.cc
|
||||
src/model/GetServiceExtensionsRequest.cc
|
||||
src/model/GetServiceExtensionsResult.cc
|
||||
src/model/ListContactFlowsRequest.cc
|
||||
src/model/ListContactFlowsResult.cc
|
||||
src/model/DeleteJobGroupRequest.cc
|
||||
src/model/DeleteJobGroupResult.cc )
|
||||
|
||||
add_library(ccc ${LIB_TYPE}
|
||||
${ccc_public_header}
|
||||
${ccc_public_header_model}
|
||||
${ccc_src})
|
||||
|
||||
set_target_properties(ccc
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ccc
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(ccc
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CCC_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(ccc
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(ccc
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(ccc
|
||||
jsoncpp)
|
||||
target_include_directories(ccc
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(ccc
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(ccc
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(ccc
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(ccc
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${ccc_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ccc)
|
||||
install(FILES ${ccc_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ccc/model)
|
||||
install(TARGETS ccc
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
678
ccc/include/alibabacloud/ccc/CCCClient.h
Normal file
678
ccc/include/alibabacloud/ccc/CCCClient.h
Normal file
@@ -0,0 +1,678 @@
|
||||
/*
|
||||
* 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_CCCCLIENT_H_
|
||||
#define ALIBABACLOUD_CCC_CCCCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CCCExport.h"
|
||||
#include "model/GetJobListRequest.h"
|
||||
#include "model/GetJobListResult.h"
|
||||
#include "model/ListUsersRequest.h"
|
||||
#include "model/ListUsersResult.h"
|
||||
#include "model/ListSkillGroupsOfUserRequest.h"
|
||||
#include "model/ListSkillGroupsOfUserResult.h"
|
||||
#include "model/TwoPartiesCallRequest.h"
|
||||
#include "model/TwoPartiesCallResult.h"
|
||||
#include "model/DeleteSurveyRequest.h"
|
||||
#include "model/DeleteSurveyResult.h"
|
||||
#include "model/ListPhoneNumbersRequest.h"
|
||||
#include "model/ListPhoneNumbersResult.h"
|
||||
#include "model/DownloadUnreachableContactsRequest.h"
|
||||
#include "model/DownloadUnreachableContactsResult.h"
|
||||
#include "model/DialogueRequest.h"
|
||||
#include "model/DialogueResult.h"
|
||||
#include "model/RefreshTokenRequest.h"
|
||||
#include "model/RefreshTokenResult.h"
|
||||
#include "model/CreateBatchJobsRequest.h"
|
||||
#include "model/CreateBatchJobsResult.h"
|
||||
#include "model/RequestLoginInfoRequest.h"
|
||||
#include "model/RequestLoginInfoResult.h"
|
||||
#include "model/GetJobTemplateDownloadParamsRequest.h"
|
||||
#include "model/GetJobTemplateDownloadParamsResult.h"
|
||||
#include "model/RemoveUsersRequest.h"
|
||||
#include "model/RemoveUsersResult.h"
|
||||
#include "model/CancelPredictiveJobsRequest.h"
|
||||
#include "model/CancelPredictiveJobsResult.h"
|
||||
#include "model/StartBack2BackCallRequest.h"
|
||||
#include "model/StartBack2BackCallResult.h"
|
||||
#include "model/PublishSurveyRequest.h"
|
||||
#include "model/PublishSurveyResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/GetConversationListRequest.h"
|
||||
#include "model/GetConversationListResult.h"
|
||||
#include "model/ListUsersOfSkillGroupRequest.h"
|
||||
#include "model/ListUsersOfSkillGroupResult.h"
|
||||
#include "model/ListJobsByGroupRequest.h"
|
||||
#include "model/ListJobsByGroupResult.h"
|
||||
#include "model/ListPredictiveJobStatusRequest.h"
|
||||
#include "model/ListPredictiveJobStatusResult.h"
|
||||
#include "model/ListJobGroupsRequest.h"
|
||||
#include "model/ListJobGroupsResult.h"
|
||||
#include "model/ListCallDetailRecordsRequest.h"
|
||||
#include "model/ListCallDetailRecordsResult.h"
|
||||
#include "model/AddPhoneNumberRequest.h"
|
||||
#include "model/AddPhoneNumberResult.h"
|
||||
#include "model/ListRecordingsRequest.h"
|
||||
#include "model/ListRecordingsResult.h"
|
||||
#include "model/EncryptRequest.h"
|
||||
#include "model/EncryptResult.h"
|
||||
#include "model/SubmitBatchJobsRequest.h"
|
||||
#include "model/SubmitBatchJobsResult.h"
|
||||
#include "model/ListSurveysRequest.h"
|
||||
#include "model/ListSurveysResult.h"
|
||||
#include "model/GetJobDataUploadParamsRequest.h"
|
||||
#include "model/GetJobDataUploadParamsResult.h"
|
||||
#include "model/ListBasicStatisticsReportSubItemsRequest.h"
|
||||
#include "model/ListBasicStatisticsReportSubItemsResult.h"
|
||||
#include "model/SuspendJobsRequest.h"
|
||||
#include "model/SuspendJobsResult.h"
|
||||
#include "model/GetJobGroupRequest.h"
|
||||
#include "model/GetJobGroupResult.h"
|
||||
#include "model/GetJobStatusByCallIdRequest.h"
|
||||
#include "model/GetJobStatusByCallIdResult.h"
|
||||
#include "model/ListUnreachableContactsRequest.h"
|
||||
#include "model/ListUnreachableContactsResult.h"
|
||||
#include "model/ModifySkillGroupRequest.h"
|
||||
#include "model/ModifySkillGroupResult.h"
|
||||
#include "model/GetConversationDetailByContactIdRequest.h"
|
||||
#include "model/GetConversationDetailByContactIdResult.h"
|
||||
#include "model/ListRecordingsByContactIdRequest.h"
|
||||
#include "model/ListRecordingsByContactIdResult.h"
|
||||
#include "model/LaunchAppraiseRequest.h"
|
||||
#include "model/LaunchAppraiseResult.h"
|
||||
#include "model/DeleteSkillGroupRequest.h"
|
||||
#include "model/DeleteSkillGroupResult.h"
|
||||
#include "model/ModifyUserRequest.h"
|
||||
#include "model/ModifyUserResult.h"
|
||||
#include "model/ListSkillGroupsRequest.h"
|
||||
#include "model/ListSkillGroupsResult.h"
|
||||
#include "model/CreateScenarioRequest.h"
|
||||
#include "model/CreateScenarioResult.h"
|
||||
#include "model/RemovePhoneNumberRequest.h"
|
||||
#include "model/RemovePhoneNumberResult.h"
|
||||
#include "model/PickLocalNumberRequest.h"
|
||||
#include "model/PickLocalNumberResult.h"
|
||||
#include "model/GetJobRequest.h"
|
||||
#include "model/GetJobResult.h"
|
||||
#include "model/StartJobRequest.h"
|
||||
#include "model/StartJobResult.h"
|
||||
#include "model/CancelJobsRequest.h"
|
||||
#include "model/CancelJobsResult.h"
|
||||
#include "model/GetConfigRequest.h"
|
||||
#include "model/GetConfigResult.h"
|
||||
#include "model/DownloadRecordingRequest.h"
|
||||
#include "model/DownloadRecordingResult.h"
|
||||
#include "model/GenerateAgentStatisticReportRequest.h"
|
||||
#include "model/GenerateAgentStatisticReportResult.h"
|
||||
#include "model/CreateScenarioFromTemplateRequest.h"
|
||||
#include "model/CreateScenarioFromTemplateResult.h"
|
||||
#include "model/CreateJobGroupRequest.h"
|
||||
#include "model/CreateJobGroupResult.h"
|
||||
#include "model/GetTaskListRequest.h"
|
||||
#include "model/GetTaskListResult.h"
|
||||
#include "model/DownloadOriginalStatisticsReportRequest.h"
|
||||
#include "model/DownloadOriginalStatisticsReportResult.h"
|
||||
#include "model/ListScenarioTemplatesRequest.h"
|
||||
#include "model/ListScenarioTemplatesResult.h"
|
||||
#include "model/ResumeJobsRequest.h"
|
||||
#include "model/ResumeJobsResult.h"
|
||||
#include "model/AssignUsersRequest.h"
|
||||
#include "model/AssignUsersResult.h"
|
||||
#include "model/GetSurveyRequest.h"
|
||||
#include "model/GetSurveyResult.h"
|
||||
#include "model/ListRolesRequest.h"
|
||||
#include "model/ListRolesResult.h"
|
||||
#include "model/ListConfigRequest.h"
|
||||
#include "model/ListConfigResult.h"
|
||||
#include "model/LaunchShortMessageAppraiseRequest.h"
|
||||
#include "model/LaunchShortMessageAppraiseResult.h"
|
||||
#include "model/ModifyPhoneNumberRequest.h"
|
||||
#include "model/ModifyPhoneNumberResult.h"
|
||||
#include "model/ListScenariosRequest.h"
|
||||
#include "model/ListScenariosResult.h"
|
||||
#include "model/ListRealTimeAgentRequest.h"
|
||||
#include "model/ListRealTimeAgentResult.h"
|
||||
#include "model/AssignJobsRequest.h"
|
||||
#include "model/AssignJobsResult.h"
|
||||
#include "model/CreateUserRequest.h"
|
||||
#include "model/CreateUserResult.h"
|
||||
#include "model/ListPrivilegesOfUserRequest.h"
|
||||
#include "model/ListPrivilegesOfUserResult.h"
|
||||
#include "model/GetNumberRegionInfoRequest.h"
|
||||
#include "model/GetNumberRegionInfoResult.h"
|
||||
#include "model/GetScenarioRequest.h"
|
||||
#include "model/GetScenarioResult.h"
|
||||
#include "model/CreatePredictiveJobsRequest.h"
|
||||
#include "model/CreatePredictiveJobsResult.h"
|
||||
#include "model/GetAgentDataRequest.h"
|
||||
#include "model/GetAgentDataResult.h"
|
||||
#include "model/CreateSurveyRequest.h"
|
||||
#include "model/CreateSurveyResult.h"
|
||||
#include "model/ListJobStatusRequest.h"
|
||||
#include "model/ListJobStatusResult.h"
|
||||
#include "model/ModifySurveyRequest.h"
|
||||
#include "model/ModifySurveyResult.h"
|
||||
#include "model/ModifyScenarioRequest.h"
|
||||
#include "model/ModifyScenarioResult.h"
|
||||
#include "model/CreateSkillGroupRequest.h"
|
||||
#include "model/CreateSkillGroupResult.h"
|
||||
#include "model/GetServiceExtensionsRequest.h"
|
||||
#include "model/GetServiceExtensionsResult.h"
|
||||
#include "model/ListContactFlowsRequest.h"
|
||||
#include "model/ListContactFlowsResult.h"
|
||||
#include "model/DeleteJobGroupRequest.h"
|
||||
#include "model/DeleteJobGroupResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::GetJobListResult> GetJobListOutcome;
|
||||
typedef std::future<GetJobListOutcome> GetJobListOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobListRequest&, const GetJobListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
|
||||
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSkillGroupsOfUserResult> ListSkillGroupsOfUserOutcome;
|
||||
typedef std::future<ListSkillGroupsOfUserOutcome> ListSkillGroupsOfUserOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListSkillGroupsOfUserRequest&, const ListSkillGroupsOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSkillGroupsOfUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::TwoPartiesCallResult> TwoPartiesCallOutcome;
|
||||
typedef std::future<TwoPartiesCallOutcome> TwoPartiesCallOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::TwoPartiesCallRequest&, const TwoPartiesCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TwoPartiesCallAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSurveyResult> DeleteSurveyOutcome;
|
||||
typedef std::future<DeleteSurveyOutcome> DeleteSurveyOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DeleteSurveyRequest&, const DeleteSurveyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSurveyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPhoneNumbersResult> ListPhoneNumbersOutcome;
|
||||
typedef std::future<ListPhoneNumbersOutcome> ListPhoneNumbersOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPhoneNumbersRequest&, const ListPhoneNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhoneNumbersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadUnreachableContactsResult> DownloadUnreachableContactsOutcome;
|
||||
typedef std::future<DownloadUnreachableContactsOutcome> DownloadUnreachableContactsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DownloadUnreachableContactsRequest&, const DownloadUnreachableContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadUnreachableContactsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DialogueResult> DialogueOutcome;
|
||||
typedef std::future<DialogueOutcome> DialogueOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DialogueRequest&, const DialogueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DialogueAsyncHandler;
|
||||
typedef Outcome<Error, Model::RefreshTokenResult> RefreshTokenOutcome;
|
||||
typedef std::future<RefreshTokenOutcome> RefreshTokenOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RefreshTokenRequest&, const RefreshTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBatchJobsResult> CreateBatchJobsOutcome;
|
||||
typedef std::future<CreateBatchJobsOutcome> CreateBatchJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateBatchJobsRequest&, const CreateBatchJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBatchJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RequestLoginInfoResult> RequestLoginInfoOutcome;
|
||||
typedef std::future<RequestLoginInfoOutcome> RequestLoginInfoOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RequestLoginInfoRequest&, const RequestLoginInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RequestLoginInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobTemplateDownloadParamsResult> GetJobTemplateDownloadParamsOutcome;
|
||||
typedef std::future<GetJobTemplateDownloadParamsOutcome> GetJobTemplateDownloadParamsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobTemplateDownloadParamsRequest&, const GetJobTemplateDownloadParamsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobTemplateDownloadParamsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveUsersResult> RemoveUsersOutcome;
|
||||
typedef std::future<RemoveUsersOutcome> RemoveUsersOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RemoveUsersRequest&, const RemoveUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelPredictiveJobsResult> CancelPredictiveJobsOutcome;
|
||||
typedef std::future<CancelPredictiveJobsOutcome> CancelPredictiveJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CancelPredictiveJobsRequest&, const CancelPredictiveJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelPredictiveJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartBack2BackCallResult> StartBack2BackCallOutcome;
|
||||
typedef std::future<StartBack2BackCallOutcome> StartBack2BackCallOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::StartBack2BackCallRequest&, const StartBack2BackCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartBack2BackCallAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishSurveyResult> PublishSurveyOutcome;
|
||||
typedef std::future<PublishSurveyOutcome> PublishSurveyOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PublishSurveyRequest&, const PublishSurveyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishSurveyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConversationListResult> GetConversationListOutcome;
|
||||
typedef std::future<GetConversationListOutcome> GetConversationListOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetConversationListRequest&, const GetConversationListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConversationListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUsersOfSkillGroupResult> ListUsersOfSkillGroupOutcome;
|
||||
typedef std::future<ListUsersOfSkillGroupOutcome> ListUsersOfSkillGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListUsersOfSkillGroupRequest&, const ListUsersOfSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersOfSkillGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobsByGroupResult> ListJobsByGroupOutcome;
|
||||
typedef std::future<ListJobsByGroupOutcome> ListJobsByGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListJobsByGroupRequest&, const ListJobsByGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsByGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPredictiveJobStatusResult> ListPredictiveJobStatusOutcome;
|
||||
typedef std::future<ListPredictiveJobStatusOutcome> ListPredictiveJobStatusOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPredictiveJobStatusRequest&, const ListPredictiveJobStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPredictiveJobStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobGroupsResult> ListJobGroupsOutcome;
|
||||
typedef std::future<ListJobGroupsOutcome> ListJobGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListJobGroupsRequest&, const ListJobGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCallDetailRecordsResult> ListCallDetailRecordsOutcome;
|
||||
typedef std::future<ListCallDetailRecordsOutcome> ListCallDetailRecordsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListCallDetailRecordsRequest&, const ListCallDetailRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCallDetailRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddPhoneNumberResult> AddPhoneNumberOutcome;
|
||||
typedef std::future<AddPhoneNumberOutcome> AddPhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::AddPhoneNumberRequest&, const AddPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddPhoneNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRecordingsResult> ListRecordingsOutcome;
|
||||
typedef std::future<ListRecordingsOutcome> ListRecordingsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListRecordingsRequest&, const ListRecordingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRecordingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::EncryptResult> EncryptOutcome;
|
||||
typedef std::future<EncryptOutcome> EncryptOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::EncryptRequest&, const EncryptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EncryptAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitBatchJobsResult> SubmitBatchJobsOutcome;
|
||||
typedef std::future<SubmitBatchJobsOutcome> SubmitBatchJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::SubmitBatchJobsRequest&, const SubmitBatchJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitBatchJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSurveysResult> ListSurveysOutcome;
|
||||
typedef std::future<ListSurveysOutcome> ListSurveysOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListSurveysRequest&, const ListSurveysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSurveysAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobDataUploadParamsResult> GetJobDataUploadParamsOutcome;
|
||||
typedef std::future<GetJobDataUploadParamsOutcome> GetJobDataUploadParamsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobDataUploadParamsRequest&, const GetJobDataUploadParamsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobDataUploadParamsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListBasicStatisticsReportSubItemsResult> ListBasicStatisticsReportSubItemsOutcome;
|
||||
typedef std::future<ListBasicStatisticsReportSubItemsOutcome> ListBasicStatisticsReportSubItemsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListBasicStatisticsReportSubItemsRequest&, const ListBasicStatisticsReportSubItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBasicStatisticsReportSubItemsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SuspendJobsResult> SuspendJobsOutcome;
|
||||
typedef std::future<SuspendJobsOutcome> SuspendJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::SuspendJobsRequest&, const SuspendJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobGroupResult> GetJobGroupOutcome;
|
||||
typedef std::future<GetJobGroupOutcome> GetJobGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobGroupRequest&, const GetJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobStatusByCallIdResult> GetJobStatusByCallIdOutcome;
|
||||
typedef std::future<GetJobStatusByCallIdOutcome> GetJobStatusByCallIdOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobStatusByCallIdRequest&, const GetJobStatusByCallIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobStatusByCallIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUnreachableContactsResult> ListUnreachableContactsOutcome;
|
||||
typedef std::future<ListUnreachableContactsOutcome> ListUnreachableContactsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListUnreachableContactsRequest&, const ListUnreachableContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUnreachableContactsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySkillGroupResult> ModifySkillGroupOutcome;
|
||||
typedef std::future<ModifySkillGroupOutcome> ModifySkillGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifySkillGroupRequest&, const ModifySkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySkillGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConversationDetailByContactIdResult> GetConversationDetailByContactIdOutcome;
|
||||
typedef std::future<GetConversationDetailByContactIdOutcome> GetConversationDetailByContactIdOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetConversationDetailByContactIdRequest&, const GetConversationDetailByContactIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConversationDetailByContactIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRecordingsByContactIdResult> ListRecordingsByContactIdOutcome;
|
||||
typedef std::future<ListRecordingsByContactIdOutcome> ListRecordingsByContactIdOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListRecordingsByContactIdRequest&, const ListRecordingsByContactIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRecordingsByContactIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::LaunchAppraiseResult> LaunchAppraiseOutcome;
|
||||
typedef std::future<LaunchAppraiseOutcome> LaunchAppraiseOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::LaunchAppraiseRequest&, const LaunchAppraiseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LaunchAppraiseAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSkillGroupResult> DeleteSkillGroupOutcome;
|
||||
typedef std::future<DeleteSkillGroupOutcome> DeleteSkillGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DeleteSkillGroupRequest&, const DeleteSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSkillGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyUserResult> ModifyUserOutcome;
|
||||
typedef std::future<ModifyUserOutcome> ModifyUserOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyUserRequest&, const ModifyUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSkillGroupsResult> ListSkillGroupsOutcome;
|
||||
typedef std::future<ListSkillGroupsOutcome> ListSkillGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListSkillGroupsRequest&, const ListSkillGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSkillGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateScenarioResult> CreateScenarioOutcome;
|
||||
typedef std::future<CreateScenarioOutcome> CreateScenarioOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateScenarioRequest&, const CreateScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemovePhoneNumberResult> RemovePhoneNumberOutcome;
|
||||
typedef std::future<RemovePhoneNumberOutcome> RemovePhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RemovePhoneNumberRequest&, const RemovePhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemovePhoneNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::PickLocalNumberResult> PickLocalNumberOutcome;
|
||||
typedef std::future<PickLocalNumberOutcome> PickLocalNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::PickLocalNumberRequest&, const PickLocalNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PickLocalNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobResult> GetJobOutcome;
|
||||
typedef std::future<GetJobOutcome> GetJobOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetJobRequest&, const GetJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartJobResult> StartJobOutcome;
|
||||
typedef std::future<StartJobOutcome> StartJobOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::StartJobRequest&, const StartJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelJobsResult> CancelJobsOutcome;
|
||||
typedef std::future<CancelJobsOutcome> CancelJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CancelJobsRequest&, const CancelJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConfigResult> GetConfigOutcome;
|
||||
typedef std::future<GetConfigOutcome> GetConfigOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetConfigRequest&, const GetConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadRecordingResult> DownloadRecordingOutcome;
|
||||
typedef std::future<DownloadRecordingOutcome> DownloadRecordingOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DownloadRecordingRequest&, const DownloadRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateAgentStatisticReportResult> GenerateAgentStatisticReportOutcome;
|
||||
typedef std::future<GenerateAgentStatisticReportOutcome> GenerateAgentStatisticReportOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GenerateAgentStatisticReportRequest&, const GenerateAgentStatisticReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateAgentStatisticReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateScenarioFromTemplateResult> CreateScenarioFromTemplateOutcome;
|
||||
typedef std::future<CreateScenarioFromTemplateOutcome> CreateScenarioFromTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateScenarioFromTemplateRequest&, const CreateScenarioFromTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateScenarioFromTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateJobGroupResult> CreateJobGroupOutcome;
|
||||
typedef std::future<CreateJobGroupOutcome> CreateJobGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateJobGroupRequest&, const CreateJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateJobGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTaskListResult> GetTaskListOutcome;
|
||||
typedef std::future<GetTaskListOutcome> GetTaskListOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetTaskListRequest&, const GetTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadOriginalStatisticsReportResult> DownloadOriginalStatisticsReportOutcome;
|
||||
typedef std::future<DownloadOriginalStatisticsReportOutcome> DownloadOriginalStatisticsReportOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DownloadOriginalStatisticsReportRequest&, const DownloadOriginalStatisticsReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadOriginalStatisticsReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListScenarioTemplatesResult> ListScenarioTemplatesOutcome;
|
||||
typedef std::future<ListScenarioTemplatesOutcome> ListScenarioTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListScenarioTemplatesRequest&, const ListScenarioTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScenarioTemplatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ResumeJobsResult> ResumeJobsOutcome;
|
||||
typedef std::future<ResumeJobsOutcome> ResumeJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ResumeJobsRequest&, const ResumeJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResumeJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssignUsersResult> AssignUsersOutcome;
|
||||
typedef std::future<AssignUsersOutcome> AssignUsersOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::AssignUsersRequest&, const AssignUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssignUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSurveyResult> GetSurveyOutcome;
|
||||
typedef std::future<GetSurveyOutcome> GetSurveyOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetSurveyRequest&, const GetSurveyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSurveyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRolesResult> ListRolesOutcome;
|
||||
typedef std::future<ListRolesOutcome> ListRolesOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListRolesRequest&, const ListRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRolesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListConfigResult> ListConfigOutcome;
|
||||
typedef std::future<ListConfigOutcome> ListConfigOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListConfigRequest&, const ListConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::LaunchShortMessageAppraiseResult> LaunchShortMessageAppraiseOutcome;
|
||||
typedef std::future<LaunchShortMessageAppraiseOutcome> LaunchShortMessageAppraiseOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::LaunchShortMessageAppraiseRequest&, const LaunchShortMessageAppraiseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LaunchShortMessageAppraiseAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyPhoneNumberResult> ModifyPhoneNumberOutcome;
|
||||
typedef std::future<ModifyPhoneNumberOutcome> ModifyPhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyPhoneNumberRequest&, const ModifyPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListScenariosResult> ListScenariosOutcome;
|
||||
typedef std::future<ListScenariosOutcome> ListScenariosOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListScenariosRequest&, const ListScenariosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScenariosAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRealTimeAgentResult> ListRealTimeAgentOutcome;
|
||||
typedef std::future<ListRealTimeAgentOutcome> ListRealTimeAgentOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListRealTimeAgentRequest&, const ListRealTimeAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRealTimeAgentAsyncHandler;
|
||||
typedef Outcome<Error, Model::AssignJobsResult> AssignJobsOutcome;
|
||||
typedef std::future<AssignJobsOutcome> AssignJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::AssignJobsRequest&, const AssignJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssignJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateUserResult> CreateUserOutcome;
|
||||
typedef std::future<CreateUserOutcome> CreateUserOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateUserRequest&, const CreateUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPrivilegesOfUserResult> ListPrivilegesOfUserOutcome;
|
||||
typedef std::future<ListPrivilegesOfUserOutcome> ListPrivilegesOfUserOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListPrivilegesOfUserRequest&, const ListPrivilegesOfUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrivilegesOfUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetNumberRegionInfoResult> GetNumberRegionInfoOutcome;
|
||||
typedef std::future<GetNumberRegionInfoOutcome> GetNumberRegionInfoOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetNumberRegionInfoRequest&, const GetNumberRegionInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNumberRegionInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetScenarioResult> GetScenarioOutcome;
|
||||
typedef std::future<GetScenarioOutcome> GetScenarioOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetScenarioRequest&, const GetScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePredictiveJobsResult> CreatePredictiveJobsOutcome;
|
||||
typedef std::future<CreatePredictiveJobsOutcome> CreatePredictiveJobsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreatePredictiveJobsRequest&, const CreatePredictiveJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePredictiveJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAgentDataResult> GetAgentDataOutcome;
|
||||
typedef std::future<GetAgentDataOutcome> GetAgentDataOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetAgentDataRequest&, const GetAgentDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAgentDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateSurveyResult> CreateSurveyOutcome;
|
||||
typedef std::future<CreateSurveyOutcome> CreateSurveyOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateSurveyRequest&, const CreateSurveyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSurveyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobStatusResult> ListJobStatusOutcome;
|
||||
typedef std::future<ListJobStatusOutcome> ListJobStatusOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListJobStatusRequest&, const ListJobStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySurveyResult> ModifySurveyOutcome;
|
||||
typedef std::future<ModifySurveyOutcome> ModifySurveyOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifySurveyRequest&, const ModifySurveyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySurveyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyScenarioResult> ModifyScenarioOutcome;
|
||||
typedef std::future<ModifyScenarioOutcome> ModifyScenarioOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ModifyScenarioRequest&, const ModifyScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateSkillGroupResult> CreateSkillGroupOutcome;
|
||||
typedef std::future<CreateSkillGroupOutcome> CreateSkillGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::CreateSkillGroupRequest&, const CreateSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSkillGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceExtensionsResult> GetServiceExtensionsOutcome;
|
||||
typedef std::future<GetServiceExtensionsOutcome> GetServiceExtensionsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetServiceExtensionsRequest&, const GetServiceExtensionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceExtensionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListContactFlowsResult> ListContactFlowsOutcome;
|
||||
typedef std::future<ListContactFlowsOutcome> ListContactFlowsOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ListContactFlowsRequest&, const ListContactFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListContactFlowsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteJobGroupResult> DeleteJobGroupOutcome;
|
||||
typedef std::future<DeleteJobGroupOutcome> DeleteJobGroupOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::DeleteJobGroupRequest&, const DeleteJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteJobGroupAsyncHandler;
|
||||
|
||||
CCCClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CCCClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CCCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CCCClient();
|
||||
GetJobListOutcome getJobList(const Model::GetJobListRequest &request)const;
|
||||
void getJobListAsync(const Model::GetJobListRequest& request, const GetJobListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobListOutcomeCallable getJobListCallable(const Model::GetJobListRequest& request) const;
|
||||
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
|
||||
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
|
||||
ListSkillGroupsOfUserOutcome listSkillGroupsOfUser(const Model::ListSkillGroupsOfUserRequest &request)const;
|
||||
void listSkillGroupsOfUserAsync(const Model::ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSkillGroupsOfUserOutcomeCallable listSkillGroupsOfUserCallable(const Model::ListSkillGroupsOfUserRequest& request) const;
|
||||
TwoPartiesCallOutcome twoPartiesCall(const Model::TwoPartiesCallRequest &request)const;
|
||||
void twoPartiesCallAsync(const Model::TwoPartiesCallRequest& request, const TwoPartiesCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TwoPartiesCallOutcomeCallable twoPartiesCallCallable(const Model::TwoPartiesCallRequest& request) const;
|
||||
DeleteSurveyOutcome deleteSurvey(const Model::DeleteSurveyRequest &request)const;
|
||||
void deleteSurveyAsync(const Model::DeleteSurveyRequest& request, const DeleteSurveyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSurveyOutcomeCallable deleteSurveyCallable(const Model::DeleteSurveyRequest& request) const;
|
||||
ListPhoneNumbersOutcome listPhoneNumbers(const Model::ListPhoneNumbersRequest &request)const;
|
||||
void listPhoneNumbersAsync(const Model::ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhoneNumbersOutcomeCallable listPhoneNumbersCallable(const Model::ListPhoneNumbersRequest& request) const;
|
||||
DownloadUnreachableContactsOutcome downloadUnreachableContacts(const Model::DownloadUnreachableContactsRequest &request)const;
|
||||
void downloadUnreachableContactsAsync(const Model::DownloadUnreachableContactsRequest& request, const DownloadUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadUnreachableContactsOutcomeCallable downloadUnreachableContactsCallable(const Model::DownloadUnreachableContactsRequest& request) const;
|
||||
DialogueOutcome dialogue(const Model::DialogueRequest &request)const;
|
||||
void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const;
|
||||
RefreshTokenOutcome refreshToken(const Model::RefreshTokenRequest &request)const;
|
||||
void refreshTokenAsync(const Model::RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefreshTokenOutcomeCallable refreshTokenCallable(const Model::RefreshTokenRequest& request) const;
|
||||
CreateBatchJobsOutcome createBatchJobs(const Model::CreateBatchJobsRequest &request)const;
|
||||
void createBatchJobsAsync(const Model::CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBatchJobsOutcomeCallable createBatchJobsCallable(const Model::CreateBatchJobsRequest& request) const;
|
||||
RequestLoginInfoOutcome requestLoginInfo(const Model::RequestLoginInfoRequest &request)const;
|
||||
void requestLoginInfoAsync(const Model::RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RequestLoginInfoOutcomeCallable requestLoginInfoCallable(const Model::RequestLoginInfoRequest& request) const;
|
||||
GetJobTemplateDownloadParamsOutcome getJobTemplateDownloadParams(const Model::GetJobTemplateDownloadParamsRequest &request)const;
|
||||
void getJobTemplateDownloadParamsAsync(const Model::GetJobTemplateDownloadParamsRequest& request, const GetJobTemplateDownloadParamsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobTemplateDownloadParamsOutcomeCallable getJobTemplateDownloadParamsCallable(const Model::GetJobTemplateDownloadParamsRequest& request) const;
|
||||
RemoveUsersOutcome removeUsers(const Model::RemoveUsersRequest &request)const;
|
||||
void removeUsersAsync(const Model::RemoveUsersRequest& request, const RemoveUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveUsersOutcomeCallable removeUsersCallable(const Model::RemoveUsersRequest& request) const;
|
||||
CancelPredictiveJobsOutcome cancelPredictiveJobs(const Model::CancelPredictiveJobsRequest &request)const;
|
||||
void cancelPredictiveJobsAsync(const Model::CancelPredictiveJobsRequest& request, const CancelPredictiveJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelPredictiveJobsOutcomeCallable cancelPredictiveJobsCallable(const Model::CancelPredictiveJobsRequest& request) const;
|
||||
StartBack2BackCallOutcome startBack2BackCall(const Model::StartBack2BackCallRequest &request)const;
|
||||
void startBack2BackCallAsync(const Model::StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartBack2BackCallOutcomeCallable startBack2BackCallCallable(const Model::StartBack2BackCallRequest& request) const;
|
||||
PublishSurveyOutcome publishSurvey(const Model::PublishSurveyRequest &request)const;
|
||||
void publishSurveyAsync(const Model::PublishSurveyRequest& request, const PublishSurveyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishSurveyOutcomeCallable publishSurveyCallable(const Model::PublishSurveyRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
GetConversationListOutcome getConversationList(const Model::GetConversationListRequest &request)const;
|
||||
void getConversationListAsync(const Model::GetConversationListRequest& request, const GetConversationListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConversationListOutcomeCallable getConversationListCallable(const Model::GetConversationListRequest& request) const;
|
||||
ListUsersOfSkillGroupOutcome listUsersOfSkillGroup(const Model::ListUsersOfSkillGroupRequest &request)const;
|
||||
void listUsersOfSkillGroupAsync(const Model::ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOfSkillGroupOutcomeCallable listUsersOfSkillGroupCallable(const Model::ListUsersOfSkillGroupRequest& request) const;
|
||||
ListJobsByGroupOutcome listJobsByGroup(const Model::ListJobsByGroupRequest &request)const;
|
||||
void listJobsByGroupAsync(const Model::ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobsByGroupOutcomeCallable listJobsByGroupCallable(const Model::ListJobsByGroupRequest& request) const;
|
||||
ListPredictiveJobStatusOutcome listPredictiveJobStatus(const Model::ListPredictiveJobStatusRequest &request)const;
|
||||
void listPredictiveJobStatusAsync(const Model::ListPredictiveJobStatusRequest& request, const ListPredictiveJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPredictiveJobStatusOutcomeCallable listPredictiveJobStatusCallable(const Model::ListPredictiveJobStatusRequest& request) const;
|
||||
ListJobGroupsOutcome listJobGroups(const Model::ListJobGroupsRequest &request)const;
|
||||
void listJobGroupsAsync(const Model::ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobGroupsOutcomeCallable listJobGroupsCallable(const Model::ListJobGroupsRequest& request) const;
|
||||
ListCallDetailRecordsOutcome listCallDetailRecords(const Model::ListCallDetailRecordsRequest &request)const;
|
||||
void listCallDetailRecordsAsync(const Model::ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCallDetailRecordsOutcomeCallable listCallDetailRecordsCallable(const Model::ListCallDetailRecordsRequest& request) const;
|
||||
AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const;
|
||||
void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const;
|
||||
ListRecordingsOutcome listRecordings(const Model::ListRecordingsRequest &request)const;
|
||||
void listRecordingsAsync(const Model::ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRecordingsOutcomeCallable listRecordingsCallable(const Model::ListRecordingsRequest& request) const;
|
||||
EncryptOutcome encrypt(const Model::EncryptRequest &request)const;
|
||||
void encryptAsync(const Model::EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EncryptOutcomeCallable encryptCallable(const Model::EncryptRequest& request) const;
|
||||
SubmitBatchJobsOutcome submitBatchJobs(const Model::SubmitBatchJobsRequest &request)const;
|
||||
void submitBatchJobsAsync(const Model::SubmitBatchJobsRequest& request, const SubmitBatchJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitBatchJobsOutcomeCallable submitBatchJobsCallable(const Model::SubmitBatchJobsRequest& request) const;
|
||||
ListSurveysOutcome listSurveys(const Model::ListSurveysRequest &request)const;
|
||||
void listSurveysAsync(const Model::ListSurveysRequest& request, const ListSurveysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSurveysOutcomeCallable listSurveysCallable(const Model::ListSurveysRequest& request) const;
|
||||
GetJobDataUploadParamsOutcome getJobDataUploadParams(const Model::GetJobDataUploadParamsRequest &request)const;
|
||||
void getJobDataUploadParamsAsync(const Model::GetJobDataUploadParamsRequest& request, const GetJobDataUploadParamsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobDataUploadParamsOutcomeCallable getJobDataUploadParamsCallable(const Model::GetJobDataUploadParamsRequest& request) const;
|
||||
ListBasicStatisticsReportSubItemsOutcome listBasicStatisticsReportSubItems(const Model::ListBasicStatisticsReportSubItemsRequest &request)const;
|
||||
void listBasicStatisticsReportSubItemsAsync(const Model::ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListBasicStatisticsReportSubItemsOutcomeCallable listBasicStatisticsReportSubItemsCallable(const Model::ListBasicStatisticsReportSubItemsRequest& request) const;
|
||||
SuspendJobsOutcome suspendJobs(const Model::SuspendJobsRequest &request)const;
|
||||
void suspendJobsAsync(const Model::SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SuspendJobsOutcomeCallable suspendJobsCallable(const Model::SuspendJobsRequest& request) const;
|
||||
GetJobGroupOutcome getJobGroup(const Model::GetJobGroupRequest &request)const;
|
||||
void getJobGroupAsync(const Model::GetJobGroupRequest& request, const GetJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobGroupOutcomeCallable getJobGroupCallable(const Model::GetJobGroupRequest& request) const;
|
||||
GetJobStatusByCallIdOutcome getJobStatusByCallId(const Model::GetJobStatusByCallIdRequest &request)const;
|
||||
void getJobStatusByCallIdAsync(const Model::GetJobStatusByCallIdRequest& request, const GetJobStatusByCallIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobStatusByCallIdOutcomeCallable getJobStatusByCallIdCallable(const Model::GetJobStatusByCallIdRequest& request) const;
|
||||
ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const;
|
||||
void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const;
|
||||
ModifySkillGroupOutcome modifySkillGroup(const Model::ModifySkillGroupRequest &request)const;
|
||||
void modifySkillGroupAsync(const Model::ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySkillGroupOutcomeCallable modifySkillGroupCallable(const Model::ModifySkillGroupRequest& request) const;
|
||||
GetConversationDetailByContactIdOutcome getConversationDetailByContactId(const Model::GetConversationDetailByContactIdRequest &request)const;
|
||||
void getConversationDetailByContactIdAsync(const Model::GetConversationDetailByContactIdRequest& request, const GetConversationDetailByContactIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConversationDetailByContactIdOutcomeCallable getConversationDetailByContactIdCallable(const Model::GetConversationDetailByContactIdRequest& request) const;
|
||||
ListRecordingsByContactIdOutcome listRecordingsByContactId(const Model::ListRecordingsByContactIdRequest &request)const;
|
||||
void listRecordingsByContactIdAsync(const Model::ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRecordingsByContactIdOutcomeCallable listRecordingsByContactIdCallable(const Model::ListRecordingsByContactIdRequest& request) const;
|
||||
LaunchAppraiseOutcome launchAppraise(const Model::LaunchAppraiseRequest &request)const;
|
||||
void launchAppraiseAsync(const Model::LaunchAppraiseRequest& request, const LaunchAppraiseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LaunchAppraiseOutcomeCallable launchAppraiseCallable(const Model::LaunchAppraiseRequest& request) const;
|
||||
DeleteSkillGroupOutcome deleteSkillGroup(const Model::DeleteSkillGroupRequest &request)const;
|
||||
void deleteSkillGroupAsync(const Model::DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSkillGroupOutcomeCallable deleteSkillGroupCallable(const Model::DeleteSkillGroupRequest& request) const;
|
||||
ModifyUserOutcome modifyUser(const Model::ModifyUserRequest &request)const;
|
||||
void modifyUserAsync(const Model::ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyUserOutcomeCallable modifyUserCallable(const Model::ModifyUserRequest& request) const;
|
||||
ListSkillGroupsOutcome listSkillGroups(const Model::ListSkillGroupsRequest &request)const;
|
||||
void listSkillGroupsAsync(const Model::ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSkillGroupsOutcomeCallable listSkillGroupsCallable(const Model::ListSkillGroupsRequest& request) const;
|
||||
CreateScenarioOutcome createScenario(const Model::CreateScenarioRequest &request)const;
|
||||
void createScenarioAsync(const Model::CreateScenarioRequest& request, const CreateScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateScenarioOutcomeCallable createScenarioCallable(const Model::CreateScenarioRequest& request) const;
|
||||
RemovePhoneNumberOutcome removePhoneNumber(const Model::RemovePhoneNumberRequest &request)const;
|
||||
void removePhoneNumberAsync(const Model::RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemovePhoneNumberOutcomeCallable removePhoneNumberCallable(const Model::RemovePhoneNumberRequest& request) const;
|
||||
PickLocalNumberOutcome pickLocalNumber(const Model::PickLocalNumberRequest &request)const;
|
||||
void pickLocalNumberAsync(const Model::PickLocalNumberRequest& request, const PickLocalNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PickLocalNumberOutcomeCallable pickLocalNumberCallable(const Model::PickLocalNumberRequest& request) const;
|
||||
GetJobOutcome getJob(const Model::GetJobRequest &request)const;
|
||||
void getJobAsync(const Model::GetJobRequest& request, const GetJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobOutcomeCallable getJobCallable(const Model::GetJobRequest& request) const;
|
||||
StartJobOutcome startJob(const Model::StartJobRequest &request)const;
|
||||
void startJobAsync(const Model::StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartJobOutcomeCallable startJobCallable(const Model::StartJobRequest& request) const;
|
||||
CancelJobsOutcome cancelJobs(const Model::CancelJobsRequest &request)const;
|
||||
void cancelJobsAsync(const Model::CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelJobsOutcomeCallable cancelJobsCallable(const Model::CancelJobsRequest& request) const;
|
||||
GetConfigOutcome getConfig(const Model::GetConfigRequest &request)const;
|
||||
void getConfigAsync(const Model::GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConfigOutcomeCallable getConfigCallable(const Model::GetConfigRequest& request) const;
|
||||
DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const;
|
||||
void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const;
|
||||
GenerateAgentStatisticReportOutcome generateAgentStatisticReport(const Model::GenerateAgentStatisticReportRequest &request)const;
|
||||
void generateAgentStatisticReportAsync(const Model::GenerateAgentStatisticReportRequest& request, const GenerateAgentStatisticReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateAgentStatisticReportOutcomeCallable generateAgentStatisticReportCallable(const Model::GenerateAgentStatisticReportRequest& request) const;
|
||||
CreateScenarioFromTemplateOutcome createScenarioFromTemplate(const Model::CreateScenarioFromTemplateRequest &request)const;
|
||||
void createScenarioFromTemplateAsync(const Model::CreateScenarioFromTemplateRequest& request, const CreateScenarioFromTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateScenarioFromTemplateOutcomeCallable createScenarioFromTemplateCallable(const Model::CreateScenarioFromTemplateRequest& request) const;
|
||||
CreateJobGroupOutcome createJobGroup(const Model::CreateJobGroupRequest &request)const;
|
||||
void createJobGroupAsync(const Model::CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateJobGroupOutcomeCallable createJobGroupCallable(const Model::CreateJobGroupRequest& request) const;
|
||||
GetTaskListOutcome getTaskList(const Model::GetTaskListRequest &request)const;
|
||||
void getTaskListAsync(const Model::GetTaskListRequest& request, const GetTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTaskListOutcomeCallable getTaskListCallable(const Model::GetTaskListRequest& request) const;
|
||||
DownloadOriginalStatisticsReportOutcome downloadOriginalStatisticsReport(const Model::DownloadOriginalStatisticsReportRequest &request)const;
|
||||
void downloadOriginalStatisticsReportAsync(const Model::DownloadOriginalStatisticsReportRequest& request, const DownloadOriginalStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadOriginalStatisticsReportOutcomeCallable downloadOriginalStatisticsReportCallable(const Model::DownloadOriginalStatisticsReportRequest& request) const;
|
||||
ListScenarioTemplatesOutcome listScenarioTemplates(const Model::ListScenarioTemplatesRequest &request)const;
|
||||
void listScenarioTemplatesAsync(const Model::ListScenarioTemplatesRequest& request, const ListScenarioTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListScenarioTemplatesOutcomeCallable listScenarioTemplatesCallable(const Model::ListScenarioTemplatesRequest& request) const;
|
||||
ResumeJobsOutcome resumeJobs(const Model::ResumeJobsRequest &request)const;
|
||||
void resumeJobsAsync(const Model::ResumeJobsRequest& request, const ResumeJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResumeJobsOutcomeCallable resumeJobsCallable(const Model::ResumeJobsRequest& request) const;
|
||||
AssignUsersOutcome assignUsers(const Model::AssignUsersRequest &request)const;
|
||||
void assignUsersAsync(const Model::AssignUsersRequest& request, const AssignUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssignUsersOutcomeCallable assignUsersCallable(const Model::AssignUsersRequest& request) const;
|
||||
GetSurveyOutcome getSurvey(const Model::GetSurveyRequest &request)const;
|
||||
void getSurveyAsync(const Model::GetSurveyRequest& request, const GetSurveyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSurveyOutcomeCallable getSurveyCallable(const Model::GetSurveyRequest& request) const;
|
||||
ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const;
|
||||
void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const;
|
||||
ListConfigOutcome listConfig(const Model::ListConfigRequest &request)const;
|
||||
void listConfigAsync(const Model::ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConfigOutcomeCallable listConfigCallable(const Model::ListConfigRequest& request) const;
|
||||
LaunchShortMessageAppraiseOutcome launchShortMessageAppraise(const Model::LaunchShortMessageAppraiseRequest &request)const;
|
||||
void launchShortMessageAppraiseAsync(const Model::LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LaunchShortMessageAppraiseOutcomeCallable launchShortMessageAppraiseCallable(const Model::LaunchShortMessageAppraiseRequest& request) const;
|
||||
ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const;
|
||||
void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const;
|
||||
ListScenariosOutcome listScenarios(const Model::ListScenariosRequest &request)const;
|
||||
void listScenariosAsync(const Model::ListScenariosRequest& request, const ListScenariosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListScenariosOutcomeCallable listScenariosCallable(const Model::ListScenariosRequest& request) const;
|
||||
ListRealTimeAgentOutcome listRealTimeAgent(const Model::ListRealTimeAgentRequest &request)const;
|
||||
void listRealTimeAgentAsync(const Model::ListRealTimeAgentRequest& request, const ListRealTimeAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRealTimeAgentOutcomeCallable listRealTimeAgentCallable(const Model::ListRealTimeAgentRequest& request) const;
|
||||
AssignJobsOutcome assignJobs(const Model::AssignJobsRequest &request)const;
|
||||
void assignJobsAsync(const Model::AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AssignJobsOutcomeCallable assignJobsCallable(const Model::AssignJobsRequest& request) const;
|
||||
CreateUserOutcome createUser(const Model::CreateUserRequest &request)const;
|
||||
void createUserAsync(const Model::CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUserOutcomeCallable createUserCallable(const Model::CreateUserRequest& request) const;
|
||||
ListPrivilegesOfUserOutcome listPrivilegesOfUser(const Model::ListPrivilegesOfUserRequest &request)const;
|
||||
void listPrivilegesOfUserAsync(const Model::ListPrivilegesOfUserRequest& request, const ListPrivilegesOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPrivilegesOfUserOutcomeCallable listPrivilegesOfUserCallable(const Model::ListPrivilegesOfUserRequest& request) const;
|
||||
GetNumberRegionInfoOutcome getNumberRegionInfo(const Model::GetNumberRegionInfoRequest &request)const;
|
||||
void getNumberRegionInfoAsync(const Model::GetNumberRegionInfoRequest& request, const GetNumberRegionInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetNumberRegionInfoOutcomeCallable getNumberRegionInfoCallable(const Model::GetNumberRegionInfoRequest& request) const;
|
||||
GetScenarioOutcome getScenario(const Model::GetScenarioRequest &request)const;
|
||||
void getScenarioAsync(const Model::GetScenarioRequest& request, const GetScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetScenarioOutcomeCallable getScenarioCallable(const Model::GetScenarioRequest& request) const;
|
||||
CreatePredictiveJobsOutcome createPredictiveJobs(const Model::CreatePredictiveJobsRequest &request)const;
|
||||
void createPredictiveJobsAsync(const Model::CreatePredictiveJobsRequest& request, const CreatePredictiveJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePredictiveJobsOutcomeCallable createPredictiveJobsCallable(const Model::CreatePredictiveJobsRequest& request) const;
|
||||
GetAgentDataOutcome getAgentData(const Model::GetAgentDataRequest &request)const;
|
||||
void getAgentDataAsync(const Model::GetAgentDataRequest& request, const GetAgentDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAgentDataOutcomeCallable getAgentDataCallable(const Model::GetAgentDataRequest& request) const;
|
||||
CreateSurveyOutcome createSurvey(const Model::CreateSurveyRequest &request)const;
|
||||
void createSurveyAsync(const Model::CreateSurveyRequest& request, const CreateSurveyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateSurveyOutcomeCallable createSurveyCallable(const Model::CreateSurveyRequest& request) const;
|
||||
ListJobStatusOutcome listJobStatus(const Model::ListJobStatusRequest &request)const;
|
||||
void listJobStatusAsync(const Model::ListJobStatusRequest& request, const ListJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobStatusOutcomeCallable listJobStatusCallable(const Model::ListJobStatusRequest& request) const;
|
||||
ModifySurveyOutcome modifySurvey(const Model::ModifySurveyRequest &request)const;
|
||||
void modifySurveyAsync(const Model::ModifySurveyRequest& request, const ModifySurveyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySurveyOutcomeCallable modifySurveyCallable(const Model::ModifySurveyRequest& request) const;
|
||||
ModifyScenarioOutcome modifyScenario(const Model::ModifyScenarioRequest &request)const;
|
||||
void modifyScenarioAsync(const Model::ModifyScenarioRequest& request, const ModifyScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyScenarioOutcomeCallable modifyScenarioCallable(const Model::ModifyScenarioRequest& request) const;
|
||||
CreateSkillGroupOutcome createSkillGroup(const Model::CreateSkillGroupRequest &request)const;
|
||||
void createSkillGroupAsync(const Model::CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateSkillGroupOutcomeCallable createSkillGroupCallable(const Model::CreateSkillGroupRequest& request) const;
|
||||
GetServiceExtensionsOutcome getServiceExtensions(const Model::GetServiceExtensionsRequest &request)const;
|
||||
void getServiceExtensionsAsync(const Model::GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceExtensionsOutcomeCallable getServiceExtensionsCallable(const Model::GetServiceExtensionsRequest& request) const;
|
||||
ListContactFlowsOutcome listContactFlows(const Model::ListContactFlowsRequest &request)const;
|
||||
void listContactFlowsAsync(const Model::ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListContactFlowsOutcomeCallable listContactFlowsCallable(const Model::ListContactFlowsRequest& request) const;
|
||||
DeleteJobGroupOutcome deleteJobGroup(const Model::DeleteJobGroupRequest &request)const;
|
||||
void deleteJobGroupAsync(const Model::DeleteJobGroupRequest& request, const DeleteJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteJobGroupOutcomeCallable deleteJobGroupCallable(const Model::DeleteJobGroupRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CCC_CCCCLIENT_H_
|
||||
32
ccc/include/alibabacloud/ccc/CCCExport.h
Normal file
32
ccc/include/alibabacloud/ccc/CCCExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_CCCEXPORT_H_
|
||||
#define ALIBABACLOUD_CCC_CCCEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CCC_LIBRARY)
|
||||
# define ALIBABACLOUD_CCC_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CCC_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CCC_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CCC_CCCEXPORT_H_
|
||||
60
ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h
Normal file
60
ccc/include/alibabacloud/ccc/model/AddPhoneNumberRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_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 AddPhoneNumberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddPhoneNumberRequest();
|
||||
~AddPhoneNumberRequest();
|
||||
|
||||
std::string getContactFlowId()const;
|
||||
void setContactFlowId(const std::string& contactFlowId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getUsage()const;
|
||||
void setUsage(const std::string& usage);
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string contactFlowId_;
|
||||
std::string instanceId_;
|
||||
std::string usage_;
|
||||
std::string phoneNumber_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERREQUEST_H_
|
||||
80
ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h
Normal file
80
ccc/include/alibabacloud/ccc/model/AddPhoneNumberResult.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_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 AddPhoneNumberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PhoneNumber
|
||||
{
|
||||
struct ContactFlow
|
||||
{
|
||||
std::string type;
|
||||
std::string contactFlowId;
|
||||
std::string instanceId;
|
||||
std::string contactFlowName;
|
||||
std::string contactFlowDescription;
|
||||
};
|
||||
std::string usage;
|
||||
bool testOnly;
|
||||
bool allowOutbound;
|
||||
std::string number;
|
||||
std::string instanceId;
|
||||
int remainingTime;
|
||||
int trunks;
|
||||
std::string phoneNumberId;
|
||||
ContactFlow contactFlow;
|
||||
std::string phoneNumberDescription;
|
||||
};
|
||||
|
||||
|
||||
AddPhoneNumberResult();
|
||||
explicit AddPhoneNumberResult(const std::string &payload);
|
||||
~AddPhoneNumberResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
PhoneNumber getPhoneNumber()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
PhoneNumber phoneNumber_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_
|
||||
63
ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h
Normal file
63
ccc/include/alibabacloud/ccc/model/AssignJobsRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_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 AssignJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AssignJobsRequest();
|
||||
~AssignJobsRequest();
|
||||
|
||||
std::vector<std::string> getCallingNumber()const;
|
||||
void setCallingNumber(const std::vector<std::string>& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
std::vector<std::string> getJobsJson()const;
|
||||
void setJobsJson(const std::vector<std::string>& jobsJson);
|
||||
|
||||
private:
|
||||
std::vector<std::string> callingNumber_;
|
||||
std::string instanceId_;
|
||||
std::string groupId_;
|
||||
std::string strategyJson_;
|
||||
std::string scenarioId_;
|
||||
std::vector<std::string> jobsJson_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSREQUEST_H_
|
||||
59
ccc/include/alibabacloud/ccc/model/AssignJobsResult.h
Normal file
59
ccc/include/alibabacloud/ccc/model/AssignJobsResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_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 AssignJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AssignJobsResult();
|
||||
explicit AssignJobsResult(const std::string &payload);
|
||||
~AssignJobsResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getGroupId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
std::string groupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNJOBSRESULT_H_
|
||||
63
ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h
Normal file
63
ccc/include/alibabacloud/ccc/model/AssignUsersRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSREQUEST_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 AssignUsersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AssignUsersRequest();
|
||||
~AssignUsersRequest();
|
||||
|
||||
std::vector<std::string> getUserRamId()const;
|
||||
void setUserRamId(const std::vector<std::string>& userRamId);
|
||||
std::vector<int> getSkillLevel()const;
|
||||
void setSkillLevel(const std::vector<int>& skillLevel);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::vector<std::string> getRoleId()const;
|
||||
void setRoleId(const std::vector<std::string>& roleId);
|
||||
std::vector<std::string> getSkillGroupId()const;
|
||||
void setSkillGroupId(const std::vector<std::string>& skillGroupId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> userRamId_;
|
||||
std::vector<int> skillLevel_;
|
||||
std::string instanceId_;
|
||||
std::vector<std::string> roleId_;
|
||||
std::vector<std::string> skillGroupId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/AssignUsersResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/AssignUsersResult.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_ASSIGNUSERSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSRESULT_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 AssignUsersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AssignUsersResult();
|
||||
explicit AssignUsersResult(const std::string &payload);
|
||||
~AssignUsersResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ASSIGNUSERSRESULT_H_
|
||||
63
ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h
Normal file
63
ccc/include/alibabacloud/ccc/model/CancelJobsRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_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 CancelJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CancelJobsRequest();
|
||||
~CancelJobsRequest();
|
||||
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getJobId()const;
|
||||
void setJobId(const std::vector<std::string>& jobId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::vector<std::string> getJobReferenceId()const;
|
||||
void setJobReferenceId(const std::vector<std::string>& jobReferenceId);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
|
||||
private:
|
||||
bool all_;
|
||||
std::vector<std::string> jobId_;
|
||||
std::string instanceId_;
|
||||
std::vector<std::string> jobReferenceId_;
|
||||
std::string groupId_;
|
||||
std::string scenarioId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CANCELJOBSREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/CancelJobsResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/CancelJobsResult.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_CANCELJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_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 CancelJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CancelJobsResult();
|
||||
explicit CancelJobsResult(const std::string &payload);
|
||||
~CancelJobsResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CANCELJOBSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSREQUEST_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 CancelPredictiveJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CancelPredictiveJobsRequest();
|
||||
~CancelPredictiveJobsRequest();
|
||||
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getJobId()const;
|
||||
void setJobId(const std::vector<std::string>& jobId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
bool all_;
|
||||
std::vector<std::string> jobId_;
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSRESULT_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 CancelPredictiveJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CancelPredictiveJobsResult();
|
||||
explicit CancelPredictiveJobsResult(const std::string &payload);
|
||||
~CancelPredictiveJobsResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CANCELPREDICTIVEJOBSRESULT_H_
|
||||
69
ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h
Normal file
69
ccc/include/alibabacloud/ccc/model/CreateBatchJobsRequest.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_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 CreateBatchJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBatchJobsRequest();
|
||||
~CreateBatchJobsRequest();
|
||||
|
||||
std::vector<std::string> getCallingNumber()const;
|
||||
void setCallingNumber(const std::vector<std::string>& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
bool getSubmitted()const;
|
||||
void setSubmitted(bool submitted);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
std::string getJobFilePath()const;
|
||||
void setJobFilePath(const std::string& jobFilePath);
|
||||
|
||||
private:
|
||||
std::vector<std::string> callingNumber_;
|
||||
std::string instanceId_;
|
||||
bool submitted_;
|
||||
std::string strategyJson_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
std::string scenarioId_;
|
||||
std::string jobFilePath_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSREQUEST_H_
|
||||
93
ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h
Normal file
93
ccc/include/alibabacloud/ccc/model/CreateBatchJobsResult.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_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 CreateBatchJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct JobGroup
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
std::string jobGroupId;
|
||||
std::string scenarioId;
|
||||
std::string jobGroupName;
|
||||
long creationTime;
|
||||
Strategy strategy;
|
||||
std::string jobFilePath;
|
||||
std::string jobGroupDescription;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
|
||||
CreateBatchJobsResult();
|
||||
explicit CreateBatchJobsResult(const std::string &payload);
|
||||
~CreateBatchJobsResult();
|
||||
JobGroup getJobGroup()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
JobGroup jobGroup_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEBATCHJOBSRESULT_H_
|
||||
63
ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h
Normal file
63
ccc/include/alibabacloud/ccc/model/CreateJobGroupRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_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 CreateJobGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateJobGroupRequest();
|
||||
~CreateJobGroupRequest();
|
||||
|
||||
std::vector<std::string> getCallingNumber()const;
|
||||
void setCallingNumber(const std::vector<std::string>& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> callingNumber_;
|
||||
std::string instanceId_;
|
||||
std::string strategyJson_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
std::string scenarioId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPREQUEST_H_
|
||||
93
ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h
Normal file
93
ccc/include/alibabacloud/ccc/model/CreateJobGroupResult.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_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 CreateJobGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct JobGroup
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string from;
|
||||
std::string to;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
std::string jobGroupId;
|
||||
std::string scenarioId;
|
||||
std::string jobGroupName;
|
||||
long creationTime;
|
||||
Strategy strategy;
|
||||
std::string jobFilePath;
|
||||
std::string jobGroupDescription;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
|
||||
CreateJobGroupResult();
|
||||
explicit CreateJobGroupResult(const std::string &payload);
|
||||
~CreateJobGroupResult();
|
||||
JobGroup getJobGroup()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
JobGroup jobGroup_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEJOBGROUPRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_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 CreatePredictiveJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreatePredictiveJobsRequest();
|
||||
~CreatePredictiveJobsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSkillGroupId()const;
|
||||
void setSkillGroupId(const std::string& skillGroupId);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
std::vector<std::string> getJobsJson()const;
|
||||
void setJobsJson(const std::vector<std::string>& jobsJson);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string skillGroupId_;
|
||||
std::string strategyJson_;
|
||||
std::vector<std::string> jobsJson_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSRESULT_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 CreatePredictiveJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreatePredictiveJobsResult();
|
||||
explicit CreatePredictiveJobsResult(const std::string &payload);
|
||||
~CreatePredictiveJobsResult();
|
||||
std::string getJobGroupId()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string jobGroupId_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEPREDICTIVEJOBSRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_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 CreateScenarioFromTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateScenarioFromTemplateRequest();
|
||||
~CreateScenarioFromTemplateRequest();
|
||||
|
||||
std::string getVariables()const;
|
||||
void setVariables(const std::string& variables);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
|
||||
private:
|
||||
std::string variables_;
|
||||
std::string instanceId_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
std::string templateId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_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 CreateScenarioFromTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Scenario
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
struct Survey
|
||||
{
|
||||
struct IntentNode
|
||||
{
|
||||
std::string nodeId;
|
||||
std::string intentId;
|
||||
};
|
||||
std::string role;
|
||||
std::string surveyId;
|
||||
std::string beebotId;
|
||||
std::string surveyName;
|
||||
std::string surveyDescription;
|
||||
std::vector<Survey::IntentNode> intents;
|
||||
int round;
|
||||
};
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<Survey> surveys;
|
||||
std::vector<KeyValuePair> variables;
|
||||
bool isTemplate;
|
||||
std::string type;
|
||||
std::string scenarioId;
|
||||
std::string scenarioDescription;
|
||||
Strategy strategy;
|
||||
std::string scenarioName;
|
||||
};
|
||||
|
||||
|
||||
CreateScenarioFromTemplateResult();
|
||||
explicit CreateScenarioFromTemplateResult(const std::string &payload);
|
||||
~CreateScenarioFromTemplateResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
Scenario getScenario()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
Scenario scenario_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOFROMTEMPLATERESULT_H_
|
||||
63
ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h
Normal file
63
ccc/include/alibabacloud/ccc/model/CreateScenarioRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_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 CreateScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateScenarioRequest();
|
||||
~CreateScenarioRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::vector<std::string> getSurveysJson()const;
|
||||
void setSurveysJson(const std::vector<std::string>& surveysJson);
|
||||
std::string getStrategyJson()const;
|
||||
void setStrategyJson(const std::string& strategyJson);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::vector<std::string> surveysJson_;
|
||||
std::string strategyJson_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIOREQUEST_H_
|
||||
113
ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h
Normal file
113
ccc/include/alibabacloud/ccc/model/CreateScenarioResult.h
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_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 CreateScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Scenario
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
struct Survey
|
||||
{
|
||||
struct IntentNode
|
||||
{
|
||||
std::string nodeId;
|
||||
std::string intentId;
|
||||
};
|
||||
std::string role;
|
||||
std::string surveyId;
|
||||
std::string beebotId;
|
||||
std::string surveyName;
|
||||
std::string surveyDescription;
|
||||
std::vector<Survey::IntentNode> intents;
|
||||
int round;
|
||||
};
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<Survey> surveys;
|
||||
std::vector<KeyValuePair> variables;
|
||||
bool isTemplate;
|
||||
std::string type;
|
||||
std::string scenarioId;
|
||||
std::string scenarioDescription;
|
||||
Strategy strategy;
|
||||
std::string scenarioName;
|
||||
};
|
||||
|
||||
|
||||
CreateScenarioResult();
|
||||
explicit CreateScenarioResult(const std::string &payload);
|
||||
~CreateScenarioResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
Scenario getScenario()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
Scenario scenario_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESCENARIORESULT_H_
|
||||
66
ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h
Normal file
66
ccc/include/alibabacloud/ccc/model/CreateSkillGroupRequest.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateSkillGroupRequest();
|
||||
~CreateSkillGroupRequest();
|
||||
|
||||
std::vector<int> getSkillLevel()const;
|
||||
void setSkillLevel(const std::vector<int>& skillLevel);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::vector<std::string> getOutboundPhoneNumberId()const;
|
||||
void setOutboundPhoneNumberId(const std::vector<std::string>& outboundPhoneNumberId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::vector<std::string> getUserId()const;
|
||||
void setUserId(const std::vector<std::string>& userId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::vector<int> skillLevel_;
|
||||
std::string instanceId_;
|
||||
std::vector<std::string> outboundPhoneNumberId_;
|
||||
std::string name_;
|
||||
std::string description_;
|
||||
std::vector<std::string> userId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPREQUEST_H_
|
||||
59
ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h
Normal file
59
ccc/include/alibabacloud/ccc/model/CreateSkillGroupResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CreateSkillGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateSkillGroupResult();
|
||||
explicit CreateSkillGroupResult(const std::string &payload);
|
||||
~CreateSkillGroupResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getSkillGroupId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string skillGroupId_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESKILLGROUPRESULT_H_
|
||||
75
ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h
Normal file
75
ccc/include/alibabacloud/ccc/model/CreateSurveyRequest.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_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 CreateSurveyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateSurveyRequest();
|
||||
~CreateSurveyRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRole()const;
|
||||
void setRole(const std::string& role);
|
||||
int getRound()const;
|
||||
void setRound(int round);
|
||||
std::string getFlowJson()const;
|
||||
void setFlowJson(const std::string& flowJson);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getGlobalQuestions()const;
|
||||
void setGlobalQuestions(const std::string& globalQuestions);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getCorpora()const;
|
||||
void setCorpora(const std::string& corpora);
|
||||
std::string getSpeechOptimizationParam()const;
|
||||
void setSpeechOptimizationParam(const std::string& speechOptimizationParam);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string role_;
|
||||
int round_;
|
||||
std::string flowJson_;
|
||||
std::string name_;
|
||||
std::string globalQuestions_;
|
||||
std::string description_;
|
||||
std::string corpora_;
|
||||
std::string speechOptimizationParam_;
|
||||
std::string scenarioId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESURVEYREQUEST_H_
|
||||
84
ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h
Normal file
84
ccc/include/alibabacloud/ccc/model/CreateSurveyResult.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_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 CreateSurveyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Survey
|
||||
{
|
||||
struct Flow
|
||||
{
|
||||
std::string flowId;
|
||||
bool isPublished;
|
||||
std::string flowJson;
|
||||
};
|
||||
struct AsrCustomModel
|
||||
{
|
||||
int customModelStatus;
|
||||
std::string corpora;
|
||||
};
|
||||
std::string role;
|
||||
std::string description;
|
||||
std::string hotWords;
|
||||
AsrCustomModel asrCustomModel;
|
||||
int round;
|
||||
std::string speechOptimizationParam;
|
||||
std::string id;
|
||||
std::string globalQuestions;
|
||||
Flow flow;
|
||||
std::string scenarioUuid;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateSurveyResult();
|
||||
explicit CreateSurveyResult(const std::string &payload);
|
||||
~CreateSurveyResult();
|
||||
Survey getSurvey()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Survey survey_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATESURVEYRESULT_H_
|
||||
72
ccc/include/alibabacloud/ccc/model/CreateUserRequest.h
Normal file
72
ccc/include/alibabacloud/ccc/model/CreateUserRequest.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CreateUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateUserRequest();
|
||||
~CreateUserRequest();
|
||||
|
||||
std::vector<int> getSkillLevel()const;
|
||||
void setSkillLevel(const std::vector<int>& skillLevel);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getLoginName()const;
|
||||
void setLoginName(const std::string& loginName);
|
||||
std::string getPhone()const;
|
||||
void setPhone(const std::string& phone);
|
||||
std::vector<std::string> getRoleId()const;
|
||||
void setRoleId(const std::vector<std::string>& roleId);
|
||||
std::string getDisplayName()const;
|
||||
void setDisplayName(const std::string& displayName);
|
||||
std::vector<std::string> getSkillGroupId()const;
|
||||
void setSkillGroupId(const std::vector<std::string>& skillGroupId);
|
||||
std::string getEmail()const;
|
||||
void setEmail(const std::string& email);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::vector<int> skillLevel_;
|
||||
std::string instanceId_;
|
||||
std::string loginName_;
|
||||
std::string phone_;
|
||||
std::vector<std::string> roleId_;
|
||||
std::string displayName_;
|
||||
std::vector<std::string> skillGroupId_;
|
||||
std::string email_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERREQUEST_H_
|
||||
59
ccc/include/alibabacloud/ccc/model/CreateUserResult.h
Normal file
59
ccc/include/alibabacloud/ccc/model/CreateUserResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT CreateUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateUserResult();
|
||||
explicit CreateUserResult(const std::string &payload);
|
||||
~CreateUserResult();
|
||||
std::string getMessage()const;
|
||||
std::string getUserId()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string userId_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_CREATEUSERRESULT_H_
|
||||
51
ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/DeleteJobGroupRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_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 DeleteJobGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteJobGroupRequest();
|
||||
~DeleteJobGroupRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/DeleteJobGroupResult.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_DELETEJOBGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_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 DeleteJobGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteJobGroupResult();
|
||||
explicit DeleteJobGroupResult(const std::string &payload);
|
||||
~DeleteJobGroupResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DELETEJOBGROUPRESULT_H_
|
||||
54
ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h
Normal file
54
ccc/include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteSkillGroupRequest();
|
||||
~DeleteSkillGroupRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSkillGroupId()const;
|
||||
void setSkillGroupId(const std::string& skillGroupId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string skillGroupId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/DeleteSkillGroupResult.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_DELETESKILLGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT DeleteSkillGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteSkillGroupResult();
|
||||
explicit DeleteSkillGroupResult(const std::string &payload);
|
||||
~DeleteSkillGroupResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DELETESKILLGROUPRESULT_H_
|
||||
54
ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h
Normal file
54
ccc/include/alibabacloud/ccc/model/DeleteSurveyRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_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 DeleteSurveyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteSurveyRequest();
|
||||
~DeleteSurveyRequest();
|
||||
|
||||
std::string getSurveyId()const;
|
||||
void setSurveyId(const std::string& surveyId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
|
||||
private:
|
||||
std::string surveyId_;
|
||||
std::string instanceId_;
|
||||
std::string scenarioId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/DeleteSurveyResult.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_DELETESURVEYRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_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 DeleteSurveyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteSurveyResult();
|
||||
explicit DeleteSurveyResult(const std::string &payload);
|
||||
~DeleteSurveyResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DELETESURVEYRESULT_H_
|
||||
75
ccc/include/alibabacloud/ccc/model/DialogueRequest.h
Normal file
75
ccc/include/alibabacloud/ccc/model/DialogueRequest.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DIALOGUEREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DIALOGUEREQUEST_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 DialogueRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DialogueRequest();
|
||||
~DialogueRequest();
|
||||
|
||||
std::string getCallId()const;
|
||||
void setCallId(const std::string& callId);
|
||||
std::string getCallingNumber()const;
|
||||
void setCallingNumber(const std::string& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getCalledNumber()const;
|
||||
void setCalledNumber(const std::string& calledNumber);
|
||||
std::string getActionKey()const;
|
||||
void setActionKey(const std::string& actionKey);
|
||||
std::string getActionParams()const;
|
||||
void setActionParams(const std::string& actionParams);
|
||||
std::string getCallType()const;
|
||||
void setCallType(const std::string& callType);
|
||||
std::string getScenarioId()const;
|
||||
void setScenarioId(const std::string& scenarioId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getUtterance()const;
|
||||
void setUtterance(const std::string& utterance);
|
||||
|
||||
private:
|
||||
std::string callId_;
|
||||
std::string callingNumber_;
|
||||
std::string instanceId_;
|
||||
std::string calledNumber_;
|
||||
std::string actionKey_;
|
||||
std::string actionParams_;
|
||||
std::string callType_;
|
||||
std::string scenarioId_;
|
||||
std::string taskId_;
|
||||
std::string utterance_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DIALOGUEREQUEST_H_
|
||||
65
ccc/include/alibabacloud/ccc/model/DialogueResult.h
Normal file
65
ccc/include/alibabacloud/ccc/model/DialogueResult.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_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 DialogueResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Feedback
|
||||
{
|
||||
std::string action;
|
||||
std::string content;
|
||||
std::string actionParams;
|
||||
};
|
||||
|
||||
|
||||
DialogueResult();
|
||||
explicit DialogueResult(const std::string &payload);
|
||||
~DialogueResult();
|
||||
std::string getMessage()const;
|
||||
Feedback getFeedback()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Feedback feedback_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DIALOGUERESULT_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_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_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 DownloadOriginalStatisticsReportRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DownloadOriginalStatisticsReportRequest();
|
||||
~DownloadOriginalStatisticsReportRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_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 DownloadOriginalStatisticsReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DownloadParams
|
||||
{
|
||||
std::string signatureUrl;
|
||||
};
|
||||
|
||||
|
||||
DownloadOriginalStatisticsReportResult();
|
||||
explicit DownloadOriginalStatisticsReportResult(const std::string &payload);
|
||||
~DownloadOriginalStatisticsReportResult();
|
||||
DownloadParams getDownloadParams()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DownloadParams downloadParams_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADORIGINALSTATISTICSREPORTRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_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 DownloadRecordingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DownloadRecordingRequest();
|
||||
~DownloadRecordingRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getFileName()const;
|
||||
void setFileName(const std::string& fileName);
|
||||
std::string getChannel()const;
|
||||
void setChannel(const std::string& channel);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string fileName_;
|
||||
std::string channel_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGREQUEST_H_
|
||||
64
ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h
Normal file
64
ccc/include/alibabacloud/ccc/model/DownloadRecordingResult.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGRESULT_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 DownloadRecordingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MediaDownloadParam
|
||||
{
|
||||
std::string fileName;
|
||||
std::string signatureUrl;
|
||||
};
|
||||
|
||||
|
||||
DownloadRecordingResult();
|
||||
explicit DownloadRecordingResult(const std::string &payload);
|
||||
~DownloadRecordingResult();
|
||||
MediaDownloadParam getMediaDownloadParam()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
MediaDownloadParam mediaDownloadParam_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGRESULT_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_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_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 DownloadUnreachableContactsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DownloadUnreachableContactsRequest();
|
||||
~DownloadUnreachableContactsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_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 DownloadUnreachableContactsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DownloadParams
|
||||
{
|
||||
std::string signatureUrl;
|
||||
};
|
||||
|
||||
|
||||
DownloadUnreachableContactsResult();
|
||||
explicit DownloadUnreachableContactsResult(const std::string &payload);
|
||||
~DownloadUnreachableContactsResult();
|
||||
DownloadParams getDownloadParams()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DownloadParams downloadParams_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
||||
54
ccc/include/alibabacloud/ccc/model/EncryptRequest.h
Normal file
54
ccc/include/alibabacloud/ccc/model/EncryptRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ENCRYPTREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ENCRYPTREQUEST_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 EncryptRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EncryptRequest();
|
||||
~EncryptRequest();
|
||||
|
||||
std::string getPublicKey()const;
|
||||
void setPublicKey(const std::string& publicKey);
|
||||
std::vector<std::string> getPlainText()const;
|
||||
void setPlainText(const std::vector<std::string>& plainText);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string publicKey_;
|
||||
std::vector<std::string> plainText_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ENCRYPTREQUEST_H_
|
||||
66
ccc/include/alibabacloud/ccc/model/EncryptResult.h
Normal file
66
ccc/include/alibabacloud/ccc/model/EncryptResult.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_ENCRYPTRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_ENCRYPTRESULT_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 EncryptResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CypherContent
|
||||
{
|
||||
std::string plainText;
|
||||
std::string cypherText;
|
||||
};
|
||||
|
||||
|
||||
EncryptResult();
|
||||
explicit EncryptResult(const std::string &payload);
|
||||
~EncryptResult();
|
||||
std::vector<CypherContent> getCypherContents()const;
|
||||
std::string getMessage()const;
|
||||
std::string getPublicKey()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<CypherContent> cypherContents_;
|
||||
std::string message_;
|
||||
std::string publicKey_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_ENCRYPTRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_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 GenerateAgentStatisticReportRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GenerateAgentStatisticReportRequest();
|
||||
~GenerateAgentStatisticReportRequest();
|
||||
|
||||
std::string getAgentId()const;
|
||||
void setAgentId(const std::string& agentId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string agentId_;
|
||||
std::string instanceId_;
|
||||
std::string endDate_;
|
||||
int pageSize_;
|
||||
std::string startDate_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTREQUEST_H_
|
||||
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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_GENERATEAGENTSTATISTICREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_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 GenerateAgentStatisticReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataList
|
||||
{
|
||||
struct GenerateAgentStatistic
|
||||
{
|
||||
struct Inbound
|
||||
{
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
long callsOffered;
|
||||
long maxRingTime;
|
||||
float satisfactionIndex;
|
||||
long callsHandled;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalRingTime;
|
||||
float handleRate;
|
||||
long totalTalkTime;
|
||||
long averageRingTime;
|
||||
long maxTalkTime;
|
||||
long averageWorkTime;
|
||||
long maxWorkTime;
|
||||
long averageTalkTime;
|
||||
long maxHoldTime;
|
||||
};
|
||||
struct Outbound
|
||||
{
|
||||
long totalDialingTime;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float satisfactionIndex;
|
||||
long satisfactionSurveysResponded;
|
||||
long averageDialingTime;
|
||||
long callsAnswered;
|
||||
long totalTalkTime;
|
||||
long callsDialed;
|
||||
long totalDialingTime1;
|
||||
long maxDialingTime;
|
||||
long maxTalkTime;
|
||||
long averageWorkTime;
|
||||
long maxWorkTime;
|
||||
long averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float answerRate;
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
long totalCalls;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float satisfactionIndex;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalTalkTime;
|
||||
long maxTalkTime;
|
||||
long averageWorkTime;
|
||||
long maxWorkTime;
|
||||
long averageTalkTime;
|
||||
long maxHoldTime;
|
||||
};
|
||||
long totalReadyTime;
|
||||
Overall overall;
|
||||
std::string loginName;
|
||||
std::string skillGroupIds;
|
||||
long totalBreakTime;
|
||||
std::string instanceId;
|
||||
std::string recordDate;
|
||||
Inbound inbound;
|
||||
Outbound outbound;
|
||||
long averageReadyTime;
|
||||
std::string skillGroupNames;
|
||||
long totalLoggedInTime;
|
||||
std::string agentId;
|
||||
std::string agentName;
|
||||
long maxReadyTime;
|
||||
float occupancyRate;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<GenerateAgentStatistic> list;
|
||||
};
|
||||
|
||||
|
||||
GenerateAgentStatisticReportResult();
|
||||
explicit GenerateAgentStatisticReportResult(const std::string &payload);
|
||||
~GenerateAgentStatisticReportResult();
|
||||
DataList getDataList()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DataList dataList_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GENERATEAGENTSTATISTICREPORTRESULT_H_
|
||||
66
ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h
Normal file
66
ccc/include/alibabacloud/ccc/model/GetAgentDataRequest.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_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 GetAgentDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAgentDataRequest();
|
||||
~GetAgentDataRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getStartDay()const;
|
||||
void setStartDay(const std::string& startDay);
|
||||
std::string getEndDay()const;
|
||||
void setEndDay(const std::string& endDay);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string startDay_;
|
||||
std::string endDay_;
|
||||
int pageSize_;
|
||||
std::string userId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATAREQUEST_H_
|
||||
144
ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h
Normal file
144
ccc/include/alibabacloud/ccc/model/GetAgentDataResult.h
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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_GETAGENTDATARESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_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 GetAgentDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataList
|
||||
{
|
||||
struct GenerateAgentStatistic
|
||||
{
|
||||
struct Inbound
|
||||
{
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
long callsOffered;
|
||||
long maxRingTime;
|
||||
float satisfactionIndex;
|
||||
long callsHandled;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalRingTime;
|
||||
float handleRate;
|
||||
long totalTalkTime;
|
||||
long averageRingTime;
|
||||
long maxTalkTime;
|
||||
long averageWorkTime;
|
||||
long maxWorkTime;
|
||||
long averageTalkTime;
|
||||
long maxHoldTime;
|
||||
};
|
||||
struct Outbound
|
||||
{
|
||||
long totalDialingTime;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float satisfactionIndex;
|
||||
long satisfactionSurveysResponded;
|
||||
long averageDialingTime;
|
||||
long callsAnswered;
|
||||
long totalTalkTime;
|
||||
long callsDialed;
|
||||
long totalDialingTime1;
|
||||
long maxDialingTime;
|
||||
long maxTalkTime;
|
||||
long averageWorkTime;
|
||||
long maxWorkTime;
|
||||
long averageTalkTime;
|
||||
long maxHoldTime;
|
||||
float answerRate;
|
||||
};
|
||||
struct Overall
|
||||
{
|
||||
long totalCalls;
|
||||
long totalWorkTime;
|
||||
long totalHoldTime;
|
||||
long averageHoldTime;
|
||||
long satisfactionSurveysOffered;
|
||||
float satisfactionIndex;
|
||||
long satisfactionSurveysResponded;
|
||||
long totalTalkTime;
|
||||
long maxTalkTime;
|
||||
long averageWorkTime;
|
||||
long maxWorkTime;
|
||||
long averageTalkTime;
|
||||
long maxHoldTime;
|
||||
};
|
||||
long totalReadyTime;
|
||||
Overall overall;
|
||||
std::string loginName;
|
||||
std::string skillGroupIds;
|
||||
long totalBreakTime;
|
||||
std::string instanceId;
|
||||
std::string recordDate;
|
||||
Inbound inbound;
|
||||
Outbound outbound;
|
||||
long averageReadyTime;
|
||||
std::string skillGroupNames;
|
||||
long totalLoggedInTime;
|
||||
std::string agentId;
|
||||
std::string agentName;
|
||||
long maxReadyTime;
|
||||
float occupancyRate;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<GenerateAgentStatistic> list;
|
||||
};
|
||||
|
||||
|
||||
GetAgentDataResult();
|
||||
explicit GetAgentDataResult(const std::string &payload);
|
||||
~GetAgentDataResult();
|
||||
DataList getDataList()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DataList dataList_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETAGENTDATARESULT_H_
|
||||
60
ccc/include/alibabacloud/ccc/model/GetConfigRequest.h
Normal file
60
ccc/include/alibabacloud/ccc/model/GetConfigRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_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 GetConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConfigRequest();
|
||||
~GetConfigRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getObjectType()const;
|
||||
void setObjectType(const std::string& objectType);
|
||||
std::string getObjectId()const;
|
||||
void setObjectId(const std::string& objectId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string name_;
|
||||
std::string objectType_;
|
||||
std::string objectId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGREQUEST_H_
|
||||
64
ccc/include/alibabacloud/ccc/model/GetConfigResult.h
Normal file
64
ccc/include/alibabacloud/ccc/model/GetConfigResult.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_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 GetConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConfigItem
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetConfigResult();
|
||||
explicit GetConfigResult(const std::string &payload);
|
||||
~GetConfigResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
ConfigItem getConfigItem()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
ConfigItem configItem_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_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 GetConversationDetailByContactIdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConversationDetailByContactIdRequest();
|
||||
~GetConversationDetailByContactIdRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getContactId()const;
|
||||
void setContactId(const std::string& contactId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string contactId_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_GETCONVERSATIONDETAILBYCONTACTIDRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_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 GetConversationDetailByContactIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataList
|
||||
{
|
||||
struct QualityCheckPhrase
|
||||
{
|
||||
std::string role;
|
||||
std::string words;
|
||||
long begin;
|
||||
long end;
|
||||
std::string identity;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<QualityCheckPhrase> list;
|
||||
};
|
||||
|
||||
|
||||
GetConversationDetailByContactIdResult();
|
||||
explicit GetConversationDetailByContactIdResult(const std::string &payload);
|
||||
~GetConversationDetailByContactIdResult();
|
||||
DataList getDataList()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DataList dataList_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONDETAILBYCONTACTIDRESULT_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_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_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 GetConversationListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConversationListRequest();
|
||||
~GetConversationListRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_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 GetConversationListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConversationDetail
|
||||
{
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string script;
|
||||
std::vector<ConversationDetail::SummaryItem> summary;
|
||||
long timestamp;
|
||||
std::string speaker;
|
||||
};
|
||||
|
||||
|
||||
GetConversationListResult();
|
||||
explicit GetConversationListResult(const std::string &payload);
|
||||
~GetConversationListResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<ConversationDetail> getConversations()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<ConversationDetail> conversations_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONVERSATIONLISTRESULT_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_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSREQUEST_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 GetJobDataUploadParamsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetJobDataUploadParamsRequest();
|
||||
~GetJobDataUploadParamsRequest();
|
||||
|
||||
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_GETJOBDATAUPLOADPARAMSREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_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 GetJobDataUploadParamsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct UploadParams
|
||||
{
|
||||
std::string policy;
|
||||
int expire;
|
||||
std::string accessId;
|
||||
std::string signature;
|
||||
std::string host;
|
||||
std::string folder;
|
||||
};
|
||||
|
||||
|
||||
GetJobDataUploadParamsResult();
|
||||
explicit GetJobDataUploadParamsResult(const std::string &payload);
|
||||
~GetJobDataUploadParamsResult();
|
||||
UploadParams getUploadParams()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
UploadParams uploadParams_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBDATAUPLOADPARAMSRESULT_H_
|
||||
51
ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/GetJobGroupRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_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 GetJobGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetJobGroupRequest();
|
||||
~GetJobGroupRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETJOBGROUPREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user