Compare commits

..

22 Commits
1.2.8 ... 1.3.7

Author SHA1 Message Date
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
849 changed files with 58995 additions and 19228 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.

View File

@@ -1,3 +1,57 @@
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.

View File

@@ -64,4 +64,6 @@ add_subdirectory(aegis)
add_subdirectory(ehpc)
add_subdirectory(cs)
add_subdirectory(ccc)
add_subdirectory(teslamaxcompute)
add_subdirectory(teslamaxcompute)
add_subdirectory(push)
add_subdirectory(csb)

View File

@@ -1 +1 @@
1.2.8
1.3.7

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

View File

@@ -198,7 +198,6 @@ namespace AlibabaCloud
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& 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::CCC;
using namespace AlibabaCloud::CCC::Model;
namespace
{
const std::string SERVICE_NAME = "CCC";
}
CCCClient::CCCClient(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(), "CCC");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
}
CCCClient::CCCClient(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(), "CCC");
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(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(), "CCC");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
}
CCCClient::~CCCClient()
{}
CoreClient::EndpointOutcome CCCClient::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);
}
CCCClient::ListRecordingsByContactIdOutcome CCCClient::listRecordingsByContactId(const ListRecordingsByContactIdRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRecordingsByContactIdOutcome(endpointOutcome.error());
@@ -94,10 +86,10 @@ CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByC
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListUsersOfSkillGroupOutcome(endpointOutcome.error());
@@ -130,10 +122,10 @@ CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroup
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSkillGroupOutcome(endpointOutcome.error());
@@ -166,10 +158,10 @@ CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(c
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyPhoneNumberOutcome(endpointOutcome.error());
@@ -202,10 +194,10 @@ CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListUsersOutcome CCCClient::listUsers(const ListUsersRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListUsersOutcome(endpointOutcome.error());
@@ -238,10 +230,10 @@ CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsers
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSkillGroupsOutcome(endpointOutcome.error());
@@ -274,10 +266,10 @@ CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(con
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSkillGroupsOfUserOutcome(endpointOutcome.error());
@@ -310,10 +302,10 @@ CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUser
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemovePhoneNumberOutcome(endpointOutcome.error());
@@ -346,10 +338,10 @@ CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCallDetailRecordsOutcome(endpointOutcome.error());
@@ -382,10 +374,10 @@ CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecords
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddPhoneNumberOutcome(endpointOutcome.error());
@@ -418,10 +410,10 @@ CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRecordingsOutcome(endpointOutcome.error());
@@ -454,10 +446,10 @@ CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetConfigOutcome(endpointOutcome.error());
@@ -490,10 +482,10 @@ CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfig
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DownloadRecordingOutcome(endpointOutcome.error());
@@ -526,10 +518,10 @@ CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListPhoneNumbersOutcome CCCClient::listPhoneNumbers(const ListPhoneNumbersRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPhoneNumbersOutcome(endpointOutcome.error());
@@ -562,10 +554,10 @@ CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(c
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RefreshTokenOutcome(endpointOutcome.error());
@@ -598,10 +590,10 @@ CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const Ref
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RequestLoginInfoOutcome(endpointOutcome.error());
@@ -634,10 +626,10 @@ CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(c
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetServiceExtensionsOutcome(endpointOutcome.error());
@@ -670,10 +662,10 @@ CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCa
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListContactFlowsOutcome(endpointOutcome.error());
@@ -706,10 +698,10 @@ CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(c
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListRolesOutcome CCCClient::listRoles(const ListRolesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRolesOutcome(endpointOutcome.error());
@@ -742,10 +734,10 @@ CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRoles
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserOutcome(endpointOutcome.error());
@@ -778,4 +770,4 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -51,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
@@ -186,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

View File

@@ -52,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"
@@ -163,410 +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::DeleteEventResult> DeleteEventOutcome;
typedef std::future<DeleteEventOutcome> DeleteEventOutcomeCallable;
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 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::ListEventsResult> ListEventsOutcome;
typedef std::future<ListEventsOutcome> ListEventsOutcomeCallable;
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 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::GetEventResult> GetEventOutcome;
typedef std::future<GetEventOutcome> GetEventOutcomeCallable;
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 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::CreateEventResult> CreateEventOutcome;
typedef std::future<CreateEventOutcome> CreateEventOutcomeCallable;
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 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::EditEventResult> EditEventOutcome;
typedef std::future<EditEventOutcome> EditEventOutcomeCallable;
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 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::GetAlbumsByNamesResult> GetAlbumsByNamesOutcome;
typedef std::future<GetAlbumsByNamesOutcome> GetAlbumsByNamesOutcomeCallable;
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 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;
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;
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;
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,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ActivatePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
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_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT AddAlbumPhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
AddAlbumPhotosResult();
explicit AddAlbumPhotosResult(const std::string &payload);
~AddAlbumPhotosResult();
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_;
};
}

View File

@@ -32,50 +32,50 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateAlbumResult : public ServiceResult
{
public:
struct Album
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
std::vector<Cover> cover;
std::string idStr;
std::string state;
long ctime;
long photosCount;
long mtime;
long id;
std::string name;
std::string remark;
};
struct Album
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
Cover cover;
std::string idStr;
std::string state;
long ctime;
long photosCount;
long mtime;
long id;
std::string name;
std::string remark;
};
CreateAlbumResult();
explicit CreateAlbumResult(const std::string &payload);
~CreateAlbumResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Album> getAlbum()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Album getAlbum()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Album> album_;
std::string code_;
std::string action_;
std::string message_;
Album album_;
std::string code_;
};
}

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateEventResult : public ServiceResult
{
public:
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
CreateEventResult();
explicit CreateEventResult(const std::string &payload);
~CreateEventResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Event> getEvent()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Event getEvent()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Event> event_;
std::string code_;
std::string action_;
std::string message_;
Event event_;
std::string code_;
};
}

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
CreatePhotoRequest();
~CreatePhotoRequest();
long getTakenAt()const;
void setTakenAt(long takenAt);
std::string getPhotoTitle()const;
void setPhotoTitle(const std::string& photoTitle);
std::string getLibraryId()const;
@@ -55,6 +57,7 @@ namespace AlibabaCloud
void setFileId(const std::string& fileId);
private:
long takenAt_;
std::string photoTitle_;
std::string libraryId_;
long shareExpireTime_;

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreatePhotoResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
CreatePhotoResult();
explicit CreatePhotoResult(const std::string &payload);
~CreatePhotoResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Photo> getPhoto()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Photo getPhoto()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Photo> photo_;
std::string code_;
std::string action_;
std::string message_;
Photo photo_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
CreatePhotoStoreResult();
explicit CreatePhotoStoreResult(const std::string &payload);
~CreatePhotoStoreResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,38 +32,38 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateTransactionResult : public ServiceResult
{
public:
struct Transaction
{
struct Upload
{
std::string stsToken;
std::string ossEndpoint;
std::string bucket;
std::string accessKeyId;
std::string accessKeySecret;
std::string objectKey;
std::string fileId;
std::string sessionId;
};
std::vector<Upload> upload;
};
struct Transaction
{
struct Upload
{
std::string stsToken;
std::string ossEndpoint;
std::string bucket;
std::string accessKeyId;
std::string accessKeySecret;
std::string objectKey;
std::string fileId;
std::string sessionId;
};
Upload upload;
};
CreateTransactionResult();
explicit CreateTransactionResult(const std::string &payload);
~CreateTransactionResult();
std::string getAction()const;
std::vector<Transaction> getTransaction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
Transaction getTransaction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::vector<Transaction> transaction_;
std::string message_;
std::string code_;
std::string action_;
Transaction transaction_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteAlbumsResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
DeleteAlbumsResult();
explicit DeleteAlbumsResult(const std::string &payload);
~DeleteAlbumsResult();
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_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
DeleteEventResult();
explicit DeleteEventResult(const std::string &payload);
~DeleteEventResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteFacesResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
DeleteFacesResult();
explicit DeleteFacesResult(const std::string &payload);
~DeleteFacesResult();
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_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
DeletePhotoStoreResult();
explicit DeletePhotoStoreResult(const std::string &payload);
~DeletePhotoStoreResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeletePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
DeletePhotosResult();
explicit DeletePhotosResult(const std::string &payload);
~DeletePhotosResult();
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_;
};
}

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditEventResult : public ServiceResult
{
public:
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
EditEventResult();
explicit EditEventResult(const std::string &payload);
~EditEventResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Event> getEvent()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Event getEvent()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Event> event_;
std::string code_;
std::string action_;
std::string message_;
Event event_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
EditPhotoStoreResult();
explicit EditPhotoStoreResult(const std::string &payload);
~EditPhotoStoreResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditPhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
EditPhotosResult();
explicit EditPhotosResult(const std::string &payload);
~EditPhotosResult();
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_;
};
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSREQUEST_H_
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudphoto/CloudPhotoExport.h>
namespace AlibabaCloud
{
namespace CloudPhoto
{
namespace Model
{
class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchAlbumTagPhotosRequest : public RpcServiceRequest
{
public:
FetchAlbumTagPhotosRequest();
~FetchAlbumTagPhotosRequest();
int getSize()const;
void setSize(int size);
long getTagId()const;
void setTagId(long tagId);
std::string getLibraryId()const;
void setLibraryId(const std::string& libraryId);
long getAlbumId()const;
void setAlbumId(long albumId);
std::string getStoreName()const;
void setStoreName(const std::string& storeName);
int getPage()const;
void setPage(int page);
private:
int size_;
long tagId_;
std::string libraryId_;
long albumId_;
std::string storeName_;
int page_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSREQUEST_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_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSRESULT_H_
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudphoto/CloudPhotoExport.h>
namespace AlibabaCloud
{
namespace CloudPhoto
{
namespace Model
{
class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchAlbumTagPhotosResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
long mtime;
};
FetchAlbumTagPhotosResult();
explicit FetchAlbumTagPhotosResult(const std::string &payload);
~FetchAlbumTagPhotosResult();
int getTotalCount()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:
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSRESULT_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_CLOUDPHOTO_MODEL_FETCHLIBRARIESREQUEST_H_
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHLIBRARIESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudphoto/CloudPhotoExport.h>
namespace AlibabaCloud
{
namespace CloudPhoto
{
namespace Model
{
class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchLibrariesRequest : public RpcServiceRequest
{
public:
FetchLibrariesRequest();
~FetchLibrariesRequest();
int getSize()const;
void setSize(int size);
std::string getStoreName()const;
void setStoreName(const std::string& storeName);
int getPage()const;
void setPage(int page);
private:
int size_;
std::string storeName_;
int page_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHLIBRARIESREQUEST_H_

View File

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

View File

@@ -32,49 +32,49 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetAlbumsByNamesResult : public ServiceResult
{
public:
struct Album
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
std::vector<Cover> cover;
std::string idStr;
std::string state;
long ctime;
long photosCount;
long mtime;
long id;
std::string name;
};
struct Album
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
Cover cover;
std::string idStr;
std::string state;
long ctime;
long photosCount;
long mtime;
long id;
std::string name;
};
GetAlbumsByNamesResult();
explicit GetAlbumsByNamesResult(const std::string &payload);
~GetAlbumsByNamesResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Album> getAlbums()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Album> getAlbums()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::vector<Album> albums_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Album> albums_;
};
}

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
GetDownloadUrlResult();
explicit GetDownloadUrlResult(const std::string &payload);
~GetDownloadUrlResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getDownloadUrl()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getDownloadUrl()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string downloadUrl_;
std::string action_;
std::string message_;
std::string code_;
std::string downloadUrl_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetDownloadUrlsResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string code;
std::string downloadUrl;
};
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string code;
std::string downloadUrl;
};
GetDownloadUrlsResult();
explicit GetDownloadUrlsResult(const std::string &payload);
~GetDownloadUrlsResult();
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_;
};
}

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetEventResult : public ServiceResult
{
public:
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
GetEventResult();
explicit GetEventResult(const std::string &payload);
~GetEventResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Event> getEvent()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Event getEvent()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Event> event_;
std::string code_;
std::string action_;
std::string message_;
Event event_;
std::string code_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetFramedPhotoUrlsResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string code;
std::string framedPhotoUrl;
};
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string code;
std::string framedPhotoUrl;
};
GetFramedPhotoUrlsResult();
explicit GetFramedPhotoUrlsResult(const std::string &payload);
~GetFramedPhotoUrlsResult();
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_;
};
}

View File

@@ -32,44 +32,44 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetLibraryResult : public ServiceResult
{
public:
struct Library
{
struct Quota
{
long activeSize;
long totalQuota;
int facesCount;
int photosCount;
long totalTrashQuota;
long inactiveSize;
long usedQuota;
int videosCount;
};
struct AutoCleanConfig
{
int autoCleanDays;
bool autoCleanEnabled;
};
std::vector<Quota> quota;
std::vector<AutoCleanConfig> autoCleanConfig;
};
struct Library
{
struct Quota
{
long activeSize;
long totalQuota;
int facesCount;
int photosCount;
long totalTrashQuota;
long inactiveSize;
long usedQuota;
int videosCount;
};
struct AutoCleanConfig
{
int autoCleanDays;
bool autoCleanEnabled;
};
Quota quota;
AutoCleanConfig autoCleanConfig;
};
GetLibraryResult();
explicit GetLibraryResult(const std::string &payload);
~GetLibraryResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Library> getLibrary()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Library getLibrary()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Library> library_;
std::string code_;
std::string action_;
std::string message_;
Library library_;
std::string code_;
};
}

View File

@@ -32,44 +32,44 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotoStoreResult : public ServiceResult
{
public:
struct PhotoStore
{
struct Bucket
{
std::string state;
std::string region;
std::string acl;
std::string name;
};
int autoCleanDays;
long defaultQuota;
std::string idStr;
long ctime;
long mtime;
long defaultTrashQuota;
long id;
bool autoCleanEnabled;
std::vector<Bucket> buckets;
std::string name;
std::string remark;
};
struct PhotoStore
{
struct Bucket
{
std::string state;
std::string region;
std::string acl;
std::string name;
};
int autoCleanDays;
long defaultQuota;
std::string idStr;
long ctime;
long mtime;
long defaultTrashQuota;
long id;
bool autoCleanEnabled;
std::vector<Bucket> buckets;
std::string name;
std::string remark;
};
GetPhotoStoreResult();
explicit GetPhotoStoreResult(const std::string &payload);
~GetPhotoStoreResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<PhotoStore> getPhotoStore()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
PhotoStore getPhotoStore()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<PhotoStore> photoStore_;
std::string code_;
std::string action_;
std::string message_;
PhotoStore photoStore_;
std::string code_;
};
}

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosByMd5sResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
GetPhotosByMd5sResult();
explicit GetPhotosByMd5sResult(const std::string &payload);
~GetPhotosByMd5sResult();
std::vector<Photo> getPhotos()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Photo> getPhotos()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Photo> photos_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,44 +32,44 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
GetPhotosResult();
explicit GetPhotosResult(const std::string &payload);
~GetPhotosResult();
std::vector<Photo> getPhotos()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Photo> getPhotos()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Photo> photos_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPrivateAccessUrlsResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string accessUrl;
std::string code;
};
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string accessUrl;
std::string code;
};
GetPrivateAccessUrlsResult();
explicit GetPrivateAccessUrlsResult(const std::string &payload);
~GetPrivateAccessUrlsResult();
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_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPublicAccessUrlsResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string accessUrl;
std::string code;
};
struct Result
{
long photoId;
std::string message;
std::string photoIdStr;
std::string accessUrl;
std::string code;
};
GetPublicAccessUrlsResult();
explicit GetPublicAccessUrlsResult(const std::string &payload);
~GetPublicAccessUrlsResult();
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_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetQuotaResult : public ServiceResult
{
public:
struct Quota
{
long totalQuota;
int facesCount;
int photosCount;
long usedQuota;
int videosCount;
};
struct Quota
{
long totalQuota;
int facesCount;
int photosCount;
long usedQuota;
int videosCount;
};
GetQuotaResult();
explicit GetQuotaResult(const std::string &payload);
~GetQuotaResult();
std::string getAction()const;
std::vector<Quota> getQuota()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
Quota getQuota()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::vector<Quota> quota_;
std::string message_;
std::string code_;
std::string action_;
Quota quota_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,44 +32,44 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetSimilarPhotosResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
GetSimilarPhotosResult();
explicit GetSimilarPhotosResult(const std::string &payload);
~GetSimilarPhotosResult();
std::vector<Photo> getPhotos()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Photo> getPhotos()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Photo> photos_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
GetThumbnailResult();
explicit GetThumbnailResult(const std::string &payload);
~GetThumbnailResult();
std::string getAction()const;
std::string getMessage()const;
std::string getThumbnailUrl()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getThumbnailUrl()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string thumbnailUrl_;
std::string code_;
std::string action_;
std::string message_;
std::string thumbnailUrl_;
std::string code_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetThumbnailsResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string message;
std::string thumbnailUrl;
std::string photoIdStr;
std::string code;
};
struct Result
{
long photoId;
std::string message;
std::string thumbnailUrl;
std::string photoIdStr;
std::string code;
};
GetThumbnailsResult();
explicit GetThumbnailsResult(const std::string &payload);
~GetThumbnailsResult();
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_;
};
}

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
GetVideoCoverResult();
explicit GetVideoCoverResult(const std::string &payload);
~GetVideoCoverResult();
std::string getAction()const;
std::string getMessage()const;
std::string getVideoCoverUrl()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getVideoCoverUrl()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string videoCoverUrl_;
std::string code_;
std::string action_;
std::string message_;
std::string videoCoverUrl_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT InactivatePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
InactivatePhotosResult();
explicit InactivatePhotosResult(const std::string &payload);
~InactivatePhotosResult();
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_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
LikePhotoResult();
explicit LikePhotoResult(const std::string &payload);
~LikePhotoResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,33 +32,34 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumPhotosResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
};
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
long mtime;
};
ListAlbumPhotosResult();
explicit ListAlbumPhotosResult(const std::string &payload);
~ListAlbumPhotosResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Result> getResults()const;
std::string getCode()const;
std::string getNextCursor()const;
int getTotalCount()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 nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
};
}

