Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1e11dbb5b | ||
|
|
5fb8057a45 | ||
|
|
fa0fe1ae07 | ||
|
|
89a2517800 | ||
|
|
d5af7a4c61 | ||
|
|
ca3cd3584e | ||
|
|
5dbd88a76d | ||
|
|
213faf8f4f | ||
|
|
d42d229efb | ||
|
|
bd57cca01a | ||
|
|
4b57f18912 | ||
|
|
4134095a0d | ||
|
|
b1e2b491e9 | ||
|
|
08961b2ff9 | ||
|
|
25cc56a91b | ||
|
|
1435718263 | ||
|
|
99a78222f2 | ||
|
|
4bfb40e4b1 | ||
|
|
1a4543ff56 | ||
|
|
779ed847e3 | ||
|
|
20fb930aaf | ||
|
|
a09a6e094a | ||
|
|
d78148b8be | ||
|
|
47cbc71c7f | ||
|
|
63135520bc | ||
|
|
d68d8044d3 | ||
|
|
7e07a62c24 | ||
|
|
6007aa1ea1 | ||
|
|
2de2101c40 | ||
|
|
c0bae997ea | ||
|
|
0060c7ff27 | ||
|
|
621eb3945b | ||
|
|
9b557e564e | ||
|
|
605dc1cf5a | ||
|
|
832a2a7525 | ||
|
|
4f195142c9 | ||
|
|
972958c1e3 | ||
|
|
c2bfeb1216 | ||
|
|
8383b37798 | ||
|
|
8ca3ea3fdf | ||
|
|
f5a4f56f2c | ||
|
|
ac0162b3c7 | ||
|
|
bd60fe6309 | ||
|
|
e2e36ad513 | ||
|
|
ad478b719d | ||
|
|
b4ecf9926e | ||
|
|
6b5999e621 | ||
|
|
8b83291bdb | ||
|
|
77ff21c58c | ||
|
|
624c480a29 |
157
CHANGELOG
157
CHANGELOG
@@ -1,3 +1,160 @@
|
||||
2022-03-03 Version: 1.36.1069
|
||||
- Release RecognizeVideoCastCrewList.
|
||||
|
||||
2022-02-24 Version: 1.36.1068
|
||||
- Add UpdateAnycastEipAddressAssociations Interface.
|
||||
|
||||
2022-02-23 Version: 1.36.1067
|
||||
- SDK.
|
||||
|
||||
2022-02-23 Version: 1.36.1066
|
||||
- Add AuthId.
|
||||
|
||||
2022-02-23 Version: 1.36.1065
|
||||
- Support remediation.
|
||||
|
||||
2022-02-22 Version: 1.36.1064
|
||||
- Deprecated the OnsTopicUpdate api, and will be offline soon.
|
||||
|
||||
2022-02-22 Version: 1.36.1063
|
||||
- Support RefreshProxyLevel.
|
||||
|
||||
2022-02-21 Version: 1.36.1062
|
||||
- Add event tasks.
|
||||
- DescribeInstance taskProgress.
|
||||
|
||||
2022-02-21 Version: 1.36.1061
|
||||
- Bugfix QueryMoniter.
|
||||
|
||||
2022-02-21 Version: 1.36.1060
|
||||
- Add DleteNacosInstance.
|
||||
- Change CreateCluster parameter.
|
||||
- Change UpdateNacosInstance errorCode.
|
||||
|
||||
2022-02-18 Version: 1.36.1059
|
||||
- Iot_20180120 build sdk.
|
||||
|
||||
2022-02-18 Version: 1.36.1058
|
||||
- Add Gis open service add data api.
|
||||
|
||||
2022-02-17 Version: 1.36.1057
|
||||
- Adjusted the call frequency limit of some APIs.
|
||||
|
||||
2022-02-16 Version: 1.36.1056
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2022-02-16 Version: 1.36.1055
|
||||
- Generated 2021-03-20 for `Emr`.
|
||||
|
||||
2022-02-16 Version: 1.36.1054
|
||||
- Fix normandy query api.
|
||||
|
||||
2022-02-11 Version: 1.36.1053
|
||||
- Add OTA API, including ReupgradeOTATask.
|
||||
|
||||
2022-02-10 Version: 1.36.1052
|
||||
- Add deleteNacosInstance.
|
||||
|
||||
2022-02-09 Version: 1.36.1051
|
||||
- Added api QueryWorksBloodRelationship.
|
||||
|
||||
2022-02-08 Version: 1.36.1050
|
||||
- Supported New Features.
|
||||
|
||||
2022-02-08 Version: 1.36.1049
|
||||
- Iot_20180120 oldversion sdk.
|
||||
|
||||
2022-01-28 Version: 1.36.1048
|
||||
- Support cloud disk.
|
||||
|
||||
2022-01-28 Version: 1.36.1047
|
||||
- Update by SDK platform.
|
||||
|
||||
2022-01-28 Version: 1.36.1046
|
||||
- Support SIP phone management.
|
||||
|
||||
2022-01-26 Version: 1.36.1045
|
||||
- CreateContact API Add ContactGroupName.
|
||||
|
||||
2022-01-26 Version: 1.36.1044
|
||||
- Fix some bugs.
|
||||
|
||||
2022-01-25 Version: 1.36.1043
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2022-01-25 Version: 1.36.1042
|
||||
- Supported new features for outbound.
|
||||
|
||||
2022-01-25 Version: 1.36.1041
|
||||
- Support Latest APIs.
|
||||
|
||||
2022-01-25 Version: 1.36.1040
|
||||
- Add APIs, include, ListSharedReports, ListFavoriteReports, ListRecentViewReports, CreateTicket, QueryTicketInfo, UpdateTicketNum, DelayTicketExpireTime, DelayTicketExpireTime.
|
||||
|
||||
2022-01-25 Version: 1.36.1039
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2022-01-25 Version: 1.36.1038
|
||||
- Supported Get Worker List.
|
||||
- Execute Job Support Designate Machine.
|
||||
- Job Interface Add Config.
|
||||
|
||||
2022-01-25 Version: 1.36.1037
|
||||
- Update DetectFace.
|
||||
|
||||
2022-01-21 Version: 1.36.1036
|
||||
- Supported new features etc.
|
||||
|
||||
2022-01-21 Version: 1.36.1035
|
||||
- Add Event Rule sql filter.
|
||||
|
||||
2022-01-21 Version: 1.36.1034
|
||||
- Add Event Rule sql filter.
|
||||
|
||||
2022-01-21 Version: 1.36.1033
|
||||
- Supported RestartDataCorrectSQLJob,PauseDataCorrectSQLJob API.
|
||||
- Supported ListDataCorrectPreCheckSQL to return tableNames information.
|
||||
|
||||
2022-01-19 Version: 1.36.1032
|
||||
- Upgrade Service for SMS.
|
||||
|
||||
2022-01-19 Version: 1.36.1031
|
||||
- ReportOneAgentInfo.
|
||||
|
||||
|
||||
2022-01-18 Version: 1.36.1030
|
||||
- Upgrade SDK.
|
||||
|
||||
2022-01-18 Version: 1.36.1029
|
||||
- Support describe price.
|
||||
|
||||
2022-01-14 Version: 1.36.1028
|
||||
- Supported more query conditions when searching resource group.
|
||||
|
||||
2022-01-14 Version: 1.36.1027
|
||||
- Supported more query conditions when searching resource group.
|
||||
|
||||
2022-01-13 Version: 1.36.1026
|
||||
- Supported New Features.
|
||||
|
||||
2022-01-12 Version: 1.36.1025
|
||||
- Supported new features for outbound.
|
||||
|
||||
2022-01-12 Version: 1.36.1024
|
||||
- Support folder for rule.
|
||||
|
||||
2022-01-11 Version: 1.36.1023
|
||||
- Support DeleteTransitRouter API.
|
||||
|
||||
2022-01-11 Version: 1.36.1022
|
||||
- Fix bugs.
|
||||
|
||||
2022-01-11 Version: 1.36.1021
|
||||
- Fix bugs.
|
||||
|
||||
2022-01-11 Version: 1.36.1020
|
||||
- Added reserve price range.
|
||||
|
||||
2022-01-07 Version: 1.36.1019
|
||||
- Support resource scheduler.
|
||||
|
||||
|
||||
@@ -76,6 +76,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -139,6 +139,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -52,6 +52,10 @@ public:
|
||||
int cookieTimeout;
|
||||
std::string stickySessionType;
|
||||
};
|
||||
struct UchConfig {
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
CreateServerGroupRequest();
|
||||
~CreateServerGroupRequest();
|
||||
std::string getServerGroupName() const;
|
||||
@@ -80,6 +84,8 @@ public:
|
||||
void setServerGroupType(const std::string &serverGroupType);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
UchConfig getUchConfig() const;
|
||||
void setUchConfig(const UchConfig &uchConfig);
|
||||
|
||||
private:
|
||||
std::string serverGroupName_;
|
||||
@@ -95,6 +101,7 @@ private:
|
||||
bool ipv6Enabled_;
|
||||
std::string serverGroupType_;
|
||||
std::string vpcId_;
|
||||
UchConfig uchConfig_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setLoadBalancerNames(const std::vector<std::string> &loadBalancerNames);
|
||||
std::vector<std::string> getLoadBalancerIds() const;
|
||||
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
|
||||
std::vector<std::string> getLoadBalancerEditions() const;
|
||||
void setLoadBalancerEditions(const std::vector<std::string> &loadBalancerEditions);
|
||||
std::string getAddressIpVersion() const;
|
||||
void setAddressIpVersion(const std::string &addressIpVersion);
|
||||
std::string getResourceGroupId() const;
|
||||
@@ -70,6 +72,7 @@ public:
|
||||
private:
|
||||
std::vector<std::string> loadBalancerNames_;
|
||||
std::vector<std::string> loadBalancerIds_;
|
||||
std::vector<std::string> loadBalancerEditions_;
|
||||
std::string addressIpVersion_;
|
||||
std::string resourceGroupId_;
|
||||
std::string nextToken_;
|
||||
|
||||
@@ -101,10 +101,20 @@ namespace AlibabaCloud
|
||||
{
|
||||
int qPS;
|
||||
};
|
||||
struct CorsConfig
|
||||
{
|
||||
std::string allowCredentials;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
std::vector<std::string> allowOrigin;
|
||||
std::vector<std::string> allowHeaders;
|
||||
long maxAge;
|
||||
std::vector<std::string> allowMethods;
|
||||
};
|
||||
int order;
|
||||
FixedResponseConfig fixedResponseConfig;
|
||||
std::string type;
|
||||
RedirectConfig redirectConfig;
|
||||
CorsConfig corsConfig;
|
||||
ForwardGroupConfig forwardGroupConfig;
|
||||
RemoveHeaderConfig removeHeaderConfig;
|
||||
InsertHeaderConfig insertHeaderConfig;
|
||||
|
||||
@@ -58,6 +58,11 @@ namespace AlibabaCloud
|
||||
std::string stickySessionType;
|
||||
bool stickySessionEnabled;
|
||||
};
|
||||
struct UchConfig
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
@@ -66,6 +71,7 @@ namespace AlibabaCloud
|
||||
bool serviceManagedEnabled;
|
||||
std::vector<std::string> relatedLoadBalancerIds;
|
||||
std::string resourceGroupId;
|
||||
UchConfig uchConfig;
|
||||
std::string scheduler;
|
||||
bool upstreamKeepaliveEnabled;
|
||||
StickySessionConfig stickySessionConfig;
|
||||
|
||||
@@ -76,6 +76,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -140,6 +140,19 @@ public:
|
||||
int qPS;
|
||||
};
|
||||
TrafficLimitConfig trafficLimitConfig;
|
||||
struct CorsConfig {
|
||||
std::string allowCredentials;
|
||||
std::string string;
|
||||
std::vector<std::string> allowOrigin;
|
||||
long maxAge;
|
||||
std::string string;
|
||||
std::vector<std::string> allowMethods;
|
||||
std::string string;
|
||||
std::vector<std::string> allowHeaders;
|
||||
std::string string;
|
||||
std::vector<std::string> exposeHeaders;
|
||||
};
|
||||
CorsConfig corsConfig;
|
||||
struct RedirectConfig {
|
||||
std::string path;
|
||||
std::string protocol;
|
||||
|
||||
@@ -52,6 +52,10 @@ public:
|
||||
int cookieTimeout;
|
||||
std::string stickySessionType;
|
||||
};
|
||||
struct UchConfig {
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
UpdateServerGroupAttributeRequest();
|
||||
~UpdateServerGroupAttributeRequest();
|
||||
std::string getServerGroupName() const;
|
||||
@@ -72,6 +76,8 @@ public:
|
||||
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
UchConfig getUchConfig() const;
|
||||
void setUchConfig(const UchConfig &uchConfig);
|
||||
|
||||
private:
|
||||
std::string serverGroupName_;
|
||||
@@ -83,6 +89,7 @@ private:
|
||||
std::string serviceName_;
|
||||
StickySessionConfig stickySessionConfig_;
|
||||
bool dryRun_;
|
||||
UchConfig uchConfig_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alb
|
||||
|
||||
@@ -87,6 +87,20 @@ void CreateRuleRequest::setRuleActions(const std::vector<CreateRuleRequest::Rule
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Value", ruleActions[dep1].insertHeaderConfig.value);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Key", ruleActions[dep1].insertHeaderConfig.key);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficLimitConfig.QPS", std::to_string(ruleActions[dep1].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowCredentials", ruleActions[dep1].corsConfig.allowCredentials);
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowOrigin.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowOrigin[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.MaxAge", std::to_string(ruleActions[dep1].corsConfig.maxAge));
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowMethods.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowMethods[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowHeaders[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.exposeHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.exposeHeaders[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Path", ruleActions[dep1].redirectConfig.path);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Protocol", ruleActions[dep1].redirectConfig.protocol);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Port", ruleActions[dep1].redirectConfig.port);
|
||||
|
||||
@@ -97,6 +97,20 @@ void CreateRulesRequest::setRules(const std::vector<CreateRulesRequest::Rules> &
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowOrigin.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowMethods.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
|
||||
@@ -162,3 +162,13 @@ void CreateServerGroupRequest::setVpcId(const std::string &vpcId) {
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
CreateServerGroupRequest::UchConfig CreateServerGroupRequest::getUchConfig() const {
|
||||
return uchConfig_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setUchConfig(const CreateServerGroupRequest::UchConfig &uchConfig) {
|
||||
uchConfig_ = uchConfig;
|
||||
setParameter(std::string("UchConfig") + ".Type", uchConfig.type);
|
||||
setParameter(std::string("UchConfig") + ".Value", uchConfig.value);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,17 @@ void ListLoadBalancersRequest::setLoadBalancerIds(const std::vector<ListLoadBala
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<ListLoadBalancersRequest::std::string> ListLoadBalancersRequest::getLoadBalancerEditions() const {
|
||||
return loadBalancerEditions_;
|
||||
}
|
||||
|
||||
void ListLoadBalancersRequest::setLoadBalancerEditions(const std::vector<ListLoadBalancersRequest::std::string> &loadBalancerEditions) {
|
||||
loadBalancerEditions_ = loadBalancerEditions;
|
||||
for(int dep1 = 0; dep1 != loadBalancerEditions.size(); dep1++) {
|
||||
setParameter(std::string("LoadBalancerEditions") + "." + std::to_string(dep1 + 1), loadBalancerEditions[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListLoadBalancersRequest::getAddressIpVersion() const {
|
||||
return addressIpVersion_;
|
||||
}
|
||||
|
||||
@@ -141,6 +141,23 @@ void ListRulesResult::parse(const std::string &payload)
|
||||
auto trafficLimitConfigNode = value["TrafficLimitConfig"];
|
||||
if(!trafficLimitConfigNode["QPS"].isNull())
|
||||
ruleActionsObject.trafficLimitConfig.qPS = std::stoi(trafficLimitConfigNode["QPS"].asString());
|
||||
auto corsConfigNode = value["CorsConfig"];
|
||||
if(!corsConfigNode["AllowCredentials"].isNull())
|
||||
ruleActionsObject.corsConfig.allowCredentials = corsConfigNode["AllowCredentials"].asString();
|
||||
if(!corsConfigNode["MaxAge"].isNull())
|
||||
ruleActionsObject.corsConfig.maxAge = std::stol(corsConfigNode["MaxAge"].asString());
|
||||
auto allAllowOrigin = corsConfigNode["AllowOrigin"]["AllowOrigin"];
|
||||
for (auto value : allAllowOrigin)
|
||||
ruleActionsObject.corsConfig.allowOrigin.push_back(value.asString());
|
||||
auto allAllowMethods = corsConfigNode["AllowMethods"]["AllowMethods"];
|
||||
for (auto value : allAllowMethods)
|
||||
ruleActionsObject.corsConfig.allowMethods.push_back(value.asString());
|
||||
auto allAllowHeaders = corsConfigNode["AllowHeaders"]["AllowHeaders"];
|
||||
for (auto value : allAllowHeaders)
|
||||
ruleActionsObject.corsConfig.allowHeaders.push_back(value.asString());
|
||||
auto allExposeHeaders = corsConfigNode["ExposeHeaders"]["ExposeHeaders"];
|
||||
for (auto value : allExposeHeaders)
|
||||
ruleActionsObject.corsConfig.exposeHeaders.push_back(value.asString());
|
||||
rulesObject.ruleActions.push_back(ruleActionsObject);
|
||||
}
|
||||
auto allRuleConditionsNode = valueRulesRule["RuleConditions"]["Condition"];
|
||||
|
||||
@@ -123,6 +123,11 @@ void ListServerGroupsResult::parse(const std::string &payload)
|
||||
serverGroupsObject.stickySessionConfig.stickySessionEnabled = stickySessionConfigNode["StickySessionEnabled"].asString() == "true";
|
||||
if(!stickySessionConfigNode["StickySessionType"].isNull())
|
||||
serverGroupsObject.stickySessionConfig.stickySessionType = stickySessionConfigNode["StickySessionType"].asString();
|
||||
auto uchConfigNode = value["UchConfig"];
|
||||
if(!uchConfigNode["Type"].isNull())
|
||||
serverGroupsObject.uchConfig.type = uchConfigNode["Type"].asString();
|
||||
if(!uchConfigNode["Value"].isNull())
|
||||
serverGroupsObject.uchConfig.value = uchConfigNode["Value"].asString();
|
||||
auto allRelatedLoadBalancerIds = value["RelatedLoadBalancerIds"]["RelatedLoadBalancerId"];
|
||||
for (auto value : allRelatedLoadBalancerIds)
|
||||
serverGroupsObject.relatedLoadBalancerIds.push_back(value.asString());
|
||||
|
||||
@@ -69,6 +69,20 @@ void UpdateRuleAttributeRequest::setRuleActions(const std::vector<UpdateRuleAttr
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Value", ruleActions[dep1].insertHeaderConfig.value);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Key", ruleActions[dep1].insertHeaderConfig.key);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficLimitConfig.QPS", std::to_string(ruleActions[dep1].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowCredentials", ruleActions[dep1].corsConfig.allowCredentials);
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowOrigin.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowOrigin[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.MaxAge", std::to_string(ruleActions[dep1].corsConfig.maxAge));
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowMethods.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowMethods[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.allowHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.allowHeaders[dep2]);
|
||||
}
|
||||
for(int dep2 = 0; dep2 != ruleActions[dep1].corsConfig.exposeHeaders.size(); dep2++) {
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep2 + 1), ruleActions[dep1].corsConfig.exposeHeaders[dep2]);
|
||||
}
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Path", ruleActions[dep1].redirectConfig.path);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Protocol", ruleActions[dep1].redirectConfig.protocol);
|
||||
setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Port", ruleActions[dep1].redirectConfig.port);
|
||||
|
||||
@@ -98,6 +98,20 @@ void UpdateRulesAttributeRequest::setRules(const std::vector<UpdateRulesAttribut
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowOrigin.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowMethods.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
|
||||
@@ -126,3 +126,13 @@ void UpdateServerGroupAttributeRequest::setDryRun(bool dryRun) {
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
UpdateServerGroupAttributeRequest::UchConfig UpdateServerGroupAttributeRequest::getUchConfig() const {
|
||||
return uchConfig_;
|
||||
}
|
||||
|
||||
void UpdateServerGroupAttributeRequest::setUchConfig(const UpdateServerGroupAttributeRequest::UchConfig &uchConfig) {
|
||||
uchConfig_ = uchConfig;
|
||||
setParameter(std::string("UchConfig") + ".Type", uchConfig.type);
|
||||
setParameter(std::string("UchConfig") + ".Value", uchConfig.value);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTrafficMarkingPolicyRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTrafficMarkingPolicyResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRouteEntryRequest.h
|
||||
@@ -294,6 +296,8 @@ set(cbn_src
|
||||
src/model/DeleteRouteServiceInCenResult.cc
|
||||
src/model/DeleteTrafficMarkingPolicyRequest.cc
|
||||
src/model/DeleteTrafficMarkingPolicyResult.cc
|
||||
src/model/DeleteTransitRouterRequest.cc
|
||||
src/model/DeleteTransitRouterResult.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentRequest.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentResult.cc
|
||||
src/model/DeleteTransitRouterRouteEntryRequest.cc
|
||||
|
||||
@@ -84,6 +84,8 @@
|
||||
#include "model/DeleteRouteServiceInCenResult.h"
|
||||
#include "model/DeleteTrafficMarkingPolicyRequest.h"
|
||||
#include "model/DeleteTrafficMarkingPolicyResult.h"
|
||||
#include "model/DeleteTransitRouterRequest.h"
|
||||
#include "model/DeleteTransitRouterResult.h"
|
||||
#include "model/DeleteTransitRouterPeerAttachmentRequest.h"
|
||||
#include "model/DeleteTransitRouterPeerAttachmentResult.h"
|
||||
#include "model/DeleteTransitRouterRouteEntryRequest.h"
|
||||
@@ -332,6 +334,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteTrafficMarkingPolicyResult> DeleteTrafficMarkingPolicyOutcome;
|
||||
typedef std::future<DeleteTrafficMarkingPolicyOutcome> DeleteTrafficMarkingPolicyOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTrafficMarkingPolicyRequest&, const DeleteTrafficMarkingPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrafficMarkingPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterResult> DeleteTransitRouterOutcome;
|
||||
typedef std::future<DeleteTransitRouterOutcome> DeleteTransitRouterOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterRequest&, const DeleteTransitRouterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterPeerAttachmentResult> DeleteTransitRouterPeerAttachmentOutcome;
|
||||
typedef std::future<DeleteTransitRouterPeerAttachmentOutcome> DeleteTransitRouterPeerAttachmentOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterPeerAttachmentRequest&, const DeleteTransitRouterPeerAttachmentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterPeerAttachmentAsyncHandler;
|
||||
@@ -649,6 +654,9 @@ namespace AlibabaCloud
|
||||
DeleteTrafficMarkingPolicyOutcome deleteTrafficMarkingPolicy(const Model::DeleteTrafficMarkingPolicyRequest &request)const;
|
||||
void deleteTrafficMarkingPolicyAsync(const Model::DeleteTrafficMarkingPolicyRequest& request, const DeleteTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTrafficMarkingPolicyOutcomeCallable deleteTrafficMarkingPolicyCallable(const Model::DeleteTrafficMarkingPolicyRequest& request) const;
|
||||
DeleteTransitRouterOutcome deleteTransitRouter(const Model::DeleteTransitRouterRequest &request)const;
|
||||
void deleteTransitRouterAsync(const Model::DeleteTransitRouterRequest& request, const DeleteTransitRouterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterOutcomeCallable deleteTransitRouterCallable(const Model::DeleteTransitRouterRequest& request) const;
|
||||
DeleteTransitRouterPeerAttachmentOutcome deleteTransitRouterPeerAttachment(const Model::DeleteTransitRouterPeerAttachmentRequest &request)const;
|
||||
void deleteTransitRouterPeerAttachmentAsync(const Model::DeleteTransitRouterPeerAttachmentRequest& request, const DeleteTransitRouterPeerAttachmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterPeerAttachmentOutcomeCallable deleteTransitRouterPeerAttachmentCallable(const Model::DeleteTransitRouterPeerAttachmentRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setTransitRouterName(const std::string &transitRouterName);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getServiceMode() const;
|
||||
void setServiceMode(const std::string &serviceMode);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getCenId() const;
|
||||
@@ -56,6 +58,7 @@ public:
|
||||
private:
|
||||
std::string transitRouterName_;
|
||||
long resourceOwnerId_;
|
||||
std::string serviceMode_;
|
||||
std::string clientToken_;
|
||||
std::string cenId_;
|
||||
std::string type_;
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
~CreateTransitRouterVpcAttachmentRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getServiceMode() const;
|
||||
void setServiceMode(const std::string &serviceMode);
|
||||
long getVpcOwnerId() const;
|
||||
void setVpcOwnerId(long vpcOwnerId);
|
||||
std::string getClientToken() const;
|
||||
@@ -75,6 +77,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string serviceMode_;
|
||||
long vpcOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string cenId_;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cbn {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteTransitRouterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteTransitRouterRequest();
|
||||
~DeleteTransitRouterRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTransitRouterId() const;
|
||||
void setTransitRouterId(const std::string &transitRouterId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string transitRouterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cbn
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteTransitRouterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTransitRouterResult();
|
||||
explicit DeleteTransitRouterResult(const std::string &payload);
|
||||
~DeleteTransitRouterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERRESULT_H_
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string zoneId;
|
||||
std::string vSwitchId;
|
||||
std::string networkInterfaceId;
|
||||
};
|
||||
std::string status;
|
||||
std::string transitRouterAttachmentId;
|
||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::string transitRouterAttachmentName;
|
||||
std::string resourceType;
|
||||
std::vector<TransitRouterAttachment::ZoneMapping> zoneMappings;
|
||||
std::string serviceMode;
|
||||
std::string transitRouterAttachmentDescription;
|
||||
long vpcOwnerId;
|
||||
std::string transitRouterId;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string transitRouterDescription;
|
||||
std::string transitRouterName;
|
||||
std::string regionId;
|
||||
std::string serviceMode;
|
||||
std::string transitRouterId;
|
||||
long aliUid;
|
||||
};
|
||||
|
||||
@@ -1167,6 +1167,42 @@ CbnClient::DeleteTrafficMarkingPolicyOutcomeCallable CbnClient::deleteTrafficMar
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterOutcome CbnClient::deleteTransitRouter(const DeleteTransitRouterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTransitRouterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTransitRouterOutcome(DeleteTransitRouterResult(outcome.result()));
|
||||
else
|
||||
return DeleteTransitRouterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteTransitRouterAsync(const DeleteTransitRouterRequest& request, const DeleteTransitRouterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTransitRouter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterOutcomeCallable CbnClient::deleteTransitRouterCallable(const DeleteTransitRouterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTransitRouterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTransitRouter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterPeerAttachmentOutcome CbnClient::deleteTransitRouterPeerAttachment(const DeleteTransitRouterPeerAttachmentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -43,6 +43,15 @@ void CreateTransitRouterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterRequest::getServiceMode() const {
|
||||
return serviceMode_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterRequest::setServiceMode(const std::string &serviceMode) {
|
||||
serviceMode_ = serviceMode;
|
||||
setParameter(std::string("ServiceMode"), serviceMode);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateTransitRouterVpcAttachmentRequest::setResourceOwnerId(long resourceOw
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterVpcAttachmentRequest::getServiceMode() const {
|
||||
return serviceMode_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterVpcAttachmentRequest::setServiceMode(const std::string &serviceMode) {
|
||||
serviceMode_ = serviceMode;
|
||||
setParameter(std::string("ServiceMode"), serviceMode);
|
||||
}
|
||||
|
||||
long CreateTransitRouterVpcAttachmentRequest::getVpcOwnerId() const {
|
||||
return vpcOwnerId_;
|
||||
}
|
||||
|
||||
90
cbn/src/model/DeleteTransitRouterRequest.cc
Normal file
90
cbn/src/model/DeleteTransitRouterRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteTransitRouterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteTransitRouterRequest;
|
||||
|
||||
DeleteTransitRouterRequest::DeleteTransitRouterRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DeleteTransitRouter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTransitRouterRequest::~DeleteTransitRouterRequest() {}
|
||||
|
||||
long DeleteTransitRouterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteTransitRouterRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
44
cbn/src/model/DeleteTransitRouterResult.cc
Normal file
44
cbn/src/model/DeleteTransitRouterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/DeleteTransitRouterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteTransitRouterResult::DeleteTransitRouterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTransitRouterResult::DeleteTransitRouterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTransitRouterResult::~DeleteTransitRouterResult()
|
||||
{}
|
||||
|
||||
void DeleteTransitRouterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ void ListTransitRouterVpcAttachmentsResult::parse(const std::string &payload)
|
||||
transitRouterAttachmentsObject.vpcRegionId = valueTransitRouterAttachmentsTransitRouterAttachment["VpcRegionId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].isNull())
|
||||
transitRouterAttachmentsObject.transitRouterAttachmentName = valueTransitRouterAttachmentsTransitRouterAttachment["TransitRouterAttachmentName"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachment["ServiceMode"].isNull())
|
||||
transitRouterAttachmentsObject.serviceMode = valueTransitRouterAttachmentsTransitRouterAttachment["ServiceMode"].asString();
|
||||
auto allZoneMappingsNode = valueTransitRouterAttachmentsTransitRouterAttachment["ZoneMappings"]["ZoneMapping"];
|
||||
for (auto valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping : allZoneMappingsNode)
|
||||
{
|
||||
@@ -71,6 +73,8 @@ void ListTransitRouterVpcAttachmentsResult::parse(const std::string &payload)
|
||||
zoneMappingsObject.zoneId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["ZoneId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["VSwitchId"].isNull())
|
||||
zoneMappingsObject.vSwitchId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["VSwitchId"].asString();
|
||||
if(!valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["NetworkInterfaceId"].isNull())
|
||||
zoneMappingsObject.networkInterfaceId = valueTransitRouterAttachmentsTransitRouterAttachmentZoneMappingsZoneMapping["NetworkInterfaceId"].asString();
|
||||
transitRouterAttachmentsObject.zoneMappings.push_back(zoneMappingsObject);
|
||||
}
|
||||
transitRouterAttachments_.push_back(transitRouterAttachmentsObject);
|
||||
|
||||
@@ -61,6 +61,8 @@ void ListTransitRoutersResult::parse(const std::string &payload)
|
||||
transitRoutersObject.aliUid = std::stol(valueTransitRoutersTransitRouter["AliUid"].asString());
|
||||
if(!valueTransitRoutersTransitRouter["RegionId"].isNull())
|
||||
transitRoutersObject.regionId = valueTransitRoutersTransitRouter["RegionId"].asString();
|
||||
if(!valueTransitRoutersTransitRouter["ServiceMode"].isNull())
|
||||
transitRoutersObject.serviceMode = valueTransitRoutersTransitRouter["ServiceMode"].asString();
|
||||
transitRouters_.push_back(transitRoutersObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -65,6 +65,8 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/GetCallDetailRecordResult.h
|
||||
include/alibabacloud/ccc/model/GetCampaignRequest.h
|
||||
include/alibabacloud/ccc/model/GetCampaignResult.h
|
||||
include/alibabacloud/ccc/model/GetCaseFileUploadUrlRequest.h
|
||||
include/alibabacloud/ccc/model/GetCaseFileUploadUrlResult.h
|
||||
include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h
|
||||
include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h
|
||||
include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h
|
||||
@@ -197,6 +199,8 @@ set(ccc_public_header_model
|
||||
include/alibabacloud/ccc/model/ReadyForServiceResult.h
|
||||
include/alibabacloud/ccc/model/RegisterDeviceRequest.h
|
||||
include/alibabacloud/ccc/model/RegisterDeviceResult.h
|
||||
include/alibabacloud/ccc/model/RegisterDevicesRequest.h
|
||||
include/alibabacloud/ccc/model/RegisterDevicesResult.h
|
||||
include/alibabacloud/ccc/model/ReleaseCallRequest.h
|
||||
include/alibabacloud/ccc/model/ReleaseCallResult.h
|
||||
include/alibabacloud/ccc/model/RemovePersonalNumbersFromUserRequest.h
|
||||
@@ -294,6 +298,8 @@ set(ccc_src
|
||||
src/model/GetCallDetailRecordResult.cc
|
||||
src/model/GetCampaignRequest.cc
|
||||
src/model/GetCampaignResult.cc
|
||||
src/model/GetCaseFileUploadUrlRequest.cc
|
||||
src/model/GetCaseFileUploadUrlResult.cc
|
||||
src/model/GetHistoricalCallerReportRequest.cc
|
||||
src/model/GetHistoricalCallerReportResult.cc
|
||||
src/model/GetHistoricalInstanceReportRequest.cc
|
||||
@@ -426,6 +432,8 @@ set(ccc_src
|
||||
src/model/ReadyForServiceResult.cc
|
||||
src/model/RegisterDeviceRequest.cc
|
||||
src/model/RegisterDeviceResult.cc
|
||||
src/model/RegisterDevicesRequest.cc
|
||||
src/model/RegisterDevicesResult.cc
|
||||
src/model/ReleaseCallRequest.cc
|
||||
src/model/ReleaseCallResult.cc
|
||||
src/model/RemovePersonalNumbersFromUserRequest.cc
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
#include "model/GetCallDetailRecordResult.h"
|
||||
#include "model/GetCampaignRequest.h"
|
||||
#include "model/GetCampaignResult.h"
|
||||
#include "model/GetCaseFileUploadUrlRequest.h"
|
||||
#include "model/GetCaseFileUploadUrlResult.h"
|
||||
#include "model/GetHistoricalCallerReportRequest.h"
|
||||
#include "model/GetHistoricalCallerReportResult.h"
|
||||
#include "model/GetHistoricalInstanceReportRequest.h"
|
||||
@@ -198,6 +200,8 @@
|
||||
#include "model/ReadyForServiceResult.h"
|
||||
#include "model/RegisterDeviceRequest.h"
|
||||
#include "model/RegisterDeviceResult.h"
|
||||
#include "model/RegisterDevicesRequest.h"
|
||||
#include "model/RegisterDevicesResult.h"
|
||||
#include "model/ReleaseCallRequest.h"
|
||||
#include "model/ReleaseCallResult.h"
|
||||
#include "model/RemovePersonalNumbersFromUserRequest.h"
|
||||
@@ -323,6 +327,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCampaignResult> GetCampaignOutcome;
|
||||
typedef std::future<GetCampaignOutcome> GetCampaignOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetCampaignRequest&, const GetCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCampaignAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCaseFileUploadUrlResult> GetCaseFileUploadUrlOutcome;
|
||||
typedef std::future<GetCaseFileUploadUrlOutcome> GetCaseFileUploadUrlOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetCaseFileUploadUrlRequest&, const GetCaseFileUploadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCaseFileUploadUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHistoricalCallerReportResult> GetHistoricalCallerReportOutcome;
|
||||
typedef std::future<GetHistoricalCallerReportOutcome> GetHistoricalCallerReportOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::GetHistoricalCallerReportRequest&, const GetHistoricalCallerReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHistoricalCallerReportAsyncHandler;
|
||||
@@ -521,6 +528,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RegisterDeviceResult> RegisterDeviceOutcome;
|
||||
typedef std::future<RegisterDeviceOutcome> RegisterDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RegisterDeviceRequest&, const RegisterDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterDevicesResult> RegisterDevicesOutcome;
|
||||
typedef std::future<RegisterDevicesOutcome> RegisterDevicesOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::RegisterDevicesRequest&, const RegisterDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDevicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseCallResult> ReleaseCallOutcome;
|
||||
typedef std::future<ReleaseCallOutcome> ReleaseCallOutcomeCallable;
|
||||
typedef std::function<void(const CCCClient*, const Model::ReleaseCallRequest&, const ReleaseCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseCallAsyncHandler;
|
||||
@@ -667,6 +677,9 @@ namespace AlibabaCloud
|
||||
GetCampaignOutcome getCampaign(const Model::GetCampaignRequest &request)const;
|
||||
void getCampaignAsync(const Model::GetCampaignRequest& request, const GetCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCampaignOutcomeCallable getCampaignCallable(const Model::GetCampaignRequest& request) const;
|
||||
GetCaseFileUploadUrlOutcome getCaseFileUploadUrl(const Model::GetCaseFileUploadUrlRequest &request)const;
|
||||
void getCaseFileUploadUrlAsync(const Model::GetCaseFileUploadUrlRequest& request, const GetCaseFileUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCaseFileUploadUrlOutcomeCallable getCaseFileUploadUrlCallable(const Model::GetCaseFileUploadUrlRequest& request) const;
|
||||
GetHistoricalCallerReportOutcome getHistoricalCallerReport(const Model::GetHistoricalCallerReportRequest &request)const;
|
||||
void getHistoricalCallerReportAsync(const Model::GetHistoricalCallerReportRequest& request, const GetHistoricalCallerReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHistoricalCallerReportOutcomeCallable getHistoricalCallerReportCallable(const Model::GetHistoricalCallerReportRequest& request) const;
|
||||
@@ -865,6 +878,9 @@ namespace AlibabaCloud
|
||||
RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const;
|
||||
void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const;
|
||||
RegisterDevicesOutcome registerDevices(const Model::RegisterDevicesRequest &request)const;
|
||||
void registerDevicesAsync(const Model::RegisterDevicesRequest& request, const RegisterDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterDevicesOutcomeCallable registerDevicesCallable(const Model::RegisterDevicesRequest& request) const;
|
||||
ReleaseCallOutcome releaseCall(const Model::ReleaseCallRequest &request)const;
|
||||
void releaseCallAsync(const Model::ReleaseCallRequest& request, const ReleaseCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseCallOutcomeCallable releaseCallCallable(const Model::ReleaseCallRequest& request) const;
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETEREQUEST_H_
|
||||
#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ons/OnsExport.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ons
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdDeleteRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CCC_EXPORT GetCaseFileUploadUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OnsMqttGroupIdDeleteRequest();
|
||||
~OnsMqttGroupIdDeleteRequest();
|
||||
GetCaseFileUploadUrlRequest();
|
||||
~GetCaseFileUploadUrlRequest();
|
||||
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getFileName()const;
|
||||
void setFileName(const std::string& fileName);
|
||||
|
||||
private:
|
||||
std::string groupId_;
|
||||
std::string instanceId_;
|
||||
std::string fileName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDDELETEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLREQUEST_H_
|
||||
@@ -14,52 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINERESULT_H_
|
||||
#define ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ons/OnsExport.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ons
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ONS_EXPORT OnsMqttQueryHistoryOnlineResult : public ServiceResult
|
||||
class ALIBABACLOUD_CCC_EXPORT GetCaseFileUploadUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct StatsDataDo
|
||||
{
|
||||
long x;
|
||||
float y;
|
||||
};
|
||||
std::string yUnit;
|
||||
std::string title;
|
||||
std::string xUnit;
|
||||
std::vector<StatsDataDo> records;
|
||||
std::string caseFileKey;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
OnsMqttQueryHistoryOnlineResult();
|
||||
explicit OnsMqttQueryHistoryOnlineResult(const std::string &payload);
|
||||
~OnsMqttQueryHistoryOnlineResult();
|
||||
GetCaseFileUploadUrlResult();
|
||||
explicit GetCaseFileUploadUrlResult(const std::string &payload);
|
||||
~GetCaseFileUploadUrlResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getHelpUrl()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string helpUrl_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTQUERYHISTORYONLINERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_GETCASEFILEUPLOADURLRESULT_H_
|
||||
@@ -34,14 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string extension;
|
||||
std::string agentServerUrl;
|
||||
std::string sipServerUrl;
|
||||
std::string deviceId;
|
||||
std::string userKey;
|
||||
std::string userKey2;
|
||||
std::string extension;
|
||||
std::string agentServerUrl;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
std::string signature;
|
||||
std::string userKey;
|
||||
std::string displayName;
|
||||
std::string deviceExt;
|
||||
std::string signature2;
|
||||
std::string workMode;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,15 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string extension;
|
||||
std::string loginName;
|
||||
std::string roleName;
|
||||
std::string email;
|
||||
std::string instanceId;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string deviceId;
|
||||
std::string mobile;
|
||||
std::string roleId;
|
||||
std::string extension;
|
||||
std::string roleName;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string deviceExt;
|
||||
std::string workMode;
|
||||
};
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string loginName;
|
||||
std::string email;
|
||||
std::string deviceId;
|
||||
std::vector<UserDetail::UserSkillLevel> skillLevelList;
|
||||
bool primaryAccount;
|
||||
long ramId;
|
||||
@@ -59,9 +60,12 @@ namespace AlibabaCloud
|
||||
std::string displayId;
|
||||
std::string mobile;
|
||||
std::string roleId;
|
||||
std::string extension;
|
||||
std::string roleName;
|
||||
std::string deviceState;
|
||||
std::string userId;
|
||||
std::string displayName;
|
||||
std::string deviceExt;
|
||||
std::string workMode;
|
||||
};
|
||||
int totalCount;
|
||||
|
||||
@@ -14,41 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESREQUEST_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ons/OnsExport.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ons
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ONS_EXPORT OnsMqttGroupIdCreateRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CCC_EXPORT RegisterDevicesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OnsMqttGroupIdCreateRequest();
|
||||
~OnsMqttGroupIdCreateRequest();
|
||||
RegisterDevicesRequest();
|
||||
~RegisterDevicesRequest();
|
||||
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getUserIdListJson()const;
|
||||
void setUserIdListJson(const std::string& userIdListJson);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getTopic()const;
|
||||
void setTopic(const std::string& topic);
|
||||
|
||||
private:
|
||||
std::string groupId_;
|
||||
std::string userIdListJson_;
|
||||
std::string deviceId_;
|
||||
std::string password_;
|
||||
std::string instanceId_;
|
||||
std::string topic_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ONS_MODEL_ONSMQTTGROUPIDCREATEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESREQUEST_H_
|
||||
57
ccc/include/alibabacloud/ccc/model/RegisterDevicesResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/RegisterDevicesResult.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESRESULT_H_
|
||||
#define ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ccc/CCCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CCC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CCC_EXPORT RegisterDevicesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RegisterDevicesResult();
|
||||
explicit RegisterDevicesResult(const std::string &payload);
|
||||
~RegisterDevicesResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<std::string> getParams()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<std::string> params_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CCC_MODEL_REGISTERDEVICESRESULT_H_
|
||||
@@ -69,6 +69,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> signedSkillGroupIdList;
|
||||
};
|
||||
UserContext userContext;
|
||||
long contextId;
|
||||
CallContext callContext;
|
||||
};
|
||||
|
||||
|
||||
@@ -31,21 +31,21 @@ CCCClient::CCCClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CCCClient::CCCClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CCCClient::CCCClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CCCClient::~CCCClient()
|
||||
@@ -843,6 +843,42 @@ CCCClient::GetCampaignOutcomeCallable CCCClient::getCampaignCallable(const GetCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::GetCaseFileUploadUrlOutcome CCCClient::getCaseFileUploadUrl(const GetCaseFileUploadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetCaseFileUploadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetCaseFileUploadUrlOutcome(GetCaseFileUploadUrlResult(outcome.result()));
|
||||
else
|
||||
return GetCaseFileUploadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::getCaseFileUploadUrlAsync(const GetCaseFileUploadUrlRequest& request, const GetCaseFileUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getCaseFileUploadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::GetCaseFileUploadUrlOutcomeCallable CCCClient::getCaseFileUploadUrlCallable(const GetCaseFileUploadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetCaseFileUploadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getCaseFileUploadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::GetHistoricalCallerReportOutcome CCCClient::getHistoricalCallerReport(const GetHistoricalCallerReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3219,6 +3255,42 @@ CCCClient::RegisterDeviceOutcomeCallable CCCClient::registerDeviceCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::RegisterDevicesOutcome CCCClient::registerDevices(const RegisterDevicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RegisterDevicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RegisterDevicesOutcome(RegisterDevicesResult(outcome.result()));
|
||||
else
|
||||
return RegisterDevicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::registerDevicesAsync(const RegisterDevicesRequest& request, const RegisterDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, registerDevices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::RegisterDevicesOutcomeCallable CCCClient::registerDevicesCallable(const RegisterDevicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RegisterDevicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->registerDevices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ReleaseCallOutcome CCCClient::releaseCall(const ReleaseCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ons/model/OnsMqttGroupIdDeleteRequest.h>
|
||||
#include <alibabacloud/ccc/model/GetCaseFileUploadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Ons::Model::OnsMqttGroupIdDeleteRequest;
|
||||
using AlibabaCloud::CCC::Model::GetCaseFileUploadUrlRequest;
|
||||
|
||||
OnsMqttGroupIdDeleteRequest::OnsMqttGroupIdDeleteRequest() :
|
||||
RpcServiceRequest("ons", "2019-02-14", "OnsMqttGroupIdDelete")
|
||||
GetCaseFileUploadUrlRequest::GetCaseFileUploadUrlRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "GetCaseFileUploadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OnsMqttGroupIdDeleteRequest::~OnsMqttGroupIdDeleteRequest()
|
||||
GetCaseFileUploadUrlRequest::~GetCaseFileUploadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string OnsMqttGroupIdDeleteRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void OnsMqttGroupIdDeleteRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string OnsMqttGroupIdDeleteRequest::getInstanceId()const
|
||||
std::string GetCaseFileUploadUrlRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void OnsMqttGroupIdDeleteRequest::setInstanceId(const std::string& instanceId)
|
||||
void GetCaseFileUploadUrlRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetCaseFileUploadUrlRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void GetCaseFileUploadUrlRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
75
ccc/src/model/GetCaseFileUploadUrlResult.cc
Normal file
75
ccc/src/model/GetCaseFileUploadUrlResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/GetCaseFileUploadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
GetCaseFileUploadUrlResult::GetCaseFileUploadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCaseFileUploadUrlResult::GetCaseFileUploadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCaseFileUploadUrlResult::~GetCaseFileUploadUrlResult()
|
||||
{}
|
||||
|
||||
void GetCaseFileUploadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Url"].isNull())
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!dataNode["CaseFileKey"].isNull())
|
||||
data_.caseFileKey = dataNode["CaseFileKey"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetCaseFileUploadUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetCaseFileUploadUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetCaseFileUploadUrlResult::Data GetCaseFileUploadUrlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetCaseFileUploadUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,14 @@ void GetLoginDetailsResult::parse(const std::string &payload)
|
||||
data_.userKey = dataNode["UserKey"].asString();
|
||||
if(!dataNode["WorkMode"].isNull())
|
||||
data_.workMode = dataNode["WorkMode"].asString();
|
||||
if(!dataNode["UserKey2"].isNull())
|
||||
data_.userKey2 = dataNode["UserKey2"].asString();
|
||||
if(!dataNode["Signature2"].isNull())
|
||||
data_.signature2 = dataNode["Signature2"].asString();
|
||||
if(!dataNode["DeviceExt"].isNull())
|
||||
data_.deviceExt = dataNode["DeviceExt"].asString();
|
||||
if(!dataNode["DeviceState"].isNull())
|
||||
data_.deviceState = dataNode["DeviceState"].asString();
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
|
||||
@@ -60,6 +60,12 @@ void GetUserResult::parse(const std::string &payload)
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["RoleId"].isNull())
|
||||
data_.roleId = dataNode["RoleId"].asString();
|
||||
if(!dataNode["DeviceId"].isNull())
|
||||
data_.deviceId = dataNode["DeviceId"].asString();
|
||||
if(!dataNode["DeviceExt"].isNull())
|
||||
data_.deviceExt = dataNode["DeviceExt"].asString();
|
||||
if(!dataNode["DeviceState"].isNull())
|
||||
data_.deviceState = dataNode["DeviceState"].asString();
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
|
||||
@@ -72,6 +72,14 @@ void ListUsersResult::parse(const std::string &payload)
|
||||
userDetailObject.primaryAccount = dataNodeListUserDetail["PrimaryAccount"].asString() == "true";
|
||||
if(!dataNodeListUserDetail["RamId"].isNull())
|
||||
userDetailObject.ramId = std::stol(dataNodeListUserDetail["RamId"].asString());
|
||||
if(!dataNodeListUserDetail["Extension"].isNull())
|
||||
userDetailObject.extension = dataNodeListUserDetail["Extension"].asString();
|
||||
if(!dataNodeListUserDetail["DeviceId"].isNull())
|
||||
userDetailObject.deviceId = dataNodeListUserDetail["DeviceId"].asString();
|
||||
if(!dataNodeListUserDetail["DeviceExt"].isNull())
|
||||
userDetailObject.deviceExt = dataNodeListUserDetail["DeviceExt"].asString();
|
||||
if(!dataNodeListUserDetail["DeviceState"].isNull())
|
||||
userDetailObject.deviceState = dataNodeListUserDetail["DeviceState"].asString();
|
||||
auto allPersonalOutboundNumberListNode = dataNodeListUserDetail["PersonalOutboundNumberList"]["PhoneNumber"];
|
||||
for (auto dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber : allPersonalOutboundNumberListNode)
|
||||
{
|
||||
|
||||
73
ccc/src/model/RegisterDevicesRequest.cc
Normal file
73
ccc/src/model/RegisterDevicesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/RegisterDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::RegisterDevicesRequest;
|
||||
|
||||
RegisterDevicesRequest::RegisterDevicesRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "RegisterDevices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RegisterDevicesRequest::~RegisterDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string RegisterDevicesRequest::getUserIdListJson()const
|
||||
{
|
||||
return userIdListJson_;
|
||||
}
|
||||
|
||||
void RegisterDevicesRequest::setUserIdListJson(const std::string& userIdListJson)
|
||||
{
|
||||
userIdListJson_ = userIdListJson;
|
||||
setParameter("UserIdListJson", userIdListJson);
|
||||
}
|
||||
|
||||
std::string RegisterDevicesRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void RegisterDevicesRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string RegisterDevicesRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void RegisterDevicesRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string RegisterDevicesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RegisterDevicesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
73
ccc/src/model/RegisterDevicesResult.cc
Normal file
73
ccc/src/model/RegisterDevicesResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/RegisterDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
RegisterDevicesResult::RegisterDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RegisterDevicesResult::RegisterDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RegisterDevicesResult::~RegisterDevicesResult()
|
||||
{}
|
||||
|
||||
void RegisterDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RegisterDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int RegisterDevicesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> RegisterDevicesResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string RegisterDevicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,8 @@ void ReleaseCallResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ContextId"].isNull())
|
||||
data_.contextId = std::stol(dataNode["ContextId"].asString());
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
|
||||
90
cloudauth-console/CMakeLists.txt
Normal file
90
cloudauth-console/CMakeLists.txt
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(cloudauth-console_public_header
|
||||
include/alibabacloud/cloudauth-console/Cloudauth_consoleClient.h
|
||||
include/alibabacloud/cloudauth-console/Cloudauth_consoleExport.h )
|
||||
|
||||
set(cloudauth-console_public_header_model
|
||||
include/alibabacloud/cloudauth-console/model/RetrieveFaceRequest.h
|
||||
include/alibabacloud/cloudauth-console/model/RetrieveFaceResult.h
|
||||
include/alibabacloud/cloudauth-console/model/UploadIdentifyRecordRequest.h
|
||||
include/alibabacloud/cloudauth-console/model/UploadIdentifyRecordResult.h )
|
||||
|
||||
set(cloudauth-console_src
|
||||
src/Cloudauth-consoleClient.cc
|
||||
src/model/RetrieveFaceRequest.cc
|
||||
src/model/RetrieveFaceResult.cc
|
||||
src/model/UploadIdentifyRecordRequest.cc
|
||||
src/model/UploadIdentifyRecordResult.cc )
|
||||
|
||||
add_library(cloudauth-console ${LIB_TYPE}
|
||||
${cloudauth-console_public_header}
|
||||
${cloudauth-console_public_header_model}
|
||||
${cloudauth-console_src})
|
||||
|
||||
set_target_properties(cloudauth-console
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cloudauth-console
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cloudauth-console
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_CONSOLE_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cloudauth-console
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cloudauth-console
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cloudauth-console
|
||||
jsoncpp)
|
||||
target_include_directories(cloudauth-console
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cloudauth-console
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cloudauth-console
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cloudauth-console
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cloudauth-console
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cloudauth-console_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth-console)
|
||||
install(FILES ${cloudauth-console_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth-console/model)
|
||||
install(TARGETS cloudauth-console
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLECLIENT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLECLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Cloudauth_consoleExport.h"
|
||||
#include "model/RetrieveFaceRequest.h"
|
||||
#include "model/RetrieveFaceResult.h"
|
||||
#include "model/UploadIdentifyRecordRequest.h"
|
||||
#include "model/UploadIdentifyRecordResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth_console
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT Cloudauth_consoleClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::RetrieveFaceResult> RetrieveFaceOutcome;
|
||||
typedef std::future<RetrieveFaceOutcome> RetrieveFaceOutcomeCallable;
|
||||
typedef std::function<void(const Cloudauth_consoleClient*, const Model::RetrieveFaceRequest&, const RetrieveFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetrieveFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UploadIdentifyRecordResult> UploadIdentifyRecordOutcome;
|
||||
typedef std::future<UploadIdentifyRecordOutcome> UploadIdentifyRecordOutcomeCallable;
|
||||
typedef std::function<void(const Cloudauth_consoleClient*, const Model::UploadIdentifyRecordRequest&, const UploadIdentifyRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadIdentifyRecordAsyncHandler;
|
||||
|
||||
Cloudauth_consoleClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Cloudauth_consoleClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Cloudauth_consoleClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Cloudauth_consoleClient();
|
||||
RetrieveFaceOutcome retrieveFace(const Model::RetrieveFaceRequest &request)const;
|
||||
void retrieveFaceAsync(const Model::RetrieveFaceRequest& request, const RetrieveFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RetrieveFaceOutcomeCallable retrieveFaceCallable(const Model::RetrieveFaceRequest& request) const;
|
||||
UploadIdentifyRecordOutcome uploadIdentifyRecord(const Model::UploadIdentifyRecordRequest &request)const;
|
||||
void uploadIdentifyRecordAsync(const Model::UploadIdentifyRecordRequest& request, const UploadIdentifyRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UploadIdentifyRecordOutcomeCallable uploadIdentifyRecordCallable(const Model::UploadIdentifyRecordRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLECLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLEEXPORT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CLOUDAUTH_CONSOLE_LIBRARY)
|
||||
# define ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLEEXPORT_H_
|
||||
@@ -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_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth_console
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT RetrieveFaceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RetrieveFaceRequest();
|
||||
~RetrieveFaceRequest();
|
||||
|
||||
std::string getFace64String()const;
|
||||
void setFace64String(const std::string& face64String);
|
||||
std::string getFaceUrl()const;
|
||||
void setFaceUrl(const std::string& faceUrl);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
|
||||
private:
|
||||
std::string face64String_;
|
||||
std::string faceUrl_;
|
||||
std::string projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACERESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth_console
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT RetrieveFaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string userName;
|
||||
long userId;
|
||||
std::string rate;
|
||||
};
|
||||
|
||||
|
||||
RetrieveFaceResult();
|
||||
explicit RetrieveFaceResult(const std::string &payload);
|
||||
~RetrieveFaceResult();
|
||||
std::vector<DataItem> getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACERESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth_console
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT UploadIdentifyRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UploadIdentifyRecordRequest();
|
||||
~UploadIdentifyRecordRequest();
|
||||
|
||||
std::string getExt()const;
|
||||
void setExt(const std::string& ext);
|
||||
std::string getIdentifyingImageUrl()const;
|
||||
void setIdentifyingImageUrl(const std::string& identifyingImageUrl);
|
||||
std::string getIdentifyingImageBase64()const;
|
||||
void setIdentifyingImageBase64(const std::string& identifyingImageBase64);
|
||||
std::string getDeviceSecret()const;
|
||||
void setDeviceSecret(const std::string& deviceSecret);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getIotId()const;
|
||||
void setIotId(const std::string& iotId);
|
||||
std::string getDeviceName()const;
|
||||
void setDeviceName(const std::string& deviceName);
|
||||
long getIdentifyingTime()const;
|
||||
void setIdentifyingTime(long identifyingTime);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
|
||||
private:
|
||||
std::string ext_;
|
||||
std::string identifyingImageUrl_;
|
||||
std::string identifyingImageBase64_;
|
||||
std::string deviceSecret_;
|
||||
std::string productKey_;
|
||||
std::string userId_;
|
||||
std::string iotId_;
|
||||
std::string deviceName_;
|
||||
long identifyingTime_;
|
||||
std::string projectId_;
|
||||
std::string userName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth_console
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT UploadIdentifyRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UploadIdentifyRecordResult();
|
||||
explicit UploadIdentifyRecordResult(const std::string &payload);
|
||||
~UploadIdentifyRecordResult();
|
||||
int getHttpStatusCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDRESULT_H_
|
||||
125
cloudauth-console/src/Cloudauth-consoleClient.cc
Normal file
125
cloudauth-console/src/Cloudauth-consoleClient.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth-console/Cloudauth_consoleClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cloudauth_console;
|
||||
using namespace AlibabaCloud::Cloudauth_console::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cloudauth-console";
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::Cloudauth_consoleClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth-console");
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::Cloudauth_consoleClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth-console");
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::Cloudauth_consoleClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth-console");
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::~Cloudauth_consoleClient()
|
||||
{}
|
||||
|
||||
Cloudauth_consoleClient::RetrieveFaceOutcome Cloudauth_consoleClient::retrieveFace(const RetrieveFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RetrieveFaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RetrieveFaceOutcome(RetrieveFaceResult(outcome.result()));
|
||||
else
|
||||
return RetrieveFaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloudauth_consoleClient::retrieveFaceAsync(const RetrieveFaceRequest& request, const RetrieveFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, retrieveFace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::RetrieveFaceOutcomeCallable Cloudauth_consoleClient::retrieveFaceCallable(const RetrieveFaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RetrieveFaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->retrieveFace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::UploadIdentifyRecordOutcome Cloudauth_consoleClient::uploadIdentifyRecord(const UploadIdentifyRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadIdentifyRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadIdentifyRecordOutcome(UploadIdentifyRecordResult(outcome.result()));
|
||||
else
|
||||
return UploadIdentifyRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloudauth_consoleClient::uploadIdentifyRecordAsync(const UploadIdentifyRecordRequest& request, const UploadIdentifyRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadIdentifyRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloudauth_consoleClient::UploadIdentifyRecordOutcomeCallable Cloudauth_consoleClient::uploadIdentifyRecordCallable(const UploadIdentifyRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadIdentifyRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadIdentifyRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
62
cloudauth-console/src/model/RetrieveFaceRequest.cc
Normal file
62
cloudauth-console/src/model/RetrieveFaceRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth-console/model/RetrieveFaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth_console::Model::RetrieveFaceRequest;
|
||||
|
||||
RetrieveFaceRequest::RetrieveFaceRequest() :
|
||||
RpcServiceRequest("cloudauth-console", "2019-04-03", "RetrieveFace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RetrieveFaceRequest::~RetrieveFaceRequest()
|
||||
{}
|
||||
|
||||
std::string RetrieveFaceRequest::getFace64String()const
|
||||
{
|
||||
return face64String_;
|
||||
}
|
||||
|
||||
void RetrieveFaceRequest::setFace64String(const std::string& face64String)
|
||||
{
|
||||
face64String_ = face64String;
|
||||
setBodyParameter("Face64String", face64String);
|
||||
}
|
||||
|
||||
std::string RetrieveFaceRequest::getFaceUrl()const
|
||||
{
|
||||
return faceUrl_;
|
||||
}
|
||||
|
||||
void RetrieveFaceRequest::setFaceUrl(const std::string& faceUrl)
|
||||
{
|
||||
faceUrl_ = faceUrl;
|
||||
setParameter("FaceUrl", faceUrl);
|
||||
}
|
||||
|
||||
std::string RetrieveFaceRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void RetrieveFaceRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
68
cloudauth-console/src/model/RetrieveFaceResult.cc
Normal file
68
cloudauth-console/src/model/RetrieveFaceResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth-console/model/RetrieveFaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth_console;
|
||||
using namespace AlibabaCloud::Cloudauth_console::Model;
|
||||
|
||||
RetrieveFaceResult::RetrieveFaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RetrieveFaceResult::RetrieveFaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RetrieveFaceResult::~RetrieveFaceResult()
|
||||
{}
|
||||
|
||||
void RetrieveFaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["UserId"].isNull())
|
||||
dataObject.userId = std::stol(valueDataDataItem["UserId"].asString());
|
||||
if(!valueDataDataItem["UserName"].isNull())
|
||||
dataObject.userName = valueDataDataItem["UserName"].asString();
|
||||
if(!valueDataDataItem["Rate"].isNull())
|
||||
dataObject.rate = valueDataDataItem["Rate"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<RetrieveFaceResult::DataItem> RetrieveFaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool RetrieveFaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
150
cloudauth-console/src/model/UploadIdentifyRecordRequest.cc
Normal file
150
cloudauth-console/src/model/UploadIdentifyRecordRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth-console/model/UploadIdentifyRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth_console::Model::UploadIdentifyRecordRequest;
|
||||
|
||||
UploadIdentifyRecordRequest::UploadIdentifyRecordRequest() :
|
||||
RpcServiceRequest("cloudauth-console", "2019-04-03", "UploadIdentifyRecord")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadIdentifyRecordRequest::~UploadIdentifyRecordRequest()
|
||||
{}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getExt()const
|
||||
{
|
||||
return ext_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setExt(const std::string& ext)
|
||||
{
|
||||
ext_ = ext;
|
||||
setParameter("Ext", ext);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getIdentifyingImageUrl()const
|
||||
{
|
||||
return identifyingImageUrl_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setIdentifyingImageUrl(const std::string& identifyingImageUrl)
|
||||
{
|
||||
identifyingImageUrl_ = identifyingImageUrl;
|
||||
setParameter("IdentifyingImageUrl", identifyingImageUrl);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getIdentifyingImageBase64()const
|
||||
{
|
||||
return identifyingImageBase64_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setIdentifyingImageBase64(const std::string& identifyingImageBase64)
|
||||
{
|
||||
identifyingImageBase64_ = identifyingImageBase64;
|
||||
setBodyParameter("IdentifyingImageBase64", identifyingImageBase64);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getDeviceSecret()const
|
||||
{
|
||||
return deviceSecret_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setDeviceSecret(const std::string& deviceSecret)
|
||||
{
|
||||
deviceSecret_ = deviceSecret;
|
||||
setParameter("DeviceSecret", deviceSecret);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
long UploadIdentifyRecordRequest::getIdentifyingTime()const
|
||||
{
|
||||
return identifyingTime_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setIdentifyingTime(long identifyingTime)
|
||||
{
|
||||
identifyingTime_ = identifyingTime;
|
||||
setParameter("IdentifyingTime", std::to_string(identifyingTime));
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string UploadIdentifyRecordRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void UploadIdentifyRecordRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
@@ -14,45 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hitsdb/model/GetLindormSSLCertUrlResult.h>
|
||||
#include <alibabacloud/cloudauth-console/model/UploadIdentifyRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Hitsdb;
|
||||
using namespace AlibabaCloud::Hitsdb::Model;
|
||||
using namespace AlibabaCloud::Cloudauth_console;
|
||||
using namespace AlibabaCloud::Cloudauth_console::Model;
|
||||
|
||||
GetLindormSSLCertUrlResult::GetLindormSSLCertUrlResult() :
|
||||
UploadIdentifyRecordResult::UploadIdentifyRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetLindormSSLCertUrlResult::GetLindormSSLCertUrlResult(const std::string &payload) :
|
||||
UploadIdentifyRecordResult::UploadIdentifyRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetLindormSSLCertUrlResult::~GetLindormSSLCertUrlResult()
|
||||
UploadIdentifyRecordResult::~UploadIdentifyRecordResult()
|
||||
{}
|
||||
|
||||
void GetLindormSSLCertUrlResult::parse(const std::string &payload)
|
||||
void UploadIdentifyRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CertUrl"].isNull())
|
||||
certUrl_ = value["CertUrl"].asString();
|
||||
if(!value["CertExpiresAt"].isNull())
|
||||
certExpiresAt_ = std::stol(value["CertExpiresAt"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
long GetLindormSSLCertUrlResult::getCertExpiresAt()const
|
||||
int UploadIdentifyRecordResult::getHttpStatusCode()const
|
||||
{
|
||||
return certExpiresAt_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetLindormSSLCertUrlResult::getCertUrl()const
|
||||
bool UploadIdentifyRecordResult::getSuccess()const
|
||||
{
|
||||
return certUrl_;
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -29,78 +29,28 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateRPSDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateRPSDKResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistSettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistSettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeRPSDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeRPSDKResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeSdkUrlResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUploadInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUserStatusRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUserStatusResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyRecordsRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyRecordsResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyResultResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistSettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistSettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/InitDeviceRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitDeviceResult.h
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h
|
||||
include/alibabacloud/cloudauth/model/VerifyMaterialResult.h )
|
||||
|
||||
@@ -114,78 +64,28 @@ set(cloudauth_src
|
||||
src/model/ContrastFaceVerifyResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/CreateFaceConfigRequest.cc
|
||||
src/model/CreateFaceConfigResult.cc
|
||||
src/model/CreateRPSDKRequest.cc
|
||||
src/model/CreateRPSDKResult.cc
|
||||
src/model/CreateVerifySDKRequest.cc
|
||||
src/model/CreateVerifySDKResult.cc
|
||||
src/model/CreateVerifySettingRequest.cc
|
||||
src/model/CreateVerifySettingResult.cc
|
||||
src/model/CreateWhitelistRequest.cc
|
||||
src/model/CreateWhitelistResult.cc
|
||||
src/model/CreateWhitelistSettingRequest.cc
|
||||
src/model/CreateWhitelistSettingResult.cc
|
||||
src/model/DeleteWhitelistRequest.cc
|
||||
src/model/DeleteWhitelistResult.cc
|
||||
src/model/DeleteWhitelistSettingRequest.cc
|
||||
src/model/DeleteWhitelistSettingResult.cc
|
||||
src/model/DescribeAppInfoRequest.cc
|
||||
src/model/DescribeAppInfoResult.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
src/model/DescribeDeviceInfoResult.cc
|
||||
src/model/DescribeFaceConfigRequest.cc
|
||||
src/model/DescribeFaceConfigResult.cc
|
||||
src/model/DescribeFaceUsageRequest.cc
|
||||
src/model/DescribeFaceUsageResult.cc
|
||||
src/model/DescribeFaceVerifyRequest.cc
|
||||
src/model/DescribeFaceVerifyResult.cc
|
||||
src/model/DescribeOssUploadTokenRequest.cc
|
||||
src/model/DescribeOssUploadTokenResult.cc
|
||||
src/model/DescribeRPSDKRequest.cc
|
||||
src/model/DescribeRPSDKResult.cc
|
||||
src/model/DescribeSdkUrlRequest.cc
|
||||
src/model/DescribeSdkUrlResult.cc
|
||||
src/model/DescribeUpdatePackageResultRequest.cc
|
||||
src/model/DescribeUpdatePackageResultResult.cc
|
||||
src/model/DescribeUploadInfoRequest.cc
|
||||
src/model/DescribeUploadInfoResult.cc
|
||||
src/model/DescribeUserStatusRequest.cc
|
||||
src/model/DescribeUserStatusResult.cc
|
||||
src/model/DescribeVerifyRecordsRequest.cc
|
||||
src/model/DescribeVerifyRecordsResult.cc
|
||||
src/model/DescribeVerifyResultRequest.cc
|
||||
src/model/DescribeVerifyResultResult.cc
|
||||
src/model/DescribeVerifySDKRequest.cc
|
||||
src/model/DescribeVerifySDKResult.cc
|
||||
src/model/DescribeVerifySettingRequest.cc
|
||||
src/model/DescribeVerifySettingResult.cc
|
||||
src/model/DescribeVerifyTokenRequest.cc
|
||||
src/model/DescribeVerifyTokenResult.cc
|
||||
src/model/DescribeVerifyUsageRequest.cc
|
||||
src/model/DescribeVerifyUsageResult.cc
|
||||
src/model/DescribeWhitelistRequest.cc
|
||||
src/model/DescribeWhitelistResult.cc
|
||||
src/model/DescribeWhitelistSettingRequest.cc
|
||||
src/model/DescribeWhitelistSettingResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/InitDeviceRequest.cc
|
||||
src/model/InitDeviceResult.cc
|
||||
src/model/InitFaceVerifyRequest.cc
|
||||
src/model/InitFaceVerifyResult.cc
|
||||
src/model/LivenessFaceVerifyRequest.cc
|
||||
src/model/LivenessFaceVerifyResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/UpdateAppPackageRequest.cc
|
||||
src/model/UpdateAppPackageResult.cc
|
||||
src/model/UpdateFaceConfigRequest.cc
|
||||
src/model/UpdateFaceConfigResult.cc
|
||||
src/model/UpdateVerifySettingRequest.cc
|
||||
src/model/UpdateVerifySettingResult.cc
|
||||
src/model/VerifyDeviceRequest.cc
|
||||
src/model/VerifyDeviceResult.cc
|
||||
src/model/VerifyMaterialRequest.cc
|
||||
src/model/VerifyMaterialResult.cc )
|
||||
|
||||
|
||||
@@ -30,78 +30,28 @@
|
||||
#include "model/ContrastFaceVerifyResult.h"
|
||||
#include "model/CreateAuthKeyRequest.h"
|
||||
#include "model/CreateAuthKeyResult.h"
|
||||
#include "model/CreateFaceConfigRequest.h"
|
||||
#include "model/CreateFaceConfigResult.h"
|
||||
#include "model/CreateRPSDKRequest.h"
|
||||
#include "model/CreateRPSDKResult.h"
|
||||
#include "model/CreateVerifySDKRequest.h"
|
||||
#include "model/CreateVerifySDKResult.h"
|
||||
#include "model/CreateVerifySettingRequest.h"
|
||||
#include "model/CreateVerifySettingResult.h"
|
||||
#include "model/CreateWhitelistRequest.h"
|
||||
#include "model/CreateWhitelistResult.h"
|
||||
#include "model/CreateWhitelistSettingRequest.h"
|
||||
#include "model/CreateWhitelistSettingResult.h"
|
||||
#include "model/DeleteWhitelistRequest.h"
|
||||
#include "model/DeleteWhitelistResult.h"
|
||||
#include "model/DeleteWhitelistSettingRequest.h"
|
||||
#include "model/DeleteWhitelistSettingResult.h"
|
||||
#include "model/DescribeAppInfoRequest.h"
|
||||
#include "model/DescribeAppInfoResult.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
#include "model/DescribeDeviceInfoResult.h"
|
||||
#include "model/DescribeFaceConfigRequest.h"
|
||||
#include "model/DescribeFaceConfigResult.h"
|
||||
#include "model/DescribeFaceUsageRequest.h"
|
||||
#include "model/DescribeFaceUsageResult.h"
|
||||
#include "model/DescribeFaceVerifyRequest.h"
|
||||
#include "model/DescribeFaceVerifyResult.h"
|
||||
#include "model/DescribeOssUploadTokenRequest.h"
|
||||
#include "model/DescribeOssUploadTokenResult.h"
|
||||
#include "model/DescribeRPSDKRequest.h"
|
||||
#include "model/DescribeRPSDKResult.h"
|
||||
#include "model/DescribeSdkUrlRequest.h"
|
||||
#include "model/DescribeSdkUrlResult.h"
|
||||
#include "model/DescribeUpdatePackageResultRequest.h"
|
||||
#include "model/DescribeUpdatePackageResultResult.h"
|
||||
#include "model/DescribeUploadInfoRequest.h"
|
||||
#include "model/DescribeUploadInfoResult.h"
|
||||
#include "model/DescribeUserStatusRequest.h"
|
||||
#include "model/DescribeUserStatusResult.h"
|
||||
#include "model/DescribeVerifyRecordsRequest.h"
|
||||
#include "model/DescribeVerifyRecordsResult.h"
|
||||
#include "model/DescribeVerifyResultRequest.h"
|
||||
#include "model/DescribeVerifyResultResult.h"
|
||||
#include "model/DescribeVerifySDKRequest.h"
|
||||
#include "model/DescribeVerifySDKResult.h"
|
||||
#include "model/DescribeVerifySettingRequest.h"
|
||||
#include "model/DescribeVerifySettingResult.h"
|
||||
#include "model/DescribeVerifyTokenRequest.h"
|
||||
#include "model/DescribeVerifyTokenResult.h"
|
||||
#include "model/DescribeVerifyUsageRequest.h"
|
||||
#include "model/DescribeVerifyUsageResult.h"
|
||||
#include "model/DescribeWhitelistRequest.h"
|
||||
#include "model/DescribeWhitelistResult.h"
|
||||
#include "model/DescribeWhitelistSettingRequest.h"
|
||||
#include "model/DescribeWhitelistSettingResult.h"
|
||||
#include "model/DetectFaceAttributesRequest.h"
|
||||
#include "model/DetectFaceAttributesResult.h"
|
||||
#include "model/InitDeviceRequest.h"
|
||||
#include "model/InitDeviceResult.h"
|
||||
#include "model/InitFaceVerifyRequest.h"
|
||||
#include "model/InitFaceVerifyResult.h"
|
||||
#include "model/LivenessFaceVerifyRequest.h"
|
||||
#include "model/LivenessFaceVerifyResult.h"
|
||||
#include "model/ModifyDeviceInfoRequest.h"
|
||||
#include "model/ModifyDeviceInfoResult.h"
|
||||
#include "model/UpdateAppPackageRequest.h"
|
||||
#include "model/UpdateAppPackageResult.h"
|
||||
#include "model/UpdateFaceConfigRequest.h"
|
||||
#include "model/UpdateFaceConfigResult.h"
|
||||
#include "model/UpdateVerifySettingRequest.h"
|
||||
#include "model/UpdateVerifySettingResult.h"
|
||||
#include "model/VerifyDeviceRequest.h"
|
||||
#include "model/VerifyDeviceResult.h"
|
||||
#include "model/VerifyMaterialRequest.h"
|
||||
#include "model/VerifyMaterialResult.h"
|
||||
|
||||
@@ -125,93 +75,30 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFaceConfigResult> CreateFaceConfigOutcome;
|
||||
typedef std::future<CreateFaceConfigOutcome> CreateFaceConfigOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateFaceConfigRequest&, const CreateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRPSDKResult> CreateRPSDKOutcome;
|
||||
typedef std::future<CreateRPSDKOutcome> CreateRPSDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateRPSDKRequest&, const CreateRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRPSDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
|
||||
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySDKRequest&, const CreateVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVerifySettingResult> CreateVerifySettingOutcome;
|
||||
typedef std::future<CreateVerifySettingOutcome> CreateVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySettingRequest&, const CreateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWhitelistResult> CreateWhitelistOutcome;
|
||||
typedef std::future<CreateWhitelistOutcome> CreateWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistRequest&, const CreateWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWhitelistSettingResult> CreateWhitelistSettingOutcome;
|
||||
typedef std::future<CreateWhitelistSettingOutcome> CreateWhitelistSettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistSettingRequest&, const CreateWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteWhitelistResult> DeleteWhitelistOutcome;
|
||||
typedef std::future<DeleteWhitelistOutcome> DeleteWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistRequest&, const DeleteWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteWhitelistSettingResult> DeleteWhitelistSettingOutcome;
|
||||
typedef std::future<DeleteWhitelistSettingOutcome> DeleteWhitelistSettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistSettingRequest&, const DeleteWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAppInfoResult> DescribeAppInfoOutcome;
|
||||
typedef std::future<DescribeAppInfoOutcome> DescribeAppInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeAppInfoRequest&, const DescribeAppInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAppInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceConfigResult> DescribeFaceConfigOutcome;
|
||||
typedef std::future<DescribeFaceConfigOutcome> DescribeFaceConfigOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceConfigRequest&, const DescribeFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
|
||||
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceVerifyResult> DescribeFaceVerifyOutcome;
|
||||
typedef std::future<DescribeFaceVerifyOutcome> DescribeFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceVerifyRequest&, const DescribeFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeOssUploadTokenResult> DescribeOssUploadTokenOutcome;
|
||||
typedef std::future<DescribeOssUploadTokenOutcome> DescribeOssUploadTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeOssUploadTokenRequest&, const DescribeOssUploadTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOssUploadTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRPSDKResult> DescribeRPSDKOutcome;
|
||||
typedef std::future<DescribeRPSDKOutcome> DescribeRPSDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeRPSDKRequest&, const DescribeRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRPSDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSdkUrlResult> DescribeSdkUrlOutcome;
|
||||
typedef std::future<DescribeSdkUrlOutcome> DescribeSdkUrlOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeSdkUrlRequest&, const DescribeSdkUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSdkUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUpdatePackageResultResult> DescribeUpdatePackageResultOutcome;
|
||||
typedef std::future<DescribeUpdatePackageResultOutcome> DescribeUpdatePackageResultOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeUpdatePackageResultRequest&, const DescribeUpdatePackageResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpdatePackageResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUploadInfoResult> DescribeUploadInfoOutcome;
|
||||
typedef std::future<DescribeUploadInfoOutcome> DescribeUploadInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeUploadInfoRequest&, const DescribeUploadInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUploadInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUserStatusResult> DescribeUserStatusOutcome;
|
||||
typedef std::future<DescribeUserStatusOutcome> DescribeUserStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeUserStatusRequest&, const DescribeUserStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifyRecordsResult> DescribeVerifyRecordsOutcome;
|
||||
typedef std::future<DescribeVerifyRecordsOutcome> DescribeVerifyRecordsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyRecordsRequest&, const DescribeVerifyRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifyResultResult> DescribeVerifyResultOutcome;
|
||||
typedef std::future<DescribeVerifyResultOutcome> DescribeVerifyResultOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyResultRequest&, const DescribeVerifyResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
|
||||
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySDKRequest&, const DescribeVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifySettingResult> DescribeVerifySettingOutcome;
|
||||
typedef std::future<DescribeVerifySettingOutcome> DescribeVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySettingRequest&, const DescribeVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifyTokenResult> DescribeVerifyTokenOutcome;
|
||||
typedef std::future<DescribeVerifyTokenOutcome> DescribeVerifyTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyTokenRequest&, const DescribeVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifyUsageResult> DescribeVerifyUsageOutcome;
|
||||
typedef std::future<DescribeVerifyUsageOutcome> DescribeVerifyUsageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyUsageRequest&, const DescribeVerifyUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyUsageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWhitelistResult> DescribeWhitelistOutcome;
|
||||
typedef std::future<DescribeWhitelistOutcome> DescribeWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistRequest&, const DescribeWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWhitelistSettingResult> DescribeWhitelistSettingOutcome;
|
||||
typedef std::future<DescribeWhitelistSettingOutcome> DescribeWhitelistSettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistSettingRequest&, const DescribeWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitDeviceResult> InitDeviceOutcome;
|
||||
typedef std::future<InitDeviceOutcome> InitDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitDeviceRequest&, const InitDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
|
||||
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
|
||||
@@ -221,18 +108,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
|
||||
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateFaceConfigResult> UpdateFaceConfigOutcome;
|
||||
typedef std::future<UpdateFaceConfigOutcome> UpdateFaceConfigOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateFaceConfigRequest&, const UpdateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
|
||||
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyDeviceResult> VerifyDeviceOutcome;
|
||||
typedef std::future<VerifyDeviceOutcome> VerifyDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::VerifyDeviceRequest&, const VerifyDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyMaterialResult> VerifyMaterialOutcome;
|
||||
typedef std::future<VerifyMaterialOutcome> VerifyMaterialOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::VerifyMaterialRequest&, const VerifyMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMaterialAsyncHandler;
|
||||
@@ -253,93 +128,30 @@ namespace AlibabaCloud
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
CreateFaceConfigOutcome createFaceConfig(const Model::CreateFaceConfigRequest &request)const;
|
||||
void createFaceConfigAsync(const Model::CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFaceConfigOutcomeCallable createFaceConfigCallable(const Model::CreateFaceConfigRequest& request) const;
|
||||
CreateRPSDKOutcome createRPSDK(const Model::CreateRPSDKRequest &request)const;
|
||||
void createRPSDKAsync(const Model::CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRPSDKOutcomeCallable createRPSDKCallable(const Model::CreateRPSDKRequest& request) const;
|
||||
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
|
||||
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySDKOutcomeCallable createVerifySDKCallable(const Model::CreateVerifySDKRequest& request) const;
|
||||
CreateVerifySettingOutcome createVerifySetting(const Model::CreateVerifySettingRequest &request)const;
|
||||
void createVerifySettingAsync(const Model::CreateVerifySettingRequest& request, const CreateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySettingOutcomeCallable createVerifySettingCallable(const Model::CreateVerifySettingRequest& request) const;
|
||||
CreateWhitelistOutcome createWhitelist(const Model::CreateWhitelistRequest &request)const;
|
||||
void createWhitelistAsync(const Model::CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWhitelistOutcomeCallable createWhitelistCallable(const Model::CreateWhitelistRequest& request) const;
|
||||
CreateWhitelistSettingOutcome createWhitelistSetting(const Model::CreateWhitelistSettingRequest &request)const;
|
||||
void createWhitelistSettingAsync(const Model::CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWhitelistSettingOutcomeCallable createWhitelistSettingCallable(const Model::CreateWhitelistSettingRequest& request) const;
|
||||
DeleteWhitelistOutcome deleteWhitelist(const Model::DeleteWhitelistRequest &request)const;
|
||||
void deleteWhitelistAsync(const Model::DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteWhitelistOutcomeCallable deleteWhitelistCallable(const Model::DeleteWhitelistRequest& request) const;
|
||||
DeleteWhitelistSettingOutcome deleteWhitelistSetting(const Model::DeleteWhitelistSettingRequest &request)const;
|
||||
void deleteWhitelistSettingAsync(const Model::DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteWhitelistSettingOutcomeCallable deleteWhitelistSettingCallable(const Model::DeleteWhitelistSettingRequest& request) const;
|
||||
DescribeAppInfoOutcome describeAppInfo(const Model::DescribeAppInfoRequest &request)const;
|
||||
void describeAppInfoAsync(const Model::DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAppInfoOutcomeCallable describeAppInfoCallable(const Model::DescribeAppInfoRequest& request) const;
|
||||
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
||||
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
|
||||
DescribeFaceConfigOutcome describeFaceConfig(const Model::DescribeFaceConfigRequest &request)const;
|
||||
void describeFaceConfigAsync(const Model::DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceConfigOutcomeCallable describeFaceConfigCallable(const Model::DescribeFaceConfigRequest& request) const;
|
||||
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
|
||||
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
|
||||
DescribeFaceVerifyOutcome describeFaceVerify(const Model::DescribeFaceVerifyRequest &request)const;
|
||||
void describeFaceVerifyAsync(const Model::DescribeFaceVerifyRequest& request, const DescribeFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceVerifyOutcomeCallable describeFaceVerifyCallable(const Model::DescribeFaceVerifyRequest& request) const;
|
||||
DescribeOssUploadTokenOutcome describeOssUploadToken(const Model::DescribeOssUploadTokenRequest &request)const;
|
||||
void describeOssUploadTokenAsync(const Model::DescribeOssUploadTokenRequest& request, const DescribeOssUploadTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOssUploadTokenOutcomeCallable describeOssUploadTokenCallable(const Model::DescribeOssUploadTokenRequest& request) const;
|
||||
DescribeRPSDKOutcome describeRPSDK(const Model::DescribeRPSDKRequest &request)const;
|
||||
void describeRPSDKAsync(const Model::DescribeRPSDKRequest& request, const DescribeRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRPSDKOutcomeCallable describeRPSDKCallable(const Model::DescribeRPSDKRequest& request) const;
|
||||
DescribeSdkUrlOutcome describeSdkUrl(const Model::DescribeSdkUrlRequest &request)const;
|
||||
void describeSdkUrlAsync(const Model::DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSdkUrlOutcomeCallable describeSdkUrlCallable(const Model::DescribeSdkUrlRequest& request) const;
|
||||
DescribeUpdatePackageResultOutcome describeUpdatePackageResult(const Model::DescribeUpdatePackageResultRequest &request)const;
|
||||
void describeUpdatePackageResultAsync(const Model::DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUpdatePackageResultOutcomeCallable describeUpdatePackageResultCallable(const Model::DescribeUpdatePackageResultRequest& request) const;
|
||||
DescribeUploadInfoOutcome describeUploadInfo(const Model::DescribeUploadInfoRequest &request)const;
|
||||
void describeUploadInfoAsync(const Model::DescribeUploadInfoRequest& request, const DescribeUploadInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUploadInfoOutcomeCallable describeUploadInfoCallable(const Model::DescribeUploadInfoRequest& request) const;
|
||||
DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const;
|
||||
void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const;
|
||||
DescribeVerifyRecordsOutcome describeVerifyRecords(const Model::DescribeVerifyRecordsRequest &request)const;
|
||||
void describeVerifyRecordsAsync(const Model::DescribeVerifyRecordsRequest& request, const DescribeVerifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyRecordsOutcomeCallable describeVerifyRecordsCallable(const Model::DescribeVerifyRecordsRequest& request) const;
|
||||
DescribeVerifyResultOutcome describeVerifyResult(const Model::DescribeVerifyResultRequest &request)const;
|
||||
void describeVerifyResultAsync(const Model::DescribeVerifyResultRequest& request, const DescribeVerifyResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyResultOutcomeCallable describeVerifyResultCallable(const Model::DescribeVerifyResultRequest& request) const;
|
||||
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
|
||||
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySDKOutcomeCallable describeVerifySDKCallable(const Model::DescribeVerifySDKRequest& request) const;
|
||||
DescribeVerifySettingOutcome describeVerifySetting(const Model::DescribeVerifySettingRequest &request)const;
|
||||
void describeVerifySettingAsync(const Model::DescribeVerifySettingRequest& request, const DescribeVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySettingOutcomeCallable describeVerifySettingCallable(const Model::DescribeVerifySettingRequest& request) const;
|
||||
DescribeVerifyTokenOutcome describeVerifyToken(const Model::DescribeVerifyTokenRequest &request)const;
|
||||
void describeVerifyTokenAsync(const Model::DescribeVerifyTokenRequest& request, const DescribeVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyTokenOutcomeCallable describeVerifyTokenCallable(const Model::DescribeVerifyTokenRequest& request) const;
|
||||
DescribeVerifyUsageOutcome describeVerifyUsage(const Model::DescribeVerifyUsageRequest &request)const;
|
||||
void describeVerifyUsageAsync(const Model::DescribeVerifyUsageRequest& request, const DescribeVerifyUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyUsageOutcomeCallable describeVerifyUsageCallable(const Model::DescribeVerifyUsageRequest& request) const;
|
||||
DescribeWhitelistOutcome describeWhitelist(const Model::DescribeWhitelistRequest &request)const;
|
||||
void describeWhitelistAsync(const Model::DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWhitelistOutcomeCallable describeWhitelistCallable(const Model::DescribeWhitelistRequest& request) const;
|
||||
DescribeWhitelistSettingOutcome describeWhitelistSetting(const Model::DescribeWhitelistSettingRequest &request)const;
|
||||
void describeWhitelistSettingAsync(const Model::DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWhitelistSettingOutcomeCallable describeWhitelistSettingCallable(const Model::DescribeWhitelistSettingRequest& request) const;
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
InitDeviceOutcome initDevice(const Model::InitDeviceRequest &request)const;
|
||||
void initDeviceAsync(const Model::InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitDeviceOutcomeCallable initDeviceCallable(const Model::InitDeviceRequest& request) const;
|
||||
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
|
||||
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
|
||||
@@ -349,18 +161,6 @@ namespace AlibabaCloud
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
|
||||
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
|
||||
UpdateFaceConfigOutcome updateFaceConfig(const Model::UpdateFaceConfigRequest &request)const;
|
||||
void updateFaceConfigAsync(const Model::UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFaceConfigOutcomeCallable updateFaceConfigCallable(const Model::UpdateFaceConfigRequest& request) const;
|
||||
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
|
||||
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
|
||||
VerifyDeviceOutcome verifyDevice(const Model::VerifyDeviceRequest &request)const;
|
||||
void verifyDeviceAsync(const Model::VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyDeviceOutcomeCallable verifyDeviceCallable(const Model::VerifyDeviceRequest& request) const;
|
||||
VerifyMaterialOutcome verifyMaterial(const Model::VerifyMaterialRequest &request)const;
|
||||
void verifyMaterialAsync(const Model::VerifyMaterialRequest& request, const VerifyMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyMaterialOutcomeCallable verifyMaterialCallable(const Model::VerifyMaterialRequest& request) const;
|
||||
|
||||
@@ -35,49 +35,49 @@ namespace AlibabaCloud
|
||||
CompareFaceVerifyRequest();
|
||||
~CompareFaceVerifyRequest();
|
||||
|
||||
std::string getTargetFaceContrastPictureUrl()const;
|
||||
void setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getTargetCertifyId()const;
|
||||
void setTargetCertifyId(const std::string& targetCertifyId);
|
||||
std::string getSourceOssObjectName()const;
|
||||
void setSourceOssObjectName(const std::string& sourceOssObjectName);
|
||||
std::string getTargetFaceContrastPicture()const;
|
||||
void setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture);
|
||||
std::string getTargetOssBucketName()const;
|
||||
void setTargetOssBucketName(const std::string& targetOssBucketName);
|
||||
std::string getSourceOssBucketName()const;
|
||||
void setSourceOssBucketName(const std::string& sourceOssBucketName);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getTargetOssObjectName()const;
|
||||
void setTargetOssObjectName(const std::string& targetOssObjectName);
|
||||
std::string getSourceFaceContrastPicture()const;
|
||||
void setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture);
|
||||
std::string getSourceCertifyId()const;
|
||||
void setSourceCertifyId(const std::string& sourceCertifyId);
|
||||
std::string getTargetFaceContrastPictureUrl()const;
|
||||
void setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl);
|
||||
std::string getSourceOssObjectName()const;
|
||||
void setSourceOssObjectName(const std::string& sourceOssObjectName);
|
||||
std::string getSourceOssBucketName()const;
|
||||
void setSourceOssBucketName(const std::string& sourceOssBucketName);
|
||||
std::string getTargetOssObjectName()const;
|
||||
void setTargetOssObjectName(const std::string& targetOssObjectName);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getSourceFaceContrastPictureUrl()const;
|
||||
void setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl);
|
||||
std::string getSourceCertifyId()const;
|
||||
void setSourceCertifyId(const std::string& sourceCertifyId);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
|
||||
private:
|
||||
std::string targetFaceContrastPictureUrl_;
|
||||
std::string productCode_;
|
||||
std::string targetCertifyId_;
|
||||
std::string sourceOssObjectName_;
|
||||
std::string targetFaceContrastPicture_;
|
||||
std::string targetOssBucketName_;
|
||||
std::string sourceOssBucketName_;
|
||||
std::string outerOrderNo_;
|
||||
std::string targetOssObjectName_;
|
||||
std::string sourceFaceContrastPicture_;
|
||||
std::string sourceCertifyId_;
|
||||
std::string targetFaceContrastPictureUrl_;
|
||||
std::string sourceOssObjectName_;
|
||||
std::string sourceOssBucketName_;
|
||||
std::string targetOssObjectName_;
|
||||
long sceneId_;
|
||||
std::string sourceFaceContrastPictureUrl_;
|
||||
std::string sourceCertifyId_;
|
||||
std::string crop_;
|
||||
|
||||
};
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateFaceConfigRequest();
|
||||
~CreateFaceConfigRequest();
|
||||
|
||||
std::string getBizName()const;
|
||||
void setBizName(const std::string& bizName);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string bizName_;
|
||||
std::string bizType_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATERPSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATERPSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateRPSDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateRPSDKRequest();
|
||||
~CreateRPSDKRequest();
|
||||
|
||||
std::string getAppUrl()const;
|
||||
void setAppUrl(const std::string& appUrl);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string appUrl_;
|
||||
std::string platform_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATERPSDKREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVerifySDKRequest();
|
||||
~CreateVerifySDKRequest();
|
||||
|
||||
std::string getAppUrl()const;
|
||||
void setAppUrl(const std::string& appUrl);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string appUrl_;
|
||||
std::string platform_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateWhitelistRequest();
|
||||
~CreateWhitelistRequest();
|
||||
|
||||
std::string getValidDay()const;
|
||||
void setValidDay(const std::string& validDay);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getIdCardNum()const;
|
||||
void setIdCardNum(const std::string& idCardNum);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string validDay_;
|
||||
std::string bizType_;
|
||||
std::string idCardNum_;
|
||||
std::string sourceIp_;
|
||||
std::string bizId_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistSettingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateWhitelistSettingRequest();
|
||||
~CreateWhitelistSettingRequest();
|
||||
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
int getValidDay()const;
|
||||
void setValidDay(int validDay);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string certifyId_;
|
||||
std::string certNo_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
int validDay_;
|
||||
std::string serviceCode_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistSettingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteWhitelistSettingRequest();
|
||||
~DeleteWhitelistSettingRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getIds()const;
|
||||
void setIds(const std::string& ids);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string serviceCode_;
|
||||
std::string ids_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUpdatePackageResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AppInfo
|
||||
{
|
||||
struct PackageInfo
|
||||
{
|
||||
std::string version;
|
||||
};
|
||||
struct DebugPackageInfo
|
||||
{
|
||||
std::string version;
|
||||
};
|
||||
std::string startDate;
|
||||
int type;
|
||||
DebugPackageInfo debugPackageInfo;
|
||||
std::string packageName;
|
||||
PackageInfo packageInfo;
|
||||
long id;
|
||||
std::string icon;
|
||||
std::string endDate;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeUpdatePackageResultResult();
|
||||
explicit DescribeUpdatePackageResultResult(const std::string &payload);
|
||||
~DescribeUpdatePackageResultResult();
|
||||
AppInfo getAppInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
AppInfo appInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifyRecordsRequest();
|
||||
~DescribeVerifyRecordsRequest();
|
||||
|
||||
std::string getStatusList()const;
|
||||
void setStatusList(const std::string& statusList);
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getTotalCount()const;
|
||||
void setTotalCount(int totalCount);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getQueryId()const;
|
||||
void setQueryId(const std::string& queryId);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getIdCardNum()const;
|
||||
void setIdCardNum(const std::string& idCardNum);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
|
||||
private:
|
||||
std::string statusList_;
|
||||
std::string startDate_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
int totalCount_;
|
||||
int currentPage_;
|
||||
std::string queryId_;
|
||||
std::string bizType_;
|
||||
std::string idCardNum_;
|
||||
std::string endDate_;
|
||||
std::string bizId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSREQUEST_H_
|
||||
@@ -1,92 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Records
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
struct IdCardInfo
|
||||
{
|
||||
std::string startDate;
|
||||
std::string number;
|
||||
std::string address;
|
||||
std::string authority;
|
||||
std::string sex;
|
||||
std::string backImageUrl;
|
||||
std::string frontImageUrl;
|
||||
std::string birth;
|
||||
std::string endDate;
|
||||
std::string nationality;
|
||||
std::string name;
|
||||
};
|
||||
std::string idCardName;
|
||||
std::string idCardNumber;
|
||||
IdCardInfo idCardInfo;
|
||||
std::string faceImageUrl;
|
||||
};
|
||||
int status;
|
||||
long finishTime;
|
||||
std::string dataStats;
|
||||
float authorityComparisonScore;
|
||||
Material material;
|
||||
std::string bizType;
|
||||
std::string bizId;
|
||||
std::string verifyId;
|
||||
float idCardFaceComparisonScore;
|
||||
};
|
||||
|
||||
|
||||
DescribeVerifyRecordsResult();
|
||||
explicit DescribeVerifyRecordsResult(const std::string &payload);
|
||||
~DescribeVerifyRecordsResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
std::vector<Records> getRecordsList()const;
|
||||
std::string getQueryId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::vector<Records> recordsList_;
|
||||
std::string queryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSRESULT_H_
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
struct IdCardInfo
|
||||
{
|
||||
std::string startDate;
|
||||
std::string number;
|
||||
std::string address;
|
||||
std::string number;
|
||||
std::string authority;
|
||||
std::string sex;
|
||||
std::string backImageUrl;
|
||||
@@ -48,8 +48,8 @@ namespace AlibabaCloud
|
||||
std::string nationality;
|
||||
std::string name;
|
||||
};
|
||||
std::string idCardName;
|
||||
std::string faceGlobalUrl;
|
||||
std::string idCardName;
|
||||
std::string faceQuality;
|
||||
std::string idCardNumber;
|
||||
std::vector<std::string> videoUrls;
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyUsageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifyUsageRequest();
|
||||
~DescribeVerifyUsageRequest();
|
||||
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
|
||||
private:
|
||||
std::string startDate_;
|
||||
std::string bizType_;
|
||||
std::string endDate_;
|
||||
std::string sourceIp_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGEREQUEST_H_
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeWhitelistRequest();
|
||||
~DescribeWhitelistRequest();
|
||||
|
||||
std::string getValidEndDate()const;
|
||||
void setValidEndDate(const std::string& validEndDate);
|
||||
std::string getValid()const;
|
||||
void setValid(const std::string& valid);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getIdCardNum()const;
|
||||
void setIdCardNum(const std::string& idCardNum);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getValidStartDate()const;
|
||||
void setValidStartDate(const std::string& validStartDate);
|
||||
|
||||
private:
|
||||
std::string validEndDate_;
|
||||
std::string valid_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
int currentPage_;
|
||||
std::string bizType_;
|
||||
std::string idCardNum_;
|
||||
std::string bizId_;
|
||||
std::string validStartDate_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistSettingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeWhitelistSettingRequest();
|
||||
~DescribeWhitelistSettingRequest();
|
||||
|
||||
long getValidEndDate()const;
|
||||
void setValidEndDate(long validEndDate);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
long getValidStartDate()const;
|
||||
void setValidStartDate(long validStartDate);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
long validEndDate_;
|
||||
std::string certifyId_;
|
||||
std::string certNo_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
int currentPage_;
|
||||
std::string serviceCode_;
|
||||
long sceneId_;
|
||||
long validStartDate_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
|
||||
@@ -69,8 +69,8 @@ namespace AlibabaCloud
|
||||
Smiling smiling;
|
||||
Gender gender;
|
||||
float appearanceScore;
|
||||
int age;
|
||||
float facequal;
|
||||
int age;
|
||||
int integrity;
|
||||
};
|
||||
FaceAttributes faceAttributes;
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InitDeviceRequest();
|
||||
~InitDeviceRequest();
|
||||
|
||||
std::string getChannel()const;
|
||||
void setChannel(const std::string& channel);
|
||||
std::string getBizData()const;
|
||||
void setBizData(const std::string& bizData);
|
||||
std::string getMerchant()const;
|
||||
void setMerchant(const std::string& merchant);
|
||||
std::string getAppVersion()const;
|
||||
void setAppVersion(const std::string& appVersion);
|
||||
std::string getDeviceToken()const;
|
||||
void setDeviceToken(const std::string& deviceToken);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getWebUmidToken()const;
|
||||
void setWebUmidToken(const std::string& webUmidToken);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getProduceNode()const;
|
||||
void setProduceNode(const std::string& produceNode);
|
||||
std::string getUaToken()const;
|
||||
void setUaToken(const std::string& uaToken);
|
||||
std::string getProductName()const;
|
||||
void setProductName(const std::string& productName);
|
||||
std::string getCertifyPrincipal()const;
|
||||
void setCertifyPrincipal(const std::string& certifyPrincipal);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
|
||||
private:
|
||||
std::string channel_;
|
||||
std::string bizData_;
|
||||
std::string merchant_;
|
||||
std::string appVersion_;
|
||||
std::string deviceToken_;
|
||||
std::string certifyId_;
|
||||
std::string webUmidToken_;
|
||||
std::string outerOrderNo_;
|
||||
std::string produceNode_;
|
||||
std::string uaToken_;
|
||||
std::string productName_;
|
||||
std::string certifyPrincipal_;
|
||||
std::string metaInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
|
||||
@@ -63,6 +63,8 @@ namespace AlibabaCloud
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getAuthId()const;
|
||||
void setAuthId(const std::string& authId);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
@@ -75,6 +77,8 @@ namespace AlibabaCloud
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
std::string getCertifyUrlType()const;
|
||||
void setCertifyUrlType(const std::string& certifyUrlType);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
@@ -91,12 +95,14 @@ namespace AlibabaCloud
|
||||
std::string certName_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
std::string authId_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
std::string callbackToken_;
|
||||
std::string returnUrl_;
|
||||
std::string callbackUrl_;
|
||||
std::string crop_;
|
||||
std::string certifyUrlType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,14 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getFaceContrastPicture()const;
|
||||
void setFaceContrastPicture(const std::string& faceContrastPicture);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getDeviceToken()const;
|
||||
void setDeviceToken(const std::string& deviceToken);
|
||||
std::string getUserId()const;
|
||||
@@ -55,29 +49,35 @@ namespace AlibabaCloud
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getFaceContrastPictureUrl()const;
|
||||
void setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl);
|
||||
std::string getModel()const;
|
||||
void setModel(const std::string& model);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getModel()const;
|
||||
void setModel(const std::string& model);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string ossObjectName_;
|
||||
std::string faceContrastPicture_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
std::string deviceToken_;
|
||||
std::string userId_;
|
||||
std::string certifyId_;
|
||||
std::string outerOrderNo_;
|
||||
std::string faceContrastPictureUrl_;
|
||||
std::string model_;
|
||||
std::string ossObjectName_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
std::string model_;
|
||||
std::string crop_;
|
||||
|
||||
};
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateAppPackageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateAppPackageRequest();
|
||||
~UpdateAppPackageRequest();
|
||||
|
||||
bool getDebug()const;
|
||||
void setDebug(bool debug);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getPackageUrl()const;
|
||||
void setPackageUrl(const std::string& packageUrl);
|
||||
long getId()const;
|
||||
void setId(long id);
|
||||
|
||||
private:
|
||||
bool debug_;
|
||||
std::string platform_;
|
||||
std::string sourceIp_;
|
||||
std::string packageUrl_;
|
||||
long id_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateFaceConfigRequest();
|
||||
~UpdateFaceConfigRequest();
|
||||
|
||||
std::string getBizName()const;
|
||||
void setBizName(const std::string& bizName);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string bizName_;
|
||||
std::string bizType_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEVERIFYSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEVERIFYSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateVerifySettingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateVerifySettingRequest();
|
||||
~UpdateVerifySettingRequest();
|
||||
|
||||
bool getGuideStep()const;
|
||||
void setGuideStep(bool guideStep);
|
||||
bool getResultStep()const;
|
||||
void setResultStep(bool resultStep);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getSolution()const;
|
||||
void setSolution(const std::string& solution);
|
||||
std::string getBizName()const;
|
||||
void setBizName(const std::string& bizName);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
bool getPrivacyStep()const;
|
||||
void setPrivacyStep(bool privacyStep);
|
||||
|
||||
private:
|
||||
bool guideStep_;
|
||||
bool resultStep_;
|
||||
std::string sourceIp_;
|
||||
std::string solution_;
|
||||
std::string bizName_;
|
||||
std::string bizType_;
|
||||
bool privacyStep_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEVERIFYSETTINGREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VerifyDeviceRequest();
|
||||
~VerifyDeviceRequest();
|
||||
|
||||
std::string getExtInfo()const;
|
||||
void setExtInfo(const std::string& extInfo);
|
||||
std::string getCertifyData()const;
|
||||
void setCertifyData(const std::string& certifyData);
|
||||
std::string getAppVersion()const;
|
||||
void setAppVersion(const std::string& appVersion);
|
||||
std::string getDeviceToken()const;
|
||||
void setDeviceToken(const std::string& deviceToken);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
|
||||
private:
|
||||
std::string extInfo_;
|
||||
std::string certifyData_;
|
||||
std::string appVersion_;
|
||||
std::string deviceToken_;
|
||||
std::string certifyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
|
||||
@@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::~CloudauthClient()
|
||||
@@ -195,114 +195,6 @@ CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateFaceConfigOutcome CloudauthClient::createFaceConfig(const CreateFaceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFaceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFaceConfigOutcome(CreateFaceConfigResult(outcome.result()));
|
||||
else
|
||||
return CreateFaceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createFaceConfigAsync(const CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFaceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateFaceConfigOutcomeCallable CloudauthClient::createFaceConfigCallable(const CreateFaceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFaceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFaceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateRPSDKOutcome CloudauthClient::createRPSDK(const CreateRPSDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRPSDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRPSDKOutcome(CreateRPSDKResult(outcome.result()));
|
||||
else
|
||||
return CreateRPSDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createRPSDKAsync(const CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRPSDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateRPSDKOutcomeCallable CloudauthClient::createRPSDKCallable(const CreateRPSDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRPSDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRPSDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return CreateVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySettingOutcome CloudauthClient::createVerifySetting(const CreateVerifySettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,186 +231,6 @@ CloudauthClient::CreateVerifySettingOutcomeCallable CloudauthClient::createVerif
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistOutcome CloudauthClient::createWhitelist(const CreateWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateWhitelistOutcome(CreateWhitelistResult(outcome.result()));
|
||||
else
|
||||
return CreateWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createWhitelistAsync(const CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistOutcomeCallable CloudauthClient::createWhitelistCallable(const CreateWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistSettingOutcome CloudauthClient::createWhitelistSetting(const CreateWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateWhitelistSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateWhitelistSettingOutcome(CreateWhitelistSettingResult(outcome.result()));
|
||||
else
|
||||
return CreateWhitelistSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createWhitelistSettingAsync(const CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createWhitelistSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistSettingOutcomeCallable CloudauthClient::createWhitelistSettingCallable(const CreateWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateWhitelistSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createWhitelistSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistOutcome CloudauthClient::deleteWhitelist(const DeleteWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteWhitelistOutcome(DeleteWhitelistResult(outcome.result()));
|
||||
else
|
||||
return DeleteWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::deleteWhitelistAsync(const DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistOutcomeCallable CloudauthClient::deleteWhitelistCallable(const DeleteWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistSettingOutcome CloudauthClient::deleteWhitelistSetting(const DeleteWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteWhitelistSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteWhitelistSettingOutcome(DeleteWhitelistSettingResult(outcome.result()));
|
||||
else
|
||||
return DeleteWhitelistSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::deleteWhitelistSettingAsync(const DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteWhitelistSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistSettingOutcomeCallable CloudauthClient::deleteWhitelistSettingCallable(const DeleteWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteWhitelistSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteWhitelistSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeAppInfoOutcome CloudauthClient::describeAppInfo(const DescribeAppInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAppInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAppInfoOutcome(DescribeAppInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeAppInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeAppInfoAsync(const DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAppInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeAppInfoOutcomeCallable CloudauthClient::describeAppInfoCallable(const DescribeAppInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAppInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAppInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,78 +267,6 @@ CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDevi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceConfigOutcome CloudauthClient::describeFaceConfig(const DescribeFaceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFaceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFaceConfigOutcome(DescribeFaceConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeFaceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeFaceConfigAsync(const DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFaceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceConfigOutcomeCallable CloudauthClient::describeFaceConfigCallable(const DescribeFaceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFaceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFaceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceUsageOutcome CloudauthClient::describeFaceUsage(const DescribeFaceUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFaceUsageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFaceUsageOutcome(DescribeFaceUsageResult(outcome.result()));
|
||||
else
|
||||
return DescribeFaceUsageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeFaceUsageAsync(const DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFaceUsage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceUsageOutcomeCallable CloudauthClient::describeFaceUsageCallable(const DescribeFaceUsageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFaceUsageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFaceUsage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceVerifyOutcome CloudauthClient::describeFaceVerify(const DescribeFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,222 +339,6 @@ CloudauthClient::DescribeOssUploadTokenOutcomeCallable CloudauthClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeRPSDKOutcome CloudauthClient::describeRPSDK(const DescribeRPSDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRPSDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRPSDKOutcome(DescribeRPSDKResult(outcome.result()));
|
||||
else
|
||||
return DescribeRPSDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeRPSDKAsync(const DescribeRPSDKRequest& request, const DescribeRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRPSDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeRPSDKOutcomeCallable CloudauthClient::describeRPSDKCallable(const DescribeRPSDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRPSDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRPSDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeSdkUrlOutcome CloudauthClient::describeSdkUrl(const DescribeSdkUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSdkUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSdkUrlOutcome(DescribeSdkUrlResult(outcome.result()));
|
||||
else
|
||||
return DescribeSdkUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeSdkUrlAsync(const DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSdkUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeSdkUrlOutcomeCallable CloudauthClient::describeSdkUrlCallable(const DescribeSdkUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSdkUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSdkUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUpdatePackageResultOutcome CloudauthClient::describeUpdatePackageResult(const DescribeUpdatePackageResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUpdatePackageResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUpdatePackageResultOutcome(DescribeUpdatePackageResultResult(outcome.result()));
|
||||
else
|
||||
return DescribeUpdatePackageResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeUpdatePackageResultAsync(const DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUpdatePackageResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUpdatePackageResultOutcomeCallable CloudauthClient::describeUpdatePackageResultCallable(const DescribeUpdatePackageResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUpdatePackageResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUpdatePackageResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUploadInfoOutcome CloudauthClient::describeUploadInfo(const DescribeUploadInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUploadInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUploadInfoOutcome(DescribeUploadInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeUploadInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeUploadInfoAsync(const DescribeUploadInfoRequest& request, const DescribeUploadInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUploadInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUploadInfoOutcomeCallable CloudauthClient::describeUploadInfoCallable(const DescribeUploadInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUploadInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUploadInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUserStatusOutcome CloudauthClient::describeUserStatus(const DescribeUserStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUserStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeUserStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUserStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUserStatusOutcomeCallable CloudauthClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUserStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUserStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyRecordsOutcome CloudauthClient::describeVerifyRecords(const DescribeVerifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifyRecordsOutcome(DescribeVerifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifyRecordsAsync(const DescribeVerifyRecordsRequest& request, const DescribeVerifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyRecordsOutcomeCallable CloudauthClient::describeVerifyRecordsCallable(const DescribeVerifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyResultOutcome CloudauthClient::describeVerifyResult(const DescribeVerifyResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,42 +411,6 @@ CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerif
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySettingOutcome CloudauthClient::describeVerifySetting(const DescribeVerifySettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifySettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifySettingOutcome(DescribeVerifySettingResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifySettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifySettingAsync(const DescribeVerifySettingRequest& request, const DescribeVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifySetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySettingOutcomeCallable CloudauthClient::describeVerifySettingCallable(const DescribeVerifySettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifySettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifySetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyTokenOutcome CloudauthClient::describeVerifyToken(const DescribeVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,114 +447,6 @@ CloudauthClient::DescribeVerifyTokenOutcomeCallable CloudauthClient::describeVer
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyUsageOutcome CloudauthClient::describeVerifyUsage(const DescribeVerifyUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifyUsageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifyUsageOutcome(DescribeVerifyUsageResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifyUsageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifyUsageAsync(const DescribeVerifyUsageRequest& request, const DescribeVerifyUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifyUsage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifyUsageOutcomeCallable CloudauthClient::describeVerifyUsageCallable(const DescribeVerifyUsageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifyUsageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifyUsage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistOutcome CloudauthClient::describeWhitelist(const DescribeWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWhitelistOutcome(DescribeWhitelistResult(outcome.result()));
|
||||
else
|
||||
return DescribeWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeWhitelistAsync(const DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistOutcomeCallable CloudauthClient::describeWhitelistCallable(const DescribeWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistSettingOutcome CloudauthClient::describeWhitelistSetting(const DescribeWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWhitelistSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWhitelistSettingOutcome(DescribeWhitelistSettingResult(outcome.result()));
|
||||
else
|
||||
return DescribeWhitelistSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeWhitelistSettingAsync(const DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWhitelistSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistSettingOutcomeCallable CloudauthClient::describeWhitelistSettingCallable(const DescribeWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWhitelistSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWhitelistSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,42 +483,6 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitDeviceOutcome CloudauthClient::initDevice(const InitDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InitDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InitDeviceOutcome(InitDeviceResult(outcome.result()));
|
||||
else
|
||||
return InitDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::initDeviceAsync(const InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, initDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::InitDeviceOutcomeCallable CloudauthClient::initDeviceCallable(const InitDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InitDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->initDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitFaceVerifyOutcome CloudauthClient::initFaceVerify(const InitFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,150 +591,6 @@ CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceIn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateAppPackageOutcome CloudauthClient::updateAppPackage(const UpdateAppPackageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAppPackageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAppPackageOutcome(UpdateAppPackageResult(outcome.result()));
|
||||
else
|
||||
return UpdateAppPackageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::updateAppPackageAsync(const UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAppPackage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateAppPackageOutcomeCallable CloudauthClient::updateAppPackageCallable(const UpdateAppPackageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAppPackageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAppPackage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateFaceConfigOutcome CloudauthClient::updateFaceConfig(const UpdateFaceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateFaceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateFaceConfigOutcome(UpdateFaceConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateFaceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::updateFaceConfigAsync(const UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateFaceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateFaceConfigOutcomeCallable CloudauthClient::updateFaceConfigCallable(const UpdateFaceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateFaceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateFaceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateVerifySettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateVerifySettingOutcome(UpdateVerifySettingResult(outcome.result()));
|
||||
else
|
||||
return UpdateVerifySettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::updateVerifySettingAsync(const UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateVerifySetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateVerifySettingOutcomeCallable CloudauthClient::updateVerifySettingCallable(const UpdateVerifySettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateVerifySettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateVerifySetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyDeviceOutcome CloudauthClient::verifyDevice(const VerifyDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VerifyDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VerifyDeviceOutcome(VerifyDeviceResult(outcome.result()));
|
||||
else
|
||||
return VerifyDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::verifyDeviceAsync(const VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, verifyDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyDeviceOutcomeCallable CloudauthClient::verifyDeviceCallable(const VerifyDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VerifyDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->verifyDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyMaterialOutcome CloudauthClient::verifyMaterial(const VerifyMaterialRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -27,17 +27,6 @@ CompareFaceVerifyRequest::CompareFaceVerifyRequest() :
|
||||
CompareFaceVerifyRequest::~CompareFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
|
||||
{
|
||||
return targetFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
|
||||
{
|
||||
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
|
||||
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
@@ -60,17 +49,6 @@ void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCerti
|
||||
setBodyParameter("TargetCertifyId", targetCertifyId);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
|
||||
{
|
||||
return sourceOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
|
||||
{
|
||||
sourceOssObjectName_ = sourceOssObjectName;
|
||||
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const
|
||||
{
|
||||
return targetFaceContrastPicture_;
|
||||
@@ -93,17 +71,6 @@ void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetO
|
||||
setBodyParameter("TargetOssBucketName", targetOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
|
||||
{
|
||||
return sourceOssBucketName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
|
||||
{
|
||||
sourceOssBucketName_ = sourceOssBucketName;
|
||||
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
@@ -115,17 +82,6 @@ void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
|
||||
{
|
||||
return targetOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
|
||||
{
|
||||
targetOssObjectName_ = targetOssObjectName;
|
||||
setBodyParameter("TargetOssObjectName", targetOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const
|
||||
{
|
||||
return sourceFaceContrastPicture_;
|
||||
@@ -137,6 +93,61 @@ void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& s
|
||||
setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
|
||||
{
|
||||
return sourceCertifyId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
|
||||
{
|
||||
sourceCertifyId_ = sourceCertifyId;
|
||||
setBodyParameter("SourceCertifyId", sourceCertifyId);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
|
||||
{
|
||||
return targetFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
|
||||
{
|
||||
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
|
||||
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
|
||||
{
|
||||
return sourceOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
|
||||
{
|
||||
sourceOssObjectName_ = sourceOssObjectName;
|
||||
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
|
||||
{
|
||||
return sourceOssBucketName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
|
||||
{
|
||||
sourceOssBucketName_ = sourceOssBucketName;
|
||||
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
|
||||
{
|
||||
return targetOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
|
||||
{
|
||||
targetOssObjectName_ = targetOssObjectName;
|
||||
setBodyParameter("TargetOssObjectName", targetOssObjectName);
|
||||
}
|
||||
|
||||
long CompareFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
@@ -159,17 +170,6 @@ void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string
|
||||
setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
|
||||
{
|
||||
return sourceCertifyId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
|
||||
{
|
||||
sourceCertifyId_ = sourceCertifyId;
|
||||
setBodyParameter("SourceCertifyId", sourceCertifyId);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
|
||||
@@ -44,12 +44,12 @@ void CompareFacesResult::parse(const std::string &payload)
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
if(!dataNode["ConfidenceThresholds"].isNull())
|
||||
data_.confidenceThresholds = dataNode["ConfidenceThresholds"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateFaceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateFaceConfigRequest;
|
||||
|
||||
CreateFaceConfigRequest::CreateFaceConfigRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateFaceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFaceConfigRequest::~CreateFaceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFaceConfigRequest::getBizName()const
|
||||
{
|
||||
return bizName_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setBizName(const std::string& bizName)
|
||||
{
|
||||
bizName_ = bizName;
|
||||
setParameter("BizName", bizName);
|
||||
}
|
||||
|
||||
std::string CreateFaceConfigRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CreateFaceConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateFaceConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateFaceConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateRPSDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateRPSDKRequest;
|
||||
|
||||
CreateRPSDKRequest::CreateRPSDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateRPSDK")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRPSDKRequest::~CreateRPSDKRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRPSDKRequest::getAppUrl()const
|
||||
{
|
||||
return appUrl_;
|
||||
}
|
||||
|
||||
void CreateRPSDKRequest::setAppUrl(const std::string& appUrl)
|
||||
{
|
||||
appUrl_ = appUrl;
|
||||
setParameter("AppUrl", appUrl);
|
||||
}
|
||||
|
||||
std::string CreateRPSDKRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void CreateRPSDKRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string CreateRPSDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateRPSDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateRPSDKRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateRPSDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateVerifySDKRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
|
||||
|
||||
CreateVerifySDKRequest::CreateVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySDK")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVerifySDKRequest::~CreateVerifySDKRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVerifySDKRequest::getAppUrl()const
|
||||
{
|
||||
return appUrl_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setAppUrl(const std::string& appUrl)
|
||||
{
|
||||
appUrl_ = appUrl;
|
||||
setParameter("AppUrl", appUrl);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateVerifySDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateWhitelistRequest;
|
||||
|
||||
CreateWhitelistRequest::CreateWhitelistRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWhitelistRequest::~CreateWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWhitelistRequest::getValidDay()const
|
||||
{
|
||||
return validDay_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setValidDay(const std::string& validDay)
|
||||
{
|
||||
validDay_ = validDay;
|
||||
setParameter("ValidDay", validDay);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getIdCardNum()const
|
||||
{
|
||||
return idCardNum_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setIdCardNum(const std::string& idCardNum)
|
||||
{
|
||||
idCardNum_ = idCardNum;
|
||||
setParameter("IdCardNum", idCardNum);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateWhitelistSettingRequest;
|
||||
|
||||
CreateWhitelistSettingRequest::CreateWhitelistSettingRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelistSetting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWhitelistSettingRequest::~CreateWhitelistSettingRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int CreateWhitelistSettingRequest::getValidDay()const
|
||||
{
|
||||
return validDay_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setValidDay(int validDay)
|
||||
{
|
||||
validDay_ = validDay;
|
||||
setParameter("ValidDay", std::to_string(validDay));
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
long CreateWhitelistSettingRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DeleteWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistRequest;
|
||||
|
||||
DeleteWhitelistRequest::DeleteWhitelistRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWhitelistRequest::~DeleteWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistRequest::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistRequest::setIds(const std::string& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
setParameter("Ids", ids);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistSettingRequest;
|
||||
|
||||
DeleteWhitelistSettingRequest::DeleteWhitelistSettingRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelistSetting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWhitelistSettingRequest::~DeleteWhitelistSettingRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setIds(const std::string& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
setParameter("Ids", ids);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user