Compare commits

..

36 Commits
1.1.0 ... 1.6.0

Author SHA1 Message Date
haowei.yao
3ea4f50703 由楚俊发起的ECS SDK自动发布, 版本号:1.6.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-04-10 17:18:16 +08:00
haowei.yao
7f8b47c92f 由颍川发起的CSB SDK自动发布, 版本号:1.5.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-04-10 15:07:36 +08:00
haowei.yao
4fa1912a54 由尛宏发起的GREEN SDK自动发布, 版本号:1.5.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-04-08 16:20:52 +08:00
haowei.yao
c3794202f0 由洛衡发起的DOMAIN SDK自动发布, 版本号:1.4.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-04-03 14:43:49 +08:00
haowei.yao
442f784284 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, 版本号:1.3.8
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-30 19:17:39 +08:00
haowei.yao
9c389f5683 由廷诚发起的CLOUDPHOTO SDK自动发布, 版本号:1.3.7
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-29 22:29:52 +08:00
haowei.yao
a1ba8b4381 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=338, 版本号:1.3.6
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-27 17:49:21 +08:00
haowei.yao
74bebe2a77 由颍川发起的CSB SDK自动发布, BUILD_ID=503, 版本号:1.3.5
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-27 12:55:15 +08:00
haowei.yao
d27410f202 由廷诚发起的CLOUDPHOTO SDK自动发布, BUILD_ID=502, 版本号:1.3.4
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-27 10:29:39 +08:00
haowei.yao
3b1093ffe3 由楚俊发起的ECS SDK自动发布, BUILD_ID=499, 版本号:1.3.3
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 21:40:22 +08:00
haowei.yao
f2c01c7abe 由楚俊发起的ECS SDK自动发布, BUILD_ID=498, 版本号:1.3.2
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 21:01:01 +08:00
haowei.yao
e34557650b 由楚俊发起的ECS SDK自动发布, BUILD_ID=335, 版本号:1.3.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 12:40:46 +08:00
haowei.yao
c3ff60fd73 由释一发起的PUSH SDK自动发布, BUILD_ID=490, 版本号:1.3.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-23 11:38:17 +08:00
haowei.yao
4caef74421 由丰鲁成发起的CLOUDPHOTO SDK自动发布, BUILD_ID=482, 版本号:1.2.16
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-20 18:24:08 +08:00
haowei.yao
0dd42f38c4 由温仰发起的ECS SDK自动发布, BUILD_ID=473, 版本号:1.2.15
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-16 15:46:44 +08:00
fenglc
b61a72e58e Fix build failed 2018-03-16 14:18:15 +08:00
fenglc
b11cedef5e Update 3rdparty/CMakeLists.txt 2018-03-16 12:19:43 +08:00
fenglc
e19f2fa847 add 3rdparty package files 2018-03-15 17:02:50 +08:00
haowei.yao
4a15d5788a 由温仰发起的SLB SDK自动发布, BUILD_ID=467, 版本号:1.2.14
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-15 16:58:30 +08:00
haowei.yao
85da4ff587 由温仰发起的VPC SDK自动发布, BUILD_ID=466, 版本号:1.2.13
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-15 15:18:48 +08:00
haowei.yao
7721032f82 由温仰发起的CDN SDK自动发布, BUILD_ID=465, 版本号:1.2.12
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-15 14:58:26 +08:00
haowei.yao
2d1a1c0e06 由温仰发起的RDS SDK自动发布, BUILD_ID=464, 版本号:1.2.11
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-15 14:40:06 +08:00
haowei.yao
7bf9e855c8 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=329, 版本号:1.2.10
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-15 11:32:52 +08:00
fenglc
b87f210c4c Fix setEndpoint bug 2018-03-14 17:58:26 +08:00
fenglc
24a354cffd Merge pull request #1 from aliyun/pre-release
merge pre-release into master
2018-03-14 15:48:21 +08:00
fenglc
7be1f34dae Fix build failed on windows 2018-03-14 15:43:03 +08:00
haowei.yao
89523ed659 由丰鲁成发起的CORE SDK自动发布, BUILD_ID=186, 版本号:1.2.9
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-14 14:39:25 +08:00
haowei.yao
6b7af1732d 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=325, 版本号:1.2.8
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-13 11:25:52 +08:00
haowei.yao
f725320265 由廷诚发起的CLOUDPHOTO SDK自动发布, BUILD_ID=460, 版本号:1.2.7
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-07 17:07:15 +08:00
haowei.yao
728ece9cd1 由廷诚发起的CLOUDPHOTO SDK自动发布, BUILD_ID=459, 版本号:1.2.6
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-06 13:58:46 +08:00
haowei.yao
dd93fdf1c5 由廷诚发起的CLOUDPHOTO SDK自动发布, BUILD_ID=457, 版本号:1.2.5
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-03-06 11:08:32 +08:00
haowei.yao
78ee1b30bd 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=314, 版本号:1.2.4
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-02-28 11:38:05 +08:00
haowei.yao
96d9eb7efd 由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=313, 版本号:1.2.3
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-02-27 19:16:42 +08:00
haowei.yao
e796f2acdb 由择仁发起的CCC SDK自动发布, BUILD_ID=445, 版本号:1.2.2
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-02-27 16:15:41 +08:00
haowei.yao
9cc69b8d44 由荣旸发起的TESLADAM SDK自动发布, BUILD_ID=310, 版本号:1.2.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-02-27 12:06:56 +08:00
haowei.yao
a83c6f6c79 由治世发起的CS SDK自动发布, BUILD_ID=442, 版本号:1.2.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
2018-02-27 11:33:25 +08:00
1560 changed files with 114514 additions and 17499 deletions

View File

@@ -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,11 @@ ExternalProject_Add(curl
endif()
ExternalProject_Add(catch
URL https://github.com/catchorg/Catch2/releases/download/v2.0.1/catch.hpp
URL ${CMAKE_CURRENT_SOURCE_DIR}/catch-2.0.1.hpp
URL_HASH MD5=9b3d2cb5c0f9532cddfbbfd0a622f0af
DOWNLOAD_NO_EXTRACT 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND
${CMAKE_COMMAND} -E copy_if_different <DOWNLOADED_FILE> <INSTALL_DIR>
${CMAKE_COMMAND} -E copy_if_different <DOWNLOADED_FILE> <INSTALL_DIR>/catch.hpp
)

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

Binary file not shown.

BIN
3rdparty/jsoncpp-0.10.5.tar.gz vendored Normal file

Binary file not shown.

111
CHANGELOG
View File

@@ -1,3 +1,114 @@
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.
2018-02-27 Version: 1.2.0
1, add new api DescribeClusters,DescribeClusterLogs,DescribeClusterNodes,UpgradeClusterComponents
2018-02-09 Version: 1.1.0
1, Aliyun E-HPC service SDK, initial version.
2, Include APIs of E-HPC clusters, nodes, users, jobs, job templates etc.

View File

@@ -61,4 +61,11 @@ add_subdirectory(tesladam)
add_subdirectory(cms)
add_subdirectory(afs)
add_subdirectory(aegis)
add_subdirectory(ehpc)
add_subdirectory(ehpc)
add_subdirectory(cs)
add_subdirectory(ccc)
add_subdirectory(teslamaxcompute)
add_subdirectory(push)
add_subdirectory(csb)
add_subdirectory(domain)
add_subdirectory(green)

View File

@@ -1 +1 @@
1.1.0
1.6.0

View File

@@ -230,7 +230,6 @@ namespace AlibabaCloud
QueryCrackEventOutcomeCallable queryCrackEventCallable(const Model::QueryCrackEventRequest& request) const;
private:
virtual EndpointOutcome endpoint()const override;
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}

View File

@@ -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());

View File

@@ -134,7 +134,6 @@ namespace AlibabaCloud
AnalyzeNvcOutcomeCallable analyzeNvcCallable(const Model::AnalyzeNvcRequest& request) const;
private:
virtual EndpointOutcome endpoint()const override;
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}

View File

@@ -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();
}

162
ccc/CMakeLists.txt Normal file
View File

@@ -0,0 +1,162 @@
#
# 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/ListRecordingsByContactIdRequest.h
include/alibabacloud/ccc/model/ListRecordingsByContactIdResult.h
include/alibabacloud/ccc/model/ListUsersOfSkillGroupRequest.h
include/alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h
include/alibabacloud/ccc/model/DeleteSkillGroupRequest.h
include/alibabacloud/ccc/model/DeleteSkillGroupResult.h
include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h
include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h
include/alibabacloud/ccc/model/ListUsersRequest.h
include/alibabacloud/ccc/model/ListUsersResult.h
include/alibabacloud/ccc/model/ListSkillGroupsRequest.h
include/alibabacloud/ccc/model/ListSkillGroupsResult.h
include/alibabacloud/ccc/model/ListSkillGroupsOfUserRequest.h
include/alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h
include/alibabacloud/ccc/model/RemovePhoneNumberRequest.h
include/alibabacloud/ccc/model/RemovePhoneNumberResult.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/GetConfigRequest.h
include/alibabacloud/ccc/model/GetConfigResult.h
include/alibabacloud/ccc/model/DownloadRecordingRequest.h
include/alibabacloud/ccc/model/DownloadRecordingResult.h
include/alibabacloud/ccc/model/ListPhoneNumbersRequest.h
include/alibabacloud/ccc/model/ListPhoneNumbersResult.h
include/alibabacloud/ccc/model/RefreshTokenRequest.h
include/alibabacloud/ccc/model/RefreshTokenResult.h
include/alibabacloud/ccc/model/RequestLoginInfoRequest.h
include/alibabacloud/ccc/model/RequestLoginInfoResult.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/ListRolesRequest.h
include/alibabacloud/ccc/model/ListRolesResult.h
include/alibabacloud/ccc/model/GetUserRequest.h
include/alibabacloud/ccc/model/GetUserResult.h )
set(ccc_src
src/CCCClient.cc
src/model/ListRecordingsByContactIdRequest.cc
src/model/ListRecordingsByContactIdResult.cc
src/model/ListUsersOfSkillGroupRequest.cc
src/model/ListUsersOfSkillGroupResult.cc
src/model/DeleteSkillGroupRequest.cc
src/model/DeleteSkillGroupResult.cc
src/model/ModifyPhoneNumberRequest.cc
src/model/ModifyPhoneNumberResult.cc
src/model/ListUsersRequest.cc
src/model/ListUsersResult.cc
src/model/ListSkillGroupsRequest.cc
src/model/ListSkillGroupsResult.cc
src/model/ListSkillGroupsOfUserRequest.cc
src/model/ListSkillGroupsOfUserResult.cc
src/model/RemovePhoneNumberRequest.cc
src/model/RemovePhoneNumberResult.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/GetConfigRequest.cc
src/model/GetConfigResult.cc
src/model/DownloadRecordingRequest.cc
src/model/DownloadRecordingResult.cc
src/model/ListPhoneNumbersRequest.cc
src/model/ListPhoneNumbersResult.cc
src/model/RefreshTokenRequest.cc
src/model/RefreshTokenResult.cc
src/model/RequestLoginInfoRequest.cc
src/model/RequestLoginInfoResult.cc
src/model/GetServiceExtensionsRequest.cc
src/model/GetServiceExtensionsResult.cc
src/model/ListContactFlowsRequest.cc
src/model/ListContactFlowsResult.cc
src/model/ListRolesRequest.cc
src/model/ListRolesResult.cc
src/model/GetUserRequest.cc
src/model/GetUserResult.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}
)

View File