View File

@@ -32,53 +32,53 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumsResult : public ServiceResult
{
public:
struct Album
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
std::vector<Cover> cover;
std::string idStr;
std::string state;
long ctime;
long photosCount;
long mtime;
long id;
std::string name;
};
struct Album
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
Cover cover;
std::string idStr;
std::string state;
long ctime;
long photosCount;
long mtime;
long id;
std::string name;
};
ListAlbumsResult();
explicit ListAlbumsResult(const std::string &payload);
~ListAlbumsResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Album> getAlbums()const;
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Album> getAlbums()const;
protected:
void parse(const std::string &payload);
private:
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Album> albums_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Album> albums_;
};
}

View File

@@ -32,46 +32,46 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListEventsResult : public ServiceResult
{
public:
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
struct Event
{
std::string idStr1;
std::string watermarkPhotoId;
std::string idStr;
std::string title;
long mtime;
std::string bannerPhotoId;
std::string splashPhotoId;
long endAt;
std::string libraryId;
std::string weixinTitle;
std::string state;
long startAt;
long ctime;
long viewsCount;
long id;
std::string identity;
};
ListEventsResult();
explicit ListEventsResult(const std::string &payload);
~ListEventsResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Event> getEvents()const;
std::string getCode()const;
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Event> getEvents()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Event> events_;
std::string code_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Event> events_;
std::string code_;
};
}

View File

@@ -32,33 +32,34 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacePhotosResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
};
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
long mtime;
};
ListFacePhotosResult();
explicit ListFacePhotosResult(const std::string &payload);
~ListFacePhotosResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Result> getResults()const;
std::string getCode()const;
std::string getNextCursor()const;
int getTotalCount()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 nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
};
}

View File

@@ -32,55 +32,55 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacesResult : public ServiceResult
{
public:
struct Face
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
bool isMe;
std::vector<Cover> cover;
std::string idStr;
std::string state;
long ctime;
int photosCount;
long mtime;
long id;
std::vector<std::string> axis;
std::string name;
};
struct Face
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
bool isMe;
Cover cover;
std::string idStr;
std::string state;
long ctime;
int photosCount;
long mtime;
long id;
std::vector<std::string> axis;
std::string name;
};
ListFacesResult();
explicit ListFacesResult(const std::string &payload);
~ListFacesResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Face> getFaces()const;
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Face> getFaces()const;
protected:
void parse(const std::string &payload);
private:
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Face> faces_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Face> faces_;
};
}

View File

@@ -32,33 +32,33 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentPhotosResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
};
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
};
ListMomentPhotosResult();
explicit ListMomentPhotosResult(const std::string &payload);
~ListMomentPhotosResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Result> getResults()const;
std::string getCode()const;
std::string getNextCursor()const;
int getTotalCount()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 nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
};
}

View File

@@ -32,38 +32,38 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentsResult : public ServiceResult
{
public:
struct Moment
{
std::string idStr;
std::string state;
long ctime;
int photosCount;
long mtime;
long id;
long takenAt;
std::string locationName;
};
struct Moment
{
std::string idStr;
std::string state;
long ctime;
int photosCount;
long mtime;
long id;
long takenAt;
std::string locationName;
};
ListMomentsResult();
explicit ListMomentsResult(const std::string &payload);
~ListMomentsResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Moment> getMoments()const;
std::string getCode()const;
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Moment> getMoments()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Moment> moments_;
std::string code_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Moment> moments_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoFacesResult : public ServiceResult
{
public:
struct Face
{
long faceId;
std::string faceIdStr;
std::string faceName;
std::vector<std::string> axis;
};
struct Face
{
long faceId;
std::string faceIdStr;
std::string faceName;
std::vector<std::string> axis;
};
ListPhotoFacesResult();
explicit ListPhotoFacesResult(const std::string &payload);
~ListPhotoFacesResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Face> getFaces()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Face> getFaces()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::vector<Face> faces_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Face> faces_;
};
}

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoStoresResult : public ServiceResult
{
public:
struct PhotoStore
{
struct Bucket
{
std::string state;
std::string region;
std::string name;
};
int autoCleanDays;
long defaultQuota;
std::string idStr;
long ctime;
long mtime;
long id;
bool autoCleanEnabled;
std::vector<PhotoStore::Bucket> buckets;
std::string name;
std::string remark;
};
struct PhotoStore
{
struct Bucket
{
std::string state;
std::string region;
std::string name;
};
int autoCleanDays;
long defaultQuota;
std::string idStr;
long ctime;
long mtime;
long id;
bool autoCleanEnabled;
std::vector<PhotoStore::Bucket> buckets;
std::string name;
std::string remark;
};
ListPhotoStoresResult();
explicit ListPhotoStoresResult(const std::string &payload);
~ListPhotoStoresResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<PhotoStore> getPhotoStores()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<PhotoStore> getPhotoStores()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<PhotoStore> photoStores_;
std::string code_;
std::string action_;
std::string message_;
std::vector<PhotoStore> photoStores_;
std::string code_;
};
}

View File

@@ -32,31 +32,31 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoTagsResult : public ServiceResult
{
public:
struct Tag
{
std::string idStr;
bool isSubTag;
std::string parentTag;
long id;
std::string name;
};
struct Tag
{
std::string idStr;
bool isSubTag;
std::string parentTag;
long id;
std::string name;
};
ListPhotoTagsResult();
explicit ListPhotoTagsResult(const std::string &payload);
~ListPhotoTagsResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Tag> getTags()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::vector<Tag> tags_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Tag> tags_;
};
}

View File

@@ -32,47 +32,47 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotosResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
ListPhotosResult();
explicit ListPhotosResult(const std::string &payload);
~ListPhotosResult();
std::vector<Photo> getPhotos()const;
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Photo> getPhotos()const;
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Photo> photos_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,33 +32,33 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListRegisteredTagsResult : public ServiceResult
{
public:
struct RegisteredTag
{
struct TagValue
{
std::string lang;
std::string text;
};
std::string tagKey;
std::vector<RegisteredTag::TagValue> tagValues;
};
struct RegisteredTag
{
struct TagValue
{
std::string lang;
std::string text;
};
std::string tagKey;
std::vector<RegisteredTag::TagValue> tagValues;
};
ListRegisteredTagsResult();
explicit ListRegisteredTagsResult(const std::string &payload);
~ListRegisteredTagsResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<RegisteredTag> getRegisteredTags()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<RegisteredTag> getRegisteredTags()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<RegisteredTag> registeredTags_;
std::string code_;
std::string action_;
std::string message_;
std::vector<RegisteredTag> registeredTags_;
std::string code_;
};
}

View File

@@ -32,33 +32,33 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagPhotosResult : public ServiceResult
{
public:
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
};
struct Result
{
long photoId;
std::string state;
std::string photoIdStr;
};
ListTagPhotosResult();
explicit ListTagPhotosResult(const std::string &payload);
~ListTagPhotosResult();
std::string getNextCursor()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<Result> getResults()const;
std::string getCode()const;
std::string getNextCursor()const;
int getTotalCount()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 nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
std::string nextCursor_;
int totalCount_;
std::string action_;
std::string message_;
std::vector<Result> results_;
std::string code_;
};
}

View File

@@ -32,47 +32,47 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagsResult : public ServiceResult
{
public:
struct Tag
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
std::vector<Cover> cover;
std::string idStr;
bool isSubTag;
std::string parentTag;
long id;
std::string name;
};
struct Tag
{
struct Cover
{
bool isVideo;
std::string idStr;
std::string state;
long ctime;
std::string title;
long mtime;
std::string fileId;
long height;
long id;
long width;
std::string md5;
std::string remark;
};
Cover cover;
std::string idStr;
bool isSubTag;
std::string parentTag;
long id;
std::string name;
};
ListTagsResult();
explicit ListTagsResult(const std::string &payload);
~ListTagsResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Tag> getTags()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::vector<Tag> tags_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Tag> tags_;
};
}

View File

@@ -32,45 +32,45 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinePhotosResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
ListTimeLinePhotosResult();
explicit ListTimeLinePhotosResult(const std::string &payload);
~ListTimeLinePhotosResult();
std::vector<Photo> getPhotos()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Photo> getPhotos()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Photo> photos_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,53 +32,53 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinesResult : public ServiceResult
{
public:
struct TimeLine
{
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
std::vector<TimeLine::Photo> photos;
int totalCount;
long endTime;
long startTime;
int photosCount;
};
struct TimeLine
{
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
long like;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
std::vector<TimeLine::Photo> photos;
int totalCount;
long endTime;
long startTime;
int photosCount;
};
ListTimeLinesResult();
explicit ListTimeLinesResult(const std::string &payload);
~ListTimeLinesResult();
std::vector<TimeLine> getTimeLines()const;
int getNextCursor()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<TimeLine> getTimeLines()const;
int getNextCursor()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<TimeLine> timeLines_;
int nextCursor_;
std::string action_;
std::string message_;
std::string code_;
std::vector<TimeLine> timeLines_;
int nextCursor_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT MergeFacesResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
MergeFacesResult();
explicit MergeFacesResult(const std::string &payload);
~MergeFacesResult();
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_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveAlbumPhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
MoveAlbumPhotosResult();
explicit MoveAlbumPhotosResult(const std::string &payload);
~MoveAlbumPhotosResult();
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_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveFacePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
MoveFacePhotosResult();
explicit MoveFacePhotosResult(const std::string &payload);
~MoveFacePhotosResult();
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_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ReactivatePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
ReactivatePhotosResult();
explicit ReactivatePhotosResult(const std::string &payload);
~ReactivatePhotosResult();
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_;
};
}

View File