@@ -0,0 +1,206 @@
/*
* 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/ListRecordingsByContactIdRequest.h"
#include "model/ListRecordingsByContactIdResult.h"
#include "model/ListUsersOfSkillGroupRequest.h"
#include "model/ListUsersOfSkillGroupResult.h"
#include "model/DeleteSkillGroupRequest.h"
#include "model/DeleteSkillGroupResult.h"
#include "model/ModifyPhoneNumberRequest.h"
#include "model/ModifyPhoneNumberResult.h"
#include "model/ListUsersRequest.h"
#include "model/ListUsersResult.h"
#include "model/ListSkillGroupsRequest.h"
#include "model/ListSkillGroupsResult.h"
#include "model/ListSkillGroupsOfUserRequest.h"
#include "model/ListSkillGroupsOfUserResult.h"
#include "model/RemovePhoneNumberRequest.h"
#include "model/RemovePhoneNumberResult.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/GetConfigRequest.h"
#include "model/GetConfigResult.h"
#include "model/DownloadRecordingRequest.h"
#include "model/DownloadRecordingResult.h"
#include "model/ListPhoneNumbersRequest.h"
#include "model/ListPhoneNumbersResult.h"
#include "model/RefreshTokenRequest.h"
#include "model/RefreshTokenResult.h"
#include "model/RequestLoginInfoRequest.h"
#include "model/RequestLoginInfoResult.h"
#include "model/GetServiceExtensionsRequest.h"
#include "model/GetServiceExtensionsResult.h"
#include "model/ListContactFlowsRequest.h"
#include "model/ListContactFlowsResult.h"
#include "model/ListRolesRequest.h"
#include "model/ListRolesResult.h"
#include "model/GetUserRequest.h"
#include "model/GetUserResult.h"
namespace AlibabaCloud
{
namespace CCC
{
class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient
{
public:
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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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;
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();
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_CCC_CCCCLIENT_H_

View 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_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_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_

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_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;
std::vector<ContactFlow> contactFlow;
std::string phoneNumberDescription;
};
AddPhoneNumberResult();
explicit AddPhoneNumberResult(const std::string &payload);
~AddPhoneNumberResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<PhoneNumber> getPhoneNumber()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<PhoneNumber> phoneNumber_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDPHONENUMBERRESULT_H_

View File

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

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_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_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_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();
std::vector<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:
std::vector<MediaDownloadParam> mediaDownloadParam_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_DOWNLOADRECORDINGRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_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_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_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;
std::vector<ConfigItem> getConfigItem()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<ConfigItem> configItem_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETCONFIGRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_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 GetServiceExtensionsRequest : public RpcServiceRequest
{
public:
GetServiceExtensionsRequest();
~GetServiceExtensionsRequest();
std::string getServiceType()const;
void setServiceType(const std::string& serviceType);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string serviceType_;
std::string instanceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSRESULT_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 GetServiceExtensionsResult : public ServiceResult
{
public:
struct ServiceExtension
{
std::string number;
std::string name;
};
GetServiceExtensionsResult();
explicit GetServiceExtensionsResult(const std::string &payload);
~GetServiceExtensionsResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<ServiceExtension> getServiceExtensions()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<ServiceExtension> serviceExtensions_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETSERVICEEXTENSIONSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_GETUSERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_GETUSERREQUEST_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 GetUserRequest : public RpcServiceRequest
{
public:
GetUserRequest();
~GetUserRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string userId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERREQUEST_H_

View File

@@ -0,0 +1,96 @@
/*
* 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_GETUSERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_GETUSERRESULT_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 GetUserResult : public ServiceResult
{
public:
struct User
{
struct Detail
{
std::string loginName;
std::string department;
std::string email;
std::string phone;
std::string displayName;
};
struct Role
{
std::string roleName;
std::string instanceId;
std::string roleDescription;
std::string roleId;
};
struct SkillLevel
{
struct Skill
{
std::string skillGroupName;
std::string instanceId;
std::string skillGroupId;
std::string skillGroupDescription;
};
std::vector<Skill> skill;
std::string skillLevelId;
int level;
};
std::vector<SkillLevel> skillLevels;
std::string instanceId;
std::string userId;
std::string ramId;
std::vector<Role> roles;
std::vector<Detail> detail;
};
GetUserResult();
explicit GetUserResult(const std::string &payload);
~GetUserResult();
std::vector<User> getUser()const;
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<User> user_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETUSERRESULT_H_

View File

@@ -0,0 +1,78 @@
/*
* 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_LISTCALLDETAILRECORDSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCALLDETAILRECORDSREQUEST_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 ListCallDetailRecordsRequest : public RpcServiceRequest
{
public:
ListCallDetailRecordsRequest();
~ListCallDetailRecordsRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getContactDisposition()const;
void setContactDisposition(const std::string& contactDisposition);
std::string getContactType()const;
void setContactType(const std::string& contactType);
std::string getCriteria()const;
void setCriteria(const std::string& criteria);
std::string getPhoneNumber()const;
void setPhoneNumber(const std::string& phoneNumber);
int getPageSize()const;
void setPageSize(int pageSize);
long getStartTime()const;
void setStartTime(long startTime);
long getStopTime()const;
void setStopTime(long stopTime);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
bool getWithRecording()const;
void setWithRecording(bool withRecording);
private:
std::string instanceId_;
std::string contactDisposition_;
std::string contactType_;
std::string criteria_;
std::string phoneNumber_;
int pageSize_;
long startTime_;
long stopTime_;
int pageNumber_;
std::string accessKeyId_;
bool withRecording_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLDETAILRECORDSREQUEST_H_

View File

@@ -0,0 +1,112 @@
/*
* 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_LISTCALLDETAILRECORDSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCALLDETAILRECORDSRESULT_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 ListCallDetailRecordsResult : public ServiceResult
{
public:
struct CallDetailRecords
{
struct CallDetailRecord
{
struct CallDetailAgent
{
int holdTime;
int workTime;
std::string skillGroupName;
long startTime;
int queueTime;
std::string contactId;
std::string agentId;
std::string agentName;
int ringTime;
int talkTime;
};
struct Recording
{
std::string filePath;
std::string calledNumber;
std::string contactType;
std::string instanceId;
std::string fileName;
std::string channel;
long startTime;
int duration;
std::string contactId;
std::string callingNumber;
std::string fileDescription;
std::string agentId;
std::string agentName;
};
std::string calledNumber;
std::string contactType;
std::string contactDisposition;
std::string instanceId;
int satisfaction;
std::vector<CallDetailRecord::CallDetailAgent> agents;
long startTime;
int duration;
std::vector<CallDetailRecord::Recording> recordings;
std::string contactId;
std::string callingNumber;
std::string extraAttr;
std::string skillGroupNames;
std::string agentNames;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<CallDetailRecord> list;
};
ListCallDetailRecordsResult();
explicit ListCallDetailRecordsResult(const std::string &payload);
~ListCallDetailRecordsResult();
std::string getMessage()const;
std::vector<CallDetailRecords> getCallDetailRecords()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<CallDetailRecords> callDetailRecords_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCALLDETAILRECORDSRESULT_H_

View File

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

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT ListContactFlowsResult : public ServiceResult
{
public:
struct ContactFlow
{
struct ContactFlowVersion
{
std::string lastModified;
std::string status;
std::string lastModifiedBy;
std::string lockedBy;
std::string contactFlowVersionId;
std::string version;
std::string contactFlowVersionDescription;
};
struct PhoneNumber
{
std::string usage;
bool testOnly;
bool allowOutbound;
std::string number;
std::string instanceId;
int remainingTime;
int trunks;
std::string phoneNumberId;
std::string phoneNumberDescription;
};
std::vector<ContactFlow::PhoneNumber> phoneNumbers;
std::string type;
std::string appliedVersion;
std::vector<ContactFlow::ContactFlowVersion> versions;
std::string contactFlowId;
std::string instanceId;
std::string contactFlowName;
std::string contactFlowDescription;
};
ListContactFlowsResult();
explicit ListContactFlowsResult(const std::string &payload);
~ListContactFlowsResult();
std::string getMessage()const;
std::vector<ContactFlow> getContactFlows()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<ContactFlow> contactFlows_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCONTACTFLOWSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSREQUEST_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 ListPhoneNumbersRequest : public RpcServiceRequest
{
public:
ListPhoneNumbersRequest();
~ListPhoneNumbersRequest();
bool getOutboundOnly()const;
void setOutboundOnly(bool outboundOnly);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
bool outboundOnly_;
std::string instanceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSREQUEST_H_

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSRESULT_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 ListPhoneNumbersResult : 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;
std::vector<ContactFlow> contactFlow;
std::string phoneNumberDescription;
};
ListPhoneNumbersResult();
explicit ListPhoneNumbersResult(const std::string &payload);
~ListPhoneNumbersResult();
std::vector<PhoneNumber> getPhoneNumbers()const;
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<PhoneNumber> phoneNumbers_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTPHONENUMBERSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_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 ListRecordingsByContactIdRequest : public RpcServiceRequest
{
public:
ListRecordingsByContactIdRequest();
~ListRecordingsByContactIdRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getContactId()const;
void setContactId(const std::string& contactId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string contactId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDREQUEST_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDRESULT_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 ListRecordingsByContactIdResult : public ServiceResult
{
public:
struct Recording
{
std::string filePath;
std::string calledNumber;
std::string contactType;
std::string instanceId;
std::string fileName;
std::string channel;
long startTime;
int duration;
std::string contactId;
std::string callingNumber;
std::string fileDescription;
std::string agentId;
std::string agentName;
};
ListRecordingsByContactIdResult();
explicit ListRecordingsByContactIdResult(const std::string &payload);
~ListRecordingsByContactIdResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<Recording> getRecordings()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<Recording> recordings_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSBYCONTACTIDRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_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 ListRecordingsRequest : public RpcServiceRequest
{
public:
ListRecordingsRequest();
~ListRecordingsRequest();
std::string getAgentId()const;
void setAgentId(const std::string& agentId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCriteria()const;
void setCriteria(const std::string& criteria);
std::string getPhoneNumber()const;
void setPhoneNumber(const std::string& phoneNumber);
int getPageSize()const;
void setPageSize(int pageSize);
long getStartTime()const;
void setStartTime(long startTime);
long getStopTime()const;
void setStopTime(long stopTime);
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 criteria_;
std::string phoneNumber_;
int pageSize_;
long startTime_;
long stopTime_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_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 ListRecordingsResult : public ServiceResult
{
public:
struct Recordings
{
struct Recording
{
std::string filePath;
std::string calledNumber;
std::string contactType;
std::string instanceId;
std::string fileName;
std::string channel;
long startTime;
int duration;
std::string contactId;
std::string callingNumber;
std::string fileDescription;
std::string agentId;
std::string agentName;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<Recording> list;
};
ListRecordingsResult();
explicit ListRecordingsResult(const std::string &payload);
~ListRecordingsResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<Recordings> getRecordings()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<Recordings> recordings_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTRECORDINGSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTROLESREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTROLESREQUEST_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 ListRolesRequest : public RpcServiceRequest
{
public:
ListRolesRequest();
~ListRolesRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTROLESREQUEST_H_

View 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_LISTROLESRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTROLESRESULT_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 ListRolesResult : public ServiceResult
{
public:
struct Role
{
std::string roleName;
std::string instanceId;
std::string roleDescription;
std::string roleId;
};
ListRolesResult();
explicit ListRolesResult(const std::string &payload);
~ListRolesResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<Role> getRoles()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<Role> roles_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTROLESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_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 ListSkillGroupsOfUserRequest : public RpcServiceRequest
{
public:
ListSkillGroupsOfUserRequest();
~ListSkillGroupsOfUserRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string userId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERREQUEST_H_

View File

@@ -0,0 +1,85 @@
/*
* 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_LISTSKILLGROUPSOFUSERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERRESULT_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 ListSkillGroupsOfUserResult : public ServiceResult
{
public:
struct SkillLevel
{
struct Skill
{
struct PhoneNumber
{
std::string usage;
bool testOnly;
bool allowOutbound;
std::string number;
std::string instanceId;
int remainingTime;
int trunks;
std::string phoneNumberId;
std::string phoneNumberDescription;
};
std::string skillGroupName;
std::string instanceId;
std::string skillGroupId;
std::vector<PhoneNumber> outboundPhoneNumbers;
std::string skillGroupDescription;
};
std::vector<Skill> skill;
std::string skillLevelId;
int level;
};
ListSkillGroupsOfUserResult();
explicit ListSkillGroupsOfUserResult(const std::string &payload);
~ListSkillGroupsOfUserResult();
std::vector<SkillLevel> getSkillLevels()const;
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SkillLevel> skillLevels_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSOFUSERRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSREQUEST_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 ListSkillGroupsRequest : public RpcServiceRequest
{
public:
ListSkillGroupsRequest();
~ListSkillGroupsRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSRESULT_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 ListSkillGroupsResult : public ServiceResult
{
public:
struct SkillGroup
{
struct PhoneNumber
{
std::string usage;
bool testOnly;
bool allowOutbound;
std::string number;
std::string instanceId;
int remainingTime;
int trunks;
std::string phoneNumberId;
std::string phoneNumberDescription;
};
std::string skillGroupName;
std::string accSkillGroupName;
std::string instanceId;
int userCount;
std::string skillGroupId;
std::vector<SkillGroup::PhoneNumber> outboundPhoneNumbers;
std::string accQueueName;
std::string skillGroupDescription;
};
ListSkillGroupsResult();
explicit ListSkillGroupsResult(const std::string &payload);
~ListSkillGroupsResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<SkillGroup> getSkillGroups()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<SkillGroup> skillGroups_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTSKILLGROUPSRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_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 ListUsersOfSkillGroupRequest : public RpcServiceRequest
{
public:
ListUsersOfSkillGroupRequest();
~ListUsersOfSkillGroupRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string skillGroupId_;
int pageSize_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPREQUEST_H_

View File

@@ -0,0 +1,111 @@
/*
* 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_LISTUSERSOFSKILLGROUPRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPRESULT_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 ListUsersOfSkillGroupResult : public ServiceResult
{
public:
struct Users
{
struct User
{
struct Detail
{
std::string loginName;
std::string department;
std::string email;
std::string phone;
std::string displayName;
};
struct Role
{
struct Privilege
{
std::string privilegeDescription;
std::string privilegeId;
std::string privilegeName;
};
std::string roleName;
std::string instanceId;
int userCount;
std::vector<Role::Privilege> privileges;
std::string roleDescription;
std::string roleId;
};
struct SkillLevel
{
struct Skill
{
std::string skillGroupName;
std::string instanceId;
std::string skillGroupId;
std::string skillGroupDescription;
};
std::vector<Skill> skill;
std::string skillLevelId;
int level;
};
std::vector<User::SkillLevel> skillLevels;
std::string instanceId;
std::string userId;
std::string ramId;
std::vector<User::Role> roles;
std::vector<Detail> detail;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<User> list;
};
ListUsersOfSkillGroupResult();
explicit ListUsersOfSkillGroupResult(const std::string &payload);
~ListUsersOfSkillGroupResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<Users> getUsers()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<Users> users_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSOFSKILLGROUPRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTUSERSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTUSERSREQUEST_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 ListUsersRequest : public RpcServiceRequest
{
public:
ListUsersRequest();
~ListUsersRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
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_;
int pageSize_;
int pageNumber_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSREQUEST_H_

View File

@@ -0,0 +1,104 @@
/*
* 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_LISTUSERSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTUSERSRESULT_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 ListUsersResult : public ServiceResult
{
public:
struct Users
{
struct User
{
struct Detail
{
std::string loginName;
std::string department;
std::string email;
std::string phone;
std::string displayName;
};
struct Role
{
std::string roleName;
std::string instanceId;
std::string roleDescription;
std::string roleId;
};
struct SkillLevel
{
struct Skill
{
std::string skillGroupName;
std::string instanceId;
std::string skillGroupId;
std::string skillGroupDescription;
};
std::vector<Skill> skill;
std::string skillLevelId;
int level;
};
std::vector<User::SkillLevel> skillLevels;
std::string instanceId;
std::string userId;
bool primary;
std::string ramId;
std::vector<User::Role> roles;
std::vector<Detail> detail;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<User> list;
};
ListUsersResult();
explicit ListUsersResult(const std::string &payload);
~ListUsersResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<Users> getUsers()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<Users> users_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTUSERSRESULT_H_

View File

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

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_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 RefreshTokenRequest : public RpcServiceRequest
{
public:
RefreshTokenRequest();
~RefreshTokenRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_REFRESHTOKENREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_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 RefreshTokenResult : public ServiceResult
{
public:
struct Token
{
std::string signData;
std::string signature;
};
RefreshTokenResult();
explicit RefreshTokenResult(const std::string &payload);
~RefreshTokenResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<Token> getToken()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<Token> token_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_REFRESHTOKENRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_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 RemovePhoneNumberRequest : public RpcServiceRequest
{
public:
RemovePhoneNumberRequest();
~RemovePhoneNumberRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getPhoneNumberId()const;
void setPhoneNumberId(const std::string& phoneNumberId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string phoneNumberId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_REMOVEPHONENUMBERRESULT_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 RemovePhoneNumberResult : public ServiceResult
{
public:
RemovePhoneNumberResult();
explicit RemovePhoneNumberResult(const std::string &payload);
~RemovePhoneNumberResult();
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_REMOVEPHONENUMBERRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_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 RequestLoginInfoRequest : public RpcServiceRequest
{
public:
RequestLoginInfoRequest();
~RequestLoginInfoRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string instanceId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFOREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_H_
#define ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_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 RequestLoginInfoResult : public ServiceResult
{
public:
struct LoginInfo
{
std::string agentServerUrl;
std::string extension;
std::string tenantId;
std::string userName;
std::string signData;
std::string signature;
std::string displayName;
std::string phoneNumber;
std::string region;
std::string webRtcUrl;
};
RequestLoginInfoResult();
explicit RequestLoginInfoResult(const std::string &payload);
~RequestLoginInfoResult();
std::vector<LoginInfo> getLoginInfo()const;
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<LoginInfo> loginInfo_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_REQUESTLOGININFORESULT_H_

773
ccc/src/CCCClient.cc Normal file
View File

@@ -0,0 +1,773 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/CCCClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
namespace
{
const std::string SERVICE_NAME = "CCC";
}
CCCClient::CCCClient(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, "CCC");
}
CCCClient::CCCClient(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, "CCC");
}
CCCClient::CCCClient(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, "CCC");
}
CCCClient::~CCCClient()
{}
CCCClient::ListRecordingsByContactIdOutcome CCCClient::listRecordingsByContactId(const ListRecordingsByContactIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRecordingsByContactIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRecordingsByContactIdOutcome(ListRecordingsByContactIdResult(outcome.result()));
else
return ListRecordingsByContactIdOutcome(outcome.error());
}
void CCCClient::listRecordingsByContactIdAsync(const ListRecordingsByContactIdRequest& request, const ListRecordingsByContactIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRecordingsByContactId(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByContactIdCallable(const ListRecordingsByContactIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRecordingsByContactIdOutcome()>>(
[this, request]()
{
return this->listRecordingsByContactId(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListUsersOfSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListUsersOfSkillGroupOutcome(ListUsersOfSkillGroupResult(outcome.result()));
else
return ListUsersOfSkillGroupOutcome(outcome.error());
}
void CCCClient::listUsersOfSkillGroupAsync(const ListUsersOfSkillGroupRequest& request, const ListUsersOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listUsersOfSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroupCallable(const ListUsersOfSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListUsersOfSkillGroupOutcome()>>(
[this, request]()
{
return this->listUsersOfSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSkillGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteSkillGroupOutcome(DeleteSkillGroupResult(outcome.result()));
else
return DeleteSkillGroupOutcome(outcome.error());
}
void CCCClient::deleteSkillGroupAsync(const DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteSkillGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(const DeleteSkillGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteSkillGroupOutcome()>>(
[this, request]()
{
return this->deleteSkillGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyPhoneNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyPhoneNumberOutcome(ModifyPhoneNumberResult(outcome.result()));
else
return ModifyPhoneNumberOutcome(outcome.error());
}
void CCCClient::modifyPhoneNumberAsync(const ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyPhoneNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable(const ModifyPhoneNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyPhoneNumberOutcome()>>(
[this, request]()
{
return this->modifyPhoneNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListUsersOutcome CCCClient::listUsers(const ListUsersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListUsersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListUsersOutcome(ListUsersResult(outcome.result()));
else
return ListUsersOutcome(outcome.error());
}
void CCCClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listUsers(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListUsersOutcome()>>(
[this, request]()
{
return this->listUsers(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSkillGroupsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSkillGroupsOutcome(ListSkillGroupsResult(outcome.result()));
else
return ListSkillGroupsOutcome(outcome.error());
}
void CCCClient::listSkillGroupsAsync(const ListSkillGroupsRequest& request, const ListSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSkillGroups(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(const ListSkillGroupsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSkillGroupsOutcome()>>(
[this, request]()
{
return this->listSkillGroups(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSkillGroupsOfUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSkillGroupsOfUserOutcome(ListSkillGroupsOfUserResult(outcome.result()));
else
return ListSkillGroupsOfUserOutcome(outcome.error());
}
void CCCClient::listSkillGroupsOfUserAsync(const ListSkillGroupsOfUserRequest& request, const ListSkillGroupsOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSkillGroupsOfUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUserCallable(const ListSkillGroupsOfUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSkillGroupsOfUserOutcome()>>(
[this, request]()
{
return this->listSkillGroupsOfUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemovePhoneNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RemovePhoneNumberOutcome(RemovePhoneNumberResult(outcome.result()));
else
return RemovePhoneNumberOutcome(outcome.error());
}
void CCCClient::removePhoneNumberAsync(const RemovePhoneNumberRequest& request, const RemovePhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, removePhoneNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable(const RemovePhoneNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RemovePhoneNumberOutcome()>>(
[this, request]()
{
return this->removePhoneNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCallDetailRecordsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCallDetailRecordsOutcome(ListCallDetailRecordsResult(outcome.result()));
else
return ListCallDetailRecordsOutcome(outcome.error());
}
void CCCClient::listCallDetailRecordsAsync(const ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCallDetailRecords(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecordsCallable(const ListCallDetailRecordsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCallDetailRecordsOutcome()>>(
[this, request]()
{
return this->listCallDetailRecords(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddPhoneNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddPhoneNumberOutcome(AddPhoneNumberResult(outcome.result()));
else
return AddPhoneNumberOutcome(outcome.error());
}
void CCCClient::addPhoneNumberAsync(const AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addPhoneNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const AddPhoneNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddPhoneNumberOutcome()>>(
[this, request]()
{
return this->addPhoneNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRecordingsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRecordingsOutcome(ListRecordingsResult(outcome.result()));
else
return ListRecordingsOutcome(outcome.error());
}
void CCCClient::listRecordingsAsync(const ListRecordingsRequest& request, const ListRecordingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRecordings(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const ListRecordingsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRecordingsOutcome()>>(
[this, request]()
{
return this->listRecordings(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetConfigOutcome(GetConfigResult(outcome.result()));
else
return GetConfigOutcome(outcome.error());
}
void CCCClient::getConfigAsync(const GetConfigRequest& request, const GetConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetConfigOutcome()>>(
[this, request]()
{
return this->getConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DownloadRecordingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DownloadRecordingOutcome(DownloadRecordingResult(outcome.result()));
else
return DownloadRecordingOutcome(outcome.error());
}
void CCCClient::downloadRecordingAsync(const DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, downloadRecording(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable(const DownloadRecordingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DownloadRecordingOutcome()>>(
[this, request]()
{
return this->downloadRecording(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListPhoneNumbersOutcome CCCClient::listPhoneNumbers(const ListPhoneNumbersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPhoneNumbersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPhoneNumbersOutcome(ListPhoneNumbersResult(outcome.result()));
else
return ListPhoneNumbersOutcome(outcome.error());
}
void CCCClient::listPhoneNumbersAsync(const ListPhoneNumbersRequest& request, const ListPhoneNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPhoneNumbers(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(const ListPhoneNumbersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPhoneNumbersOutcome()>>(
[this, request]()
{
return this->listPhoneNumbers(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RefreshTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RefreshTokenOutcome(RefreshTokenResult(outcome.result()));
else
return RefreshTokenOutcome(outcome.error());
}
void CCCClient::refreshTokenAsync(const RefreshTokenRequest& request, const RefreshTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, refreshToken(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const RefreshTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RefreshTokenOutcome()>>(
[this, request]()
{
return this->refreshToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RequestLoginInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RequestLoginInfoOutcome(RequestLoginInfoResult(outcome.result()));
else
return RequestLoginInfoOutcome(outcome.error());
}
void CCCClient::requestLoginInfoAsync(const RequestLoginInfoRequest& request, const RequestLoginInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, requestLoginInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(const RequestLoginInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RequestLoginInfoOutcome()>>(
[this, request]()
{
return this->requestLoginInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetServiceExtensionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetServiceExtensionsOutcome(GetServiceExtensionsResult(outcome.result()));
else
return GetServiceExtensionsOutcome(outcome.error());
}
void CCCClient::getServiceExtensionsAsync(const GetServiceExtensionsRequest& request, const GetServiceExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getServiceExtensions(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCallable(const GetServiceExtensionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetServiceExtensionsOutcome()>>(
[this, request]()
{
return this->getServiceExtensions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListContactFlowsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result()));
else
return ListContactFlowsOutcome(outcome.error());
}
void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listContactFlows(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListContactFlowsOutcome()>>(
[this, request]()
{
return this->listContactFlows(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListRolesOutcome CCCClient::listRoles(const ListRolesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRolesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRolesOutcome(ListRolesResult(outcome.result()));
else
return ListRolesOutcome(outcome.error());
}
void CCCClient::listRolesAsync(const ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRoles(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRolesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRolesOutcome()>>(
[this, request]()
{
return this->listRoles(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetUserOutcome(GetUserResult(outcome.result()));
else
return GetUserOutcome(outcome.error());
}
void CCCClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetUserOutcome()>>(
[this, request]()
{
return this->getUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View 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/ccc/model/AddPhoneNumberRequest.h>
using AlibabaCloud::CCC::Model::AddPhoneNumberRequest;
AddPhoneNumberRequest::AddPhoneNumberRequest() :
RpcServiceRequest("ccc", "2017-07-05", "AddPhoneNumber")
{}
AddPhoneNumberRequest::~AddPhoneNumberRequest()
{}
std::string AddPhoneNumberRequest::getContactFlowId()const
{
return contactFlowId_;
}
void AddPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId)
{
contactFlowId_ = contactFlowId;
setParameter("ContactFlowId", contactFlowId);
}
std::string AddPhoneNumberRequest::getInstanceId()const
{
return instanceId_;
}
void AddPhoneNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddPhoneNumberRequest::getUsage()const
{
return usage_;
}
void AddPhoneNumberRequest::setUsage(const std::string& usage)
{
usage_ = usage;
setParameter("Usage", usage);
}
std::string AddPhoneNumberRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void AddPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
std::string AddPhoneNumberRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/AddPhoneNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
AddPhoneNumberResult::AddPhoneNumberResult() :
ServiceResult()
{}
AddPhoneNumberResult::AddPhoneNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddPhoneNumberResult::~AddPhoneNumberResult()
{}
void AddPhoneNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPhoneNumber = value["PhoneNumber"];
for (auto value : allPhoneNumber)
{
PhoneNumber phoneNumberObject;
if(!value["PhoneNumberId"].isNull())
phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString();
if(!value["InstanceId"].isNull())
phoneNumberObject.instanceId = value["InstanceId"].asString();
if(!value["Number"].isNull())
phoneNumberObject.number = value["Number"].asString();
if(!value["PhoneNumberDescription"].isNull())
phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
if(!value["TestOnly"].isNull())
phoneNumberObject.testOnly = value["TestOnly"].asString() == "true";
if(!value["RemainingTime"].isNull())
phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString());
if(!value["AllowOutbound"].isNull())
phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true";
if(!value["Usage"].isNull())
phoneNumberObject.usage = value["Usage"].asString();
if(!value["Trunks"].isNull())
phoneNumberObject.trunks = std::stoi(value["Trunks"].asString());
auto allContactFlow = value["ContactFlow"];
for (auto value : allContactFlow)
{
PhoneNumber::ContactFlow contactFlowObject;
if(!value["ContactFlowId"].isNull())
contactFlowObject.contactFlowId = value["ContactFlowId"].asString();
if(!value["InstanceId"].isNull())
contactFlowObject.instanceId = value["InstanceId"].asString();
if(!value["ContactFlowName"].isNull())
contactFlowObject.contactFlowName = value["ContactFlowName"].asString();
if(!value["ContactFlowDescription"].isNull())
contactFlowObject.contactFlowDescription = value["ContactFlowDescription"].asString();
if(!value["Type"].isNull())
contactFlowObject.type = value["Type"].asString();
phoneNumberObject.contactFlow.push_back(contactFlowObject);
}
phoneNumber_.push_back(phoneNumberObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string AddPhoneNumberResult::getMessage()const
{
return message_;
}
int AddPhoneNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<AddPhoneNumberResult::PhoneNumber> AddPhoneNumberResult::getPhoneNumber()const
{
return phoneNumber_;
}
std::string AddPhoneNumberResult::getCode()const
{
return code_;
}
bool AddPhoneNumberResult::getSuccess()const
{
return success_;
}

View File

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

View File

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

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/DownloadRecordingRequest.h>
using AlibabaCloud::CCC::Model::DownloadRecordingRequest;
DownloadRecordingRequest::DownloadRecordingRequest() :
RpcServiceRequest("ccc", "2017-07-05", "DownloadRecording")
{}
DownloadRecordingRequest::~DownloadRecordingRequest()
{}
std::string DownloadRecordingRequest::getInstanceId()const
{
return instanceId_;
}
void DownloadRecordingRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DownloadRecordingRequest::getFileName()const
{
return fileName_;
}
void DownloadRecordingRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
}
std::string DownloadRecordingRequest::getChannel()const
{
return channel_;
}
void DownloadRecordingRequest::setChannel(const std::string& channel)
{
channel_ = channel;
setParameter("Channel", channel);
}
std::string DownloadRecordingRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DownloadRecordingRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View 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/ccc/model/GetConfigRequest.h>
using AlibabaCloud::CCC::Model::GetConfigRequest;
GetConfigRequest::GetConfigRequest() :
RpcServiceRequest("ccc", "2017-07-05", "GetConfig")
{}
GetConfigRequest::~GetConfigRequest()
{}
std::string GetConfigRequest::getInstanceId()const
{
return instanceId_;
}
void GetConfigRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetConfigRequest::getName()const
{
return name_;
}
void GetConfigRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string GetConfigRequest::getObjectType()const
{
return objectType_;
}
void GetConfigRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setParameter("ObjectType", objectType);
}
std::string GetConfigRequest::getObjectId()const
{
return objectId_;
}
void GetConfigRequest::setObjectId(const std::string& objectId)
{
objectId_ = objectId;
setParameter("ObjectId", objectId);
}
std::string GetConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/GetServiceExtensionsRequest.h>
using AlibabaCloud::CCC::Model::GetServiceExtensionsRequest;
GetServiceExtensionsRequest::GetServiceExtensionsRequest() :
RpcServiceRequest("ccc", "2017-07-05", "GetServiceExtensions")
{}
GetServiceExtensionsRequest::~GetServiceExtensionsRequest()
{}
std::string GetServiceExtensionsRequest::getServiceType()const
{
return serviceType_;
}
void GetServiceExtensionsRequest::setServiceType(const std::string& serviceType)
{
serviceType_ = serviceType;
setParameter("ServiceType", serviceType);
}
std::string GetServiceExtensionsRequest::getInstanceId()const
{
return instanceId_;
}
void GetServiceExtensionsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetServiceExtensionsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetServiceExtensionsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

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

View 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.
*/
#include <alibabacloud/ccc/model/GetUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
GetUserResult::GetUserResult() :
ServiceResult()
{}
GetUserResult::GetUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserResult::~GetUserResult()
{}
void GetUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUser = value["User"];
for (auto value : allUser)
{
User userObject;
if(!value["UserId"].isNull())
userObject.userId = value["UserId"].asString();
if(!value["RamId"].isNull())
userObject.ramId = value["RamId"].asString();
if(!value["InstanceId"].isNull())
userObject.instanceId = value["InstanceId"].asString();
auto allRoles = value["Roles"]["Role"];
for (auto value : allRoles)
{
User::Role roleObject;
if(!value["RoleId"].isNull())
roleObject.roleId = value["RoleId"].asString();
if(!value["InstanceId"].isNull())
roleObject.instanceId = value["InstanceId"].asString();
if(!value["RoleName"].isNull())
roleObject.roleName = value["RoleName"].asString();
if(!value["RoleDescription"].isNull())
roleObject.roleDescription = value["RoleDescription"].asString();
userObject.roles.push_back(roleObject);
}
auto allSkillLevels = value["SkillLevels"]["SkillLevel"];
for (auto value : allSkillLevels)
{
User::SkillLevel skillLevelObject;
if(!value["SkillLevelId"].isNull())
skillLevelObject.skillLevelId = value["SkillLevelId"].asString();
if(!value["Level"].isNull())
skillLevelObject.level = std::stoi(value["Level"].asString());
auto allSkill = value["Skill"];
for (auto value : allSkill)
{
User::SkillLevel::Skill skillObject;
if(!value["SkillGroupId"].isNull())
skillObject.skillGroupId = value["SkillGroupId"].asString();
if(!value["InstanceId"].isNull())
skillObject.instanceId = value["InstanceId"].asString();
if(!value["SkillGroupName"].isNull())
skillObject.skillGroupName = value["SkillGroupName"].asString();
if(!value["SkillGroupDescription"].isNull())
skillObject.skillGroupDescription = value["SkillGroupDescription"].asString();
skillLevelObject.skill.push_back(skillObject);
}
userObject.skillLevels.push_back(skillLevelObject);
}
auto allDetail = value["Detail"];
for (auto value : allDetail)
{
User::Detail detailObject;
if(!value["LoginName"].isNull())
detailObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
detailObject.displayName = value["DisplayName"].asString();
if(!value["Phone"].isNull())
detailObject.phone = value["Phone"].asString();
if(!value["Email"].isNull())
detailObject.email = value["Email"].asString();
if(!value["Department"].isNull())
detailObject.department = value["Department"].asString();
userObject.detail.push_back(detailObject);
}
user_.push_back(userObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::vector<GetUserResult::User> GetUserResult::getUser()const
{
return user_;
}
std::string GetUserResult::getMessage()const
{
return message_;
}
int GetUserResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetUserResult::getCode()const
{
return code_;
}
bool GetUserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListCallDetailRecordsRequest.h>
using AlibabaCloud::CCC::Model::ListCallDetailRecordsRequest;
ListCallDetailRecordsRequest::ListCallDetailRecordsRequest() :
RpcServiceRequest("ccc", "2017-07-05", "ListCallDetailRecords")
{}
ListCallDetailRecordsRequest::~ListCallDetailRecordsRequest()
{}
std::string ListCallDetailRecordsRequest::getInstanceId()const
{
return instanceId_;
}
void ListCallDetailRecordsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListCallDetailRecordsRequest::getContactDisposition()const
{
return contactDisposition_;
}
void ListCallDetailRecordsRequest::setContactDisposition(const std::string& contactDisposition)
{
contactDisposition_ = contactDisposition;
setParameter("ContactDisposition", contactDisposition);
}
std::string ListCallDetailRecordsRequest::getContactType()const
{
return contactType_;
}
void ListCallDetailRecordsRequest::setContactType(const std::string& contactType)
{
contactType_ = contactType;
setParameter("ContactType", contactType);
}
std::string ListCallDetailRecordsRequest::getCriteria()const
{
return criteria_;
}
void ListCallDetailRecordsRequest::setCriteria(const std::string& criteria)
{
criteria_ = criteria;
setParameter("Criteria", criteria);
}
std::string ListCallDetailRecordsRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void ListCallDetailRecordsRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
int ListCallDetailRecordsRequest::getPageSize()const
{
return pageSize_;
}
void ListCallDetailRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListCallDetailRecordsRequest::getStartTime()const
{
return startTime_;
}
void ListCallDetailRecordsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
long ListCallDetailRecordsRequest::getStopTime()const
{
return stopTime_;
}
void ListCallDetailRecordsRequest::setStopTime(long stopTime)
{
stopTime_ = stopTime;
setParameter("StopTime", std::to_string(stopTime));
}
int ListCallDetailRecordsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCallDetailRecordsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCallDetailRecordsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCallDetailRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool ListCallDetailRecordsRequest::getWithRecording()const
{
return withRecording_;
}
void ListCallDetailRecordsRequest::setWithRecording(bool withRecording)
{
withRecording_ = withRecording;
setParameter("WithRecording", std::to_string(withRecording));
}

View File

@@ -0,0 +1,178 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListCallDetailRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListCallDetailRecordsResult::ListCallDetailRecordsResult() :
ServiceResult()
{}
ListCallDetailRecordsResult::ListCallDetailRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCallDetailRecordsResult::~ListCallDetailRecordsResult()
{}
void ListCallDetailRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCallDetailRecords = value["CallDetailRecords"];
for (auto value : allCallDetailRecords)
{
CallDetailRecords callDetailRecordsObject;
if(!value["TotalCount"].isNull())
callDetailRecordsObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
callDetailRecordsObject.pageNumber = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
callDetailRecordsObject.pageSize = std::stoi(value["PageSize"].asString());
auto allList = value["List"]["CallDetailRecord"];
for (auto value : allList)
{
CallDetailRecords::CallDetailRecord callDetailRecordObject;
if(!value["ContactId"].isNull())
callDetailRecordObject.contactId = value["ContactId"].asString();
if(!value["StartTime"].isNull())
callDetailRecordObject.startTime = std::stol(value["StartTime"].asString());
if(!value["Duration"].isNull())
callDetailRecordObject.duration = std::stoi(value["Duration"].asString());
if(!value["Satisfaction"].isNull())
callDetailRecordObject.satisfaction = std::stoi(value["Satisfaction"].asString());
if(!value["ContactType"].isNull())
callDetailRecordObject.contactType = value["ContactType"].asString();
if(!value["ContactDisposition"].isNull())
callDetailRecordObject.contactDisposition = value["ContactDisposition"].asString();
if(!value["CallingNumber"].isNull())
callDetailRecordObject.callingNumber = value["CallingNumber"].asString();
if(!value["CalledNumber"].isNull())
callDetailRecordObject.calledNumber = value["CalledNumber"].asString();
if(!value["AgentNames"].isNull())
callDetailRecordObject.agentNames = value["AgentNames"].asString();
if(!value["SkillGroupNames"].isNull())
callDetailRecordObject.skillGroupNames = value["SkillGroupNames"].asString();
if(!value["InstanceId"].isNull())
callDetailRecordObject.instanceId = value["InstanceId"].asString();
if(!value["ExtraAttr"].isNull())
callDetailRecordObject.extraAttr = value["ExtraAttr"].asString();
auto allAgents = value["Agents"]["CallDetailAgent"];
for (auto value : allAgents)
{
CallDetailRecords::CallDetailRecord::CallDetailAgent agentsObject;
if(!value["ContactId"].isNull())
agentsObject.contactId = value["ContactId"].asString();
if(!value["AgentId"].isNull())
agentsObject.agentId = value["AgentId"].asString();
if(!value["AgentName"].isNull())
agentsObject.agentName = value["AgentName"].asString();
if(!value["SkillGroupName"].isNull())
agentsObject.skillGroupName = value["SkillGroupName"].asString();
if(!value["QueueTime"].isNull())
agentsObject.queueTime = std::stoi(value["QueueTime"].asString());
if(!value["RingTime"].isNull())
agentsObject.ringTime = std::stoi(value["RingTime"].asString());
if(!value["StartTime"].isNull())
agentsObject.startTime = std::stol(value["StartTime"].asString());
if(!value["TalkTime"].isNull())
agentsObject.talkTime = std::stoi(value["TalkTime"].asString());
if(!value["HoldTime"].isNull())
agentsObject.holdTime = std::stoi(value["HoldTime"].asString());
if(!value["WorkTime"].isNull())
agentsObject.workTime = std::stoi(value["WorkTime"].asString());
callDetailRecordObject.agents.push_back(agentsObject);
}
auto allRecordings = value["Recordings"]["Recording"];
for (auto value : allRecordings)
{
CallDetailRecords::CallDetailRecord::Recording recordingsObject;
if(!value["ContactId"].isNull())
recordingsObject.contactId = value["ContactId"].asString();
if(!value["ContactType"].isNull())
recordingsObject.contactType = value["ContactType"].asString();
if(!value["AgentId"].isNull())
recordingsObject.agentId = value["AgentId"].asString();
if(!value["AgentName"].isNull())
recordingsObject.agentName = value["AgentName"].asString();
if(!value["CallingNumber"].isNull())
recordingsObject.callingNumber = value["CallingNumber"].asString();
if(!value["CalledNumber"].isNull())
recordingsObject.calledNumber = value["CalledNumber"].asString();
if(!value["StartTime"].isNull())
recordingsObject.startTime = std::stol(value["StartTime"].asString());
if(!value["Duration"].isNull())
recordingsObject.duration = std::stoi(value["Duration"].asString());
if(!value["FileName"].isNull())
recordingsObject.fileName = value["FileName"].asString();
if(!value["FilePath"].isNull())
recordingsObject.filePath = value["FilePath"].asString();
if(!value["FileDescription"].isNull())
recordingsObject.fileDescription = value["FileDescription"].asString();
if(!value["Channel"].isNull())
recordingsObject.channel = value["Channel"].asString();
if(!value["InstanceId"].isNull())
recordingsObject.instanceId = value["InstanceId"].asString();
callDetailRecordObject.recordings.push_back(recordingsObject);
}
callDetailRecordsObject.list.push_back(callDetailRecordObject);
}
callDetailRecords_.push_back(callDetailRecordsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListCallDetailRecordsResult::getMessage()const
{
return message_;
}
std::vector<ListCallDetailRecordsResult::CallDetailRecords> ListCallDetailRecordsResult::getCallDetailRecords()const
{
return callDetailRecords_;
}
int ListCallDetailRecordsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListCallDetailRecordsResult::getCode()const
{
return code_;
}
bool ListCallDetailRecordsResult::getSuccess()const
{
return success_;
}

View File

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

View File

@@ -0,0 +1,140 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListContactFlowsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListContactFlowsResult::ListContactFlowsResult() :
ServiceResult()
{}
ListContactFlowsResult::ListContactFlowsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListContactFlowsResult::~ListContactFlowsResult()
{}
void ListContactFlowsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContactFlows = value["ContactFlows"]["ContactFlow"];
for (auto value : allContactFlows)
{
ContactFlow contactFlowsObject;
if(!value["ContactFlowId"].isNull())
contactFlowsObject.contactFlowId = value["ContactFlowId"].asString();
if(!value["InstanceId"].isNull())
contactFlowsObject.instanceId = value["InstanceId"].asString();
if(!value["ContactFlowName"].isNull())
contactFlowsObject.contactFlowName = value["ContactFlowName"].asString();
if(!value["ContactFlowDescription"].isNull())
contactFlowsObject.contactFlowDescription = value["ContactFlowDescription"].asString();
if(!value["Type"].isNull())
contactFlowsObject.type = value["Type"].asString();
if(!value["AppliedVersion"].isNull())
contactFlowsObject.appliedVersion = value["AppliedVersion"].asString();
auto allVersions = value["Versions"]["ContactFlowVersion"];
for (auto value : allVersions)
{
ContactFlow::ContactFlowVersion versionsObject;
if(!value["ContactFlowVersionId"].isNull())
versionsObject.contactFlowVersionId = value["ContactFlowVersionId"].asString();
if(!value["Version"].isNull())
versionsObject.version = value["Version"].asString();
if(!value["ContactFlowVersionDescription"].isNull())
versionsObject.contactFlowVersionDescription = value["ContactFlowVersionDescription"].asString();
if(!value["LastModified"].isNull())
versionsObject.lastModified = value["LastModified"].asString();
if(!value["LastModifiedBy"].isNull())
versionsObject.lastModifiedBy = value["LastModifiedBy"].asString();
if(!value["LockedBy"].isNull())
versionsObject.lockedBy = value["LockedBy"].asString();
if(!value["Status"].isNull())
versionsObject.status = value["Status"].asString();
contactFlowsObject.versions.push_back(versionsObject);
}
auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"];
for (auto value : allPhoneNumbers)
{
ContactFlow::PhoneNumber phoneNumbersObject;
if(!value["PhoneNumberId"].isNull())
phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString();
if(!value["InstanceId"].isNull())
phoneNumbersObject.instanceId = value["InstanceId"].asString();
if(!value["Number"].isNull())
phoneNumbersObject.number = value["Number"].asString();
if(!value["PhoneNumberDescription"].isNull())
phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
if(!value["TestOnly"].isNull())
phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true";
if(!value["RemainingTime"].isNull())
phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString());
if(!value["AllowOutbound"].isNull())
phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true";
if(!value["Usage"].isNull())
phoneNumbersObject.usage = value["Usage"].asString();
if(!value["Trunks"].isNull())
phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString());
contactFlowsObject.phoneNumbers.push_back(phoneNumbersObject);
}
contactFlows_.push_back(contactFlowsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListContactFlowsResult::getMessage()const
{
return message_;
}
std::vector<ListContactFlowsResult::ContactFlow> ListContactFlowsResult::getContactFlows()const
{
return contactFlows_;
}
int ListContactFlowsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListContactFlowsResult::getCode()const
{
return code_;
}
bool ListContactFlowsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListPhoneNumbersRequest.h>
using AlibabaCloud::CCC::Model::ListPhoneNumbersRequest;
ListPhoneNumbersRequest::ListPhoneNumbersRequest() :
RpcServiceRequest("ccc", "2017-07-05", "ListPhoneNumbers")
{}
ListPhoneNumbersRequest::~ListPhoneNumbersRequest()
{}
bool ListPhoneNumbersRequest::getOutboundOnly()const
{
return outboundOnly_;
}
void ListPhoneNumbersRequest::setOutboundOnly(bool outboundOnly)
{
outboundOnly_ = outboundOnly;
setParameter("OutboundOnly", std::to_string(outboundOnly));
}
std::string ListPhoneNumbersRequest::getInstanceId()const
{
return instanceId_;
}
void ListPhoneNumbersRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListPhoneNumbersRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListPhoneNumbersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListPhoneNumbersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListPhoneNumbersResult::ListPhoneNumbersResult() :
ServiceResult()
{}
ListPhoneNumbersResult::ListPhoneNumbersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPhoneNumbersResult::~ListPhoneNumbersResult()
{}
void ListPhoneNumbersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPhoneNumbers = value["PhoneNumbers"]["PhoneNumber"];
for (auto value : allPhoneNumbers)
{
PhoneNumber phoneNumbersObject;
if(!value["PhoneNumberId"].isNull())
phoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString();
if(!value["InstanceId"].isNull())
phoneNumbersObject.instanceId = value["InstanceId"].asString();
if(!value["Number"].isNull())
phoneNumbersObject.number = value["Number"].asString();
if(!value["PhoneNumberDescription"].isNull())
phoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
if(!value["TestOnly"].isNull())
phoneNumbersObject.testOnly = value["TestOnly"].asString() == "true";
if(!value["RemainingTime"].isNull())
phoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString());
if(!value["AllowOutbound"].isNull())
phoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true";
if(!value["Usage"].isNull())
phoneNumbersObject.usage = value["Usage"].asString();
if(!value["Trunks"].isNull())
phoneNumbersObject.trunks = std::stoi(value["Trunks"].asString());
auto allContactFlow = value["ContactFlow"];
for (auto value : allContactFlow)
{
PhoneNumber::ContactFlow contactFlowObject;
if(!value["ContactFlowId"].isNull())
contactFlowObject.contactFlowId = value["ContactFlowId"].asString();
if(!value["InstanceId"].isNull())
contactFlowObject.instanceId = value["InstanceId"].asString();
if(!value["ContactFlowName"].isNull())
contactFlowObject.contactFlowName = value["ContactFlowName"].asString();
if(!value["ContactFlowDescription"].isNull())
contactFlowObject.contactFlowDescription = value["ContactFlowDescription"].asString();
if(!value["Type"].isNull())
contactFlowObject.type = value["Type"].asString();
phoneNumbersObject.contactFlow.push_back(contactFlowObject);
}
phoneNumbers_.push_back(phoneNumbersObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::vector<ListPhoneNumbersResult::PhoneNumber> ListPhoneNumbersResult::getPhoneNumbers()const
{
return phoneNumbers_;
}
std::string ListPhoneNumbersResult::getMessage()const
{
return message_;
}
int ListPhoneNumbersResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListPhoneNumbersResult::getCode()const
{
return code_;
}
bool ListPhoneNumbersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListRecordingsByContactIdRequest.h>
using AlibabaCloud::CCC::Model::ListRecordingsByContactIdRequest;
ListRecordingsByContactIdRequest::ListRecordingsByContactIdRequest() :
RpcServiceRequest("ccc", "2017-07-05", "ListRecordingsByContactId")
{}
ListRecordingsByContactIdRequest::~ListRecordingsByContactIdRequest()
{}
std::string ListRecordingsByContactIdRequest::getInstanceId()const
{
return instanceId_;
}
void ListRecordingsByContactIdRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListRecordingsByContactIdRequest::getContactId()const
{
return contactId_;
}
void ListRecordingsByContactIdRequest::setContactId(const std::string& contactId)
{
contactId_ = contactId;
setParameter("ContactId", contactId);
}
std::string ListRecordingsByContactIdRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListRecordingsByContactIdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,110 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListRecordingsByContactIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListRecordingsByContactIdResult::ListRecordingsByContactIdResult() :
ServiceResult()
{}
ListRecordingsByContactIdResult::ListRecordingsByContactIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRecordingsByContactIdResult::~ListRecordingsByContactIdResult()
{}
void ListRecordingsByContactIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordings = value["Recordings"]["Recording"];
for (auto value : allRecordings)
{
Recording recordingsObject;
if(!value["ContactId"].isNull())
recordingsObject.contactId = value["ContactId"].asString();
if(!value["ContactType"].isNull())
recordingsObject.contactType = value["ContactType"].asString();
if(!value["AgentId"].isNull())
recordingsObject.agentId = value["AgentId"].asString();
if(!value["AgentName"].isNull())
recordingsObject.agentName = value["AgentName"].asString();
if(!value["CallingNumber"].isNull())
recordingsObject.callingNumber = value["CallingNumber"].asString();
if(!value["CalledNumber"].isNull())
recordingsObject.calledNumber = value["CalledNumber"].asString();
if(!value["StartTime"].isNull())
recordingsObject.startTime = std::stol(value["StartTime"].asString());
if(!value["Duration"].isNull())
recordingsObject.duration = std::stoi(value["Duration"].asString());
if(!value["FileName"].isNull())
recordingsObject.fileName = value["FileName"].asString();
if(!value["FilePath"].isNull())
recordingsObject.filePath = value["FilePath"].asString();
if(!value["FileDescription"].isNull())
recordingsObject.fileDescription = value["FileDescription"].asString();
if(!value["Channel"].isNull())
recordingsObject.channel = value["Channel"].asString();
if(!value["InstanceId"].isNull())
recordingsObject.instanceId = value["InstanceId"].asString();
recordings_.push_back(recordingsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListRecordingsByContactIdResult::getMessage()const
{
return message_;
}
int ListRecordingsByContactIdResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListRecordingsByContactIdResult::Recording> ListRecordingsByContactIdResult::getRecordings()const
{
return recordings_;
}
std::string ListRecordingsByContactIdResult::getCode()const
{
return code_;
}
bool ListRecordingsByContactIdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListRecordingsRequest.h>
using AlibabaCloud::CCC::Model::ListRecordingsRequest;
ListRecordingsRequest::ListRecordingsRequest() :
RpcServiceRequest("ccc", "2017-07-05", "ListRecordings")
{}
ListRecordingsRequest::~ListRecordingsRequest()
{}
std::string ListRecordingsRequest::getAgentId()const
{
return agentId_;
}
void ListRecordingsRequest::setAgentId(const std::string& agentId)
{
agentId_ = agentId;
setParameter("AgentId", agentId);
}
std::string ListRecordingsRequest::getInstanceId()const
{
return instanceId_;
}
void ListRecordingsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListRecordingsRequest::getCriteria()const
{
return criteria_;
}
void ListRecordingsRequest::setCriteria(const std::string& criteria)
{
criteria_ = criteria;
setParameter("Criteria", criteria);
}
std::string ListRecordingsRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void ListRecordingsRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
int ListRecordingsRequest::getPageSize()const
{
return pageSize_;
}
void ListRecordingsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListRecordingsRequest::getStartTime()const
{
return startTime_;
}
void ListRecordingsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
long ListRecordingsRequest::getStopTime()const
{
return stopTime_;
}
void ListRecordingsRequest::setStopTime(long stopTime)
{
stopTime_ = stopTime;
setParameter("StopTime", std::to_string(stopTime));
}
int ListRecordingsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListRecordingsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListRecordingsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListRecordingsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListRecordingsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListRecordingsResult::ListRecordingsResult() :
ServiceResult()
{}
ListRecordingsResult::ListRecordingsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRecordingsResult::~ListRecordingsResult()
{}
void ListRecordingsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordings = value["Recordings"];
for (auto value : allRecordings)
{
Recordings recordingsObject;
if(!value["TotalCount"].isNull())
recordingsObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
recordingsObject.pageNumber = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
recordingsObject.pageSize = std::stoi(value["PageSize"].asString());
auto allList = value["List"]["Recording"];
for (auto value : allList)
{
Recordings::Recording recordingObject;
if(!value["ContactId"].isNull())
recordingObject.contactId = value["ContactId"].asString();
if(!value["ContactType"].isNull())
recordingObject.contactType = value["ContactType"].asString();
if(!value["AgentId"].isNull())
recordingObject.agentId = value["AgentId"].asString();
if(!value["AgentName"].isNull())
recordingObject.agentName = value["AgentName"].asString();
if(!value["CallingNumber"].isNull())
recordingObject.callingNumber = value["CallingNumber"].asString();
if(!value["CalledNumber"].isNull())
recordingObject.calledNumber = value["CalledNumber"].asString();
if(!value["StartTime"].isNull())
recordingObject.startTime = std::stol(value["StartTime"].asString());
if(!value["Duration"].isNull())
recordingObject.duration = std::stoi(value["Duration"].asString());
if(!value["FileName"].isNull())
recordingObject.fileName = value["FileName"].asString();
if(!value["FilePath"].isNull())
recordingObject.filePath = value["FilePath"].asString();
if(!value["FileDescription"].isNull())
recordingObject.fileDescription = value["FileDescription"].asString();
if(!value["Channel"].isNull())
recordingObject.channel = value["Channel"].asString();
if(!value["InstanceId"].isNull())
recordingObject.instanceId = value["InstanceId"].asString();
recordingsObject.list.push_back(recordingObject);
}
recordings_.push_back(recordingsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListRecordingsResult::getMessage()const
{
return message_;
}
int ListRecordingsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListRecordingsResult::Recordings> ListRecordingsResult::getRecordings()const
{
return recordings_;
}
std::string ListRecordingsResult::getCode()const
{
return code_;
}
bool ListRecordingsResult::getSuccess()const
{
return success_;
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListSkillGroupsOfUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListSkillGroupsOfUserResult::ListSkillGroupsOfUserResult() :
ServiceResult()
{}
ListSkillGroupsOfUserResult::ListSkillGroupsOfUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSkillGroupsOfUserResult::~ListSkillGroupsOfUserResult()
{}
void ListSkillGroupsOfUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSkillLevels = value["SkillLevels"]["SkillLevel"];
for (auto value : allSkillLevels)
{
SkillLevel skillLevelsObject;
if(!value["SkillLevelId"].isNull())
skillLevelsObject.skillLevelId = value["SkillLevelId"].asString();
if(!value["Level"].isNull())
skillLevelsObject.level = std::stoi(value["Level"].asString());
auto allSkill = value["Skill"];
for (auto value : allSkill)
{
SkillLevel::Skill skillObject;
if(!value["SkillGroupId"].isNull())
skillObject.skillGroupId = value["SkillGroupId"].asString();
if(!value["InstanceId"].isNull())
skillObject.instanceId = value["InstanceId"].asString();
if(!value["SkillGroupName"].isNull())
skillObject.skillGroupName = value["SkillGroupName"].asString();
if(!value["SkillGroupDescription"].isNull())
skillObject.skillGroupDescription = value["SkillGroupDescription"].asString();
auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"];
for (auto value : allOutboundPhoneNumbers)
{
SkillLevel::Skill::PhoneNumber phoneNumberObject;
if(!value["PhoneNumberId"].isNull())
phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString();
if(!value["InstanceId"].isNull())
phoneNumberObject.instanceId = value["InstanceId"].asString();
if(!value["Number"].isNull())
phoneNumberObject.number = value["Number"].asString();
if(!value["PhoneNumberDescription"].isNull())
phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
if(!value["TestOnly"].isNull())
phoneNumberObject.testOnly = value["TestOnly"].asString() == "true";
if(!value["RemainingTime"].isNull())
phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString());
if(!value["AllowOutbound"].isNull())
phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true";
if(!value["Usage"].isNull())
phoneNumberObject.usage = value["Usage"].asString();
if(!value["Trunks"].isNull())
phoneNumberObject.trunks = std::stoi(value["Trunks"].asString());
skillObject.outboundPhoneNumbers.push_back(phoneNumberObject);
}
skillLevelsObject.skill.push_back(skillObject);
}
skillLevels_.push_back(skillLevelsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::vector<ListSkillGroupsOfUserResult::SkillLevel> ListSkillGroupsOfUserResult::getSkillLevels()const
{
return skillLevels_;
}
std::string ListSkillGroupsOfUserResult::getMessage()const
{
return message_;
}
int ListSkillGroupsOfUserResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListSkillGroupsOfUserResult::getCode()const
{
return code_;
}
bool ListSkillGroupsOfUserResult::getSuccess()const
{
return success_;
}

View File

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

View File

@@ -0,0 +1,122 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListSkillGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListSkillGroupsResult::ListSkillGroupsResult() :
ServiceResult()
{}
ListSkillGroupsResult::ListSkillGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSkillGroupsResult::~ListSkillGroupsResult()
{}
void ListSkillGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSkillGroups = value["SkillGroups"]["SkillGroup"];
for (auto value : allSkillGroups)
{
SkillGroup skillGroupsObject;
if(!value["SkillGroupId"].isNull())
skillGroupsObject.skillGroupId = value["SkillGroupId"].asString();
if(!value["InstanceId"].isNull())
skillGroupsObject.instanceId = value["InstanceId"].asString();
if(!value["SkillGroupName"].isNull())
skillGroupsObject.skillGroupName = value["SkillGroupName"].asString();
if(!value["AccSkillGroupName"].isNull())
skillGroupsObject.accSkillGroupName = value["AccSkillGroupName"].asString();
if(!value["AccQueueName"].isNull())
skillGroupsObject.accQueueName = value["AccQueueName"].asString();
if(!value["SkillGroupDescription"].isNull())
skillGroupsObject.skillGroupDescription = value["SkillGroupDescription"].asString();
if(!value["UserCount"].isNull())
skillGroupsObject.userCount = std::stoi(value["UserCount"].asString());
auto allOutboundPhoneNumbers = value["OutboundPhoneNumbers"]["PhoneNumber"];
for (auto value : allOutboundPhoneNumbers)
{
SkillGroup::PhoneNumber outboundPhoneNumbersObject;
if(!value["PhoneNumberId"].isNull())
outboundPhoneNumbersObject.phoneNumberId = value["PhoneNumberId"].asString();
if(!value["InstanceId"].isNull())
outboundPhoneNumbersObject.instanceId = value["InstanceId"].asString();
if(!value["Number"].isNull())
outboundPhoneNumbersObject.number = value["Number"].asString();
if(!value["PhoneNumberDescription"].isNull())
outboundPhoneNumbersObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
if(!value["TestOnly"].isNull())
outboundPhoneNumbersObject.testOnly = value["TestOnly"].asString() == "true";
if(!value["RemainingTime"].isNull())
outboundPhoneNumbersObject.remainingTime = std::stoi(value["RemainingTime"].asString());
if(!value["AllowOutbound"].isNull())
outboundPhoneNumbersObject.allowOutbound = value["AllowOutbound"].asString() == "true";
if(!value["Usage"].isNull())
outboundPhoneNumbersObject.usage = value["Usage"].asString();
if(!value["Trunks"].isNull())
outboundPhoneNumbersObject.trunks = std::stoi(value["Trunks"].asString());
skillGroupsObject.outboundPhoneNumbers.push_back(outboundPhoneNumbersObject);
}
skillGroups_.push_back(skillGroupsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListSkillGroupsResult::getMessage()const
{
return message_;
}
int ListSkillGroupsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListSkillGroupsResult::SkillGroup> ListSkillGroupsResult::getSkillGroups()const
{
return skillGroups_;
}
std::string ListSkillGroupsResult::getCode()const
{
return code_;
}
bool ListSkillGroupsResult::getSuccess()const
{
return success_;
}

View 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/ccc/model/ListUsersOfSkillGroupRequest.h>
using AlibabaCloud::CCC::Model::ListUsersOfSkillGroupRequest;
ListUsersOfSkillGroupRequest::ListUsersOfSkillGroupRequest() :
RpcServiceRequest("ccc", "2017-07-05", "ListUsersOfSkillGroup")
{}
ListUsersOfSkillGroupRequest::~ListUsersOfSkillGroupRequest()
{}
std::string ListUsersOfSkillGroupRequest::getInstanceId()const
{
return instanceId_;
}
void ListUsersOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListUsersOfSkillGroupRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void ListUsersOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}
int ListUsersOfSkillGroupRequest::getPageSize()const
{
return pageSize_;
}
void ListUsersOfSkillGroupRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListUsersOfSkillGroupRequest::getPageNumber()const
{
return pageNumber_;
}
void ListUsersOfSkillGroupRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListUsersOfSkillGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListUsersOfSkillGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,170 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListUsersOfSkillGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListUsersOfSkillGroupResult::ListUsersOfSkillGroupResult() :
ServiceResult()
{}
ListUsersOfSkillGroupResult::ListUsersOfSkillGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListUsersOfSkillGroupResult::~ListUsersOfSkillGroupResult()
{}
void ListUsersOfSkillGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUsers = value["Users"];
for (auto value : allUsers)
{
Users usersObject;
if(!value["TotalCount"].isNull())
usersObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
usersObject.pageNumber = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
usersObject.pageSize = std::stoi(value["PageSize"].asString());
auto allList = value["List"]["User"];
for (auto value : allList)
{
Users::User userObject;
if(!value["UserId"].isNull())
userObject.userId = value["UserId"].asString();
if(!value["RamId"].isNull())
userObject.ramId = value["RamId"].asString();
if(!value["InstanceId"].isNull())
userObject.instanceId = value["InstanceId"].asString();
auto allRoles = value["Roles"]["Role"];
for (auto value : allRoles)
{
Users::User::Role rolesObject;
if(!value["RoleId"].isNull())
rolesObject.roleId = value["RoleId"].asString();
if(!value["InstanceId"].isNull())
rolesObject.instanceId = value["InstanceId"].asString();
if(!value["RoleName"].isNull())
rolesObject.roleName = value["RoleName"].asString();
if(!value["RoleDescription"].isNull())
rolesObject.roleDescription = value["RoleDescription"].asString();
if(!value["UserCount"].isNull())
rolesObject.userCount = std::stoi(value["UserCount"].asString());
auto allPrivileges = value["Privileges"]["Privilege"];
for (auto value : allPrivileges)
{
Users::User::Role::Privilege privilegesObject;
if(!value["PrivilegeId"].isNull())
privilegesObject.privilegeId = value["PrivilegeId"].asString();
if(!value["PrivilegeName"].isNull())
privilegesObject.privilegeName = value["PrivilegeName"].asString();
if(!value["PrivilegeDescription"].isNull())
privilegesObject.privilegeDescription = value["PrivilegeDescription"].asString();
rolesObject.privileges.push_back(privilegesObject);
}
userObject.roles.push_back(rolesObject);
}
auto allSkillLevels = value["SkillLevels"]["SkillLevel"];
for (auto value : allSkillLevels)
{
Users::User::SkillLevel skillLevelsObject;
if(!value["SkillLevelId"].isNull())
skillLevelsObject.skillLevelId = value["SkillLevelId"].asString();
if(!value["Level"].isNull())
skillLevelsObject.level = std::stoi(value["Level"].asString());
auto allSkill = value["Skill"];
for (auto value : allSkill)
{
Users::User::SkillLevel::Skill skillObject;
if(!value["SkillGroupId"].isNull())
skillObject.skillGroupId = value["SkillGroupId"].asString();
if(!value["InstanceId"].isNull())
skillObject.instanceId = value["InstanceId"].asString();
if(!value["SkillGroupName"].isNull())
skillObject.skillGroupName = value["SkillGroupName"].asString();
if(!value["SkillGroupDescription"].isNull())
skillObject.skillGroupDescription = value["SkillGroupDescription"].asString();
skillLevelsObject.skill.push_back(skillObject);
}
userObject.skillLevels.push_back(skillLevelsObject);
}
auto allDetail = value["Detail"];
for (auto value : allDetail)
{
Users::User::Detail detailObject;
if(!value["LoginName"].isNull())
detailObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
detailObject.displayName = value["DisplayName"].asString();
if(!value["Phone"].isNull())
detailObject.phone = value["Phone"].asString();
if(!value["Email"].isNull())
detailObject.email = value["Email"].asString();
if(!value["Department"].isNull())
detailObject.department = value["Department"].asString();
userObject.detail.push_back(detailObject);
}
usersObject.list.push_back(userObject);
}
users_.push_back(usersObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListUsersOfSkillGroupResult::getMessage()const
{
return message_;
}
int ListUsersOfSkillGroupResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListUsersOfSkillGroupResult::Users> ListUsersOfSkillGroupResult::getUsers()const
{
return users_;
}
std::string ListUsersOfSkillGroupResult::getCode()const
{
return code_;
}
bool ListUsersOfSkillGroupResult::getSuccess()const
{
return success_;
}

View File

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

View File

@@ -0,0 +1,158 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListUsersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListUsersResult::ListUsersResult() :
ServiceResult()
{}
ListUsersResult::ListUsersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListUsersResult::~ListUsersResult()
{}
void ListUsersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUsers = value["Users"];
for (auto value : allUsers)
{
Users usersObject;
if(!value["TotalCount"].isNull())
usersObject.totalCount = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
usersObject.pageNumber = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
usersObject.pageSize = std::stoi(value["PageSize"].asString());
auto allList = value["List"]["User"];
for (auto value : allList)
{
Users::User userObject;
if(!value["UserId"].isNull())
userObject.userId = value["UserId"].asString();
if(!value["RamId"].isNull())
userObject.ramId = value["RamId"].asString();
if(!value["InstanceId"].isNull())
userObject.instanceId = value["InstanceId"].asString();
if(!value["Primary"].isNull())
userObject.primary = value["Primary"].asString() == "true";
auto allRoles = value["Roles"]["Role"];
for (auto value : allRoles)
{
Users::User::Role rolesObject;
if(!value["RoleId"].isNull())
rolesObject.roleId = value["RoleId"].asString();
if(!value["InstanceId"].isNull())
rolesObject.instanceId = value["InstanceId"].asString();
if(!value["RoleName"].isNull())
rolesObject.roleName = value["RoleName"].asString();
if(!value["RoleDescription"].isNull())
rolesObject.roleDescription = value["RoleDescription"].asString();
userObject.roles.push_back(rolesObject);
}
auto allSkillLevels = value["SkillLevels"]["SkillLevel"];
for (auto value : allSkillLevels)
{
Users::User::SkillLevel skillLevelsObject;
if(!value["SkillLevelId"].isNull())
skillLevelsObject.skillLevelId = value["SkillLevelId"].asString();
if(!value["Level"].isNull())
skillLevelsObject.level = std::stoi(value["Level"].asString());
auto allSkill = value["Skill"];
for (auto value : allSkill)
{
Users::User::SkillLevel::Skill skillObject;
if(!value["SkillGroupId"].isNull())
skillObject.skillGroupId = value["SkillGroupId"].asString();
if(!value["InstanceId"].isNull())
skillObject.instanceId = value["InstanceId"].asString();
if(!value["SkillGroupName"].isNull())
skillObject.skillGroupName = value["SkillGroupName"].asString();
if(!value["SkillGroupDescription"].isNull())
skillObject.skillGroupDescription = value["SkillGroupDescription"].asString();
skillLevelsObject.skill.push_back(skillObject);
}
userObject.skillLevels.push_back(skillLevelsObject);
}
auto allDetail = value["Detail"];
for (auto value : allDetail)
{
Users::User::Detail detailObject;
if(!value["LoginName"].isNull())
detailObject.loginName = value["LoginName"].asString();
if(!value["DisplayName"].isNull())
detailObject.displayName = value["DisplayName"].asString();
if(!value["Phone"].isNull())
detailObject.phone = value["Phone"].asString();
if(!value["Email"].isNull())
detailObject.email = value["Email"].asString();
if(!value["Department"].isNull())
detailObject.department = value["Department"].asString();
userObject.detail.push_back(detailObject);
}
usersObject.list.push_back(userObject);
}
users_.push_back(usersObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ListUsersResult::getMessage()const
{
return message_;
}
int ListUsersResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListUsersResult::Users> ListUsersResult::getUsers()const
{
return users_;
}
std::string ListUsersResult::getCode()const
{
return code_;
}
bool ListUsersResult::getSuccess()const
{
return success_;
}

View 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/ccc/model/ModifyPhoneNumberRequest.h>
using AlibabaCloud::CCC::Model::ModifyPhoneNumberRequest;
ModifyPhoneNumberRequest::ModifyPhoneNumberRequest() :
RpcServiceRequest("ccc", "2017-07-05", "ModifyPhoneNumber")
{}
ModifyPhoneNumberRequest::~ModifyPhoneNumberRequest()
{}
std::string ModifyPhoneNumberRequest::getContactFlowId()const
{
return contactFlowId_;
}
void ModifyPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId)
{
contactFlowId_ = contactFlowId;
setParameter("ContactFlowId", contactFlowId);
}
std::string ModifyPhoneNumberRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyPhoneNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyPhoneNumberRequest::getPhoneNumberId()const
{
return phoneNumberId_;
}
void ModifyPhoneNumberRequest::setPhoneNumberId(const std::string& phoneNumberId)
{
phoneNumberId_ = phoneNumberId;
setParameter("PhoneNumberId", phoneNumberId);
}
std::string ModifyPhoneNumberRequest::getUsage()const
{
return usage_;
}
void ModifyPhoneNumberRequest::setUsage(const std::string& usage)
{
usage_ = usage;
setParameter("Usage", usage);
}
std::string ModifyPhoneNumberRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyPhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ModifyPhoneNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ModifyPhoneNumberResult::ModifyPhoneNumberResult() :
ServiceResult()
{}
ModifyPhoneNumberResult::ModifyPhoneNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyPhoneNumberResult::~ModifyPhoneNumberResult()
{}
void ModifyPhoneNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPhoneNumber = value["PhoneNumber"];
for (auto value : allPhoneNumber)
{
PhoneNumber phoneNumberObject;
if(!value["PhoneNumberId"].isNull())
phoneNumberObject.phoneNumberId = value["PhoneNumberId"].asString();
if(!value["InstanceId"].isNull())
phoneNumberObject.instanceId = value["InstanceId"].asString();
if(!value["Number"].isNull())
phoneNumberObject.number = value["Number"].asString();
if(!value["PhoneNumberDescription"].isNull())
phoneNumberObject.phoneNumberDescription = value["PhoneNumberDescription"].asString();
if(!value["TestOnly"].isNull())
phoneNumberObject.testOnly = value["TestOnly"].asString() == "true";
if(!value["RemainingTime"].isNull())
phoneNumberObject.remainingTime = std::stoi(value["RemainingTime"].asString());
if(!value["AllowOutbound"].isNull())
phoneNumberObject.allowOutbound = value["AllowOutbound"].asString() == "true";
if(!value["Usage"].isNull())
phoneNumberObject.usage = value["Usage"].asString();
if(!value["Trunks"].isNull())
phoneNumberObject.trunks = std::stoi(value["Trunks"].asString());
auto allContactFlow = value["ContactFlow"];
for (auto value : allContactFlow)
{
PhoneNumber::ContactFlow contactFlowObject;
if(!value["ContactFlowId"].isNull())
contactFlowObject.contactFlowId = value["ContactFlowId"].asString();
if(!value["InstanceId"].isNull())
contactFlowObject.instanceId = value["InstanceId"].asString();
if(!value["ContactFlowName"].isNull())
contactFlowObject.contactFlowName = value["ContactFlowName"].asString();
if(!value["ContactFlowDescription"].isNull())
contactFlowObject.contactFlowDescription = value["ContactFlowDescription"].asString();
if(!value["Type"].isNull())
contactFlowObject.type = value["Type"].asString();
phoneNumberObject.contactFlow.push_back(contactFlowObject);
}
phoneNumber_.push_back(phoneNumberObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string ModifyPhoneNumberResult::getMessage()const
{
return message_;
}
int ModifyPhoneNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ModifyPhoneNumberResult::PhoneNumber> ModifyPhoneNumberResult::getPhoneNumber()const
{
return phoneNumber_;
}
std::string ModifyPhoneNumberResult::getCode()const
{
return code_;
}
bool ModifyPhoneNumberResult::getSuccess()const
{
return success_;
}

View File

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

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/RemovePhoneNumberRequest.h>
using AlibabaCloud::CCC::Model::RemovePhoneNumberRequest;
RemovePhoneNumberRequest::RemovePhoneNumberRequest() :
RpcServiceRequest("ccc", "2017-07-05", "RemovePhoneNumber")
{}
RemovePhoneNumberRequest::~RemovePhoneNumberRequest()
{}
std::string RemovePhoneNumberRequest::getInstanceId()const
{
return instanceId_;
}
void RemovePhoneNumberRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string RemovePhoneNumberRequest::getPhoneNumberId()const
{
return phoneNumberId_;
}
void RemovePhoneNumberRequest::setPhoneNumberId(const std::string& phoneNumberId)
{
phoneNumberId_ = phoneNumberId;
setParameter("PhoneNumberId", phoneNumberId);
}
std::string RemovePhoneNumberRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RemovePhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

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

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/RequestLoginInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
RequestLoginInfoResult::RequestLoginInfoResult() :
ServiceResult()
{}
RequestLoginInfoResult::RequestLoginInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RequestLoginInfoResult::~RequestLoginInfoResult()
{}
void RequestLoginInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLoginInfo = value["LoginInfo"];
for (auto value : allLoginInfo)
{
LoginInfo loginInfoObject;
if(!value["UserName"].isNull())
loginInfoObject.userName = value["UserName"].asString();
if(!value["DisplayName"].isNull())
loginInfoObject.displayName = value["DisplayName"].asString();
if(!value["PhoneNumber"].isNull())
loginInfoObject.phoneNumber = value["PhoneNumber"].asString();
if(!value["Region"].isNull())
loginInfoObject.region = value["Region"].asString();
if(!value["WebRtcUrl"].isNull())
loginInfoObject.webRtcUrl = value["WebRtcUrl"].asString();
if(!value["AgentServerUrl"].isNull())
loginInfoObject.agentServerUrl = value["AgentServerUrl"].asString();
if(!value["Extension"].isNull())
loginInfoObject.extension = value["Extension"].asString();
if(!value["TenantId"].isNull())
loginInfoObject.tenantId = value["TenantId"].asString();
if(!value["Signature"].isNull())
loginInfoObject.signature = value["Signature"].asString();
if(!value["SignData"].isNull())
loginInfoObject.signData = value["SignData"].asString();
loginInfo_.push_back(loginInfoObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::vector<RequestLoginInfoResult::LoginInfo> RequestLoginInfoResult::getLoginInfo()const
{
return loginInfo_;
}
std::string RequestLoginInfoResult::getMessage()const
{
return message_;
}
int RequestLoginInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string RequestLoginInfoResult::getCode()const
{
return code_;
}
bool RequestLoginInfoResult::getSuccess()const
{
return success_;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -37,6 +37,8 @@ set(cloudphoto_public_header_model
include/alibabacloud/cloudphoto/model/ListFacesResult.h
include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h
include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h
include/alibabacloud/cloudphoto/model/DeleteEventRequest.h
include/alibabacloud/cloudphoto/model/DeleteEventResult.h
include/alibabacloud/cloudphoto/model/ListPhotosRequest.h
include/alibabacloud/cloudphoto/model/ListPhotosResult.h
include/alibabacloud/cloudphoto/model/RegisterTagRequest.h
@@ -49,6 +51,10 @@ set(cloudphoto_public_header_model
include/alibabacloud/cloudphoto/model/MergeFacesResult.h
include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h
include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h
include/alibabacloud/cloudphoto/model/FetchLibrariesRequest.h
include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h
include/alibabacloud/cloudphoto/model/FetchAlbumTagPhotosRequest.h
include/alibabacloud/cloudphoto/model/FetchAlbumTagPhotosResult.h
include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h
include/alibabacloud/cloudphoto/model/CreateTransactionResult.h
include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h
@@ -77,10 +83,14 @@ set(cloudphoto_public_header_model
include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h
include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h
include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h
include/alibabacloud/cloudphoto/model/ListEventsRequest.h
include/alibabacloud/cloudphoto/model/ListEventsResult.h
include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h
include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h
include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h
include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h
include/alibabacloud/cloudphoto/model/GetEventRequest.h
include/alibabacloud/cloudphoto/model/GetEventResult.h
include/alibabacloud/cloudphoto/model/SetMeRequest.h
include/alibabacloud/cloudphoto/model/SetMeResult.h
include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h
@@ -105,6 +115,8 @@ set(cloudphoto_public_header_model
include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h
include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h
include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h
include/alibabacloud/cloudphoto/model/CreateEventRequest.h
include/alibabacloud/cloudphoto/model/CreateEventResult.h
include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h
include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h
include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h
@@ -117,6 +129,8 @@ set(cloudphoto_public_header_model
include/alibabacloud/cloudphoto/model/CreatePhotoResult.h
include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h
include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h
include/alibabacloud/cloudphoto/model/EditEventRequest.h
include/alibabacloud/cloudphoto/model/EditEventResult.h
include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h
include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h
include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h
@@ -127,6 +141,8 @@ set(cloudphoto_public_header_model
include/alibabacloud/cloudphoto/model/LikePhotoResult.h
include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h
include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h
include/alibabacloud/cloudphoto/model/GetAlbumsByNamesRequest.h
include/alibabacloud/cloudphoto/model/GetAlbumsByNamesResult.h
include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h
include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h
include/alibabacloud/cloudphoto/model/EditPhotosRequest.h
@@ -160,6 +176,8 @@ set(cloudphoto_src
src/model/ListFacesResult.cc
src/model/MoveFacePhotosRequest.cc
src/model/MoveFacePhotosResult.cc
src/model/DeleteEventRequest.cc
src/model/DeleteEventResult.cc
src/model/ListPhotosRequest.cc
src/model/ListPhotosResult.cc
src/model/RegisterTagRequest.cc
@@ -172,6 +190,10 @@ set(cloudphoto_src
src/model/MergeFacesResult.cc
src/model/GetPhotosByMd5sRequest.cc
src/model/GetPhotosByMd5sResult.cc
src/model/FetchLibrariesRequest.cc
src/model/FetchLibrariesResult.cc
src/model/FetchAlbumTagPhotosRequest.cc
src/model/FetchAlbumTagPhotosResult.cc
src/model/CreateTransactionRequest.cc
src/model/CreateTransactionResult.cc
src/model/InactivatePhotosRequest.cc
@@ -200,10 +222,14 @@ set(cloudphoto_src
src/model/GetPrivateAccessUrlsResult.cc
src/model/GetSimilarPhotosRequest.cc
src/model/GetSimilarPhotosResult.cc
src/model/ListEventsRequest.cc
src/model/ListEventsResult.cc
src/model/GetVideoCoverRequest.cc
src/model/GetVideoCoverResult.cc
src/model/GetFramedPhotoUrlsRequest.cc
src/model/GetFramedPhotoUrlsResult.cc
src/model/GetEventRequest.cc
src/model/GetEventResult.cc
src/model/SetMeRequest.cc
src/model/SetMeResult.cc
src/model/ListTagPhotosRequest.cc
@@ -228,6 +254,8 @@ set(cloudphoto_src
src/model/ListRegisteredTagsResult.cc
src/model/DeletePhotoStoreRequest.cc
src/model/DeletePhotoStoreResult.cc
src/model/CreateEventRequest.cc
src/model/CreateEventResult.cc
src/model/GetPhotoStoreRequest.cc
src/model/GetPhotoStoreResult.cc
src/model/ListMomentPhotosRequest.cc
@@ -240,6 +268,8 @@ set(cloudphoto_src
src/model/CreatePhotoResult.cc
src/model/MoveAlbumPhotosRequest.cc
src/model/MoveAlbumPhotosResult.cc
src/model/EditEventRequest.cc
src/model/EditEventResult.cc
src/model/GetDownloadUrlRequest.cc
src/model/GetDownloadUrlResult.cc
src/model/CreateAlbumRequest.cc
@@ -250,6 +280,8 @@ set(cloudphoto_src
src/model/LikePhotoResult.cc
src/model/ListPhotoStoresRequest.cc
src/model/ListPhotoStoresResult.cc
src/model/GetAlbumsByNamesRequest.cc
src/model/GetAlbumsByNamesResult.cc
src/model/GetPublicAccessUrlsRequest.cc
src/model/GetPublicAccessUrlsResult.cc
src/model/EditPhotosRequest.cc

View File

@@ -38,6 +38,8 @@
#include "model/ListFacesResult.h"
#include "model/MoveFacePhotosRequest.h"
#include "model/MoveFacePhotosResult.h"
#include "model/DeleteEventRequest.h"
#include "model/DeleteEventResult.h"
#include "model/ListPhotosRequest.h"
#include "model/ListPhotosResult.h"
#include "model/RegisterTagRequest.h"
@@ -50,6 +52,10 @@
#include "model/MergeFacesResult.h"
#include "model/GetPhotosByMd5sRequest.h"
#include "model/GetPhotosByMd5sResult.h"
#include "model/FetchLibrariesRequest.h"
#include "model/FetchLibrariesResult.h"
#include "model/FetchAlbumTagPhotosRequest.h"
#include "model/FetchAlbumTagPhotosResult.h"
#include "model/CreateTransactionRequest.h"
#include "model/CreateTransactionResult.h"
#include "model/InactivatePhotosRequest.h"
@@ -78,10 +84,14 @@
#include "model/GetPrivateAccessUrlsResult.h"
#include "model/GetSimilarPhotosRequest.h"
#include "model/GetSimilarPhotosResult.h"
#include "model/ListEventsRequest.h"
#include "model/ListEventsResult.h"
#include "model/GetVideoCoverRequest.h"
#include "model/GetVideoCoverResult.h"
#include "model/GetFramedPhotoUrlsRequest.h"
#include "model/GetFramedPhotoUrlsResult.h"
#include "model/GetEventRequest.h"
#include "model/GetEventResult.h"
#include "model/SetMeRequest.h"
#include "model/SetMeResult.h"
#include "model/ListTagPhotosRequest.h"
@@ -106,6 +116,8 @@
#include "model/ListRegisteredTagsResult.h"
#include "model/DeletePhotoStoreRequest.h"
#include "model/DeletePhotoStoreResult.h"
#include "model/CreateEventRequest.h"
#include "model/CreateEventResult.h"
#include "model/GetPhotoStoreRequest.h"
#include "model/GetPhotoStoreResult.h"
#include "model/ListMomentPhotosRequest.h"
@@ -118,6 +130,8 @@
#include "model/CreatePhotoResult.h"
#include "model/MoveAlbumPhotosRequest.h"
#include "model/MoveAlbumPhotosResult.h"
#include "model/EditEventRequest.h"
#include "model/EditEventResult.h"
#include "model/GetDownloadUrlRequest.h"
#include "model/GetDownloadUrlResult.h"
#include "model/CreateAlbumRequest.h"
@@ -128,6 +142,8 @@
#include "model/LikePhotoResult.h"
#include "model/ListPhotoStoresRequest.h"
#include "model/ListPhotoStoresResult.h"
#include "model/GetAlbumsByNamesRequest.h"
#include "model/GetAlbumsByNamesResult.h"
#include "model/GetPublicAccessUrlsRequest.h"
#include "model/GetPublicAccessUrlsResult.h"
#include "model/EditPhotosRequest.h"
@@ -151,374 +167,421 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CloudPhotoClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::RemoveFacePhotosResult> RemoveFacePhotosOutcome;
typedef std::future<RemoveFacePhotosOutcome> RemoveFacePhotosOutcomeCallable;
typedef Outcome<Error, Model::RemoveFacePhotosResult> RemoveFacePhotosOutcome;
typedef std::future<RemoveFacePhotosOutcome> RemoveFacePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::RemoveFacePhotosRequest&, const RemoveFacePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveFacePhotosAsyncHandler;
typedef Outcome<Error, Model::ReactivatePhotosResult> ReactivatePhotosOutcome;
typedef std::future<ReactivatePhotosOutcome> ReactivatePhotosOutcomeCallable;
typedef Outcome<Error, Model::ReactivatePhotosResult> ReactivatePhotosOutcome;
typedef std::future<ReactivatePhotosOutcome> ReactivatePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ReactivatePhotosRequest&, const ReactivatePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReactivatePhotosAsyncHandler;
typedef Outcome<Error, Model::GetQuotaResult> GetQuotaOutcome;
typedef std::future<GetQuotaOutcome> GetQuotaOutcomeCallable;
typedef Outcome<Error, Model::GetQuotaResult> GetQuotaOutcome;
typedef std::future<GetQuotaOutcome> GetQuotaOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetQuotaRequest&, const GetQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuotaAsyncHandler;
typedef Outcome<Error, Model::GetThumbnailsResult> GetThumbnailsOutcome;
typedef std::future<GetThumbnailsOutcome> GetThumbnailsOutcomeCallable;
typedef Outcome<Error, Model::GetThumbnailsResult> GetThumbnailsOutcome;
typedef std::future<GetThumbnailsOutcome> GetThumbnailsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetThumbnailsRequest&, const GetThumbnailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetThumbnailsAsyncHandler;
typedef Outcome<Error, Model::DeleteFacesResult> DeleteFacesOutcome;
typedef std::future<DeleteFacesOutcome> DeleteFacesOutcomeCallable;
typedef Outcome<Error, Model::DeleteFacesResult> DeleteFacesOutcome;
typedef std::future<DeleteFacesOutcome> DeleteFacesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::DeleteFacesRequest&, const DeleteFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFacesAsyncHandler;
typedef Outcome<Error, Model::AddAlbumPhotosResult> AddAlbumPhotosOutcome;
typedef std::future<AddAlbumPhotosOutcome> AddAlbumPhotosOutcomeCallable;
typedef Outcome<Error, Model::AddAlbumPhotosResult> AddAlbumPhotosOutcome;
typedef std::future<AddAlbumPhotosOutcome> AddAlbumPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::AddAlbumPhotosRequest&, const AddAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddAlbumPhotosAsyncHandler;
typedef Outcome<Error, Model::ListFacesResult> ListFacesOutcome;
typedef std::future<ListFacesOutcome> ListFacesOutcomeCallable;
typedef Outcome<Error, Model::ListFacesResult> ListFacesOutcome;
typedef std::future<ListFacesOutcome> ListFacesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListFacesRequest&, const ListFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFacesAsyncHandler;
typedef Outcome<Error, Model::MoveFacePhotosResult> MoveFacePhotosOutcome;
typedef std::future<MoveFacePhotosOutcome> MoveFacePhotosOutcomeCallable;
typedef Outcome<Error, Model::MoveFacePhotosResult> MoveFacePhotosOutcome;
typedef std::future<MoveFacePhotosOutcome> MoveFacePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::MoveFacePhotosRequest&, const MoveFacePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveFacePhotosAsyncHandler;
typedef Outcome<Error, Model::ListPhotosResult> ListPhotosOutcome;
typedef std::future<ListPhotosOutcome> ListPhotosOutcomeCallable;
typedef Outcome<Error, Model::DeleteEventResult> DeleteEventOutcome;
typedef std::future<DeleteEventOutcome> DeleteEventOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::DeleteEventRequest&, const DeleteEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEventAsyncHandler;
typedef Outcome<Error, Model::ListPhotosResult> ListPhotosOutcome;
typedef std::future<ListPhotosOutcome> ListPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotosRequest&, const ListPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotosAsyncHandler;
typedef Outcome<Error, Model::RegisterTagResult> RegisterTagOutcome;
typedef std::future<RegisterTagOutcome> RegisterTagOutcomeCallable;
typedef Outcome<Error, Model::RegisterTagResult> RegisterTagOutcome;
typedef std::future<RegisterTagOutcome> RegisterTagOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::RegisterTagRequest&, const RegisterTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterTagAsyncHandler;
typedef Outcome<Error, Model::ListTimeLinePhotosResult> ListTimeLinePhotosOutcome;
typedef std::future<ListTimeLinePhotosOutcome> ListTimeLinePhotosOutcomeCallable;
typedef Outcome<Error, Model::ListTimeLinePhotosResult> ListTimeLinePhotosOutcome;
typedef std::future<ListTimeLinePhotosOutcome> ListTimeLinePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListTimeLinePhotosRequest&, const ListTimeLinePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTimeLinePhotosAsyncHandler;
typedef Outcome<Error, Model::DeletePhotosResult> DeletePhotosOutcome;
typedef std::future<DeletePhotosOutcome> DeletePhotosOutcomeCallable;
typedef Outcome<Error, Model::DeletePhotosResult> DeletePhotosOutcome;
typedef std::future<DeletePhotosOutcome> DeletePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::DeletePhotosRequest&, const DeletePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePhotosAsyncHandler;
typedef Outcome<Error, Model::MergeFacesResult> MergeFacesOutcome;
typedef std::future<MergeFacesOutcome> MergeFacesOutcomeCallable;
typedef Outcome<Error, Model::MergeFacesResult> MergeFacesOutcome;
typedef std::future<MergeFacesOutcome> MergeFacesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::MergeFacesRequest&, const MergeFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeFacesAsyncHandler;
typedef Outcome<Error, Model::GetPhotosByMd5sResult> GetPhotosByMd5sOutcome;
typedef std::future<GetPhotosByMd5sOutcome> GetPhotosByMd5sOutcomeCallable;
typedef Outcome<Error, Model::GetPhotosByMd5sResult> GetPhotosByMd5sOutcome;
typedef std::future<GetPhotosByMd5sOutcome> GetPhotosByMd5sOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetPhotosByMd5sRequest&, const GetPhotosByMd5sOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhotosByMd5sAsyncHandler;
typedef Outcome<Error, Model::CreateTransactionResult> CreateTransactionOutcome;
typedef std::future<CreateTransactionOutcome> CreateTransactionOutcomeCallable;
typedef Outcome<Error, Model::FetchLibrariesResult> FetchLibrariesOutcome;
typedef std::future<FetchLibrariesOutcome> FetchLibrariesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::FetchLibrariesRequest&, const FetchLibrariesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FetchLibrariesAsyncHandler;
typedef Outcome<Error, Model::FetchAlbumTagPhotosResult> FetchAlbumTagPhotosOutcome;
typedef std::future<FetchAlbumTagPhotosOutcome> FetchAlbumTagPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::FetchAlbumTagPhotosRequest&, const FetchAlbumTagPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FetchAlbumTagPhotosAsyncHandler;
typedef Outcome<Error, Model::CreateTransactionResult> CreateTransactionOutcome;
typedef std::future<CreateTransactionOutcome> CreateTransactionOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::CreateTransactionRequest&, const CreateTransactionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTransactionAsyncHandler;
typedef Outcome<Error, Model::InactivatePhotosResult> InactivatePhotosOutcome;
typedef std::future<InactivatePhotosOutcome> InactivatePhotosOutcomeCallable;
typedef Outcome<Error, Model::InactivatePhotosResult> InactivatePhotosOutcome;
typedef std::future<InactivatePhotosOutcome> InactivatePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::InactivatePhotosRequest&, const InactivatePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InactivatePhotosAsyncHandler;
typedef Outcome<Error, Model::CreatePhotoStoreResult> CreatePhotoStoreOutcome;
typedef std::future<CreatePhotoStoreOutcome> CreatePhotoStoreOutcomeCallable;
typedef Outcome<Error, Model::CreatePhotoStoreResult> CreatePhotoStoreOutcome;
typedef std::future<CreatePhotoStoreOutcome> CreatePhotoStoreOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::CreatePhotoStoreRequest&, const CreatePhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePhotoStoreAsyncHandler;
typedef Outcome<Error, Model::TagPhotoResult> TagPhotoOutcome;
typedef std::future<TagPhotoOutcome> TagPhotoOutcomeCallable;
typedef Outcome<Error, Model::TagPhotoResult> TagPhotoOutcome;
typedef std::future<TagPhotoOutcome> TagPhotoOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::TagPhotoRequest&, const TagPhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagPhotoAsyncHandler;
typedef Outcome<Error, Model::GetLibraryResult> GetLibraryOutcome;
typedef std::future<GetLibraryOutcome> GetLibraryOutcomeCallable;
typedef Outcome<Error, Model::GetLibraryResult> GetLibraryOutcome;
typedef std::future<GetLibraryOutcome> GetLibraryOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetLibraryRequest&, const GetLibraryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLibraryAsyncHandler;
typedef Outcome<Error, Model::SetQuotaResult> SetQuotaOutcome;
typedef std::future<SetQuotaOutcome> SetQuotaOutcomeCallable;
typedef Outcome<Error, Model::SetQuotaResult> SetQuotaOutcome;
typedef std::future<SetQuotaOutcome> SetQuotaOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::SetQuotaRequest&, const SetQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetQuotaAsyncHandler;
typedef Outcome<Error, Model::ListAlbumPhotosResult> ListAlbumPhotosOutcome;
typedef std::future<ListAlbumPhotosOutcome> ListAlbumPhotosOutcomeCallable;
typedef Outcome<Error, Model::ListAlbumPhotosResult> ListAlbumPhotosOutcome;
typedef std::future<ListAlbumPhotosOutcome> ListAlbumPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListAlbumPhotosRequest&, const ListAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlbumPhotosAsyncHandler;
typedef Outcome<Error, Model::RemoveAlbumPhotosResult> RemoveAlbumPhotosOutcome;
typedef std::future<RemoveAlbumPhotosOutcome> RemoveAlbumPhotosOutcomeCallable;
typedef Outcome<Error, Model::RemoveAlbumPhotosResult> RemoveAlbumPhotosOutcome;
typedef std::future<RemoveAlbumPhotosOutcome> RemoveAlbumPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::RemoveAlbumPhotosRequest&, const RemoveAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveAlbumPhotosAsyncHandler;
typedef Outcome<Error, Model::ListAlbumsResult> ListAlbumsOutcome;
typedef std::future<ListAlbumsOutcome> ListAlbumsOutcomeCallable;
typedef Outcome<Error, Model::ListAlbumsResult> ListAlbumsOutcome;
typedef std::future<ListAlbumsOutcome> ListAlbumsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListAlbumsRequest&, const ListAlbumsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlbumsAsyncHandler;
typedef Outcome<Error, Model::ListPhotoFacesResult> ListPhotoFacesOutcome;
typedef std::future<ListPhotoFacesOutcome> ListPhotoFacesOutcomeCallable;
typedef Outcome<Error, Model::ListPhotoFacesResult> ListPhotoFacesOutcome;
typedef std::future<ListPhotoFacesOutcome> ListPhotoFacesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoFacesRequest&, const ListPhotoFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoFacesAsyncHandler;
typedef Outcome<Error, Model::RenameAlbumResult> RenameAlbumOutcome;
typedef std::future<RenameAlbumOutcome> RenameAlbumOutcomeCallable;
typedef Outcome<Error, Model::RenameAlbumResult> RenameAlbumOutcome;
typedef std::future<RenameAlbumOutcome> RenameAlbumOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::RenameAlbumRequest&, const RenameAlbumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenameAlbumAsyncHandler;
typedef Outcome<Error, Model::ActivatePhotosResult> ActivatePhotosOutcome;
typedef std::future<ActivatePhotosOutcome> ActivatePhotosOutcomeCallable;
typedef Outcome<Error, Model::ActivatePhotosResult> ActivatePhotosOutcome;
typedef std::future<ActivatePhotosOutcome> ActivatePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ActivatePhotosRequest&, const ActivatePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActivatePhotosAsyncHandler;
typedef Outcome<Error, Model::GetPrivateAccessUrlsResult> GetPrivateAccessUrlsOutcome;
typedef std::future<GetPrivateAccessUrlsOutcome> GetPrivateAccessUrlsOutcomeCallable;
typedef Outcome<Error, Model::GetPrivateAccessUrlsResult> GetPrivateAccessUrlsOutcome;
typedef std::future<GetPrivateAccessUrlsOutcome> GetPrivateAccessUrlsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetPrivateAccessUrlsRequest&, const GetPrivateAccessUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrivateAccessUrlsAsyncHandler;
typedef Outcome<Error, Model::GetSimilarPhotosResult> GetSimilarPhotosOutcome;
typedef std::future<GetSimilarPhotosOutcome> GetSimilarPhotosOutcomeCallable;
typedef Outcome<Error, Model::GetSimilarPhotosResult> GetSimilarPhotosOutcome;
typedef std::future<GetSimilarPhotosOutcome> GetSimilarPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetSimilarPhotosRequest&, const GetSimilarPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSimilarPhotosAsyncHandler;
typedef Outcome<Error, Model::GetVideoCoverResult> GetVideoCoverOutcome;
typedef std::future<GetVideoCoverOutcome> GetVideoCoverOutcomeCallable;
typedef Outcome<Error, Model::ListEventsResult> ListEventsOutcome;
typedef std::future<ListEventsOutcome> ListEventsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListEventsRequest&, const ListEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListEventsAsyncHandler;
typedef Outcome<Error, Model::GetVideoCoverResult> GetVideoCoverOutcome;
typedef std::future<GetVideoCoverOutcome> GetVideoCoverOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetVideoCoverRequest&, const GetVideoCoverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVideoCoverAsyncHandler;
typedef Outcome<Error, Model::GetFramedPhotoUrlsResult> GetFramedPhotoUrlsOutcome;
typedef std::future<GetFramedPhotoUrlsOutcome> GetFramedPhotoUrlsOutcomeCallable;
typedef Outcome<Error, Model::GetFramedPhotoUrlsResult> GetFramedPhotoUrlsOutcome;
typedef std::future<GetFramedPhotoUrlsOutcome> GetFramedPhotoUrlsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetFramedPhotoUrlsRequest&, const GetFramedPhotoUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFramedPhotoUrlsAsyncHandler;
typedef Outcome<Error, Model::SetMeResult> SetMeOutcome;
typedef std::future<SetMeOutcome> SetMeOutcomeCallable;
typedef Outcome<Error, Model::GetEventResult> GetEventOutcome;
typedef std::future<GetEventOutcome> GetEventOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetEventRequest&, const GetEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEventAsyncHandler;
typedef Outcome<Error, Model::SetMeResult> SetMeOutcome;
typedef std::future<SetMeOutcome> SetMeOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::SetMeRequest&, const SetMeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetMeAsyncHandler;
typedef Outcome<Error, Model::ListTagPhotosResult> ListTagPhotosOutcome;
typedef std::future<ListTagPhotosOutcome> ListTagPhotosOutcomeCallable;
typedef Outcome<Error, Model::ListTagPhotosResult> ListTagPhotosOutcome;
typedef std::future<ListTagPhotosOutcome> ListTagPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListTagPhotosRequest&, const ListTagPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagPhotosAsyncHandler;
typedef Outcome<Error, Model::DeleteAlbumsResult> DeleteAlbumsOutcome;
typedef std::future<DeleteAlbumsOutcome> DeleteAlbumsOutcomeCallable;
typedef Outcome<Error, Model::DeleteAlbumsResult> DeleteAlbumsOutcome;
typedef std::future<DeleteAlbumsOutcome> DeleteAlbumsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::DeleteAlbumsRequest&, const DeleteAlbumsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlbumsAsyncHandler;
typedef Outcome<Error, Model::GetDownloadUrlsResult> GetDownloadUrlsOutcome;
typedef std::future<GetDownloadUrlsOutcome> GetDownloadUrlsOutcomeCallable;
typedef Outcome<Error, Model::GetDownloadUrlsResult> GetDownloadUrlsOutcome;
typedef std::future<GetDownloadUrlsOutcome> GetDownloadUrlsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetDownloadUrlsRequest&, const GetDownloadUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDownloadUrlsAsyncHandler;
typedef Outcome<Error, Model::GetPhotosResult> GetPhotosOutcome;
typedef std::future<GetPhotosOutcome> GetPhotosOutcomeCallable;
typedef Outcome<Error, Model::GetPhotosResult> GetPhotosOutcome;
typedef std::future<GetPhotosOutcome> GetPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetPhotosRequest&, const GetPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhotosAsyncHandler;
typedef Outcome<Error, Model::RegisterPhotoResult> RegisterPhotoOutcome;
typedef std::future<RegisterPhotoOutcome> RegisterPhotoOutcomeCallable;
typedef Outcome<Error, Model::RegisterPhotoResult> RegisterPhotoOutcome;
typedef std::future<RegisterPhotoOutcome> RegisterPhotoOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::RegisterPhotoRequest&, const RegisterPhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterPhotoAsyncHandler;
typedef Outcome<Error, Model::EditPhotoStoreResult> EditPhotoStoreOutcome;
typedef std::future<EditPhotoStoreOutcome> EditPhotoStoreOutcomeCallable;
typedef Outcome<Error, Model::EditPhotoStoreResult> EditPhotoStoreOutcome;
typedef std::future<EditPhotoStoreOutcome> EditPhotoStoreOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::EditPhotoStoreRequest&, const EditPhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditPhotoStoreAsyncHandler;
typedef Outcome<Error, Model::ListTimeLinesResult> ListTimeLinesOutcome;
typedef std::future<ListTimeLinesOutcome> ListTimeLinesOutcomeCallable;
typedef Outcome<Error, Model::ListTimeLinesResult> ListTimeLinesOutcome;
typedef std::future<ListTimeLinesOutcome> ListTimeLinesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListTimeLinesRequest&, const ListTimeLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTimeLinesAsyncHandler;
typedef Outcome<Error, Model::SearchPhotosResult> SearchPhotosOutcome;
typedef std::future<SearchPhotosOutcome> SearchPhotosOutcomeCallable;
typedef Outcome<Error, Model::SearchPhotosResult> SearchPhotosOutcome;
typedef std::future<SearchPhotosOutcome> SearchPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::SearchPhotosRequest&, const SearchPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchPhotosAsyncHandler;
typedef Outcome<Error, Model::ToggleFeaturesResult> ToggleFeaturesOutcome;
typedef std::future<ToggleFeaturesOutcome> ToggleFeaturesOutcomeCallable;
typedef Outcome<Error, Model::ToggleFeaturesResult> ToggleFeaturesOutcome;
typedef std::future<ToggleFeaturesOutcome> ToggleFeaturesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ToggleFeaturesRequest&, const ToggleFeaturesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ToggleFeaturesAsyncHandler;
typedef Outcome<Error, Model::ListRegisteredTagsResult> ListRegisteredTagsOutcome;
typedef std::future<ListRegisteredTagsOutcome> ListRegisteredTagsOutcomeCallable;
typedef Outcome<Error, Model::ListRegisteredTagsResult> ListRegisteredTagsOutcome;
typedef std::future<ListRegisteredTagsOutcome> ListRegisteredTagsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListRegisteredTagsRequest&, const ListRegisteredTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRegisteredTagsAsyncHandler;
typedef Outcome<Error, Model::DeletePhotoStoreResult> DeletePhotoStoreOutcome;
typedef std::future<DeletePhotoStoreOutcome> DeletePhotoStoreOutcomeCallable;
typedef Outcome<Error, Model::DeletePhotoStoreResult> DeletePhotoStoreOutcome;
typedef std::future<DeletePhotoStoreOutcome> DeletePhotoStoreOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::DeletePhotoStoreRequest&, const DeletePhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePhotoStoreAsyncHandler;
typedef Outcome<Error, Model::GetPhotoStoreResult> GetPhotoStoreOutcome;
typedef std::future<GetPhotoStoreOutcome> GetPhotoStoreOutcomeCallable;
typedef Outcome<Error, Model::CreateEventResult> CreateEventOutcome;
typedef std::future<CreateEventOutcome> CreateEventOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::CreateEventRequest&, const CreateEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEventAsyncHandler;
typedef Outcome<Error, Model::GetPhotoStoreResult> GetPhotoStoreOutcome;
typedef std::future<GetPhotoStoreOutcome> GetPhotoStoreOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetPhotoStoreRequest&, const GetPhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhotoStoreAsyncHandler;
typedef Outcome<Error, Model::ListMomentPhotosResult> ListMomentPhotosOutcome;
typedef std::future<ListMomentPhotosOutcome> ListMomentPhotosOutcomeCallable;
typedef Outcome<Error, Model::ListMomentPhotosResult> ListMomentPhotosOutcome;
typedef std::future<ListMomentPhotosOutcome> ListMomentPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListMomentPhotosRequest&, const ListMomentPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMomentPhotosAsyncHandler;
typedef Outcome<Error, Model::GetThumbnailResult> GetThumbnailOutcome;
typedef std::future<GetThumbnailOutcome> GetThumbnailOutcomeCallable;
typedef Outcome<Error, Model::GetThumbnailResult> GetThumbnailOutcome;
typedef std::future<GetThumbnailOutcome> GetThumbnailOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetThumbnailRequest&, const GetThumbnailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetThumbnailAsyncHandler;
typedef Outcome<Error, Model::SetFaceCoverResult> SetFaceCoverOutcome;
typedef std::future<SetFaceCoverOutcome> SetFaceCoverOutcomeCallable;
typedef Outcome<Error, Model::SetFaceCoverResult> SetFaceCoverOutcome;
typedef std::future<SetFaceCoverOutcome> SetFaceCoverOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::SetFaceCoverRequest&, const SetFaceCoverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetFaceCoverAsyncHandler;
typedef Outcome<Error, Model::CreatePhotoResult> CreatePhotoOutcome;
typedef std::future<CreatePhotoOutcome> CreatePhotoOutcomeCallable;
typedef Outcome<Error, Model::CreatePhotoResult> CreatePhotoOutcome;
typedef std::future<CreatePhotoOutcome> CreatePhotoOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::CreatePhotoRequest&, const CreatePhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePhotoAsyncHandler;
typedef Outcome<Error, Model::MoveAlbumPhotosResult> MoveAlbumPhotosOutcome;
typedef std::future<MoveAlbumPhotosOutcome> MoveAlbumPhotosOutcomeCallable;
typedef Outcome<Error, Model::MoveAlbumPhotosResult> MoveAlbumPhotosOutcome;
typedef std::future<MoveAlbumPhotosOutcome> MoveAlbumPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::MoveAlbumPhotosRequest&, const MoveAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveAlbumPhotosAsyncHandler;
typedef Outcome<Error, Model::GetDownloadUrlResult> GetDownloadUrlOutcome;
typedef std::future<GetDownloadUrlOutcome> GetDownloadUrlOutcomeCallable;
typedef Outcome<Error, Model::EditEventResult> EditEventOutcome;
typedef std::future<EditEventOutcome> EditEventOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::EditEventRequest&, const EditEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditEventAsyncHandler;
typedef Outcome<Error, Model::GetDownloadUrlResult> GetDownloadUrlOutcome;
typedef std::future<GetDownloadUrlOutcome> GetDownloadUrlOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetDownloadUrlRequest&, const GetDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDownloadUrlAsyncHandler;
typedef Outcome<Error, Model::CreateAlbumResult> CreateAlbumOutcome;
typedef std::future<CreateAlbumOutcome> CreateAlbumOutcomeCallable;
typedef Outcome<Error, Model::CreateAlbumResult> CreateAlbumOutcome;
typedef std::future<CreateAlbumOutcome> CreateAlbumOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::CreateAlbumRequest&, const CreateAlbumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlbumAsyncHandler;
typedef Outcome<Error, Model::ListPhotoTagsResult> ListPhotoTagsOutcome;
typedef std::future<ListPhotoTagsOutcome> ListPhotoTagsOutcomeCallable;
typedef Outcome<Error, Model::ListPhotoTagsResult> ListPhotoTagsOutcome;
typedef std::future<ListPhotoTagsOutcome> ListPhotoTagsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoTagsRequest&, const ListPhotoTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoTagsAsyncHandler;
typedef Outcome<Error, Model::LikePhotoResult> LikePhotoOutcome;
typedef std::future<LikePhotoOutcome> LikePhotoOutcomeCallable;
typedef Outcome<Error, Model::LikePhotoResult> LikePhotoOutcome;
typedef std::future<LikePhotoOutcome> LikePhotoOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::LikePhotoRequest&, const LikePhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LikePhotoAsyncHandler;
typedef Outcome<Error, Model::ListPhotoStoresResult> ListPhotoStoresOutcome;
typedef std::future<ListPhotoStoresOutcome> ListPhotoStoresOutcomeCallable;
typedef Outcome<Error, Model::ListPhotoStoresResult> ListPhotoStoresOutcome;
typedef std::future<ListPhotoStoresOutcome> ListPhotoStoresOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoStoresRequest&, const ListPhotoStoresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoStoresAsyncHandler;
typedef Outcome<Error, Model::GetPublicAccessUrlsResult> GetPublicAccessUrlsOutcome;
typedef std::future<GetPublicAccessUrlsOutcome> GetPublicAccessUrlsOutcomeCallable;
typedef Outcome<Error, Model::GetAlbumsByNamesResult> GetAlbumsByNamesOutcome;
typedef std::future<GetAlbumsByNamesOutcome> GetAlbumsByNamesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetAlbumsByNamesRequest&, const GetAlbumsByNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAlbumsByNamesAsyncHandler;
typedef Outcome<Error, Model::GetPublicAccessUrlsResult> GetPublicAccessUrlsOutcome;
typedef std::future<GetPublicAccessUrlsOutcome> GetPublicAccessUrlsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::GetPublicAccessUrlsRequest&, const GetPublicAccessUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPublicAccessUrlsAsyncHandler;
typedef Outcome<Error, Model::EditPhotosResult> EditPhotosOutcome;
typedef std::future<EditPhotosOutcome> EditPhotosOutcomeCallable;
typedef Outcome<Error, Model::EditPhotosResult> EditPhotosOutcome;
typedef std::future<EditPhotosOutcome> EditPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::EditPhotosRequest&, const EditPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditPhotosAsyncHandler;
typedef Outcome<Error, Model::SetAlbumCoverResult> SetAlbumCoverOutcome;
typedef std::future<SetAlbumCoverOutcome> SetAlbumCoverOutcomeCallable;
typedef Outcome<Error, Model::SetAlbumCoverResult> SetAlbumCoverOutcome;
typedef std::future<SetAlbumCoverOutcome> SetAlbumCoverOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::SetAlbumCoverRequest&, const SetAlbumCoverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAlbumCoverAsyncHandler;
typedef Outcome<Error, Model::RenameFaceResult> RenameFaceOutcome;
typedef std::future<RenameFaceOutcome> RenameFaceOutcomeCallable;
typedef Outcome<Error, Model::RenameFaceResult> RenameFaceOutcome;
typedef std::future<RenameFaceOutcome> RenameFaceOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::RenameFaceRequest&, const RenameFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenameFaceAsyncHandler;
typedef Outcome<Error, Model::ListMomentsResult> ListMomentsOutcome;
typedef std::future<ListMomentsOutcome> ListMomentsOutcomeCallable;
typedef Outcome<Error, Model::ListMomentsResult> ListMomentsOutcome;
typedef std::future<ListMomentsOutcome> ListMomentsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListMomentsRequest&, const ListMomentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMomentsAsyncHandler;
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
typedef Outcome<Error, Model::ListFacePhotosResult> ListFacePhotosOutcome;
typedef std::future<ListFacePhotosOutcome> ListFacePhotosOutcomeCallable;
typedef Outcome<Error, Model::ListFacePhotosResult> ListFacePhotosOutcome;
typedef std::future<ListFacePhotosOutcome> ListFacePhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListFacePhotosRequest&, const ListFacePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFacePhotosAsyncHandler;
CloudPhotoClient(const Credentials &credentials, const ClientConfiguration &configuration);
CloudPhotoClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CloudPhotoClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CloudPhotoClient();
RemoveFacePhotosOutcome removeFacePhotos(const Model::RemoveFacePhotosRequest &request)const;
void removeFacePhotosAsync(const Model::RemoveFacePhotosRequest& request, const RemoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveFacePhotosOutcomeCallable removeFacePhotosCallable(const Model::RemoveFacePhotosRequest& request) const;
ReactivatePhotosOutcome reactivatePhotos(const Model::ReactivatePhotosRequest &request)const;
void reactivatePhotosAsync(const Model::ReactivatePhotosRequest& request, const ReactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReactivatePhotosOutcomeCallable reactivatePhotosCallable(const Model::ReactivatePhotosRequest& request) const;
GetQuotaOutcome getQuota(const Model::GetQuotaRequest &request)const;
void getQuotaAsync(const Model::GetQuotaRequest& request, const GetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetQuotaOutcomeCallable getQuotaCallable(const Model::GetQuotaRequest& request) const;
GetThumbnailsOutcome getThumbnails(const Model::GetThumbnailsRequest &request)const;
void getThumbnailsAsync(const Model::GetThumbnailsRequest& request, const GetThumbnailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetThumbnailsOutcomeCallable getThumbnailsCallable(const Model::GetThumbnailsRequest& request) const;
DeleteFacesOutcome deleteFaces(const Model::DeleteFacesRequest &request)const;
void deleteFacesAsync(const Model::DeleteFacesRequest& request, const DeleteFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFacesOutcomeCallable deleteFacesCallable(const Model::DeleteFacesRequest& request) const;
AddAlbumPhotosOutcome addAlbumPhotos(const Model::AddAlbumPhotosRequest &request)const;
void addAlbumPhotosAsync(const Model::AddAlbumPhotosRequest& request, const AddAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddAlbumPhotosOutcomeCallable addAlbumPhotosCallable(const Model::AddAlbumPhotosRequest& request) const;
ListFacesOutcome listFaces(const Model::ListFacesRequest &request)const;
void listFacesAsync(const Model::ListFacesRequest& request, const ListFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFacesOutcomeCallable listFacesCallable(const Model::ListFacesRequest& request) const;
MoveFacePhotosOutcome moveFacePhotos(const Model::MoveFacePhotosRequest &request)const;
void moveFacePhotosAsync(const Model::MoveFacePhotosRequest& request, const MoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveFacePhotosOutcomeCallable moveFacePhotosCallable(const Model::MoveFacePhotosRequest& request) const;
ListPhotosOutcome listPhotos(const Model::ListPhotosRequest &request)const;
void listPhotosAsync(const Model::ListPhotosRequest& request, const ListPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotosOutcomeCallable listPhotosCallable(const Model::ListPhotosRequest& request) const;
RegisterTagOutcome registerTag(const Model::RegisterTagRequest &request)const;
void registerTagAsync(const Model::RegisterTagRequest& request, const RegisterTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterTagOutcomeCallable registerTagCallable(const Model::RegisterTagRequest& request) const;
ListTimeLinePhotosOutcome listTimeLinePhotos(const Model::ListTimeLinePhotosRequest &request)const;
void listTimeLinePhotosAsync(const Model::ListTimeLinePhotosRequest& request, const ListTimeLinePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTimeLinePhotosOutcomeCallable listTimeLinePhotosCallable(const Model::ListTimeLinePhotosRequest& request) const;
DeletePhotosOutcome deletePhotos(const Model::DeletePhotosRequest &request)const;
void deletePhotosAsync(const Model::DeletePhotosRequest& request, const DeletePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePhotosOutcomeCallable deletePhotosCallable(const Model::DeletePhotosRequest& request) const;
MergeFacesOutcome mergeFaces(const Model::MergeFacesRequest &request)const;
void mergeFacesAsync(const Model::MergeFacesRequest& request, const MergeFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MergeFacesOutcomeCallable mergeFacesCallable(const Model::MergeFacesRequest& request) const;
GetPhotosByMd5sOutcome getPhotosByMd5s(const Model::GetPhotosByMd5sRequest &request)const;
void getPhotosByMd5sAsync(const Model::GetPhotosByMd5sRequest& request, const GetPhotosByMd5sAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhotosByMd5sOutcomeCallable getPhotosByMd5sCallable(const Model::GetPhotosByMd5sRequest& request) const;
CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const;
void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const;
InactivatePhotosOutcome inactivatePhotos(const Model::InactivatePhotosRequest &request)const;
void inactivatePhotosAsync(const Model::InactivatePhotosRequest& request, const InactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InactivatePhotosOutcomeCallable inactivatePhotosCallable(const Model::InactivatePhotosRequest& request) const;
CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const;
void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const;
TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const;
void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const;
GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const;
void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const;
SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const;
void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const;
ListAlbumPhotosOutcome listAlbumPhotos(const Model::ListAlbumPhotosRequest &request)const;
void listAlbumPhotosAsync(const Model::ListAlbumPhotosRequest& request, const ListAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAlbumPhotosOutcomeCallable listAlbumPhotosCallable(const Model::ListAlbumPhotosRequest& request) const;
RemoveAlbumPhotosOutcome removeAlbumPhotos(const Model::RemoveAlbumPhotosRequest &request)const;
void removeAlbumPhotosAsync(const Model::RemoveAlbumPhotosRequest& request, const RemoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveAlbumPhotosOutcomeCallable removeAlbumPhotosCallable(const Model::RemoveAlbumPhotosRequest& request) const;
ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const;
void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const;
ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const;
void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const;
RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const;
void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const;
ActivatePhotosOutcome activatePhotos(const Model::ActivatePhotosRequest &request)const;
void activatePhotosAsync(const Model::ActivatePhotosRequest& request, const ActivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ActivatePhotosOutcomeCallable activatePhotosCallable(const Model::ActivatePhotosRequest& request) const;
GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const;
void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const;
GetSimilarPhotosOutcome getSimilarPhotos(const Model::GetSimilarPhotosRequest &request)const;
void getSimilarPhotosAsync(const Model::GetSimilarPhotosRequest& request, const GetSimilarPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSimilarPhotosOutcomeCallable getSimilarPhotosCallable(const Model::GetSimilarPhotosRequest& request) const;
GetVideoCoverOutcome getVideoCover(const Model::GetVideoCoverRequest &request)const;
void getVideoCoverAsync(const Model::GetVideoCoverRequest& request, const GetVideoCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVideoCoverOutcomeCallable getVideoCoverCallable(const Model::GetVideoCoverRequest& request) const;
GetFramedPhotoUrlsOutcome getFramedPhotoUrls(const Model::GetFramedPhotoUrlsRequest &request)const;
void getFramedPhotoUrlsAsync(const Model::GetFramedPhotoUrlsRequest& request, const GetFramedPhotoUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFramedPhotoUrlsOutcomeCallable getFramedPhotoUrlsCallable(const Model::GetFramedPhotoUrlsRequest& request) const;
SetMeOutcome setMe(const Model::SetMeRequest &request)const;
void setMeAsync(const Model::SetMeRequest& request, const SetMeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetMeOutcomeCallable setMeCallable(const Model::SetMeRequest& request) const;
ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const;
void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const;
DeleteAlbumsOutcome deleteAlbums(const Model::DeleteAlbumsRequest &request)const;
void deleteAlbumsAsync(const Model::DeleteAlbumsRequest& request, const DeleteAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteAlbumsOutcomeCallable deleteAlbumsCallable(const Model::DeleteAlbumsRequest& request) const;
GetDownloadUrlsOutcome getDownloadUrls(const Model::GetDownloadUrlsRequest &request)const;
void getDownloadUrlsAsync(const Model::GetDownloadUrlsRequest& request, const GetDownloadUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDownloadUrlsOutcomeCallable getDownloadUrlsCallable(const Model::GetDownloadUrlsRequest& request) const;
GetPhotosOutcome getPhotos(const Model::GetPhotosRequest &request)const;
void getPhotosAsync(const Model::GetPhotosRequest& request, const GetPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhotosOutcomeCallable getPhotosCallable(const Model::GetPhotosRequest& request) const;
RegisterPhotoOutcome registerPhoto(const Model::RegisterPhotoRequest &request)const;
void registerPhotoAsync(const Model::RegisterPhotoRequest& request, const RegisterPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterPhotoOutcomeCallable registerPhotoCallable(const Model::RegisterPhotoRequest& request) const;
EditPhotoStoreOutcome editPhotoStore(const Model::EditPhotoStoreRequest &request)const;
void editPhotoStoreAsync(const Model::EditPhotoStoreRequest& request, const EditPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditPhotoStoreOutcomeCallable editPhotoStoreCallable(const Model::EditPhotoStoreRequest& request) const;
ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const;
void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const;
SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const;
void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const;
ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const;
void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const;
ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const;
void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const;
DeletePhotoStoreOutcome deletePhotoStore(const Model::DeletePhotoStoreRequest &request)const;
void deletePhotoStoreAsync(const Model::DeletePhotoStoreRequest& request, const DeletePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePhotoStoreOutcomeCallable deletePhotoStoreCallable(const Model::DeletePhotoStoreRequest& request) const;
GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const;
void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const;
ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const;
void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const;
GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const;
void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const;
SetFaceCoverOutcome setFaceCover(const Model::SetFaceCoverRequest &request)const;
void setFaceCoverAsync(const Model::SetFaceCoverRequest& request, const SetFaceCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetFaceCoverOutcomeCallable setFaceCoverCallable(const Model::SetFaceCoverRequest& request) const;
CreatePhotoOutcome createPhoto(const Model::CreatePhotoRequest &request)const;
void createPhotoAsync(const Model::CreatePhotoRequest& request, const CreatePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePhotoOutcomeCallable createPhotoCallable(const Model::CreatePhotoRequest& request) const;
MoveAlbumPhotosOutcome moveAlbumPhotos(const Model::MoveAlbumPhotosRequest &request)const;
void moveAlbumPhotosAsync(const Model::MoveAlbumPhotosRequest& request, const MoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveAlbumPhotosOutcomeCallable moveAlbumPhotosCallable(const Model::MoveAlbumPhotosRequest& request) const;
GetDownloadUrlOutcome getDownloadUrl(const Model::GetDownloadUrlRequest &request)const;
void getDownloadUrlAsync(const Model::GetDownloadUrlRequest& request, const GetDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDownloadUrlOutcomeCallable getDownloadUrlCallable(const Model::GetDownloadUrlRequest& request) const;
CreateAlbumOutcome createAlbum(const Model::CreateAlbumRequest &request)const;
void createAlbumAsync(const Model::CreateAlbumRequest& request, const CreateAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAlbumOutcomeCallable createAlbumCallable(const Model::CreateAlbumRequest& request) const;
ListPhotoTagsOutcome listPhotoTags(const Model::ListPhotoTagsRequest &request)const;
void listPhotoTagsAsync(const Model::ListPhotoTagsRequest& request, const ListPhotoTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoTagsOutcomeCallable listPhotoTagsCallable(const Model::ListPhotoTagsRequest& request) const;
LikePhotoOutcome likePhoto(const Model::LikePhotoRequest &request)const;
void likePhotoAsync(const Model::LikePhotoRequest& request, const LikePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LikePhotoOutcomeCallable likePhotoCallable(const Model::LikePhotoRequest& request) const;
ListPhotoStoresOutcome listPhotoStores(const Model::ListPhotoStoresRequest &request)const;
void listPhotoStoresAsync(const Model::ListPhotoStoresRequest& request, const ListPhotoStoresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoStoresOutcomeCallable listPhotoStoresCallable(const Model::ListPhotoStoresRequest& request) const;
GetPublicAccessUrlsOutcome getPublicAccessUrls(const Model::GetPublicAccessUrlsRequest &request)const;
void getPublicAccessUrlsAsync(const Model::GetPublicAccessUrlsRequest& request, const GetPublicAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPublicAccessUrlsOutcomeCallable getPublicAccessUrlsCallable(const Model::GetPublicAccessUrlsRequest& request) const;
EditPhotosOutcome editPhotos(const Model::EditPhotosRequest &request)const;
void editPhotosAsync(const Model::EditPhotosRequest& request, const EditPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditPhotosOutcomeCallable editPhotosCallable(const Model::EditPhotosRequest& request) const;
SetAlbumCoverOutcome setAlbumCover(const Model::SetAlbumCoverRequest &request)const;
void setAlbumCoverAsync(const Model::SetAlbumCoverRequest& request, const SetAlbumCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetAlbumCoverOutcomeCallable setAlbumCoverCallable(const Model::SetAlbumCoverRequest& request) const;
RenameFaceOutcome renameFace(const Model::RenameFaceRequest &request)const;
void renameFaceAsync(const Model::RenameFaceRequest& request, const RenameFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenameFaceOutcomeCallable renameFaceCallable(const Model::RenameFaceRequest& request) const;
ListMomentsOutcome listMoments(const Model::ListMomentsRequest &request)const;
void listMomentsAsync(const Model::ListMomentsRequest& request, const ListMomentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMomentsOutcomeCallable listMomentsCallable(const Model::ListMomentsRequest& request) const;
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
ListFacePhotosOutcome listFacePhotos(const Model::ListFacePhotosRequest &request)const;
void listFacePhotosAsync(const Model::ListFacePhotosRequest& request, const ListFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFacePhotosOutcomeCallable listFacePhotosCallable(const Model::ListFacePhotosRequest& request) const;
RemoveFacePhotosOutcome removeFacePhotos(const Model::RemoveFacePhotosRequest &request)const;
void removeFacePhotosAsync(const Model::RemoveFacePhotosRequest& request, const RemoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveFacePhotosOutcomeCallable removeFacePhotosCallable(const Model::RemoveFacePhotosRequest& request) const;
ReactivatePhotosOutcome reactivatePhotos(const Model::ReactivatePhotosRequest &request)const;
void reactivatePhotosAsync(const Model::ReactivatePhotosRequest& request, const ReactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReactivatePhotosOutcomeCallable reactivatePhotosCallable(const Model::ReactivatePhotosRequest& request) const;
GetQuotaOutcome getQuota(const Model::GetQuotaRequest &request)const;
void getQuotaAsync(const Model::GetQuotaRequest& request, const GetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetQuotaOutcomeCallable getQuotaCallable(const Model::GetQuotaRequest& request) const;
GetThumbnailsOutcome getThumbnails(const Model::GetThumbnailsRequest &request)const;
void getThumbnailsAsync(const Model::GetThumbnailsRequest& request, const GetThumbnailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetThumbnailsOutcomeCallable getThumbnailsCallable(const Model::GetThumbnailsRequest& request) const;
DeleteFacesOutcome deleteFaces(const Model::DeleteFacesRequest &request)const;
void deleteFacesAsync(const Model::DeleteFacesRequest& request, const DeleteFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFacesOutcomeCallable deleteFacesCallable(const Model::DeleteFacesRequest& request) const;
AddAlbumPhotosOutcome addAlbumPhotos(const Model::AddAlbumPhotosRequest &request)const;
void addAlbumPhotosAsync(const Model::AddAlbumPhotosRequest& request, const AddAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddAlbumPhotosOutcomeCallable addAlbumPhotosCallable(const Model::AddAlbumPhotosRequest& request) const;
ListFacesOutcome listFaces(const Model::ListFacesRequest &request)const;
void listFacesAsync(const Model::ListFacesRequest& request, const ListFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFacesOutcomeCallable listFacesCallable(const Model::ListFacesRequest& request) const;
MoveFacePhotosOutcome moveFacePhotos(const Model::MoveFacePhotosRequest &request)const;
void moveFacePhotosAsync(const Model::MoveFacePhotosRequest& request, const MoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveFacePhotosOutcomeCallable moveFacePhotosCallable(const Model::MoveFacePhotosRequest& request) const;
DeleteEventOutcome deleteEvent(const Model::DeleteEventRequest &request)const;
void deleteEventAsync(const Model::DeleteEventRequest& request, const DeleteEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteEventOutcomeCallable deleteEventCallable(const Model::DeleteEventRequest& request) const;
ListPhotosOutcome listPhotos(const Model::ListPhotosRequest &request)const;
void listPhotosAsync(const Model::ListPhotosRequest& request, const ListPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotosOutcomeCallable listPhotosCallable(const Model::ListPhotosRequest& request) const;
RegisterTagOutcome registerTag(const Model::RegisterTagRequest &request)const;
void registerTagAsync(const Model::RegisterTagRequest& request, const RegisterTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterTagOutcomeCallable registerTagCallable(const Model::RegisterTagRequest& request) const;
ListTimeLinePhotosOutcome listTimeLinePhotos(const Model::ListTimeLinePhotosRequest &request)const;
void listTimeLinePhotosAsync(const Model::ListTimeLinePhotosRequest& request, const ListTimeLinePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTimeLinePhotosOutcomeCallable listTimeLinePhotosCallable(const Model::ListTimeLinePhotosRequest& request) const;
DeletePhotosOutcome deletePhotos(const Model::DeletePhotosRequest &request)const;
void deletePhotosAsync(const Model::DeletePhotosRequest& request, const DeletePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePhotosOutcomeCallable deletePhotosCallable(const Model::DeletePhotosRequest& request) const;
MergeFacesOutcome mergeFaces(const Model::MergeFacesRequest &request)const;
void mergeFacesAsync(const Model::MergeFacesRequest& request, const MergeFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MergeFacesOutcomeCallable mergeFacesCallable(const Model::MergeFacesRequest& request) const;
GetPhotosByMd5sOutcome getPhotosByMd5s(const Model::GetPhotosByMd5sRequest &request)const;
void getPhotosByMd5sAsync(const Model::GetPhotosByMd5sRequest& request, const GetPhotosByMd5sAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhotosByMd5sOutcomeCallable getPhotosByMd5sCallable(const Model::GetPhotosByMd5sRequest& request) const;
FetchLibrariesOutcome fetchLibraries(const Model::FetchLibrariesRequest &request)const;
void fetchLibrariesAsync(const Model::FetchLibrariesRequest& request, const FetchLibrariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FetchLibrariesOutcomeCallable fetchLibrariesCallable(const Model::FetchLibrariesRequest& request) const;
FetchAlbumTagPhotosOutcome fetchAlbumTagPhotos(const Model::FetchAlbumTagPhotosRequest &request)const;
void fetchAlbumTagPhotosAsync(const Model::FetchAlbumTagPhotosRequest& request, const FetchAlbumTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FetchAlbumTagPhotosOutcomeCallable fetchAlbumTagPhotosCallable(const Model::FetchAlbumTagPhotosRequest& request) const;
CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const;
void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const;
InactivatePhotosOutcome inactivatePhotos(const Model::InactivatePhotosRequest &request)const;
void inactivatePhotosAsync(const Model::InactivatePhotosRequest& request, const InactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InactivatePhotosOutcomeCallable inactivatePhotosCallable(const Model::InactivatePhotosRequest& request) const;
CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const;
void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const;
TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const;
void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const;
GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const;
void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const;
SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const;
void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const;
ListAlbumPhotosOutcome listAlbumPhotos(const Model::ListAlbumPhotosRequest &request)const;
void listAlbumPhotosAsync(const Model::ListAlbumPhotosRequest& request, const ListAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAlbumPhotosOutcomeCallable listAlbumPhotosCallable(const Model::ListAlbumPhotosRequest& request) const;
RemoveAlbumPhotosOutcome removeAlbumPhotos(const Model::RemoveAlbumPhotosRequest &request)const;
void removeAlbumPhotosAsync(const Model::RemoveAlbumPhotosRequest& request, const RemoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveAlbumPhotosOutcomeCallable removeAlbumPhotosCallable(const Model::RemoveAlbumPhotosRequest& request) const;
ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const;
void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const;
ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const;
void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const;
RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const;
void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const;
ActivatePhotosOutcome activatePhotos(const Model::ActivatePhotosRequest &request)const;
void activatePhotosAsync(const Model::ActivatePhotosRequest& request, const ActivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ActivatePhotosOutcomeCallable activatePhotosCallable(const Model::ActivatePhotosRequest& request) const;
GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const;
void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const;
GetSimilarPhotosOutcome getSimilarPhotos(const Model::GetSimilarPhotosRequest &request)const;
void getSimilarPhotosAsync(const Model::GetSimilarPhotosRequest& request, const GetSimilarPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSimilarPhotosOutcomeCallable getSimilarPhotosCallable(const Model::GetSimilarPhotosRequest& request) const;
ListEventsOutcome listEvents(const Model::ListEventsRequest &request)const;
void listEventsAsync(const Model::ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListEventsOutcomeCallable listEventsCallable(const Model::ListEventsRequest& request) const;
GetVideoCoverOutcome getVideoCover(const Model::GetVideoCoverRequest &request)const;
void getVideoCoverAsync(const Model::GetVideoCoverRequest& request, const GetVideoCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVideoCoverOutcomeCallable getVideoCoverCallable(const Model::GetVideoCoverRequest& request) const;
GetFramedPhotoUrlsOutcome getFramedPhotoUrls(const Model::GetFramedPhotoUrlsRequest &request)const;
void getFramedPhotoUrlsAsync(const Model::GetFramedPhotoUrlsRequest& request, const GetFramedPhotoUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFramedPhotoUrlsOutcomeCallable getFramedPhotoUrlsCallable(const Model::GetFramedPhotoUrlsRequest& request) const;
GetEventOutcome getEvent(const Model::GetEventRequest &request)const;
void getEventAsync(const Model::GetEventRequest& request, const GetEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEventOutcomeCallable getEventCallable(const Model::GetEventRequest& request) const;
SetMeOutcome setMe(const Model::SetMeRequest &request)const;
void setMeAsync(const Model::SetMeRequest& request, const SetMeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetMeOutcomeCallable setMeCallable(const Model::SetMeRequest& request) const;
ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const;
void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const;
DeleteAlbumsOutcome deleteAlbums(const Model::DeleteAlbumsRequest &request)const;
void deleteAlbumsAsync(const Model::DeleteAlbumsRequest& request, const DeleteAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteAlbumsOutcomeCallable deleteAlbumsCallable(const Model::DeleteAlbumsRequest& request) const;
GetDownloadUrlsOutcome getDownloadUrls(const Model::GetDownloadUrlsRequest &request)const;
void getDownloadUrlsAsync(const Model::GetDownloadUrlsRequest& request, const GetDownloadUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDownloadUrlsOutcomeCallable getDownloadUrlsCallable(const Model::GetDownloadUrlsRequest& request) const;
GetPhotosOutcome getPhotos(const Model::GetPhotosRequest &request)const;
void getPhotosAsync(const Model::GetPhotosRequest& request, const GetPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhotosOutcomeCallable getPhotosCallable(const Model::GetPhotosRequest& request) const;
RegisterPhotoOutcome registerPhoto(const Model::RegisterPhotoRequest &request)const;
void registerPhotoAsync(const Model::RegisterPhotoRequest& request, const RegisterPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterPhotoOutcomeCallable registerPhotoCallable(const Model::RegisterPhotoRequest& request) const;
EditPhotoStoreOutcome editPhotoStore(const Model::EditPhotoStoreRequest &request)const;
void editPhotoStoreAsync(const Model::EditPhotoStoreRequest& request, const EditPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditPhotoStoreOutcomeCallable editPhotoStoreCallable(const Model::EditPhotoStoreRequest& request) const;
ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const;
void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const;
SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const;
void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const;
ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const;
void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const;
ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const;
void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const;
DeletePhotoStoreOutcome deletePhotoStore(const Model::DeletePhotoStoreRequest &request)const;
void deletePhotoStoreAsync(const Model::DeletePhotoStoreRequest& request, const DeletePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePhotoStoreOutcomeCallable deletePhotoStoreCallable(const Model::DeletePhotoStoreRequest& request) const;
CreateEventOutcome createEvent(const Model::CreateEventRequest &request)const;
void createEventAsync(const Model::CreateEventRequest& request, const CreateEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEventOutcomeCallable createEventCallable(const Model::CreateEventRequest& request) const;
GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const;
void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const;
ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const;
void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const;
GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const;
void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const;
SetFaceCoverOutcome setFaceCover(const Model::SetFaceCoverRequest &request)const;
void setFaceCoverAsync(const Model::SetFaceCoverRequest& request, const SetFaceCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetFaceCoverOutcomeCallable setFaceCoverCallable(const Model::SetFaceCoverRequest& request) const;
CreatePhotoOutcome createPhoto(const Model::CreatePhotoRequest &request)const;
void createPhotoAsync(const Model::CreatePhotoRequest& request, const CreatePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePhotoOutcomeCallable createPhotoCallable(const Model::CreatePhotoRequest& request) const;
MoveAlbumPhotosOutcome moveAlbumPhotos(const Model::MoveAlbumPhotosRequest &request)const;
void moveAlbumPhotosAsync(const Model::MoveAlbumPhotosRequest& request, const MoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveAlbumPhotosOutcomeCallable moveAlbumPhotosCallable(const Model::MoveAlbumPhotosRequest& request) const;
EditEventOutcome editEvent(const Model::EditEventRequest &request)const;
void editEventAsync(const Model::EditEventRequest& request, const EditEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditEventOutcomeCallable editEventCallable(const Model::EditEventRequest& request) const;
GetDownloadUrlOutcome getDownloadUrl(const Model::GetDownloadUrlRequest &request)const;
void getDownloadUrlAsync(const Model::GetDownloadUrlRequest& request, const GetDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDownloadUrlOutcomeCallable getDownloadUrlCallable(const Model::GetDownloadUrlRequest& request) const;
CreateAlbumOutcome createAlbum(const Model::CreateAlbumRequest &request)const;
void createAlbumAsync(const Model::CreateAlbumRequest& request, const CreateAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAlbumOutcomeCallable createAlbumCallable(const Model::CreateAlbumRequest& request) const;
ListPhotoTagsOutcome listPhotoTags(const Model::ListPhotoTagsRequest &request)const;
void listPhotoTagsAsync(const Model::ListPhotoTagsRequest& request, const ListPhotoTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoTagsOutcomeCallable listPhotoTagsCallable(const Model::ListPhotoTagsRequest& request) const;
LikePhotoOutcome likePhoto(const Model::LikePhotoRequest &request)const;
void likePhotoAsync(const Model::LikePhotoRequest& request, const LikePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LikePhotoOutcomeCallable likePhotoCallable(const Model::LikePhotoRequest& request) const;
ListPhotoStoresOutcome listPhotoStores(const Model::ListPhotoStoresRequest &request)const;
void listPhotoStoresAsync(const Model::ListPhotoStoresRequest& request, const ListPhotoStoresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoStoresOutcomeCallable listPhotoStoresCallable(const Model::ListPhotoStoresRequest& request) const;
GetAlbumsByNamesOutcome getAlbumsByNames(const Model::GetAlbumsByNamesRequest &request)const;
void getAlbumsByNamesAsync(const Model::GetAlbumsByNamesRequest& request, const GetAlbumsByNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetAlbumsByNamesOutcomeCallable getAlbumsByNamesCallable(const Model::GetAlbumsByNamesRequest& request) const;
GetPublicAccessUrlsOutcome getPublicAccessUrls(const Model::GetPublicAccessUrlsRequest &request)const;
void getPublicAccessUrlsAsync(const Model::GetPublicAccessUrlsRequest& request, const GetPublicAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPublicAccessUrlsOutcomeCallable getPublicAccessUrlsCallable(const Model::GetPublicAccessUrlsRequest& request) const;
EditPhotosOutcome editPhotos(const Model::EditPhotosRequest &request)const;
void editPhotosAsync(const Model::EditPhotosRequest& request, const EditPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EditPhotosOutcomeCallable editPhotosCallable(const Model::EditPhotosRequest& request) const;
SetAlbumCoverOutcome setAlbumCover(const Model::SetAlbumCoverRequest &request)const;
void setAlbumCoverAsync(const Model::SetAlbumCoverRequest& request, const SetAlbumCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetAlbumCoverOutcomeCallable setAlbumCoverCallable(const Model::SetAlbumCoverRequest& request) const;
RenameFaceOutcome renameFace(const Model::RenameFaceRequest &request)const;
void renameFaceAsync(const Model::RenameFaceRequest& request, const RenameFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenameFaceOutcomeCallable renameFaceCallable(const Model::RenameFaceRequest& request) const;
ListMomentsOutcome listMoments(const Model::ListMomentsRequest &request)const;
void listMomentsAsync(const Model::ListMomentsRequest& request, const ListMomentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMomentsOutcomeCallable listMomentsCallable(const Model::ListMomentsRequest& request) const;
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
ListFacePhotosOutcome listFacePhotos(const Model::ListFacePhotosRequest &request)const;
void listFacePhotosAsync(const Model::ListFacePhotosRequest& request, const ListFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFacePhotosOutcomeCallable listFacePhotosCallable(const Model::ListFacePhotosRequest& request) const;
private:
virtual EndpointOutcome endpoint()const override;
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}

View File

@@ -32,29 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ActivatePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
ActivatePhotosResult();
explicit ActivatePhotosResult(const std::string &payload);
~ActivatePhotosResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Result> getResults()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Result> getResults()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
};
}

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