@@ -32,42 +32,42 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT RegisterPhotoResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
RegisterPhotoResult();
explicit RegisterPhotoResult(const std::string &payload);
~RegisterPhotoResult();
std::string getAction()const;
std::string getMessage()const;
std::vector<Photo> getPhoto()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
Photo getPhoto()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::vector<Photo> photo_;
std::string code_;
std::string action_;
std::string message_;
Photo photo_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
RegisterTagResult();
explicit RegisterTagResult(const std::string &payload);
~RegisterTagResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveAlbumPhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
RemoveAlbumPhotosResult();
explicit RemoveAlbumPhotosResult(const std::string &payload);
~RemoveAlbumPhotosResult();
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_;
};
}

View File

@@ -32,30 +32,30 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveFacePhotosResult : public ServiceResult
{
public:
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
struct Result
{
std::string message;
std::string idStr;
long id;
std::string code;
};
RemoveFacePhotosResult();
explicit RemoveFacePhotosResult(const std::string &payload);
~RemoveFacePhotosResult();
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_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
RenameAlbumResult();
explicit RenameAlbumResult(const std::string &payload);
~RenameAlbumResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
RenameFaceResult();
explicit RenameFaceResult(const std::string &payload);
~RenameFaceResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -32,43 +32,43 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT SearchPhotosResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string state;
long ctime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
SearchPhotosResult();
explicit SearchPhotosResult(const std::string &payload);
~SearchPhotosResult();
std::vector<Photo> getPhotos()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::vector<Photo> getPhotos()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
std::vector<Photo> photos_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
SetAlbumCoverResult();
explicit SetAlbumCoverResult(const std::string &payload);
~SetAlbumCoverResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
SetFaceCoverResult();
explicit SetFaceCoverResult(const std::string &payload);
~SetFaceCoverResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
SetMeResult();
explicit SetMeResult(const std::string &payload);
~SetMeResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
SetQuotaResult();
explicit SetQuotaResult(const std::string &payload);
~SetQuotaResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
TagPhotoResult();
explicit TagPhotoResult(const std::string &payload);
~TagPhotoResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
ToggleFeaturesResult();
explicit ToggleFeaturesResult(const std::string &payload);
~ToggleFeaturesResult();
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string action_;
std::string message_;
std::string code_;
std::string action_;
std::string message_;
std::string code_;
};
}

View File

@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::CloudPhoto;
using namespace AlibabaCloud::CloudPhoto::Model;
namespace
{
const std::string SERVICE_NAME = "CloudPhoto";
}
CloudPhotoClient::CloudPhotoClient(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(), "cloudphoto");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudphoto");
}
CloudPhotoClient::CloudPhotoClient(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(), "cloudphoto");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudphoto");
}
CloudPhotoClient::CloudPhotoClient(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(), "cloudphoto");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudphoto");
}
CloudPhotoClient::~CloudPhotoClient()
{}
CoreClient::EndpointOutcome CloudPhotoClient::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);
}
CloudPhotoClient::RemoveFacePhotosOutcome CloudPhotoClient::removeFacePhotos(const RemoveFacePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemoveFacePhotosOutcome(endpointOutcome.error());
@@ -97,7 +89,7 @@ CloudPhotoClient::RemoveFacePhotosOutcomeCallable CloudPhotoClient::removeFacePh
CloudPhotoClient::ReactivatePhotosOutcome CloudPhotoClient::reactivatePhotos(const ReactivatePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReactivatePhotosOutcome(endpointOutcome.error());
@@ -133,7 +125,7 @@ CloudPhotoClient::ReactivatePhotosOutcomeCallable CloudPhotoClient::reactivatePh
CloudPhotoClient::GetQuotaOutcome CloudPhotoClient::getQuota(const GetQuotaRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetQuotaOutcome(endpointOutcome.error());
@@ -169,7 +161,7 @@ CloudPhotoClient::GetQuotaOutcomeCallable CloudPhotoClient::getQuotaCallable(con
CloudPhotoClient::GetThumbnailsOutcome CloudPhotoClient::getThumbnails(const GetThumbnailsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetThumbnailsOutcome(endpointOutcome.error());
@@ -205,7 +197,7 @@ CloudPhotoClient::GetThumbnailsOutcomeCallable CloudPhotoClient::getThumbnailsCa
CloudPhotoClient::DeleteFacesOutcome CloudPhotoClient::deleteFaces(const DeleteFacesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteFacesOutcome(endpointOutcome.error());
@@ -241,7 +233,7 @@ CloudPhotoClient::DeleteFacesOutcomeCallable CloudPhotoClient::deleteFacesCallab
CloudPhotoClient::AddAlbumPhotosOutcome CloudPhotoClient::addAlbumPhotos(const AddAlbumPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddAlbumPhotosOutcome(endpointOutcome.error());
@@ -277,7 +269,7 @@ CloudPhotoClient::AddAlbumPhotosOutcomeCallable CloudPhotoClient::addAlbumPhotos
CloudPhotoClient::ListFacesOutcome CloudPhotoClient::listFaces(const ListFacesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListFacesOutcome(endpointOutcome.error());
@@ -313,7 +305,7 @@ CloudPhotoClient::ListFacesOutcomeCallable CloudPhotoClient::listFacesCallable(c
CloudPhotoClient::MoveFacePhotosOutcome CloudPhotoClient::moveFacePhotos(const MoveFacePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MoveFacePhotosOutcome(endpointOutcome.error());
@@ -349,7 +341,7 @@ CloudPhotoClient::MoveFacePhotosOutcomeCallable CloudPhotoClient::moveFacePhotos
CloudPhotoClient::DeleteEventOutcome CloudPhotoClient::deleteEvent(const DeleteEventRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteEventOutcome(endpointOutcome.error());
@@ -385,7 +377,7 @@ CloudPhotoClient::DeleteEventOutcomeCallable CloudPhotoClient::deleteEventCallab
CloudPhotoClient::ListPhotosOutcome CloudPhotoClient::listPhotos(const ListPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPhotosOutcome(endpointOutcome.error());
@@ -421,7 +413,7 @@ CloudPhotoClient::ListPhotosOutcomeCallable CloudPhotoClient::listPhotosCallable
CloudPhotoClient::RegisterTagOutcome CloudPhotoClient::registerTag(const RegisterTagRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RegisterTagOutcome(endpointOutcome.error());
@@ -457,7 +449,7 @@ CloudPhotoClient::RegisterTagOutcomeCallable CloudPhotoClient::registerTagCallab
CloudPhotoClient::ListTimeLinePhotosOutcome CloudPhotoClient::listTimeLinePhotos(const ListTimeLinePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTimeLinePhotosOutcome(endpointOutcome.error());
@@ -493,7 +485,7 @@ CloudPhotoClient::ListTimeLinePhotosOutcomeCallable CloudPhotoClient::listTimeLi
CloudPhotoClient::DeletePhotosOutcome CloudPhotoClient::deletePhotos(const DeletePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePhotosOutcome(endpointOutcome.error());
@@ -529,7 +521,7 @@ CloudPhotoClient::DeletePhotosOutcomeCallable CloudPhotoClient::deletePhotosCall
CloudPhotoClient::MergeFacesOutcome CloudPhotoClient::mergeFaces(const MergeFacesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MergeFacesOutcome(endpointOutcome.error());
@@ -565,7 +557,7 @@ CloudPhotoClient::MergeFacesOutcomeCallable CloudPhotoClient::mergeFacesCallable
CloudPhotoClient::GetPhotosByMd5sOutcome CloudPhotoClient::getPhotosByMd5s(const GetPhotosByMd5sRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPhotosByMd5sOutcome(endpointOutcome.error());
@@ -599,9 +591,81 @@ CloudPhotoClient::GetPhotosByMd5sOutcomeCallable CloudPhotoClient::getPhotosByMd
return task->get_future();
}
CloudPhotoClient::FetchLibrariesOutcome CloudPhotoClient::fetchLibraries(const FetchLibrariesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FetchLibrariesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FetchLibrariesOutcome(FetchLibrariesResult(outcome.result()));
else
return FetchLibrariesOutcome(outcome.error());
}
void CloudPhotoClient::fetchLibrariesAsync(const FetchLibrariesRequest& request, const FetchLibrariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, fetchLibraries(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudPhotoClient::FetchLibrariesOutcomeCallable CloudPhotoClient::fetchLibrariesCallable(const FetchLibrariesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FetchLibrariesOutcome()>>(
[this, request]()
{
return this->fetchLibraries(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudPhotoClient::FetchAlbumTagPhotosOutcome CloudPhotoClient::fetchAlbumTagPhotos(const FetchAlbumTagPhotosRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FetchAlbumTagPhotosOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FetchAlbumTagPhotosOutcome(FetchAlbumTagPhotosResult(outcome.result()));
else
return FetchAlbumTagPhotosOutcome(outcome.error());
}
void CloudPhotoClient::fetchAlbumTagPhotosAsync(const FetchAlbumTagPhotosRequest& request, const FetchAlbumTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, fetchAlbumTagPhotos(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudPhotoClient::FetchAlbumTagPhotosOutcomeCallable CloudPhotoClient::fetchAlbumTagPhotosCallable(const FetchAlbumTagPhotosRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FetchAlbumTagPhotosOutcome()>>(
[this, request]()
{
return this->fetchAlbumTagPhotos(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudPhotoClient::CreateTransactionOutcome CloudPhotoClient::createTransaction(const CreateTransactionRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateTransactionOutcome(endpointOutcome.error());
@@ -637,7 +701,7 @@ CloudPhotoClient::CreateTransactionOutcomeCallable CloudPhotoClient::createTrans
CloudPhotoClient::InactivatePhotosOutcome CloudPhotoClient::inactivatePhotos(const InactivatePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InactivatePhotosOutcome(endpointOutcome.error());
@@ -673,7 +737,7 @@ CloudPhotoClient::InactivatePhotosOutcomeCallable CloudPhotoClient::inactivatePh
CloudPhotoClient::CreatePhotoStoreOutcome CloudPhotoClient::createPhotoStore(const CreatePhotoStoreRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreatePhotoStoreOutcome(endpointOutcome.error());
@@ -709,7 +773,7 @@ CloudPhotoClient::CreatePhotoStoreOutcomeCallable CloudPhotoClient::createPhotoS
CloudPhotoClient::TagPhotoOutcome CloudPhotoClient::tagPhoto(const TagPhotoRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TagPhotoOutcome(endpointOutcome.error());
@@ -745,7 +809,7 @@ CloudPhotoClient::TagPhotoOutcomeCallable CloudPhotoClient::tagPhotoCallable(con
CloudPhotoClient::GetLibraryOutcome CloudPhotoClient::getLibrary(const GetLibraryRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetLibraryOutcome(endpointOutcome.error());
@@ -781,7 +845,7 @@ CloudPhotoClient::GetLibraryOutcomeCallable CloudPhotoClient::getLibraryCallable
CloudPhotoClient::SetQuotaOutcome CloudPhotoClient::setQuota(const SetQuotaRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetQuotaOutcome(endpointOutcome.error());
@@ -817,7 +881,7 @@ CloudPhotoClient::SetQuotaOutcomeCallable CloudPhotoClient::setQuotaCallable(con
CloudPhotoClient::ListAlbumPhotosOutcome CloudPhotoClient::listAlbumPhotos(const ListAlbumPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAlbumPhotosOutcome(endpointOutcome.error());
@@ -853,7 +917,7 @@ CloudPhotoClient::ListAlbumPhotosOutcomeCallable CloudPhotoClient::listAlbumPhot
CloudPhotoClient::RemoveAlbumPhotosOutcome CloudPhotoClient::removeAlbumPhotos(const RemoveAlbumPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemoveAlbumPhotosOutcome(endpointOutcome.error());
@@ -889,7 +953,7 @@ CloudPhotoClient::RemoveAlbumPhotosOutcomeCallable CloudPhotoClient::removeAlbum
CloudPhotoClient::ListAlbumsOutcome CloudPhotoClient::listAlbums(const ListAlbumsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAlbumsOutcome(endpointOutcome.error());
@@ -925,7 +989,7 @@ CloudPhotoClient::ListAlbumsOutcomeCallable CloudPhotoClient::listAlbumsCallable
CloudPhotoClient::ListPhotoFacesOutcome CloudPhotoClient::listPhotoFaces(const ListPhotoFacesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPhotoFacesOutcome(endpointOutcome.error());
@@ -961,7 +1025,7 @@ CloudPhotoClient::ListPhotoFacesOutcomeCallable CloudPhotoClient::listPhotoFaces
CloudPhotoClient::RenameAlbumOutcome CloudPhotoClient::renameAlbum(const RenameAlbumRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RenameAlbumOutcome(endpointOutcome.error());
@@ -997,7 +1061,7 @@ CloudPhotoClient::RenameAlbumOutcomeCallable CloudPhotoClient::renameAlbumCallab
CloudPhotoClient::ActivatePhotosOutcome CloudPhotoClient::activatePhotos(const ActivatePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ActivatePhotosOutcome(endpointOutcome.error());
@@ -1033,7 +1097,7 @@ CloudPhotoClient::ActivatePhotosOutcomeCallable CloudPhotoClient::activatePhotos
CloudPhotoClient::GetPrivateAccessUrlsOutcome CloudPhotoClient::getPrivateAccessUrls(const GetPrivateAccessUrlsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPrivateAccessUrlsOutcome(endpointOutcome.error());
@@ -1069,7 +1133,7 @@ CloudPhotoClient::GetPrivateAccessUrlsOutcomeCallable CloudPhotoClient::getPriva
CloudPhotoClient::GetSimilarPhotosOutcome CloudPhotoClient::getSimilarPhotos(const GetSimilarPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetSimilarPhotosOutcome(endpointOutcome.error());
@@ -1105,7 +1169,7 @@ CloudPhotoClient::GetSimilarPhotosOutcomeCallable CloudPhotoClient::getSimilarPh
CloudPhotoClient::ListEventsOutcome CloudPhotoClient::listEvents(const ListEventsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListEventsOutcome(endpointOutcome.error());
@@ -1141,7 +1205,7 @@ CloudPhotoClient::ListEventsOutcomeCallable CloudPhotoClient::listEventsCallable
CloudPhotoClient::GetVideoCoverOutcome CloudPhotoClient::getVideoCover(const GetVideoCoverRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetVideoCoverOutcome(endpointOutcome.error());
@@ -1177,7 +1241,7 @@ CloudPhotoClient::GetVideoCoverOutcomeCallable CloudPhotoClient::getVideoCoverCa
CloudPhotoClient::GetFramedPhotoUrlsOutcome CloudPhotoClient::getFramedPhotoUrls(const GetFramedPhotoUrlsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetFramedPhotoUrlsOutcome(endpointOutcome.error());
@@ -1213,7 +1277,7 @@ CloudPhotoClient::GetFramedPhotoUrlsOutcomeCallable CloudPhotoClient::getFramedP
CloudPhotoClient::GetEventOutcome CloudPhotoClient::getEvent(const GetEventRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetEventOutcome(endpointOutcome.error());
@@ -1249,7 +1313,7 @@ CloudPhotoClient::GetEventOutcomeCallable CloudPhotoClient::getEventCallable(con
CloudPhotoClient::SetMeOutcome CloudPhotoClient::setMe(const SetMeRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetMeOutcome(endpointOutcome.error());
@@ -1285,7 +1349,7 @@ CloudPhotoClient::SetMeOutcomeCallable CloudPhotoClient::setMeCallable(const Set
CloudPhotoClient::ListTagPhotosOutcome CloudPhotoClient::listTagPhotos(const ListTagPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagPhotosOutcome(endpointOutcome.error());
@@ -1321,7 +1385,7 @@ CloudPhotoClient::ListTagPhotosOutcomeCallable CloudPhotoClient::listTagPhotosCa
CloudPhotoClient::DeleteAlbumsOutcome CloudPhotoClient::deleteAlbums(const DeleteAlbumsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteAlbumsOutcome(endpointOutcome.error());
@@ -1357,7 +1421,7 @@ CloudPhotoClient::DeleteAlbumsOutcomeCallable CloudPhotoClient::deleteAlbumsCall
CloudPhotoClient::GetDownloadUrlsOutcome CloudPhotoClient::getDownloadUrls(const GetDownloadUrlsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDownloadUrlsOutcome(endpointOutcome.error());
@@ -1393,7 +1457,7 @@ CloudPhotoClient::GetDownloadUrlsOutcomeCallable CloudPhotoClient::getDownloadUr
CloudPhotoClient::GetPhotosOutcome CloudPhotoClient::getPhotos(const GetPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPhotosOutcome(endpointOutcome.error());
@@ -1429,7 +1493,7 @@ CloudPhotoClient::GetPhotosOutcomeCallable CloudPhotoClient::getPhotosCallable(c
CloudPhotoClient::RegisterPhotoOutcome CloudPhotoClient::registerPhoto(const RegisterPhotoRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RegisterPhotoOutcome(endpointOutcome.error());
@@ -1465,7 +1529,7 @@ CloudPhotoClient::RegisterPhotoOutcomeCallable CloudPhotoClient::registerPhotoCa
CloudPhotoClient::EditPhotoStoreOutcome CloudPhotoClient::editPhotoStore(const EditPhotoStoreRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EditPhotoStoreOutcome(endpointOutcome.error());
@@ -1501,7 +1565,7 @@ CloudPhotoClient::EditPhotoStoreOutcomeCallable CloudPhotoClient::editPhotoStore
CloudPhotoClient::ListTimeLinesOutcome CloudPhotoClient::listTimeLines(const ListTimeLinesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTimeLinesOutcome(endpointOutcome.error());
@@ -1537,7 +1601,7 @@ CloudPhotoClient::ListTimeLinesOutcomeCallable CloudPhotoClient::listTimeLinesCa
CloudPhotoClient::SearchPhotosOutcome CloudPhotoClient::searchPhotos(const SearchPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SearchPhotosOutcome(endpointOutcome.error());
@@ -1573,7 +1637,7 @@ CloudPhotoClient::SearchPhotosOutcomeCallable CloudPhotoClient::searchPhotosCall
CloudPhotoClient::ToggleFeaturesOutcome CloudPhotoClient::toggleFeatures(const ToggleFeaturesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ToggleFeaturesOutcome(endpointOutcome.error());
@@ -1609,7 +1673,7 @@ CloudPhotoClient::ToggleFeaturesOutcomeCallable CloudPhotoClient::toggleFeatures
CloudPhotoClient::ListRegisteredTagsOutcome CloudPhotoClient::listRegisteredTags(const ListRegisteredTagsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRegisteredTagsOutcome(endpointOutcome.error());
@@ -1645,7 +1709,7 @@ CloudPhotoClient::ListRegisteredTagsOutcomeCallable CloudPhotoClient::listRegist
CloudPhotoClient::DeletePhotoStoreOutcome CloudPhotoClient::deletePhotoStore(const DeletePhotoStoreRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePhotoStoreOutcome(endpointOutcome.error());
@@ -1681,7 +1745,7 @@ CloudPhotoClient::DeletePhotoStoreOutcomeCallable CloudPhotoClient::deletePhotoS
CloudPhotoClient::CreateEventOutcome CloudPhotoClient::createEvent(const CreateEventRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateEventOutcome(endpointOutcome.error());
@@ -1717,7 +1781,7 @@ CloudPhotoClient::CreateEventOutcomeCallable CloudPhotoClient::createEventCallab
CloudPhotoClient::GetPhotoStoreOutcome CloudPhotoClient::getPhotoStore(const GetPhotoStoreRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPhotoStoreOutcome(endpointOutcome.error());
@@ -1753,7 +1817,7 @@ CloudPhotoClient::GetPhotoStoreOutcomeCallable CloudPhotoClient::getPhotoStoreCa
CloudPhotoClient::ListMomentPhotosOutcome CloudPhotoClient::listMomentPhotos(const ListMomentPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListMomentPhotosOutcome(endpointOutcome.error());
@@ -1789,7 +1853,7 @@ CloudPhotoClient::ListMomentPhotosOutcomeCallable CloudPhotoClient::listMomentPh
CloudPhotoClient::GetThumbnailOutcome CloudPhotoClient::getThumbnail(const GetThumbnailRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetThumbnailOutcome(endpointOutcome.error());
@@ -1825,7 +1889,7 @@ CloudPhotoClient::GetThumbnailOutcomeCallable CloudPhotoClient::getThumbnailCall
CloudPhotoClient::SetFaceCoverOutcome CloudPhotoClient::setFaceCover(const SetFaceCoverRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetFaceCoverOutcome(endpointOutcome.error());
@@ -1861,7 +1925,7 @@ CloudPhotoClient::SetFaceCoverOutcomeCallable CloudPhotoClient::setFaceCoverCall
CloudPhotoClient::CreatePhotoOutcome CloudPhotoClient::createPhoto(const CreatePhotoRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreatePhotoOutcome(endpointOutcome.error());
@@ -1897,7 +1961,7 @@ CloudPhotoClient::CreatePhotoOutcomeCallable CloudPhotoClient::createPhotoCallab
CloudPhotoClient::MoveAlbumPhotosOutcome CloudPhotoClient::moveAlbumPhotos(const MoveAlbumPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MoveAlbumPhotosOutcome(endpointOutcome.error());
@@ -1933,7 +1997,7 @@ CloudPhotoClient::MoveAlbumPhotosOutcomeCallable CloudPhotoClient::moveAlbumPhot
CloudPhotoClient::EditEventOutcome CloudPhotoClient::editEvent(const EditEventRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EditEventOutcome(endpointOutcome.error());
@@ -1969,7 +2033,7 @@ CloudPhotoClient::EditEventOutcomeCallable CloudPhotoClient::editEventCallable(c
CloudPhotoClient::GetDownloadUrlOutcome CloudPhotoClient::getDownloadUrl(const GetDownloadUrlRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDownloadUrlOutcome(endpointOutcome.error());
@@ -2005,7 +2069,7 @@ CloudPhotoClient::GetDownloadUrlOutcomeCallable CloudPhotoClient::getDownloadUrl
CloudPhotoClient::CreateAlbumOutcome CloudPhotoClient::createAlbum(const CreateAlbumRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateAlbumOutcome(endpointOutcome.error());
@@ -2041,7 +2105,7 @@ CloudPhotoClient::CreateAlbumOutcomeCallable CloudPhotoClient::createAlbumCallab
CloudPhotoClient::ListPhotoTagsOutcome CloudPhotoClient::listPhotoTags(const ListPhotoTagsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPhotoTagsOutcome(endpointOutcome.error());
@@ -2077,7 +2141,7 @@ CloudPhotoClient::ListPhotoTagsOutcomeCallable CloudPhotoClient::listPhotoTagsCa
CloudPhotoClient::LikePhotoOutcome CloudPhotoClient::likePhoto(const LikePhotoRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LikePhotoOutcome(endpointOutcome.error());
@@ -2113,7 +2177,7 @@ CloudPhotoClient::LikePhotoOutcomeCallable CloudPhotoClient::likePhotoCallable(c
CloudPhotoClient::ListPhotoStoresOutcome CloudPhotoClient::listPhotoStores(const ListPhotoStoresRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPhotoStoresOutcome(endpointOutcome.error());
@@ -2149,7 +2213,7 @@ CloudPhotoClient::ListPhotoStoresOutcomeCallable CloudPhotoClient::listPhotoStor
CloudPhotoClient::GetAlbumsByNamesOutcome CloudPhotoClient::getAlbumsByNames(const GetAlbumsByNamesRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAlbumsByNamesOutcome(endpointOutcome.error());
@@ -2185,7 +2249,7 @@ CloudPhotoClient::GetAlbumsByNamesOutcomeCallable CloudPhotoClient::getAlbumsByN
CloudPhotoClient::GetPublicAccessUrlsOutcome CloudPhotoClient::getPublicAccessUrls(const GetPublicAccessUrlsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPublicAccessUrlsOutcome(endpointOutcome.error());
@@ -2221,7 +2285,7 @@ CloudPhotoClient::GetPublicAccessUrlsOutcomeCallable CloudPhotoClient::getPublic
CloudPhotoClient::EditPhotosOutcome CloudPhotoClient::editPhotos(const EditPhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EditPhotosOutcome(endpointOutcome.error());
@@ -2257,7 +2321,7 @@ CloudPhotoClient::EditPhotosOutcomeCallable CloudPhotoClient::editPhotosCallable
CloudPhotoClient::SetAlbumCoverOutcome CloudPhotoClient::setAlbumCover(const SetAlbumCoverRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetAlbumCoverOutcome(endpointOutcome.error());
@@ -2293,7 +2357,7 @@ CloudPhotoClient::SetAlbumCoverOutcomeCallable CloudPhotoClient::setAlbumCoverCa
CloudPhotoClient::RenameFaceOutcome CloudPhotoClient::renameFace(const RenameFaceRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RenameFaceOutcome(endpointOutcome.error());
@@ -2329,7 +2393,7 @@ CloudPhotoClient::RenameFaceOutcomeCallable CloudPhotoClient::renameFaceCallable
CloudPhotoClient::ListMomentsOutcome CloudPhotoClient::listMoments(const ListMomentsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListMomentsOutcome(endpointOutcome.error());
@@ -2365,7 +2429,7 @@ CloudPhotoClient::ListMomentsOutcomeCallable CloudPhotoClient::listMomentsCallab
CloudPhotoClient::ListTagsOutcome CloudPhotoClient::listTags(const ListTagsRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagsOutcome(endpointOutcome.error());
@@ -2401,7 +2465,7 @@ CloudPhotoClient::ListTagsOutcomeCallable CloudPhotoClient::listTagsCallable(con
CloudPhotoClient::ListFacePhotosOutcome CloudPhotoClient::listFacePhotos(const ListFacePhotosRequest &request) const
{
auto endpointOutcome = endpoint();
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListFacePhotosOutcome(endpointOutcome.error());

View File

@@ -40,46 +40,46 @@ void ActivatePhotosResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string ActivatePhotosResult::getAction()const
{
return action_;
}
std::string ActivatePhotosResult::getMessage()const
{
return message_;
}
std::vector<ActivatePhotosResult::Result> ActivatePhotosResult::getResults()const
{
return results_;
}
std::string ActivatePhotosResult::getCode()const
{
return code_;
}
std::string ActivatePhotosResult::getAction()const
{
return action_;
}
std::string ActivatePhotosResult::getMessage()const
{
return message_;
}
std::vector<ActivatePhotosResult::Result> ActivatePhotosResult::getResults()const
{
return results_;
}
std::string ActivatePhotosResult::getCode()const
{
return code_;
}

View File

@@ -40,46 +40,46 @@ void AddAlbumPhotosResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string AddAlbumPhotosResult::getAction()const
{
return action_;
}
std::string AddAlbumPhotosResult::getMessage()const
{
return message_;
}
std::vector<AddAlbumPhotosResult::Result> AddAlbumPhotosResult::getResults()const
{
return results_;
}
std::string AddAlbumPhotosResult::getCode()const
{
return code_;
}
std::string AddAlbumPhotosResult::getAction()const
{
return action_;
}
std::string AddAlbumPhotosResult::getMessage()const
{
return message_;
}
std::vector<AddAlbumPhotosResult::Result> AddAlbumPhotosResult::getResults()const
{
return results_;
}
std::string AddAlbumPhotosResult::getCode()const
{
return code_;
}

View File

@@ -40,84 +40,74 @@ void CreateAlbumResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAlbum = value["Album"];
for (auto value : allAlbum)
{
Album albumObject;
if(!value["Id"].isNull())
albumObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
albumObject.idStr = value["IdStr"].asString();
if(!value["Name"].isNull())
albumObject.name = value["Name"].asString();
if(!value["State"].isNull())
albumObject.state = value["State"].asString();
if(!value["Remark"].isNull())
albumObject.remark = value["Remark"].asString();
if(!value["PhotosCount"].isNull())
albumObject.photosCount = std::stol(value["PhotosCount"].asString());
if(!value["Ctime"].isNull())
albumObject.ctime = std::stol(value["Ctime"].asString());
if(!value["Mtime"].isNull())
albumObject.mtime = std::stol(value["Mtime"].asString());
auto allCover = value["Cover"];
for (auto value : allCover)
{
Album::Cover coverObject;
if(!value["Id"].isNull())
coverObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
coverObject.idStr = value["IdStr"].asString();
if(!value["Title"].isNull())
coverObject.title = value["Title"].asString();
if(!value["FileId"].isNull())
coverObject.fileId = value["FileId"].asString();
if(!value["State"].isNull())
coverObject.state = value["State"].asString();
if(!value["Md5"].isNull())
coverObject.md5 = value["Md5"].asString();
if(!value["IsVideo"].isNull())
coverObject.isVideo = value["IsVideo"].asString() == "true";
if(!value["Width"].isNull())
coverObject.width = std::stol(value["Width"].asString());
if(!value["Height"].isNull())
coverObject.height = std::stol(value["Height"].asString());
if(!value["Ctime"].isNull())
coverObject.ctime = std::stol(value["Ctime"].asString());
if(!value["Mtime"].isNull())
coverObject.mtime = std::stol(value["Mtime"].asString());
if(!value["Remark"].isNull())
coverObject.remark = value["Remark"].asString();
albumObject.cover.push_back(coverObject);
}
album_.push_back(albumObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto albumNode = value["Album"];
if(!albumNode["Id"].isNull())
album_.id = std::stol(albumNode["Id"].asString());
if(!albumNode["IdStr"].isNull())
album_.idStr = albumNode["IdStr"].asString();
if(!albumNode["Name"].isNull())
album_.name = albumNode["Name"].asString();
if(!albumNode["State"].isNull())
album_.state = albumNode["State"].asString();
if(!albumNode["Remark"].isNull())
album_.remark = albumNode["Remark"].asString();
if(!albumNode["PhotosCount"].isNull())
album_.photosCount = std::stol(albumNode["PhotosCount"].asString());
if(!albumNode["Ctime"].isNull())
album_.ctime = std::stol(albumNode["Ctime"].asString());
if(!albumNode["Mtime"].isNull())
album_.mtime = std::stol(albumNode["Mtime"].asString());
auto coverNode = albumNode["Cover"];
if(!coverNode["Id"].isNull())
album_.cover.id = std::stol(coverNode["Id"].asString());
if(!coverNode["IdStr"].isNull())
album_.cover.idStr = coverNode["IdStr"].asString();
if(!coverNode["Title"].isNull())
album_.cover.title = coverNode["Title"].asString();
if(!coverNode["FileId"].isNull())
album_.cover.fileId = coverNode["FileId"].asString();
if(!coverNode["State"].isNull())
album_.cover.state = coverNode["State"].asString();
if(!coverNode["Md5"].isNull())
album_.cover.md5 = coverNode["Md5"].asString();
if(!coverNode["IsVideo"].isNull())
album_.cover.isVideo = coverNode["IsVideo"].asString() == "true";
if(!coverNode["Width"].isNull())
album_.cover.width = std::stol(coverNode["Width"].asString());
if(!coverNode["Height"].isNull())
album_.cover.height = std::stol(coverNode["Height"].asString());
if(!coverNode["Ctime"].isNull())
album_.cover.ctime = std::stol(coverNode["Ctime"].asString());
if(!coverNode["Mtime"].isNull())
album_.cover.mtime = std::stol(coverNode["Mtime"].asString());
if(!coverNode["Remark"].isNull())
album_.cover.remark = coverNode["Remark"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string CreateAlbumResult::getAction()const
{
return action_;
}
std::string CreateAlbumResult::getMessage()const
{
return message_;
}
std::vector<CreateAlbumResult::Album> CreateAlbumResult::getAlbum()const
{
return album_;
}
std::string CreateAlbumResult::getCode()const
{
return code_;
}
std::string CreateAlbumResult::getAction()const
{
return action_;
}
std::string CreateAlbumResult::getMessage()const
{
return message_;
}
CreateAlbumResult::Album CreateAlbumResult::getAlbum()const
{
return album_;
}
std::string CreateAlbumResult::getCode()const
{
return code_;
}

View File

@@ -40,70 +40,65 @@ void CreateEventResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEvent = value["Event"];
for (auto value : allEvent)
{
Event eventObject;
if(!value["Id"].isNull())
eventObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
eventObject.idStr = value["IdStr"].asString();
if(!value["Title"].isNull())
eventObject.title = value["Title"].asString();
if(!value["BannerPhotoId"].isNull())
eventObject.bannerPhotoId = value["BannerPhotoId"].asString();
if(!value["Identity"].isNull())
eventObject.identity = value["Identity"].asString();
if(!value["SplashPhotoId"].isNull())
eventObject.splashPhotoId = value["SplashPhotoId"].asString();
if(!value["State"].isNull())
eventObject.state = value["State"].asString();
if(!value["WeixinTitle"].isNull())
eventObject.weixinTitle = value["WeixinTitle"].asString();
if(!value["WatermarkPhotoId"].isNull())
eventObject.watermarkPhotoId = value["WatermarkPhotoId"].asString();
if(!value["StartAt"].isNull())
eventObject.startAt = std::stol(value["StartAt"].asString());
if(!value["EndAt"].isNull())
eventObject.endAt = std::stol(value["EndAt"].asString());
if(!value["Ctime"].isNull())
eventObject.ctime = std::stol(value["Ctime"].asString());
if(!value["Mtime"].isNull())
eventObject.mtime = std::stol(value["Mtime"].asString());
if(!value["ViewsCount"].isNull())
eventObject.viewsCount = std::stol(value["ViewsCount"].asString());
if(!value["LibraryId"].isNull())
eventObject.libraryId = value["LibraryId"].asString();
if(!value["IdStr"].isNull())
eventObject.idStr1 = value["IdStr"].asString();
event_.push_back(eventObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto eventNode = value["Event"];
if(!eventNode["Id"].isNull())
event_.id = std::stol(eventNode["Id"].asString());
if(!eventNode["IdStr"].isNull())
event_.idStr = eventNode["IdStr"].asString();
if(!eventNode["Title"].isNull())
event_.title = eventNode["Title"].asString();
if(!eventNode["BannerPhotoId"].isNull())
event_.bannerPhotoId = eventNode["BannerPhotoId"].asString();
if(!eventNode["Identity"].isNull())
event_.identity = eventNode["Identity"].asString();
if(!eventNode["SplashPhotoId"].isNull())
event_.splashPhotoId = eventNode["SplashPhotoId"].asString();
if(!eventNode["State"].isNull())
event_.state = eventNode["State"].asString();
if(!eventNode["WeixinTitle"].isNull())
event_.weixinTitle = eventNode["WeixinTitle"].asString();
if(!eventNode["WatermarkPhotoId"].isNull())
event_.watermarkPhotoId = eventNode["WatermarkPhotoId"].asString();
if(!eventNode["StartAt"].isNull())
event_.startAt = std::stol(eventNode["StartAt"].asString());
if(!eventNode["EndAt"].isNull())
event_.endAt = std::stol(eventNode["EndAt"].asString());
if(!eventNode["Ctime"].isNull())
event_.ctime = std::stol(eventNode["Ctime"].asString());
if(!eventNode["Mtime"].isNull())
event_.mtime = std::stol(eventNode["Mtime"].asString());
if(!eventNode["ViewsCount"].isNull())
event_.viewsCount = std::stol(eventNode["ViewsCount"].asString());
if(!eventNode["LibraryId"].isNull())
event_.libraryId = eventNode["LibraryId"].asString();
if(!eventNode["IdStr"].isNull())
event_.idStr1 = eventNode["IdStr"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string CreateEventResult::getAction()const
{
return action_;
}
std::string CreateEventResult::getMessage()const
{
return message_;
}
std::vector<CreateEventResult::Event> CreateEventResult::getEvent()const
{
return event_;
}
std::string CreateEventResult::getCode()const
{
return code_;
}
std::string CreateEventResult::getAction()const
{
return action_;
}
std::string CreateEventResult::getMessage()const
{
return message_;
}
CreateEventResult::Event CreateEventResult::getEvent()const
{
return event_;
}
std::string CreateEventResult::getCode()const
{
return code_;
}

View File

@@ -25,6 +25,17 @@ CreatePhotoRequest::CreatePhotoRequest() :
CreatePhotoRequest::~CreatePhotoRequest()
{}
long CreatePhotoRequest::getTakenAt()const
{
return takenAt_;
}
void CreatePhotoRequest::setTakenAt(long takenAt)
{
takenAt_ = takenAt;
setParameter("TakenAt", std::to_string(takenAt));
}
std::string CreatePhotoRequest::getPhotoTitle()const
{
return photoTitle_;

View File

@@ -40,70 +40,65 @@ void CreatePhotoResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPhoto = value["Photo"];
for (auto value : allPhoto)
{
Photo photoObject;
if(!value["Id"].isNull())
photoObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
photoObject.idStr = value["IdStr"].asString();
if(!value["Title"].isNull())
photoObject.title = value["Title"].asString();
if(!value["FileId"].isNull())
photoObject.fileId = value["FileId"].asString();
if(!value["Location"].isNull())
photoObject.location = value["Location"].asString();
if(!value["State"].isNull())
photoObject.state = value["State"].asString();
if(!value["Md5"].isNull())
photoObject.md5 = value["Md5"].asString();
if(!value["IsVideo"].isNull())
photoObject.isVideo = value["IsVideo"].asString() == "true";
if(!value["Size"].isNull())
photoObject.size = std::stol(value["Size"].asString());
if(!value["Remark"].isNull())
photoObject.remark = value["Remark"].asString();
if(!value["Width"].isNull())
photoObject.width = std::stol(value["Width"].asString());
if(!value["Height"].isNull())
photoObject.height = std::stol(value["Height"].asString());
if(!value["Ctime"].isNull())
photoObject.ctime = std::stol(value["Ctime"].asString());
if(!value["Mtime"].isNull())
photoObject.mtime = std::stol(value["Mtime"].asString());
if(!value["TakenAt"].isNull())
photoObject.takenAt = std::stol(value["TakenAt"].asString());
if(!value["ShareExpireTime"].isNull())
photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString());
photo_.push_back(photoObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto photoNode = value["Photo"];
if(!photoNode["Id"].isNull())
photo_.id = std::stol(photoNode["Id"].asString());
if(!photoNode["IdStr"].isNull())
photo_.idStr = photoNode["IdStr"].asString();
if(!photoNode["Title"].isNull())
photo_.title = photoNode["Title"].asString();
if(!photoNode["FileId"].isNull())
photo_.fileId = photoNode["FileId"].asString();
if(!photoNode["Location"].isNull())
photo_.location = photoNode["Location"].asString();
if(!photoNode["State"].isNull())
photo_.state = photoNode["State"].asString();
if(!photoNode["Md5"].isNull())
photo_.md5 = photoNode["Md5"].asString();
if(!photoNode["IsVideo"].isNull())
photo_.isVideo = photoNode["IsVideo"].asString() == "true";
if(!photoNode["Size"].isNull())
photo_.size = std::stol(photoNode["Size"].asString());
if(!photoNode["Remark"].isNull())
photo_.remark = photoNode["Remark"].asString();
if(!photoNode["Width"].isNull())
photo_.width = std::stol(photoNode["Width"].asString());
if(!photoNode["Height"].isNull())
photo_.height = std::stol(photoNode["Height"].asString());
if(!photoNode["Ctime"].isNull())
photo_.ctime = std::stol(photoNode["Ctime"].asString());
if(!photoNode["Mtime"].isNull())
photo_.mtime = std::stol(photoNode["Mtime"].asString());
if(!photoNode["TakenAt"].isNull())
photo_.takenAt = std::stol(photoNode["TakenAt"].asString());
if(!photoNode["ShareExpireTime"].isNull())
photo_.shareExpireTime = std::stol(photoNode["ShareExpireTime"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string CreatePhotoResult::getAction()const
{
return action_;
}
std::string CreatePhotoResult::getMessage()const
{
return message_;
}
std::vector<CreatePhotoResult::Photo> CreatePhotoResult::getPhoto()const
{
return photo_;
}
std::string CreatePhotoResult::getCode()const
{
return code_;
}
std::string CreatePhotoResult::getAction()const
{
return action_;
}
std::string CreatePhotoResult::getMessage()const
{
return message_;
}
CreatePhotoResult::Photo CreatePhotoResult::getPhoto()const
{
return photo_;
}
std::string CreatePhotoResult::getCode()const
{
return code_;
}

View File

@@ -40,27 +40,27 @@ void CreatePhotoStoreResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string CreatePhotoStoreResult::getAction()const
{
return action_;
}
std::string CreatePhotoStoreResult::getMessage()const
{
return message_;
}
std::string CreatePhotoStoreResult::getCode()const
{
return code_;
}
std::string CreatePhotoStoreResult::getAction()const
{
return action_;
}
std::string CreatePhotoStoreResult::getMessage()const
{
return message_;
}
std::string CreatePhotoStoreResult::getCode()const
{
return code_;
}

View File

@@ -40,60 +40,50 @@ void CreateTransactionResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTransaction = value["Transaction"];
for (auto value : allTransaction)
{
Transaction transactionObject;
auto allUpload = value["Upload"];
for (auto value : allUpload)
{
Transaction::Upload uploadObject;
if(!value["Bucket"].isNull())
uploadObject.bucket = value["Bucket"].asString();
if(!value["FileId"].isNull())
uploadObject.fileId = value["FileId"].asString();
if(!value["OssEndpoint"].isNull())
uploadObject.ossEndpoint = value["OssEndpoint"].asString();
if(!value["ObjectKey"].isNull())
uploadObject.objectKey = value["ObjectKey"].asString();
if(!value["SessionId"].isNull())
uploadObject.sessionId = value["SessionId"].asString();
if(!value["AccessKeyId"].isNull())
uploadObject.accessKeyId = value["AccessKeyId"].asString();
if(!value["AccessKeySecret"].isNull())
uploadObject.accessKeySecret = value["AccessKeySecret"].asString();
if(!value["StsToken"].isNull())
uploadObject.stsToken = value["StsToken"].asString();
transactionObject.upload.push_back(uploadObject);
}
transaction_.push_back(transactionObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto transactionNode = value["Transaction"];
auto uploadNode = transactionNode["Upload"];
if(!uploadNode["Bucket"].isNull())
transaction_.upload.bucket = uploadNode["Bucket"].asString();
if(!uploadNode["FileId"].isNull())
transaction_.upload.fileId = uploadNode["FileId"].asString();
if(!uploadNode["OssEndpoint"].isNull())
transaction_.upload.ossEndpoint = uploadNode["OssEndpoint"].asString();
if(!uploadNode["ObjectKey"].isNull())
transaction_.upload.objectKey = uploadNode["ObjectKey"].asString();
if(!uploadNode["SessionId"].isNull())
transaction_.upload.sessionId = uploadNode["SessionId"].asString();
if(!uploadNode["AccessKeyId"].isNull())
transaction_.upload.accessKeyId = uploadNode["AccessKeyId"].asString();
if(!uploadNode["AccessKeySecret"].isNull())
transaction_.upload.accessKeySecret = uploadNode["AccessKeySecret"].asString();
if(!uploadNode["StsToken"].isNull())
transaction_.upload.stsToken = uploadNode["StsToken"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string CreateTransactionResult::getAction()const
{
return action_;
}
std::vector<CreateTransactionResult::Transaction> CreateTransactionResult::getTransaction()const
{
return transaction_;
}
std::string CreateTransactionResult::getMessage()const
{
return message_;
}
std::string CreateTransactionResult::getCode()const
{
return code_;
}
std::string CreateTransactionResult::getAction()const
{
return action_;
}
CreateTransactionResult::Transaction CreateTransactionResult::getTransaction()const
{
return transaction_;
}
std::string CreateTransactionResult::getMessage()const
{
return message_;
}
std::string CreateTransactionResult::getCode()const
{
return code_;
}

View File

@@ -40,46 +40,46 @@ void DeleteAlbumsResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string DeleteAlbumsResult::getAction()const
{
return action_;
}
std::string DeleteAlbumsResult::getMessage()const
{
return message_;
}
std::vector<DeleteAlbumsResult::Result> DeleteAlbumsResult::getResults()const
{
return results_;
}
std::string DeleteAlbumsResult::getCode()const
{
return code_;
}
std::string DeleteAlbumsResult::getAction()const
{
return action_;
}
std::string DeleteAlbumsResult::getMessage()const
{
return message_;
}
std::vector<DeleteAlbumsResult::Result> DeleteAlbumsResult::getResults()const
{
return results_;
}
std::string DeleteAlbumsResult::getCode()const
{
return code_;
}

View File

@@ -40,27 +40,27 @@ void DeleteEventResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string DeleteEventResult::getAction()const
{
return action_;
}
std::string DeleteEventResult::getMessage()const
{
return message_;
}
std::string DeleteEventResult::getCode()const
{
return code_;
}
std::string DeleteEventResult::getAction()const
{
return action_;
}
std::string DeleteEventResult::getMessage()const
{
return message_;
}
std::string DeleteEventResult::getCode()const
{
return code_;
}

View File

@@ -40,46 +40,46 @@ void DeleteFacesResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
Result resultsObject;
if(!value["Id"].isNull())
resultsObject.id = std::stol(value["Id"].asString());
if(!value["IdStr"].isNull())
resultsObject.idStr = value["IdStr"].asString();
if(!value["Code"].isNull())
resultsObject.code = value["Code"].asString();
if(!value["Message"].isNull())
resultsObject.message = value["Message"].asString();
results_.push_back(resultsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Action"].isNull())
action_ = value["Action"].asString();
}
std::string DeleteFacesResult::getAction()const
{
return action_;
}
std::string DeleteFacesResult::getMessage()const
{
return message_;
}
std::vector<DeleteFacesResult::Result> DeleteFacesResult::getResults()const
{
return results_;
}
std::string DeleteFacesResult::getCode()const
{
return code_;
}
std::string DeleteFacesResult::getAction()const
{
return action_;
}
std::string DeleteFacesResult::getMessage()const
{
return message_;
}
std::vector<DeleteFacesResult::Result> DeleteFacesResult::getResults()const
{
return results_;
}
std::string DeleteFacesResult::getCode()const
{
return code_;
}

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