Compare commits

..

9 Commits

Author SHA1 Message Date
sdk-team
9bf214bc2c Add. 2021-02-19 07:52:20 +00:00
sdk-team
9bdc7d4fa5 Generated 2019-01-01 for Cassandra. 2021-02-19 07:51:13 +00:00
sdk-team
80f230d35a Supported API for GTM. 2021-02-19 07:50:09 +00:00
sdk-team
0faf3e6ffa Support CPP and Go and PHP. 2021-02-19 07:48:16 +00:00
sdk-team
3dcd83a4f3 Support some MergeRequest API. 2021-02-19 07:44:26 +00:00
sdk-team
052017ee0a Fix IoT Studio BatchBindDevicesIntoProject API return datatype. 2021-02-08 10:32:04 +00:00
sdk-team
cbf2412b29 Add username for RunCommand and InvokeCommand. 2021-02-08 09:37:31 +00:00
sdk-team
9fd09665ff Update PedestrianDetectAttribute. 2021-02-08 02:28:57 +00:00
sdk-team
7964674af1 Add IoT Studio BatchBindDevicesIntoProject API. 2021-02-07 13:38:41 +00:00
104 changed files with 2316 additions and 1138 deletions

View File

@@ -1,3 +1,36 @@
2021-02-19 Version: patch
- Add.
2021-02-19 Version: patch
- Generated 2019-01-01 for `Cassandra`.
2021-02-19 Version: patch
- Supported API for GTM.
2021-02-19 Version: patch
- Support CPP and Go and PHP.
2021-02-19 Version: patch
- Support some MergeRequest API.
2021-02-08 Version: patch
- Fix IoT Studio BatchBindDevicesIntoProject API return datatype.
- Fix IoT Studio BatchBindProductsIntoProject API return datatype.
- Fix IoT Studio BatchUnbindProjectDevices API return datatype.
- Fix IoT Studio BatchUnbindProjectProducts API return datatype.
2021-02-08 Version: patch
- Add username for RunCommand and InvokeCommand.
2021-02-08 Version: patch
- Update PedestrianDetectAttribute.
2021-02-07 Version: patch
- Add IoT Studio BatchBindDevicesIntoProject API.
- Add IoT Studio BatchBindProductsIntoProject API.
- Add IoT Studio BatchUnbindProjectDevices API.
- Add IoT Studio BatchUnbindProjectProducts API.
2021-02-07 Version: patch
- Support patch manager apis.

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
DescribeDNSSLBSubDomainsRequest();
~DescribeDNSSLBSubDomainsRequest();
std::string getRr()const;
void setRr(const std::string& rr);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getPageNumber()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setLang(const std::string& lang);
private:
std::string rr_;
std::string domainName_;
long pageNumber_;
std::string accessKeyId_;

View File

@@ -34,8 +34,14 @@ namespace AlibabaCloud
public:
struct SlbSubDomain
{
struct LineAlgorithm
{
std::string line;
bool open;
};
std::string subDomain;
std::string type;
std::vector<SlbSubDomain::LineAlgorithm> lineAlgorithms;
long recordCount;
bool open;
};

View File

@@ -65,8 +65,11 @@ namespace AlibabaCloud
~DescribeDnsGtmAccessStrategyAvailableConfigResult();
std::vector<Ipv4AddrPool> getIpv4AddrPools()const;
std::vector<DomainAddrPool> getDomainAddrPools()const;
std::vector<std::string> getSelectedDomainLines()const;
std::vector<std::string> getSelectedIpv4Lines()const;
std::vector<Ipv6AddrPool> getIpv6AddrPools()const;
std::vector<Line> getLines()const;
std::vector<std::string> getSelectedIpv6Lines()const;
bool getSuggestSetDefaultLine()const;
protected:
@@ -74,8 +77,11 @@ namespace AlibabaCloud
private:
std::vector<Ipv4AddrPool> ipv4AddrPools_;
std::vector<DomainAddrPool> domainAddrPools_;
std::vector<std::string> selectedDomainLines_;
std::vector<std::string> selectedIpv4Lines_;
std::vector<Ipv6AddrPool> ipv6AddrPools_;
std::vector<Line> lines_;
std::vector<std::string> selectedIpv6Lines_;
bool suggestSetDefaultLine_;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
SetDNSSLBStatusRequest();
~SetDNSSLBStatusRequest();
std::string getLine()const;
void setLine(const std::string& line);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getType()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
void setOpen(bool open);
private:
std::string line_;
std::string domainName_;
std::string type_;
std::string accessKeyId_;

View File

@@ -27,6 +27,17 @@ DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() :
DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest()
{}
std::string DescribeDNSSLBSubDomainsRequest::getRr()const
{
return rr_;
}
void DescribeDNSSLBSubDomainsRequest::setRr(const std::string& rr)
{
rr_ = rr;
setParameter("Rr", rr);
}
std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const
{
return domainName_;

View File

@@ -51,6 +51,16 @@ void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload)
slbSubDomainsObject.open = valueSlbSubDomainsSlbSubDomain["Open"].asString() == "true";
if(!valueSlbSubDomainsSlbSubDomain["Type"].isNull())
slbSubDomainsObject.type = valueSlbSubDomainsSlbSubDomain["Type"].asString();
auto allLineAlgorithmsNode = valueSlbSubDomainsSlbSubDomain["LineAlgorithms"]["LineAlgorithm"];
for (auto valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm : allLineAlgorithmsNode)
{
SlbSubDomain::LineAlgorithm lineAlgorithmsObject;
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].isNull())
lineAlgorithmsObject.line = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].asString();
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].isNull())
lineAlgorithmsObject.open = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].asString() == "true";
slbSubDomainsObject.lineAlgorithms.push_back(lineAlgorithmsObject);
}
slbSubDomains_.push_back(slbSubDomainsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -91,6 +91,15 @@ void DescribeDnsGtmAccessStrategyAvailableConfigResult::parse(const std::string
domainAddrPoolsObject.addrCount = std::stoi(valueDomainAddrPoolsDomainAddrPool["AddrCount"].asString());
domainAddrPools_.push_back(domainAddrPoolsObject);
}
auto allSelectedIpv4Lines = value["SelectedIpv4Lines"]["SelectedIpv4Line"];
for (const auto &item : allSelectedIpv4Lines)
selectedIpv4Lines_.push_back(item.asString());
auto allSelectedIpv6Lines = value["SelectedIpv6Lines"]["SelectedIpv6Line"];
for (const auto &item : allSelectedIpv6Lines)
selectedIpv6Lines_.push_back(item.asString());
auto allSelectedDomainLines = value["SelectedDomainLines"]["SelectedDomainLine"];
for (const auto &item : allSelectedDomainLines)
selectedDomainLines_.push_back(item.asString());
if(!value["SuggestSetDefaultLine"].isNull())
suggestSetDefaultLine_ = value["SuggestSetDefaultLine"].asString() == "true";
@@ -106,6 +115,16 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::DomainAddrPool> D
return domainAddrPools_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedDomainLines()const
{
return selectedDomainLines_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv4Lines()const
{
return selectedIpv4Lines_;
}
std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Ipv6AddrPool> DescribeDnsGtmAccessStrategyAvailableConfigResult::getIpv6AddrPools()const
{
return ipv6AddrPools_;
@@ -116,6 +135,11 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Line> DescribeDns
return lines_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv6Lines()const
{
return selectedIpv6Lines_;
}
bool DescribeDnsGtmAccessStrategyAvailableConfigResult::getSuggestSetDefaultLine()const
{
return suggestSetDefaultLine_;

View File

@@ -27,6 +27,17 @@ SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() :
SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest()
{}
std::string SetDNSSLBStatusRequest::getLine()const
{
return line_;
}
void SetDNSSLBStatusRequest::setLine(const std::string& line)
{
line_ = line;
setParameter("Line", line);
}
std::string SetDNSSLBStatusRequest::getDomainName()const
{
return domainName_;

View File

@@ -48,16 +48,16 @@ void DescribeClusterDashboardResult::parse(const std::string &payload)
Dashboard::DataCenter dataCenterObject;
if(!dashboardNodeDataCentersDataCenter["DataCenterId"].isNull())
dataCenterObject.dataCenterId = dashboardNodeDataCentersDataCenter["DataCenterId"].asString();
auto allNodesNode = allDataCentersNode["Nodes"]["Node"];
for (auto allDataCentersNodeNodesNode : allNodesNode)
auto allNodesNode = dashboardNodeDataCentersDataCenter["Nodes"]["Node"];
for (auto dashboardNodeDataCentersDataCenterNodesNode : allNodesNode)
{
Dashboard::DataCenter::Node nodesObject;
if(!allDataCentersNodeNodesNode["Address"].isNull())
nodesObject.address = allDataCentersNodeNodesNode["Address"].asString();
if(!allDataCentersNodeNodesNode["Status"].isNull())
nodesObject.status = allDataCentersNodeNodesNode["Status"].asString();
if(!allDataCentersNodeNodesNode["Load"].isNull())
nodesObject.load = allDataCentersNodeNodesNode["Load"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Address"].isNull())
nodesObject.address = dashboardNodeDataCentersDataCenterNodesNode["Address"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Status"].isNull())
nodesObject.status = dashboardNodeDataCentersDataCenterNodesNode["Status"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Load"].isNull())
nodesObject.load = dashboardNodeDataCentersDataCenterNodesNode["Load"].asString();
dataCenterObject.nodes.push_back(nodesObject);
}
dashboard_.dataCenters.push_back(dataCenterObject);

View File

@@ -67,14 +67,14 @@ void DescribeClustersResult::parse(const std::string &payload)
clustersObject.autoRenewal = valueClustersCluster["AutoRenewal"].asString() == "true";
if(!valueClustersCluster["AutoRenewPeriod"].isNull())
clustersObject.autoRenewPeriod = std::stoi(valueClustersCluster["AutoRenewPeriod"].asString());
auto allTagsNode = allClustersNode["Tags"]["Tag"];
for (auto allClustersNodeTagsTag : allTagsNode)
auto allTagsNode = valueClustersCluster["Tags"]["Tag"];
for (auto valueClustersClusterTagsTag : allTagsNode)
{
Cluster::Tag tagsObject;
if(!allClustersNodeTagsTag["Key"].isNull())
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
if(!allClustersNodeTagsTag["Value"].isNull())
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
if(!valueClustersClusterTagsTag["Key"].isNull())
tagsObject.key = valueClustersClusterTagsTag["Key"].asString();
if(!valueClustersClusterTagsTag["Value"].isNull())
tagsObject.value = valueClustersClusterTagsTag["Value"].asString();
clustersObject.tags.push_back(tagsObject);
}
clusters_.push_back(clustersObject);

View File

@@ -49,12 +49,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
if(!valueRegionsRegion["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
for (auto allRegionsNodeZonesZone : allZonesNode)
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
for (auto valueRegionsRegionZonesZone : allZonesNode)
{
Region::Zone zonesObject;
if(!allRegionsNodeZonesZone["Id"].isNull())
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
if(!valueRegionsRegionZonesZone["Id"].isNull())
zonesObject.id = valueRegionsRegionZonesZone["Id"].asString();
regionsObject.zones.push_back(zonesObject);
}
regions_.push_back(regionsObject);

View File

@@ -48,6 +48,7 @@ namespace AlibabaCloud
std::string instanceId;
ActionOnMaintenance actionOnMaintenance;
std::vector<MaintenanceAttribute::MaintenanceWindow> maintenanceWindows;
bool notifyOnMaintenance;
};

View File

@@ -37,24 +37,16 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getInstancePpsRx()const;
void setInstancePpsRx(int instancePpsRx);
float getMemory()const;
void setMemory(float memory);
int getInstancePpsTx()const;
void setInstancePpsTx(int instancePpsTx);
std::string getIoOptimized()const;
void setIoOptimized(const std::string& ioOptimized);
std::string getNetworkType()const;
void setNetworkType(const std::string& networkType);
std::string getScene()const;
void setScene(const std::string& scene);
int getInstanceBandwidthTx()const;
void setInstanceBandwidthTx(int instanceBandwidthTx);
int getCores()const;
void setCores(int cores);
int getInstanceBandwidthRx()const;
void setInstanceBandwidthRx(int instanceBandwidthRx);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getSystemDiskCategory()const;
@@ -67,6 +59,8 @@ namespace AlibabaCloud
void setMaxPrice(float maxPrice);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getZoneMatchMode()const;
void setZoneMatchMode(const std::string& zoneMatchMode);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::vector<std::string> getInstanceTypeFamily()const;
@@ -84,21 +78,18 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
int instancePpsRx_;
float memory_;
int instancePpsTx_;
std::string ioOptimized_;
std::string networkType_;
std::string scene_;
int instanceBandwidthTx_;
int cores_;
int instanceBandwidthRx_;
std::string regionId_;
std::string systemDiskCategory_;
std::string instanceType_;
std::string instanceChargeType_;
float maxPrice_;
std::string resourceOwnerAccount_;
std::string zoneMatchMode_;
std::string ownerAccount_;
std::vector<std::string> instanceTypeFamily_;
long ownerId_;

View File

@@ -48,8 +48,10 @@ namespace AlibabaCloud
std::vector<std::string> networkTypes;
std::string zoneNo;
};
std::string zoneId;
std::string instanceChargeType;
int priority;
std::string networkType;
std::string commodityCode;
std::string regionId;
InstanceType instanceType;

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
bool instantAccess;
std::string progress;
std::string sourceDiskType;
int instantAccessRetentionDays;
std::string sourceDiskId;
};
std::string status;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setFrequency(const std::string& frequency);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getWindowsPasswordName()const;
void setWindowsPasswordName(const std::string& windowsPasswordName);
bool getTimed()const;
void setTimed(bool timed);
std::string getResourceOwnerAccount()const;
@@ -63,6 +65,7 @@ namespace AlibabaCloud
std::string commandId_;
std::string frequency_;
std::string regionId_;
std::string windowsPasswordName_;
bool timed_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::vector<std::string> getInstanceId()const;
void setInstanceId(const std::vector<std::string>& instanceId);
bool getNotifyOnMaintenance()const;
void setNotifyOnMaintenance(bool notifyOnMaintenance);
private:
long resourceOwnerId_;
@@ -67,6 +69,7 @@ namespace AlibabaCloud
std::string ownerAccount_;
long ownerId_;
std::vector<std::string> instanceId_;
bool notifyOnMaintenance_;
};
}

View File

@@ -53,6 +53,8 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
std::string getContentEncoding()const;
void setContentEncoding(const std::string& contentEncoding);
std::string getWindowsPasswordName()const;
void setWindowsPasswordName(const std::string& windowsPasswordName);
bool getKeepCommand()const;
void setKeepCommand(bool keepCommand);
bool getTimed()const;
@@ -84,6 +86,7 @@ namespace AlibabaCloud
std::string frequency_;
std::string regionId_;
std::string contentEncoding_;
std::string windowsPasswordName_;
bool keepCommand_;
bool timed_;
std::string resourceOwnerAccount_;

View File

@@ -45,6 +45,8 @@ void DescribeInstanceMaintenanceAttributesResult::parse(const std::string &paylo
MaintenanceAttribute maintenanceAttributesObject;
if(!valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].isNull())
maintenanceAttributesObject.instanceId = valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].asString();
if(!valueMaintenanceAttributesMaintenanceAttribute["NotifyOnMaintenance"].isNull())
maintenanceAttributesObject.notifyOnMaintenance = valueMaintenanceAttributesMaintenanceAttribute["NotifyOnMaintenance"].asString() == "true";
auto allMaintenanceWindowsNode = valueMaintenanceAttributesMaintenanceAttribute["MaintenanceWindows"]["MaintenanceWindow"];
for (auto valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow : allMaintenanceWindowsNode)
{

View File

@@ -38,17 +38,6 @@ void DescribeRecommendInstanceTypeRequest::setResourceOwnerId(long resourceOwner
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeRecommendInstanceTypeRequest::getInstancePpsRx()const
{
return instancePpsRx_;
}
void DescribeRecommendInstanceTypeRequest::setInstancePpsRx(int instancePpsRx)
{
instancePpsRx_ = instancePpsRx;
setParameter("InstancePpsRx", std::to_string(instancePpsRx));
}
float DescribeRecommendInstanceTypeRequest::getMemory()const
{
return memory_;
@@ -60,17 +49,6 @@ void DescribeRecommendInstanceTypeRequest::setMemory(float memory)
setParameter("Memory", std::to_string(memory));
}
int DescribeRecommendInstanceTypeRequest::getInstancePpsTx()const
{
return instancePpsTx_;
}
void DescribeRecommendInstanceTypeRequest::setInstancePpsTx(int instancePpsTx)
{
instancePpsTx_ = instancePpsTx;
setParameter("InstancePpsTx", std::to_string(instancePpsTx));
}
std::string DescribeRecommendInstanceTypeRequest::getIoOptimized()const
{
return ioOptimized_;
@@ -104,17 +82,6 @@ void DescribeRecommendInstanceTypeRequest::setScene(const std::string& scene)
setParameter("Scene", scene);
}
int DescribeRecommendInstanceTypeRequest::getInstanceBandwidthTx()const
{
return instanceBandwidthTx_;
}
void DescribeRecommendInstanceTypeRequest::setInstanceBandwidthTx(int instanceBandwidthTx)
{
instanceBandwidthTx_ = instanceBandwidthTx;
setParameter("InstanceBandwidthTx", std::to_string(instanceBandwidthTx));
}
int DescribeRecommendInstanceTypeRequest::getCores()const
{
return cores_;
@@ -126,17 +93,6 @@ void DescribeRecommendInstanceTypeRequest::setCores(int cores)
setParameter("Cores", std::to_string(cores));
}
int DescribeRecommendInstanceTypeRequest::getInstanceBandwidthRx()const
{
return instanceBandwidthRx_;
}
void DescribeRecommendInstanceTypeRequest::setInstanceBandwidthRx(int instanceBandwidthRx)
{
instanceBandwidthRx_ = instanceBandwidthRx;
setParameter("InstanceBandwidthRx", std::to_string(instanceBandwidthRx));
}
std::string DescribeRecommendInstanceTypeRequest::getRegionId()const
{
return regionId_;
@@ -203,6 +159,17 @@ void DescribeRecommendInstanceTypeRequest::setResourceOwnerAccount(const std::st
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeRecommendInstanceTypeRequest::getZoneMatchMode()const
{
return zoneMatchMode_;
}
void DescribeRecommendInstanceTypeRequest::setZoneMatchMode(const std::string& zoneMatchMode)
{
zoneMatchMode_ = zoneMatchMode;
setParameter("ZoneMatchMode", zoneMatchMode);
}
std::string DescribeRecommendInstanceTypeRequest::getOwnerAccount()const
{
return ownerAccount_;

View File

@@ -55,6 +55,10 @@ void DescribeRecommendInstanceTypeResult::parse(const std::string &payload)
dataObject.spotStrategy = valueDataRecommendInstanceType["SpotStrategy"].asString();
if(!valueDataRecommendInstanceType["Priority"].isNull())
dataObject.priority = std::stoi(valueDataRecommendInstanceType["Priority"].asString());
if(!valueDataRecommendInstanceType["ZoneId"].isNull())
dataObject.zoneId = valueDataRecommendInstanceType["ZoneId"].asString();
if(!valueDataRecommendInstanceType["NetworkType"].isNull())
dataObject.networkType = valueDataRecommendInstanceType["NetworkType"].asString();
auto allZonesNode = valueDataRecommendInstanceType["Zones"]["zone"];
for (auto valueDataRecommendInstanceTypeZoneszone : allZonesNode)
{

View File

@@ -69,6 +69,8 @@ void DescribeSnapshotGroupsResult::parse(const std::string &payload)
snapshotsObject.sourceDiskType = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["SourceDiskType"].asString();
if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["InstantAccess"].isNull())
snapshotsObject.instantAccess = valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["InstantAccess"].asString() == "true";
if(!valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["InstantAccessRetentionDays"].isNull())
snapshotsObject.instantAccessRetentionDays = std::stoi(valueSnapshotGroupsSnapshotGroupSnapshotsSnapshot["InstantAccessRetentionDays"].asString());
snapshotGroupsObject.snapshots.push_back(snapshotsObject);
}
snapshotGroups_.push_back(snapshotGroupsObject);

View File

@@ -71,6 +71,17 @@ void InvokeCommandRequest::setRegionId(const std::string& regionId)
setParameter("RegionId", regionId);
}
std::string InvokeCommandRequest::getWindowsPasswordName()const
{
return windowsPasswordName_;
}
void InvokeCommandRequest::setWindowsPasswordName(const std::string& windowsPasswordName)
{
windowsPasswordName_ = windowsPasswordName;
setParameter("WindowsPasswordName", windowsPasswordName);
}
bool InvokeCommandRequest::getTimed()const
{
return timed_;

View File

@@ -122,3 +122,14 @@ void ModifyInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector
}
}
bool ModifyInstanceMaintenanceAttributesRequest::getNotifyOnMaintenance()const
{
return notifyOnMaintenance_;
}
void ModifyInstanceMaintenanceAttributesRequest::setNotifyOnMaintenance(bool notifyOnMaintenance)
{
notifyOnMaintenance_ = notifyOnMaintenance;
setParameter("NotifyOnMaintenance", notifyOnMaintenance ? "true" : "false");
}

View File

@@ -126,6 +126,17 @@ void RunCommandRequest::setContentEncoding(const std::string& contentEncoding)
setParameter("ContentEncoding", contentEncoding);
}
std::string RunCommandRequest::getWindowsPasswordName()const
{
return windowsPasswordName_;
}
void RunCommandRequest::setWindowsPasswordName(const std::string& windowsPasswordName)
{
windowsPasswordName_ = windowsPasswordName;
setParameter("WindowsPasswordName", windowsPasswordName);
}
bool RunCommandRequest::getKeepCommand()const
{
return keepCommand_;

View File

@@ -65,8 +65,6 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/DetectFaceResult.h
include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h
include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h
include/alibabacloud/facebody/model/DetectLivingFaceRequest.h
include/alibabacloud/facebody/model/DetectLivingFaceResult.h
include/alibabacloud/facebody/model/DetectMaskRequest.h
@@ -79,8 +77,6 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h
include/alibabacloud/facebody/model/EnhanceFaceRequest.h
include/alibabacloud/facebody/model/EnhanceFaceResult.h
include/alibabacloud/facebody/model/ExecuteServerSideVerificationRequest.h
include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.h
include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h
include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h
include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h
@@ -186,8 +182,6 @@ set(facebody_src
src/model/DetectFaceResult.cc
src/model/DetectIPCPedestrianRequest.cc
src/model/DetectIPCPedestrianResult.cc
src/model/DetectIPCPedestrianOptimizedRequest.cc
src/model/DetectIPCPedestrianOptimizedResult.cc
src/model/DetectLivingFaceRequest.cc
src/model/DetectLivingFaceResult.cc
src/model/DetectMaskRequest.cc
@@ -200,8 +194,6 @@ set(facebody_src
src/model/DetectVideoLivingFaceResult.cc
src/model/EnhanceFaceRequest.cc
src/model/EnhanceFaceResult.cc
src/model/ExecuteServerSideVerificationRequest.cc
src/model/ExecuteServerSideVerificationResult.cc
src/model/ExtractPedestrianFeatureAttrRequest.cc
src/model/ExtractPedestrianFeatureAttrResult.cc
src/model/ExtractPedestrianFeatureAttributeRequest.cc

View File

@@ -20,7 +20,7 @@
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RoaServiceClient.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "FacebodyExport.h"
#include "model/AddBodyTraceRequest.h"
#include "model/AddBodyTraceResult.h"
@@ -66,8 +66,6 @@
#include "model/DetectFaceResult.h"
#include "model/DetectIPCPedestrianRequest.h"
#include "model/DetectIPCPedestrianResult.h"
#include "model/DetectIPCPedestrianOptimizedRequest.h"
#include "model/DetectIPCPedestrianOptimizedResult.h"
#include "model/DetectLivingFaceRequest.h"
#include "model/DetectLivingFaceResult.h"
#include "model/DetectMaskRequest.h"
@@ -80,8 +78,6 @@
#include "model/DetectVideoLivingFaceResult.h"
#include "model/EnhanceFaceRequest.h"
#include "model/EnhanceFaceResult.h"
#include "model/ExecuteServerSideVerificationRequest.h"
#include "model/ExecuteServerSideVerificationResult.h"
#include "model/ExtractPedestrianFeatureAttrRequest.h"
#include "model/ExtractPedestrianFeatureAttrResult.h"
#include "model/ExtractPedestrianFeatureAttributeRequest.h"
@@ -146,7 +142,7 @@ namespace AlibabaCloud
{
namespace Facebody
{
class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RoaServiceClient
class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddBodyTraceResult> AddBodyTraceOutcome;
@@ -215,9 +211,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DetectIPCPedestrianResult> DetectIPCPedestrianOutcome;
typedef std::future<DetectIPCPedestrianOutcome> DetectIPCPedestrianOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianRequest&, const DetectIPCPedestrianOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianAsyncHandler;
typedef Outcome<Error, Model::DetectIPCPedestrianOptimizedResult> DetectIPCPedestrianOptimizedOutcome;
typedef std::future<DetectIPCPedestrianOptimizedOutcome> DetectIPCPedestrianOptimizedOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianOptimizedRequest&, const DetectIPCPedestrianOptimizedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianOptimizedAsyncHandler;
typedef Outcome<Error, Model::DetectLivingFaceResult> DetectLivingFaceOutcome;
typedef std::future<DetectLivingFaceOutcome> DetectLivingFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DetectLivingFaceRequest&, const DetectLivingFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLivingFaceAsyncHandler;
@@ -236,9 +229,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::EnhanceFaceResult> EnhanceFaceOutcome;
typedef std::future<EnhanceFaceOutcome> EnhanceFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::EnhanceFaceRequest&, const EnhanceFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnhanceFaceAsyncHandler;
typedef Outcome<Error, Model::ExecuteServerSideVerificationResult> ExecuteServerSideVerificationOutcome;
typedef std::future<ExecuteServerSideVerificationOutcome> ExecuteServerSideVerificationOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::ExecuteServerSideVerificationRequest&, const ExecuteServerSideVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteServerSideVerificationAsyncHandler;
typedef Outcome<Error, Model::ExtractPedestrianFeatureAttrResult> ExtractPedestrianFeatureAttrOutcome;
typedef std::future<ExtractPedestrianFeatureAttrOutcome> ExtractPedestrianFeatureAttrOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::ExtractPedestrianFeatureAttrRequest&, const ExtractPedestrianFeatureAttrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExtractPedestrianFeatureAttrAsyncHandler;
@@ -397,9 +387,6 @@ namespace AlibabaCloud
DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const;
void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const;
DetectIPCPedestrianOptimizedOutcome detectIPCPedestrianOptimized(const Model::DetectIPCPedestrianOptimizedRequest &request)const;
void detectIPCPedestrianOptimizedAsync(const Model::DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectIPCPedestrianOptimizedOutcomeCallable detectIPCPedestrianOptimizedCallable(const Model::DetectIPCPedestrianOptimizedRequest& request) const;
DetectLivingFaceOutcome detectLivingFace(const Model::DetectLivingFaceRequest &request)const;
void detectLivingFaceAsync(const Model::DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectLivingFaceOutcomeCallable detectLivingFaceCallable(const Model::DetectLivingFaceRequest& request) const;
@@ -418,9 +405,6 @@ namespace AlibabaCloud
EnhanceFaceOutcome enhanceFace(const Model::EnhanceFaceRequest &request)const;
void enhanceFaceAsync(const Model::EnhanceFaceRequest& request, const EnhanceFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnhanceFaceOutcomeCallable enhanceFaceCallable(const Model::EnhanceFaceRequest& request) const;
ExecuteServerSideVerificationOutcome executeServerSideVerification(const Model::ExecuteServerSideVerificationRequest &request)const;
void executeServerSideVerificationAsync(const Model::ExecuteServerSideVerificationRequest& request, const ExecuteServerSideVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteServerSideVerificationOutcomeCallable executeServerSideVerificationCallable(const Model::ExecuteServerSideVerificationRequest& request) const;
ExtractPedestrianFeatureAttrOutcome extractPedestrianFeatureAttr(const Model::ExtractPedestrianFeatureAttrRequest &request)const;
void extractPedestrianFeatureAttrAsync(const Model::ExtractPedestrianFeatureAttrRequest& request, const ExtractPedestrianFeatureAttrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExtractPedestrianFeatureAttrOutcomeCallable extractPedestrianFeatureAttrCallable(const Model::ExtractPedestrianFeatureAttrRequest& request) const;

View File

@@ -1,54 +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_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedRequest : public RoaServiceRequest
{
public:
DetectIPCPedestrianOptimizedRequest();
~DetectIPCPedestrianOptimizedRequest();
std::string getImageData()const;
void setImageData(const std::string& imageData);
long getWidth()const;
void setWidth(long width);
long getHeight()const;
void setHeight(long height);
private:
std::string imageData_;
long width_;
long height_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_

View File

@@ -1,64 +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_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedResult : public ServiceResult
{
public:
struct Data
{
struct ImageInfoListItem
{
struct Element
{
float score;
std::vector<std::string> boxes;
};
std::vector<ImageInfoListItem::Element> elements;
};
std::vector<ImageInfoListItem> imageInfoList;
};
DetectIPCPedestrianOptimizedResult();
explicit DetectIPCPedestrianOptimizedResult(const std::string &payload);
~DetectIPCPedestrianOptimizedResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_

View File

@@ -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_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT ExecuteServerSideVerificationRequest : public RoaServiceRequest
{
public:
ExecuteServerSideVerificationRequest();
~ExecuteServerSideVerificationRequest();
std::string getFacialPictureData()const;
void setFacialPictureData(const std::string& facialPictureData);
std::string getSceneType()const;
void setSceneType(const std::string& sceneType);
std::string getCertificateNumber()const;
void setCertificateNumber(const std::string& certificateNumber);
std::string getCertificateName()const;
void setCertificateName(const std::string& certificateName);
std::string getFacialPictureUrl()const;
void setFacialPictureUrl(const std::string& facialPictureUrl);
private:
std::string facialPictureData_;
std::string sceneType_;
std::string certificateNumber_;
std::string certificateName_;
std::string facialPictureUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONREQUEST_H_

View File

@@ -119,6 +119,8 @@ namespace AlibabaCloud
};
int personNumber;
std::vector<AttributesItem> attributes;
long height;
long width;
std::vector<BoxesItem> boxes;
};

View File

@@ -28,21 +28,21 @@ namespace
}
FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
}
FacebodyClient::FacebodyClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
}
FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
@@ -843,42 +843,6 @@ FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPede
return task->get_future();
}
FacebodyClient::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetectIPCPedestrianOptimizedOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetectIPCPedestrianOptimizedOutcome(DetectIPCPedestrianOptimizedResult(outcome.result()));
else
return DetectIPCPedestrianOptimizedOutcome(outcome.error());
}
void FacebodyClient::detectIPCPedestrianOptimizedAsync(const DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detectIPCPedestrianOptimized(request), context);
};
asyncExecute(new Runnable(fn));
}
FacebodyClient::DetectIPCPedestrianOptimizedOutcomeCallable FacebodyClient::detectIPCPedestrianOptimizedCallable(const DetectIPCPedestrianOptimizedRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetectIPCPedestrianOptimizedOutcome()>>(
[this, request]()
{
return this->detectIPCPedestrianOptimized(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
FacebodyClient::DetectLivingFaceOutcome FacebodyClient::detectLivingFace(const DetectLivingFaceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,42 +1059,6 @@ FacebodyClient::EnhanceFaceOutcomeCallable FacebodyClient::enhanceFaceCallable(c
return task->get_future();
}
FacebodyClient::ExecuteServerSideVerificationOutcome FacebodyClient::executeServerSideVerification(const ExecuteServerSideVerificationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExecuteServerSideVerificationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExecuteServerSideVerificationOutcome(ExecuteServerSideVerificationResult(outcome.result()));
else
return ExecuteServerSideVerificationOutcome(outcome.error());
}
void FacebodyClient::executeServerSideVerificationAsync(const ExecuteServerSideVerificationRequest& request, const ExecuteServerSideVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, executeServerSideVerification(request), context);
};
asyncExecute(new Runnable(fn));
}
FacebodyClient::ExecuteServerSideVerificationOutcomeCallable FacebodyClient::executeServerSideVerificationCallable(const ExecuteServerSideVerificationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExecuteServerSideVerificationOutcome()>>(
[this, request]()
{
return this->executeServerSideVerification(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
FacebodyClient::ExtractPedestrianFeatureAttrOutcome FacebodyClient::extractPedestrianFeatureAttr(const ExtractPedestrianFeatureAttrRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -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.
*/
#include <alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h>
using AlibabaCloud::Facebody::Model::DetectIPCPedestrianOptimizedRequest;
DetectIPCPedestrianOptimizedRequest::DetectIPCPedestrianOptimizedRequest() :
RoaServiceRequest("facebody", "2020-09-10")
{
setResourcePath("/viapi/k8s/facebody/detect-ipc-pedestrian-optimized");
setMethod(HttpRequest::Method::Post);
}
DetectIPCPedestrianOptimizedRequest::~DetectIPCPedestrianOptimizedRequest()
{}
std::string DetectIPCPedestrianOptimizedRequest::getImageData()const
{
return imageData_;
}
void DetectIPCPedestrianOptimizedRequest::setImageData(const std::string& imageData)
{
imageData_ = imageData;
setBodyParameter("ImageData", imageData);
}
long DetectIPCPedestrianOptimizedRequest::getWidth()const
{
return width_;
}
void DetectIPCPedestrianOptimizedRequest::setWidth(long width)
{
width_ = width;
setBodyParameter("Width", std::to_string(width));
}
long DetectIPCPedestrianOptimizedRequest::getHeight()const
{
return height_;
}
void DetectIPCPedestrianOptimizedRequest::setHeight(long height)
{
height_ = height;
setBodyParameter("Height", std::to_string(height));
}

View File

@@ -1,67 +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/facebody/model/DetectIPCPedestrianOptimizedResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Facebody;
using namespace AlibabaCloud::Facebody::Model;
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult() :
ServiceResult()
{}
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectIPCPedestrianOptimizedResult::~DetectIPCPedestrianOptimizedResult()
{}
void DetectIPCPedestrianOptimizedResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allImageInfoListNode = dataNode["ImageInfoList"]["imageInfoListItem"];
for (auto dataNodeImageInfoListimageInfoListItem : allImageInfoListNode)
{
Data::ImageInfoListItem imageInfoListItemObject;
auto allElementsNode = dataNodeImageInfoListimageInfoListItem["Elements"]["Element"];
for (auto dataNodeImageInfoListimageInfoListItemElementsElement : allElementsNode)
{
Data::ImageInfoListItem::Element elementsObject;
if(!dataNodeImageInfoListimageInfoListItemElementsElement["Score"].isNull())
elementsObject.score = std::stof(dataNodeImageInfoListimageInfoListItemElementsElement["Score"].asString());
auto allBoxes = value["Boxes"]["Box"];
for (auto value : allBoxes)
elementsObject.boxes.push_back(value.asString());
imageInfoListItemObject.elements.push_back(elementsObject);
}
data_.imageInfoList.push_back(imageInfoListItemObject);
}
}
DetectIPCPedestrianOptimizedResult::Data DetectIPCPedestrianOptimizedResult::getData()const
{
return data_;
}

View File

@@ -1,85 +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/facebody/model/ExecuteServerSideVerificationRequest.h>
using AlibabaCloud::Facebody::Model::ExecuteServerSideVerificationRequest;
ExecuteServerSideVerificationRequest::ExecuteServerSideVerificationRequest() :
RoaServiceRequest("facebody", "2020-09-10")
{
setResourcePath("/viapi/thirdparty/realperson/execServerSideVerification");
setMethod(HttpRequest::Method::Post);
}
ExecuteServerSideVerificationRequest::~ExecuteServerSideVerificationRequest()
{}
std::string ExecuteServerSideVerificationRequest::getFacialPictureData()const
{
return facialPictureData_;
}
void ExecuteServerSideVerificationRequest::setFacialPictureData(const std::string& facialPictureData)
{
facialPictureData_ = facialPictureData;
setBodyParameter("FacialPictureData", facialPictureData);
}
std::string ExecuteServerSideVerificationRequest::getSceneType()const
{
return sceneType_;
}
void ExecuteServerSideVerificationRequest::setSceneType(const std::string& sceneType)
{
sceneType_ = sceneType;
setBodyParameter("SceneType", sceneType);
}
std::string ExecuteServerSideVerificationRequest::getCertificateNumber()const
{
return certificateNumber_;
}
void ExecuteServerSideVerificationRequest::setCertificateNumber(const std::string& certificateNumber)
{
certificateNumber_ = certificateNumber;
setBodyParameter("CertificateNumber", certificateNumber);
}
std::string ExecuteServerSideVerificationRequest::getCertificateName()const
{
return certificateName_;
}
void ExecuteServerSideVerificationRequest::setCertificateName(const std::string& certificateName)
{
certificateName_ = certificateName;
setBodyParameter("CertificateName", certificateName);
}
std::string ExecuteServerSideVerificationRequest::getFacialPictureUrl()const
{
return facialPictureUrl_;
}
void ExecuteServerSideVerificationRequest::setFacialPictureUrl(const std::string& facialPictureUrl)
{
facialPictureUrl_ = facialPictureUrl;
setBodyParameter("FacialPictureUrl", facialPictureUrl);
}

View File

@@ -1,70 +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/facebody/model/ExecuteServerSideVerificationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Facebody;
using namespace AlibabaCloud::Facebody::Model;
ExecuteServerSideVerificationResult::ExecuteServerSideVerificationResult() :
ServiceResult()
{}
ExecuteServerSideVerificationResult::ExecuteServerSideVerificationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecuteServerSideVerificationResult::~ExecuteServerSideVerificationResult()
{}
void ExecuteServerSideVerificationResult::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["VerificationToken"].isNull())
data_.verificationToken = dataNode["VerificationToken"].asString();
if(!dataNode["Pass"].isNull())
data_.pass = dataNode["Pass"].asString() == "true";
if(!dataNode["Reason"].isNull())
data_.reason = dataNode["Reason"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string ExecuteServerSideVerificationResult::getMessage()const
{
return message_;
}
ExecuteServerSideVerificationResult::Data ExecuteServerSideVerificationResult::getData()const
{
return data_;
}
std::string ExecuteServerSideVerificationResult::getCode()const
{
return code_;
}

View File

@@ -42,6 +42,10 @@ void PedestrianDetectAttributeResult::parse(const std::string &payload)
auto dataNode = value["Data"];
if(!dataNode["PersonNumber"].isNull())
data_.personNumber = std::stoi(dataNode["PersonNumber"].asString());
if(!dataNode["Height"].isNull())
data_.height = std::stol(dataNode["Height"].asString());
if(!dataNode["Width"].isNull())
data_.width = std::stol(dataNode["Width"].asString());
auto allAttributesNode = dataNode["Attributes"]["AttributesItem"];
for (auto dataNodeAttributesAttributesItem : allAttributesNode)
{

View File

@@ -27,6 +27,10 @@ set(iot_public_header_model
include/alibabacloud/iot/model/BatchAddThingTopoResult.h
include/alibabacloud/iot/model/BatchBindDeviceToEdgeInstanceWithDriverRequest.h
include/alibabacloud/iot/model/BatchBindDeviceToEdgeInstanceWithDriverResult.h
include/alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.h
include/alibabacloud/iot/model/BatchBindDevicesIntoProjectResult.h
include/alibabacloud/iot/model/BatchBindProductsIntoProjectRequest.h
include/alibabacloud/iot/model/BatchBindProductsIntoProjectResult.h
include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h
include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h
include/alibabacloud/iot/model/BatchClearEdgeInstanceDeviceConfigRequest.h
@@ -65,6 +69,10 @@ set(iot_public_header_model
include/alibabacloud/iot/model/BatchSetEdgeInstanceDeviceConfigResult.h
include/alibabacloud/iot/model/BatchUnbindDeviceFromEdgeInstanceRequest.h
include/alibabacloud/iot/model/BatchUnbindDeviceFromEdgeInstanceResult.h
include/alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.h
include/alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h
include/alibabacloud/iot/model/BatchUnbindProjectProductsRequest.h
include/alibabacloud/iot/model/BatchUnbindProjectProductsResult.h
include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h
include/alibabacloud/iot/model/BatchUpdateDeviceNicknameResult.h
include/alibabacloud/iot/model/BindApplicationToEdgeInstanceRequest.h
@@ -139,6 +147,8 @@ set(iot_public_header_model
include/alibabacloud/iot/model/CreateRuleResult.h
include/alibabacloud/iot/model/CreateRuleActionRequest.h
include/alibabacloud/iot/model/CreateRuleActionResult.h
include/alibabacloud/iot/model/CreateRulengDistributeJobRequest.h
include/alibabacloud/iot/model/CreateRulengDistributeJobResult.h
include/alibabacloud/iot/model/CreateSceneRuleRequest.h
include/alibabacloud/iot/model/CreateSceneRuleResult.h
include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h
@@ -149,8 +159,6 @@ set(iot_public_header_model
include/alibabacloud/iot/model/CreateThingScriptResult.h
include/alibabacloud/iot/model/CreateTopicRouteTableRequest.h
include/alibabacloud/iot/model/CreateTopicRouteTableResult.h
include/alibabacloud/iot/model/DeleteClientIdsRequest.h
include/alibabacloud/iot/model/DeleteClientIdsResult.h
include/alibabacloud/iot/model/DeleteConsumerGroupRequest.h
include/alibabacloud/iot/model/DeleteConsumerGroupResult.h
include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationRequest.h
@@ -289,6 +297,8 @@ set(iot_public_header_model
include/alibabacloud/iot/model/ListThingTemplatesResult.h
include/alibabacloud/iot/model/NotifyAddThingTopoRequest.h
include/alibabacloud/iot/model/NotifyAddThingTopoResult.h
include/alibabacloud/iot/model/OpenIotServiceRequest.h
include/alibabacloud/iot/model/OpenIotServiceResult.h
include/alibabacloud/iot/model/PubRequest.h
include/alibabacloud/iot/model/PubResult.h
include/alibabacloud/iot/model/PubBroadcastRequest.h
@@ -301,8 +311,6 @@ set(iot_public_header_model
include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusResult.h
include/alibabacloud/iot/model/QueryCertUrlByApplyIdRequest.h
include/alibabacloud/iot/model/QueryCertUrlByApplyIdResult.h
include/alibabacloud/iot/model/QueryClientIdsRequest.h
include/alibabacloud/iot/model/QueryClientIdsResult.h
include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdRequest.h
include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdResult.h
include/alibabacloud/iot/model/QueryConsumerGroupListRequest.h
@@ -463,8 +471,8 @@ set(iot_public_header_model
include/alibabacloud/iot/model/StartRuleResult.h
include/alibabacloud/iot/model/StopRuleRequest.h
include/alibabacloud/iot/model/StopRuleResult.h
include/alibabacloud/iot/model/TransformClientIdRequest.h
include/alibabacloud/iot/model/TransformClientIdResult.h
include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h
include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h
include/alibabacloud/iot/model/TriggerSceneRuleRequest.h
include/alibabacloud/iot/model/TriggerSceneRuleResult.h
include/alibabacloud/iot/model/UnbindApplicationFromEdgeInstanceRequest.h
@@ -522,6 +530,10 @@ set(iot_src
src/model/BatchAddThingTopoResult.cc
src/model/BatchBindDeviceToEdgeInstanceWithDriverRequest.cc
src/model/BatchBindDeviceToEdgeInstanceWithDriverResult.cc
src/model/BatchBindDevicesIntoProjectRequest.cc
src/model/BatchBindDevicesIntoProjectResult.cc
src/model/BatchBindProductsIntoProjectRequest.cc
src/model/BatchBindProductsIntoProjectResult.cc
src/model/BatchCheckDeviceNamesRequest.cc
src/model/BatchCheckDeviceNamesResult.cc
src/model/BatchClearEdgeInstanceDeviceConfigRequest.cc
@@ -560,6 +572,10 @@ set(iot_src
src/model/BatchSetEdgeInstanceDeviceConfigResult.cc
src/model/BatchUnbindDeviceFromEdgeInstanceRequest.cc
src/model/BatchUnbindDeviceFromEdgeInstanceResult.cc
src/model/BatchUnbindProjectDevicesRequest.cc
src/model/BatchUnbindProjectDevicesResult.cc
src/model/BatchUnbindProjectProductsRequest.cc
src/model/BatchUnbindProjectProductsResult.cc
src/model/BatchUpdateDeviceNicknameRequest.cc
src/model/BatchUpdateDeviceNicknameResult.cc
src/model/BindApplicationToEdgeInstanceRequest.cc
@@ -634,6 +650,8 @@ set(iot_src
src/model/CreateRuleResult.cc
src/model/CreateRuleActionRequest.cc
src/model/CreateRuleActionResult.cc
src/model/CreateRulengDistributeJobRequest.cc
src/model/CreateRulengDistributeJobResult.cc
src/model/CreateSceneRuleRequest.cc
src/model/CreateSceneRuleResult.cc
src/model/CreateSubscribeRelationRequest.cc
@@ -644,8 +662,6 @@ set(iot_src
src/model/CreateThingScriptResult.cc
src/model/CreateTopicRouteTableRequest.cc
src/model/CreateTopicRouteTableResult.cc
src/model/DeleteClientIdsRequest.cc
src/model/DeleteClientIdsResult.cc
src/model/DeleteConsumerGroupRequest.cc
src/model/DeleteConsumerGroupResult.cc
src/model/DeleteConsumerGroupSubscribeRelationRequest.cc
@@ -784,6 +800,8 @@ set(iot_src
src/model/ListThingTemplatesResult.cc
src/model/NotifyAddThingTopoRequest.cc
src/model/NotifyAddThingTopoResult.cc
src/model/OpenIotServiceRequest.cc
src/model/OpenIotServiceResult.cc
src/model/PubRequest.cc
src/model/PubResult.cc
src/model/PubBroadcastRequest.cc
@@ -796,8 +814,6 @@ set(iot_src
src/model/QueryBatchRegisterDeviceStatusResult.cc
src/model/QueryCertUrlByApplyIdRequest.cc
src/model/QueryCertUrlByApplyIdResult.cc
src/model/QueryClientIdsRequest.cc
src/model/QueryClientIdsResult.cc
src/model/QueryConsumerGroupByGroupIdRequest.cc
src/model/QueryConsumerGroupByGroupIdResult.cc
src/model/QueryConsumerGroupListRequest.cc
@@ -958,8 +974,8 @@ set(iot_src
src/model/StartRuleResult.cc
src/model/StopRuleRequest.cc
src/model/StopRuleResult.cc
src/model/TransformClientIdRequest.cc
src/model/TransformClientIdResult.cc
src/model/SyncSpeechByCombinationRequest.cc
src/model/SyncSpeechByCombinationResult.cc
src/model/TriggerSceneRuleRequest.cc
src/model/TriggerSceneRuleResult.cc
src/model/UnbindApplicationFromEdgeInstanceRequest.cc

View File

@@ -28,6 +28,10 @@
#include "model/BatchAddThingTopoResult.h"
#include "model/BatchBindDeviceToEdgeInstanceWithDriverRequest.h"
#include "model/BatchBindDeviceToEdgeInstanceWithDriverResult.h"
#include "model/BatchBindDevicesIntoProjectRequest.h"
#include "model/BatchBindDevicesIntoProjectResult.h"
#include "model/BatchBindProductsIntoProjectRequest.h"
#include "model/BatchBindProductsIntoProjectResult.h"
#include "model/BatchCheckDeviceNamesRequest.h"
#include "model/BatchCheckDeviceNamesResult.h"
#include "model/BatchClearEdgeInstanceDeviceConfigRequest.h"
@@ -66,6 +70,10 @@
#include "model/BatchSetEdgeInstanceDeviceConfigResult.h"
#include "model/BatchUnbindDeviceFromEdgeInstanceRequest.h"
#include "model/BatchUnbindDeviceFromEdgeInstanceResult.h"
#include "model/BatchUnbindProjectDevicesRequest.h"
#include "model/BatchUnbindProjectDevicesResult.h"
#include "model/BatchUnbindProjectProductsRequest.h"
#include "model/BatchUnbindProjectProductsResult.h"
#include "model/BatchUpdateDeviceNicknameRequest.h"
#include "model/BatchUpdateDeviceNicknameResult.h"
#include "model/BindApplicationToEdgeInstanceRequest.h"
@@ -140,6 +148,8 @@
#include "model/CreateRuleResult.h"
#include "model/CreateRuleActionRequest.h"
#include "model/CreateRuleActionResult.h"
#include "model/CreateRulengDistributeJobRequest.h"
#include "model/CreateRulengDistributeJobResult.h"
#include "model/CreateSceneRuleRequest.h"
#include "model/CreateSceneRuleResult.h"
#include "model/CreateSubscribeRelationRequest.h"
@@ -150,8 +160,6 @@
#include "model/CreateThingScriptResult.h"
#include "model/CreateTopicRouteTableRequest.h"
#include "model/CreateTopicRouteTableResult.h"
#include "model/DeleteClientIdsRequest.h"
#include "model/DeleteClientIdsResult.h"
#include "model/DeleteConsumerGroupRequest.h"
#include "model/DeleteConsumerGroupResult.h"
#include "model/DeleteConsumerGroupSubscribeRelationRequest.h"
@@ -290,6 +298,8 @@
#include "model/ListThingTemplatesResult.h"
#include "model/NotifyAddThingTopoRequest.h"
#include "model/NotifyAddThingTopoResult.h"
#include "model/OpenIotServiceRequest.h"
#include "model/OpenIotServiceResult.h"
#include "model/PubRequest.h"
#include "model/PubResult.h"
#include "model/PubBroadcastRequest.h"
@@ -302,8 +312,6 @@
#include "model/QueryBatchRegisterDeviceStatusResult.h"
#include "model/QueryCertUrlByApplyIdRequest.h"
#include "model/QueryCertUrlByApplyIdResult.h"
#include "model/QueryClientIdsRequest.h"
#include "model/QueryClientIdsResult.h"
#include "model/QueryConsumerGroupByGroupIdRequest.h"
#include "model/QueryConsumerGroupByGroupIdResult.h"
#include "model/QueryConsumerGroupListRequest.h"
@@ -464,8 +472,8 @@
#include "model/StartRuleResult.h"
#include "model/StopRuleRequest.h"
#include "model/StopRuleResult.h"
#include "model/TransformClientIdRequest.h"
#include "model/TransformClientIdResult.h"
#include "model/SyncSpeechByCombinationRequest.h"
#include "model/SyncSpeechByCombinationResult.h"
#include "model/TriggerSceneRuleRequest.h"
#include "model/TriggerSceneRuleResult.h"
#include "model/UnbindApplicationFromEdgeInstanceRequest.h"
@@ -532,6 +540,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::BatchBindDeviceToEdgeInstanceWithDriverResult> BatchBindDeviceToEdgeInstanceWithDriverOutcome;
typedef std::future<BatchBindDeviceToEdgeInstanceWithDriverOutcome> BatchBindDeviceToEdgeInstanceWithDriverOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest&, const BatchBindDeviceToEdgeInstanceWithDriverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchBindDeviceToEdgeInstanceWithDriverAsyncHandler;
typedef Outcome<Error, Model::BatchBindDevicesIntoProjectResult> BatchBindDevicesIntoProjectOutcome;
typedef std::future<BatchBindDevicesIntoProjectOutcome> BatchBindDevicesIntoProjectOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchBindDevicesIntoProjectRequest&, const BatchBindDevicesIntoProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchBindDevicesIntoProjectAsyncHandler;
typedef Outcome<Error, Model::BatchBindProductsIntoProjectResult> BatchBindProductsIntoProjectOutcome;
typedef std::future<BatchBindProductsIntoProjectOutcome> BatchBindProductsIntoProjectOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchBindProductsIntoProjectRequest&, const BatchBindProductsIntoProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchBindProductsIntoProjectAsyncHandler;
typedef Outcome<Error, Model::BatchCheckDeviceNamesResult> BatchCheckDeviceNamesOutcome;
typedef std::future<BatchCheckDeviceNamesOutcome> BatchCheckDeviceNamesOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchCheckDeviceNamesRequest&, const BatchCheckDeviceNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchCheckDeviceNamesAsyncHandler;
@@ -589,6 +603,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::BatchUnbindDeviceFromEdgeInstanceResult> BatchUnbindDeviceFromEdgeInstanceOutcome;
typedef std::future<BatchUnbindDeviceFromEdgeInstanceOutcome> BatchUnbindDeviceFromEdgeInstanceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchUnbindDeviceFromEdgeInstanceRequest&, const BatchUnbindDeviceFromEdgeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchUnbindDeviceFromEdgeInstanceAsyncHandler;
typedef Outcome<Error, Model::BatchUnbindProjectDevicesResult> BatchUnbindProjectDevicesOutcome;
typedef std::future<BatchUnbindProjectDevicesOutcome> BatchUnbindProjectDevicesOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchUnbindProjectDevicesRequest&, const BatchUnbindProjectDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchUnbindProjectDevicesAsyncHandler;
typedef Outcome<Error, Model::BatchUnbindProjectProductsResult> BatchUnbindProjectProductsOutcome;
typedef std::future<BatchUnbindProjectProductsOutcome> BatchUnbindProjectProductsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchUnbindProjectProductsRequest&, const BatchUnbindProjectProductsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchUnbindProjectProductsAsyncHandler;
typedef Outcome<Error, Model::BatchUpdateDeviceNicknameResult> BatchUpdateDeviceNicknameOutcome;
typedef std::future<BatchUpdateDeviceNicknameOutcome> BatchUpdateDeviceNicknameOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchUpdateDeviceNicknameRequest&, const BatchUpdateDeviceNicknameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchUpdateDeviceNicknameAsyncHandler;
@@ -700,6 +720,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateRuleActionResult> CreateRuleActionOutcome;
typedef std::future<CreateRuleActionOutcome> CreateRuleActionOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateRuleActionRequest&, const CreateRuleActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRuleActionAsyncHandler;
typedef Outcome<Error, Model::CreateRulengDistributeJobResult> CreateRulengDistributeJobOutcome;
typedef std::future<CreateRulengDistributeJobOutcome> CreateRulengDistributeJobOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateRulengDistributeJobRequest&, const CreateRulengDistributeJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRulengDistributeJobAsyncHandler;
typedef Outcome<Error, Model::CreateSceneRuleResult> CreateSceneRuleOutcome;
typedef std::future<CreateSceneRuleOutcome> CreateSceneRuleOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateSceneRuleRequest&, const CreateSceneRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSceneRuleAsyncHandler;
@@ -715,9 +738,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateTopicRouteTableResult> CreateTopicRouteTableOutcome;
typedef std::future<CreateTopicRouteTableOutcome> CreateTopicRouteTableOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateTopicRouteTableRequest&, const CreateTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTopicRouteTableAsyncHandler;
typedef Outcome<Error, Model::DeleteClientIdsResult> DeleteClientIdsOutcome;
typedef std::future<DeleteClientIdsOutcome> DeleteClientIdsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteClientIdsRequest&, const DeleteClientIdsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClientIdsAsyncHandler;
typedef Outcome<Error, Model::DeleteConsumerGroupResult> DeleteConsumerGroupOutcome;
typedef std::future<DeleteConsumerGroupOutcome> DeleteConsumerGroupOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteConsumerGroupRequest&, const DeleteConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConsumerGroupAsyncHandler;
@@ -925,6 +945,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::NotifyAddThingTopoResult> NotifyAddThingTopoOutcome;
typedef std::future<NotifyAddThingTopoOutcome> NotifyAddThingTopoOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::NotifyAddThingTopoRequest&, const NotifyAddThingTopoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> NotifyAddThingTopoAsyncHandler;
typedef Outcome<Error, Model::OpenIotServiceResult> OpenIotServiceOutcome;
typedef std::future<OpenIotServiceOutcome> OpenIotServiceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::OpenIotServiceRequest&, const OpenIotServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenIotServiceAsyncHandler;
typedef Outcome<Error, Model::PubResult> PubOutcome;
typedef std::future<PubOutcome> PubOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::PubRequest&, const PubOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PubAsyncHandler;
@@ -943,9 +966,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryCertUrlByApplyIdResult> QueryCertUrlByApplyIdOutcome;
typedef std::future<QueryCertUrlByApplyIdOutcome> QueryCertUrlByApplyIdOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryCertUrlByApplyIdRequest&, const QueryCertUrlByApplyIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCertUrlByApplyIdAsyncHandler;
typedef Outcome<Error, Model::QueryClientIdsResult> QueryClientIdsOutcome;
typedef std::future<QueryClientIdsOutcome> QueryClientIdsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryClientIdsRequest&, const QueryClientIdsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryClientIdsAsyncHandler;
typedef Outcome<Error, Model::QueryConsumerGroupByGroupIdResult> QueryConsumerGroupByGroupIdOutcome;
typedef std::future<QueryConsumerGroupByGroupIdOutcome> QueryConsumerGroupByGroupIdOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryConsumerGroupByGroupIdRequest&, const QueryConsumerGroupByGroupIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryConsumerGroupByGroupIdAsyncHandler;
@@ -1186,9 +1206,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StopRuleResult> StopRuleOutcome;
typedef std::future<StopRuleOutcome> StopRuleOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::StopRuleRequest&, const StopRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopRuleAsyncHandler;
typedef Outcome<Error, Model::TransformClientIdResult> TransformClientIdOutcome;
typedef std::future<TransformClientIdOutcome> TransformClientIdOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::TransformClientIdRequest&, const TransformClientIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransformClientIdAsyncHandler;
typedef Outcome<Error, Model::SyncSpeechByCombinationResult> SyncSpeechByCombinationOutcome;
typedef std::future<SyncSpeechByCombinationOutcome> SyncSpeechByCombinationOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::SyncSpeechByCombinationRequest&, const SyncSpeechByCombinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncSpeechByCombinationAsyncHandler;
typedef Outcome<Error, Model::TriggerSceneRuleResult> TriggerSceneRuleOutcome;
typedef std::future<TriggerSceneRuleOutcome> TriggerSceneRuleOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::TriggerSceneRuleRequest&, const TriggerSceneRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TriggerSceneRuleAsyncHandler;
@@ -1275,6 +1295,12 @@ namespace AlibabaCloud
BatchBindDeviceToEdgeInstanceWithDriverOutcome batchBindDeviceToEdgeInstanceWithDriver(const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest &request)const;
void batchBindDeviceToEdgeInstanceWithDriverAsync(const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest& request, const BatchBindDeviceToEdgeInstanceWithDriverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchBindDeviceToEdgeInstanceWithDriverOutcomeCallable batchBindDeviceToEdgeInstanceWithDriverCallable(const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest& request) const;
BatchBindDevicesIntoProjectOutcome batchBindDevicesIntoProject(const Model::BatchBindDevicesIntoProjectRequest &request)const;
void batchBindDevicesIntoProjectAsync(const Model::BatchBindDevicesIntoProjectRequest& request, const BatchBindDevicesIntoProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchBindDevicesIntoProjectOutcomeCallable batchBindDevicesIntoProjectCallable(const Model::BatchBindDevicesIntoProjectRequest& request) const;
BatchBindProductsIntoProjectOutcome batchBindProductsIntoProject(const Model::BatchBindProductsIntoProjectRequest &request)const;
void batchBindProductsIntoProjectAsync(const Model::BatchBindProductsIntoProjectRequest& request, const BatchBindProductsIntoProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchBindProductsIntoProjectOutcomeCallable batchBindProductsIntoProjectCallable(const Model::BatchBindProductsIntoProjectRequest& request) const;
BatchCheckDeviceNamesOutcome batchCheckDeviceNames(const Model::BatchCheckDeviceNamesRequest &request)const;
void batchCheckDeviceNamesAsync(const Model::BatchCheckDeviceNamesRequest& request, const BatchCheckDeviceNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchCheckDeviceNamesOutcomeCallable batchCheckDeviceNamesCallable(const Model::BatchCheckDeviceNamesRequest& request) const;
@@ -1332,6 +1358,12 @@ namespace AlibabaCloud
BatchUnbindDeviceFromEdgeInstanceOutcome batchUnbindDeviceFromEdgeInstance(const Model::BatchUnbindDeviceFromEdgeInstanceRequest &request)const;
void batchUnbindDeviceFromEdgeInstanceAsync(const Model::BatchUnbindDeviceFromEdgeInstanceRequest& request, const BatchUnbindDeviceFromEdgeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchUnbindDeviceFromEdgeInstanceOutcomeCallable batchUnbindDeviceFromEdgeInstanceCallable(const Model::BatchUnbindDeviceFromEdgeInstanceRequest& request) const;
BatchUnbindProjectDevicesOutcome batchUnbindProjectDevices(const Model::BatchUnbindProjectDevicesRequest &request)const;
void batchUnbindProjectDevicesAsync(const Model::BatchUnbindProjectDevicesRequest& request, const BatchUnbindProjectDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchUnbindProjectDevicesOutcomeCallable batchUnbindProjectDevicesCallable(const Model::BatchUnbindProjectDevicesRequest& request) const;
BatchUnbindProjectProductsOutcome batchUnbindProjectProducts(const Model::BatchUnbindProjectProductsRequest &request)const;
void batchUnbindProjectProductsAsync(const Model::BatchUnbindProjectProductsRequest& request, const BatchUnbindProjectProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchUnbindProjectProductsOutcomeCallable batchUnbindProjectProductsCallable(const Model::BatchUnbindProjectProductsRequest& request) const;
BatchUpdateDeviceNicknameOutcome batchUpdateDeviceNickname(const Model::BatchUpdateDeviceNicknameRequest &request)const;
void batchUpdateDeviceNicknameAsync(const Model::BatchUpdateDeviceNicknameRequest& request, const BatchUpdateDeviceNicknameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchUpdateDeviceNicknameOutcomeCallable batchUpdateDeviceNicknameCallable(const Model::BatchUpdateDeviceNicknameRequest& request) const;
@@ -1443,6 +1475,9 @@ namespace AlibabaCloud
CreateRuleActionOutcome createRuleAction(const Model::CreateRuleActionRequest &request)const;
void createRuleActionAsync(const Model::CreateRuleActionRequest& request, const CreateRuleActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRuleActionOutcomeCallable createRuleActionCallable(const Model::CreateRuleActionRequest& request) const;
CreateRulengDistributeJobOutcome createRulengDistributeJob(const Model::CreateRulengDistributeJobRequest &request)const;
void createRulengDistributeJobAsync(const Model::CreateRulengDistributeJobRequest& request, const CreateRulengDistributeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRulengDistributeJobOutcomeCallable createRulengDistributeJobCallable(const Model::CreateRulengDistributeJobRequest& request) const;
CreateSceneRuleOutcome createSceneRule(const Model::CreateSceneRuleRequest &request)const;
void createSceneRuleAsync(const Model::CreateSceneRuleRequest& request, const CreateSceneRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSceneRuleOutcomeCallable createSceneRuleCallable(const Model::CreateSceneRuleRequest& request) const;
@@ -1458,9 +1493,6 @@ namespace AlibabaCloud
CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const;
void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const;
DeleteClientIdsOutcome deleteClientIds(const Model::DeleteClientIdsRequest &request)const;
void deleteClientIdsAsync(const Model::DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteClientIdsOutcomeCallable deleteClientIdsCallable(const Model::DeleteClientIdsRequest& request) const;
DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const;
void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const;
@@ -1668,6 +1700,9 @@ namespace AlibabaCloud
NotifyAddThingTopoOutcome notifyAddThingTopo(const Model::NotifyAddThingTopoRequest &request)const;
void notifyAddThingTopoAsync(const Model::NotifyAddThingTopoRequest& request, const NotifyAddThingTopoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
NotifyAddThingTopoOutcomeCallable notifyAddThingTopoCallable(const Model::NotifyAddThingTopoRequest& request) const;
OpenIotServiceOutcome openIotService(const Model::OpenIotServiceRequest &request)const;
void openIotServiceAsync(const Model::OpenIotServiceRequest& request, const OpenIotServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OpenIotServiceOutcomeCallable openIotServiceCallable(const Model::OpenIotServiceRequest& request) const;
PubOutcome pub(const Model::PubRequest &request)const;
void pubAsync(const Model::PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PubOutcomeCallable pubCallable(const Model::PubRequest& request) const;
@@ -1686,9 +1721,6 @@ namespace AlibabaCloud
QueryCertUrlByApplyIdOutcome queryCertUrlByApplyId(const Model::QueryCertUrlByApplyIdRequest &request)const;
void queryCertUrlByApplyIdAsync(const Model::QueryCertUrlByApplyIdRequest& request, const QueryCertUrlByApplyIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryCertUrlByApplyIdOutcomeCallable queryCertUrlByApplyIdCallable(const Model::QueryCertUrlByApplyIdRequest& request) const;
QueryClientIdsOutcome queryClientIds(const Model::QueryClientIdsRequest &request)const;
void queryClientIdsAsync(const Model::QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryClientIdsOutcomeCallable queryClientIdsCallable(const Model::QueryClientIdsRequest& request) const;
QueryConsumerGroupByGroupIdOutcome queryConsumerGroupByGroupId(const Model::QueryConsumerGroupByGroupIdRequest &request)const;
void queryConsumerGroupByGroupIdAsync(const Model::QueryConsumerGroupByGroupIdRequest& request, const QueryConsumerGroupByGroupIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryConsumerGroupByGroupIdOutcomeCallable queryConsumerGroupByGroupIdCallable(const Model::QueryConsumerGroupByGroupIdRequest& request) const;
@@ -1929,9 +1961,9 @@ namespace AlibabaCloud
StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const;
void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const;
TransformClientIdOutcome transformClientId(const Model::TransformClientIdRequest &request)const;
void transformClientIdAsync(const Model::TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransformClientIdOutcomeCallable transformClientIdCallable(const Model::TransformClientIdRequest& request) const;
SyncSpeechByCombinationOutcome syncSpeechByCombination(const Model::SyncSpeechByCombinationRequest &request)const;
void syncSpeechByCombinationAsync(const Model::SyncSpeechByCombinationRequest& request, const SyncSpeechByCombinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SyncSpeechByCombinationOutcomeCallable syncSpeechByCombinationCallable(const Model::SyncSpeechByCombinationRequest& request) const;
TriggerSceneRuleOutcome triggerSceneRule(const Model::TriggerSceneRuleRequest &request)const;
void triggerSceneRuleAsync(const Model::TriggerSceneRuleRequest& request, const TriggerSceneRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TriggerSceneRuleOutcomeCallable triggerSceneRuleCallable(const Model::TriggerSceneRuleRequest& request) const;

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT BatchBindDevicesIntoProjectRequest : public RpcServiceRequest
{
public:
struct Devices
{
std::string deviceName;
std::string productKey;
};
public:
BatchBindDevicesIntoProjectRequest();
~BatchBindDevicesIntoProjectRequest();
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::vector<Devices> getDevices()const;
void setDevices(const std::vector<Devices>& devices);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string iotInstanceId_;
std::string projectId_;
std::vector<Devices> devices_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTREQUEST_H_

View File

@@ -14,48 +14,44 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONRESULT_H_
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Facebody
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT ExecuteServerSideVerificationResult : public ServiceResult
class ALIBABACLOUD_IOT_EXPORT BatchBindDevicesIntoProjectResult : public ServiceResult
{
public:
struct Data
{
std::string verificationToken;
bool pass;
std::string reason;
};
ExecuteServerSideVerificationResult();
explicit ExecuteServerSideVerificationResult(const std::string &payload);
~ExecuteServerSideVerificationResult();
std::string getMessage()const;
Data getData()const;
BatchBindDevicesIntoProjectResult();
explicit BatchBindDevicesIntoProjectResult(const std::string &payload);
~BatchBindDevicesIntoProjectResult();
bool getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
bool data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONRESULT_H_
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTREQUEST_H_
#include <string>
#include <vector>
@@ -28,31 +28,28 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT TransformClientIdRequest : public RpcServiceRequest
class ALIBABACLOUD_IOT_EXPORT BatchBindProductsIntoProjectRequest : public RpcServiceRequest
{
public:
TransformClientIdRequest();
~TransformClientIdRequest();
BatchBindProductsIntoProjectRequest();
~BatchBindProductsIntoProjectRequest();
std::string getAuthConfig()const;
void setAuthConfig(const std::string& authConfig);
std::string getClientId()const;
void setClientId(const std::string& clientId);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::vector<std::string> getProductKeys()const;
void setProductKeys(const std::vector<std::string>& productKeys);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string authConfig_;
std::string clientId_;
std::string iotId_;
std::vector<std::string> productKeys_;
std::string iotInstanceId_;
std::string projectId_;
std::string apiProduct_;
std::string apiRevision_;
@@ -60,4 +57,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT BatchBindProductsIntoProjectResult : public ServiceResult
{
public:
BatchBindProductsIntoProjectResult();
explicit BatchBindProductsIntoProjectResult(const std::string &payload);
~BatchBindProductsIntoProjectResult();
bool getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
bool data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTRESULT_H_

View File

@@ -41,8 +41,12 @@ namespace AlibabaCloud
BatchCheckDeviceNamesRequest();
~BatchCheckDeviceNamesRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::vector<DeviceNameList> getDeviceNameList()const;
void setDeviceNameList(const std::vector<DeviceNameList>& deviceNameList);
std::string getIotInstanceId()const;
@@ -57,7 +61,9 @@ namespace AlibabaCloud
void setDeviceName(const std::vector<std::string>& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::vector<DeviceNameList> deviceNameList_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
BatchRegisterDeviceRequest();
~BatchRegisterDeviceRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getCount()const;
@@ -49,7 +53,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int count_;
std::string productKey_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
BatchRegisterDeviceWithApplyIdRequest();
~BatchRegisterDeviceWithApplyIdRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -49,7 +53,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
long applyId_;

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectDevicesRequest : public RpcServiceRequest
{
public:
struct Devices
{
std::string deviceName;
std::string productKey;
};
public:
BatchUnbindProjectDevicesRequest();
~BatchUnbindProjectDevicesRequest();
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::vector<Devices> getDevices()const;
void setDevices(const std::vector<Devices>& devices);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string iotInstanceId_;
std::string projectId_;
std::vector<Devices> devices_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESRESULT_H_
#include <string>
#include <vector>
@@ -29,14 +29,15 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsResult : public ServiceResult
class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectDevicesResult : public ServiceResult
{
public:
DeleteClientIdsResult();
explicit DeleteClientIdsResult(const std::string &payload);
~DeleteClientIdsResult();
BatchUnbindProjectDevicesResult();
explicit BatchUnbindProjectDevicesResult(const std::string &payload);
~BatchUnbindProjectDevicesResult();
bool getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
@@ -44,6 +45,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
bool data_;
std::string errorMessage_;
std::string code_;
bool success_;
@@ -52,4 +54,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSREQUEST_H_
#include <string>
#include <vector>
@@ -28,28 +28,28 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsRequest : public RpcServiceRequest
class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectProductsRequest : public RpcServiceRequest
{
public:
DeleteClientIdsRequest();
~DeleteClientIdsRequest();
BatchUnbindProjectProductsRequest();
~BatchUnbindProjectProductsRequest();
std::string getAuthConfig()const;
void setAuthConfig(const std::string& authConfig);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::vector<std::string> getProductKeys()const;
void setProductKeys(const std::vector<std::string>& productKeys);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string authConfig_;
std::string iotId_;
std::vector<std::string> productKeys_;
std::string iotInstanceId_;
std::string projectId_;
std::string apiProduct_;
std::string apiRevision_;
@@ -57,4 +57,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectProductsResult : public ServiceResult
{
public:
BatchUnbindProjectProductsResult();
explicit BatchUnbindProjectProductsResult(const std::string &payload);
~BatchUnbindProjectProductsResult();
bool getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
bool data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSRESULT_H_

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
CreateConsumerGroupRequest();
~CreateConsumerGroupRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getGroupName()const;
@@ -45,6 +49,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string groupName_;
std::string apiProduct_;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT CreateRulengDistributeJobRequest : public RpcServiceRequest
{
public:
CreateRulengDistributeJobRequest();
~CreateRulengDistributeJobRequest();
std::string getSourceInstanceId()const;
void setSourceInstanceId(const std::string& sourceInstanceId);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getTargetInstanceId()const;
void setTargetInstanceId(const std::string& targetInstanceId);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string sourceInstanceId_;
std::string productKey_;
std::string targetInstanceId_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_
#ifndef ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBRESULT_H_
#include <string>
#include <vector>
@@ -29,14 +29,14 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT TransformClientIdResult : public ServiceResult
class ALIBABACLOUD_IOT_EXPORT CreateRulengDistributeJobResult : public ServiceResult
{
public:
TransformClientIdResult();
explicit TransformClientIdResult(const std::string &payload);
~TransformClientIdResult();
CreateRulengDistributeJobResult();
explicit CreateRulengDistributeJobResult(const std::string &payload);
~CreateRulengDistributeJobResult();
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
@@ -52,4 +52,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_
#endif // !ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBRESULT_H_

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
DisableThingRequest();
~DisableThingRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
@@ -51,7 +55,9 @@ namespace AlibabaCloud
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
EnableThingRequest();
~EnableThingRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
@@ -51,7 +55,9 @@ namespace AlibabaCloud
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -0,0 +1,48 @@
/*
* 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_IOT_MODEL_OPENIOTSERVICEREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT OpenIotServiceRequest : public RpcServiceRequest
{
public:
OpenIotServiceRequest();
~OpenIotServiceRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICERESULT_H_
#define ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT OpenIotServiceResult : public ServiceResult
{
public:
OpenIotServiceResult();
explicit OpenIotServiceResult(const std::string &payload);
~OpenIotServiceResult();
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string orderId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICERESULT_H_

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryBatchRegisterDeviceStatusRequest();
~QueryBatchRegisterDeviceStatusRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -49,7 +53,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
long applyId_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryConsumerGroupListRequest();
~QueryConsumerGroupListRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -51,6 +55,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
bool fuzzy_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
QueryConsumerGroupStatusRequest();
~QueryConsumerGroupStatusRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getGroupId()const;
@@ -45,6 +49,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string groupId_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryDeviceRequest();
~QueryDeviceRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -51,7 +55,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
int currentPage_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryPageByApplyIdRequest();
~QueryPageByApplyIdRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -51,7 +55,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
int currentPage_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryProductListRequest();
~QueryProductListRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getIotInstanceId()const;
@@ -53,7 +57,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string resourceGroupId_;
std::string iotInstanceId_;
int pageSize_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QueryProductTopicRequest();
~QueryProductTopicRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -47,7 +51,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
QuerySubscribeRelationRequest();
~QuerySubscribeRelationRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getType()const;
void setType(const std::string& type);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -47,7 +51,9 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string type_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setIotId(const std::string& iotId);
std::vector<std::string> getCombinationList()const;
void setCombinationList(const std::vector<std::string>& combinationList);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getApiProduct()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
private:
std::string iotId_;
std::vector<std::string> combinationList_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_
#ifndef ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONREQUEST_H_
#include <string>
#include <vector>
@@ -28,33 +28,39 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT QueryClientIdsRequest : public RpcServiceRequest
class ALIBABACLOUD_IOT_EXPORT SyncSpeechByCombinationRequest : public RpcServiceRequest
{
public:
QueryClientIdsRequest();
~QueryClientIdsRequest();
SyncSpeechByCombinationRequest();
~SyncSpeechByCombinationRequest();
std::string getAuthConfig()const;
void setAuthConfig(const std::string& authConfig);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::vector<std::string> getCombinationList()const;
void setCombinationList(const std::vector<std::string>& combinationList);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::string getDeviceName()const;
void setDeviceName(const std::string& deviceName);
private:
std::string authConfig_;
std::string iotId_;
std::vector<std::string> combinationList_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_
#endif // !ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_
#ifndef ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONRESULT_H_
#include <string>
#include <vector>
@@ -29,24 +29,19 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT QueryClientIdsResult : public ServiceResult
class ALIBABACLOUD_IOT_EXPORT SyncSpeechByCombinationResult : public ServiceResult
{
public:
struct Data
{
struct DynamicRegClientId
{
long createTime;
std::string clientId;
};
std::vector<DynamicRegClientId> dynamicRegClientIds;
std::string iotId;
int retryCount;
std::string id;
};
QueryClientIdsResult();
explicit QueryClientIdsResult(const std::string &payload);
~QueryClientIdsResult();
SyncSpeechByCombinationResult();
explicit SyncSpeechByCombinationResult(const std::string &payload);
~SyncSpeechByCombinationResult();
Data getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
@@ -64,4 +59,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_
#endif // !ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONRESULT_H_

View File

@@ -35,10 +35,14 @@ namespace AlibabaCloud
UpdateProductRequest();
~UpdateProductRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductName()const;
@@ -51,8 +55,10 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string realTenantId_;
std::string description_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productName_;
std::string productKey_;

View File

@@ -159,6 +159,78 @@ IotClient::BatchBindDeviceToEdgeInstanceWithDriverOutcomeCallable IotClient::bat
return task->get_future();
}
IotClient::BatchBindDevicesIntoProjectOutcome IotClient::batchBindDevicesIntoProject(const BatchBindDevicesIntoProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchBindDevicesIntoProjectOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchBindDevicesIntoProjectOutcome(BatchBindDevicesIntoProjectResult(outcome.result()));
else
return BatchBindDevicesIntoProjectOutcome(outcome.error());
}
void IotClient::batchBindDevicesIntoProjectAsync(const BatchBindDevicesIntoProjectRequest& request, const BatchBindDevicesIntoProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchBindDevicesIntoProject(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::BatchBindDevicesIntoProjectOutcomeCallable IotClient::batchBindDevicesIntoProjectCallable(const BatchBindDevicesIntoProjectRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchBindDevicesIntoProjectOutcome()>>(
[this, request]()
{
return this->batchBindDevicesIntoProject(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::BatchBindProductsIntoProjectOutcome IotClient::batchBindProductsIntoProject(const BatchBindProductsIntoProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchBindProductsIntoProjectOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchBindProductsIntoProjectOutcome(BatchBindProductsIntoProjectResult(outcome.result()));
else
return BatchBindProductsIntoProjectOutcome(outcome.error());
}
void IotClient::batchBindProductsIntoProjectAsync(const BatchBindProductsIntoProjectRequest& request, const BatchBindProductsIntoProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchBindProductsIntoProject(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::BatchBindProductsIntoProjectOutcomeCallable IotClient::batchBindProductsIntoProjectCallable(const BatchBindProductsIntoProjectRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchBindProductsIntoProjectOutcome()>>(
[this, request]()
{
return this->batchBindProductsIntoProject(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::BatchCheckDeviceNamesOutcome IotClient::batchCheckDeviceNames(const BatchCheckDeviceNamesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -843,6 +915,78 @@ IotClient::BatchUnbindDeviceFromEdgeInstanceOutcomeCallable IotClient::batchUnbi
return task->get_future();
}
IotClient::BatchUnbindProjectDevicesOutcome IotClient::batchUnbindProjectDevices(const BatchUnbindProjectDevicesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchUnbindProjectDevicesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchUnbindProjectDevicesOutcome(BatchUnbindProjectDevicesResult(outcome.result()));
else
return BatchUnbindProjectDevicesOutcome(outcome.error());
}
void IotClient::batchUnbindProjectDevicesAsync(const BatchUnbindProjectDevicesRequest& request, const BatchUnbindProjectDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchUnbindProjectDevices(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::BatchUnbindProjectDevicesOutcomeCallable IotClient::batchUnbindProjectDevicesCallable(const BatchUnbindProjectDevicesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchUnbindProjectDevicesOutcome()>>(
[this, request]()
{
return this->batchUnbindProjectDevices(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::BatchUnbindProjectProductsOutcome IotClient::batchUnbindProjectProducts(const BatchUnbindProjectProductsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchUnbindProjectProductsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchUnbindProjectProductsOutcome(BatchUnbindProjectProductsResult(outcome.result()));
else
return BatchUnbindProjectProductsOutcome(outcome.error());
}
void IotClient::batchUnbindProjectProductsAsync(const BatchUnbindProjectProductsRequest& request, const BatchUnbindProjectProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchUnbindProjectProducts(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::BatchUnbindProjectProductsOutcomeCallable IotClient::batchUnbindProjectProductsCallable(const BatchUnbindProjectProductsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchUnbindProjectProductsOutcome()>>(
[this, request]()
{
return this->batchUnbindProjectProducts(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::BatchUpdateDeviceNicknameOutcome IotClient::batchUpdateDeviceNickname(const BatchUpdateDeviceNicknameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2175,6 +2319,42 @@ IotClient::CreateRuleActionOutcomeCallable IotClient::createRuleActionCallable(c
return task->get_future();
}
IotClient::CreateRulengDistributeJobOutcome IotClient::createRulengDistributeJob(const CreateRulengDistributeJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateRulengDistributeJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateRulengDistributeJobOutcome(CreateRulengDistributeJobResult(outcome.result()));
else
return CreateRulengDistributeJobOutcome(outcome.error());
}
void IotClient::createRulengDistributeJobAsync(const CreateRulengDistributeJobRequest& request, const CreateRulengDistributeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createRulengDistributeJob(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::CreateRulengDistributeJobOutcomeCallable IotClient::createRulengDistributeJobCallable(const CreateRulengDistributeJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateRulengDistributeJobOutcome()>>(
[this, request]()
{
return this->createRulengDistributeJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::CreateSceneRuleOutcome IotClient::createSceneRule(const CreateSceneRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2355,42 +2535,6 @@ IotClient::CreateTopicRouteTableOutcomeCallable IotClient::createTopicRouteTable
return task->get_future();
}
IotClient::DeleteClientIdsOutcome IotClient::deleteClientIds(const DeleteClientIdsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteClientIdsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteClientIdsOutcome(DeleteClientIdsResult(outcome.result()));
else
return DeleteClientIdsOutcome(outcome.error());
}
void IotClient::deleteClientIdsAsync(const DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteClientIds(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DeleteClientIdsOutcomeCallable IotClient::deleteClientIdsCallable(const DeleteClientIdsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteClientIdsOutcome()>>(
[this, request]()
{
return this->deleteClientIds(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DeleteConsumerGroupOutcome IotClient::deleteConsumerGroup(const DeleteConsumerGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4875,6 +5019,42 @@ IotClient::NotifyAddThingTopoOutcomeCallable IotClient::notifyAddThingTopoCallab
return task->get_future();
}
IotClient::OpenIotServiceOutcome IotClient::openIotService(const OpenIotServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OpenIotServiceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OpenIotServiceOutcome(OpenIotServiceResult(outcome.result()));
else
return OpenIotServiceOutcome(outcome.error());
}
void IotClient::openIotServiceAsync(const OpenIotServiceRequest& request, const OpenIotServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, openIotService(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::OpenIotServiceOutcomeCallable IotClient::openIotServiceCallable(const OpenIotServiceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OpenIotServiceOutcome()>>(
[this, request]()
{
return this->openIotService(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::PubOutcome IotClient::pub(const PubRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5091,42 +5271,6 @@ IotClient::QueryCertUrlByApplyIdOutcomeCallable IotClient::queryCertUrlByApplyId
return task->get_future();
}
IotClient::QueryClientIdsOutcome IotClient::queryClientIds(const QueryClientIdsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryClientIdsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryClientIdsOutcome(QueryClientIdsResult(outcome.result()));
else
return QueryClientIdsOutcome(outcome.error());
}
void IotClient::queryClientIdsAsync(const QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryClientIds(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::QueryClientIdsOutcomeCallable IotClient::queryClientIdsCallable(const QueryClientIdsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryClientIdsOutcome()>>(
[this, request]()
{
return this->queryClientIds(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::QueryConsumerGroupByGroupIdOutcome IotClient::queryConsumerGroupByGroupId(const QueryConsumerGroupByGroupIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8007,36 +8151,36 @@ IotClient::StopRuleOutcomeCallable IotClient::stopRuleCallable(const StopRuleReq
return task->get_future();
}
IotClient::TransformClientIdOutcome IotClient::transformClientId(const TransformClientIdRequest &request) const
IotClient::SyncSpeechByCombinationOutcome IotClient::syncSpeechByCombination(const SyncSpeechByCombinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TransformClientIdOutcome(endpointOutcome.error());
return SyncSpeechByCombinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TransformClientIdOutcome(TransformClientIdResult(outcome.result()));
return SyncSpeechByCombinationOutcome(SyncSpeechByCombinationResult(outcome.result()));
else
return TransformClientIdOutcome(outcome.error());
return SyncSpeechByCombinationOutcome(outcome.error());
}
void IotClient::transformClientIdAsync(const TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
void IotClient::syncSpeechByCombinationAsync(const SyncSpeechByCombinationRequest& request, const SyncSpeechByCombinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, transformClientId(request), context);
handler(this, request, syncSpeechByCombination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::TransformClientIdOutcomeCallable IotClient::transformClientIdCallable(const TransformClientIdRequest &request) const
IotClient::SyncSpeechByCombinationOutcomeCallable IotClient::syncSpeechByCombinationCallable(const SyncSpeechByCombinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TransformClientIdOutcome()>>(
auto task = std::make_shared<std::packaged_task<SyncSpeechByCombinationOutcome()>>(
[this, request]()
{
return this->transformClientId(request);
return this->syncSpeechByCombination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));

View File

@@ -0,0 +1,89 @@
/*
* 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/iot/model/BatchBindDevicesIntoProjectRequest.h>
using AlibabaCloud::Iot::Model::BatchBindDevicesIntoProjectRequest;
BatchBindDevicesIntoProjectRequest::BatchBindDevicesIntoProjectRequest() :
RpcServiceRequest("iot", "2018-01-20", "BatchBindDevicesIntoProject")
{
setMethod(HttpRequest::Method::Post);
}
BatchBindDevicesIntoProjectRequest::~BatchBindDevicesIntoProjectRequest()
{}
std::string BatchBindDevicesIntoProjectRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void BatchBindDevicesIntoProjectRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setBodyParameter("IotInstanceId", iotInstanceId);
}
std::string BatchBindDevicesIntoProjectRequest::getProjectId()const
{
return projectId_;
}
void BatchBindDevicesIntoProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::vector<BatchBindDevicesIntoProjectRequest::Devices> BatchBindDevicesIntoProjectRequest::getDevices()const
{
return devices_;
}
void BatchBindDevicesIntoProjectRequest::setDevices(const std::vector<Devices>& devices)
{
devices_ = devices;
for(int dep1 = 0; dep1!= devices.size(); dep1++) {
auto devicesObj = devices.at(dep1);
std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1);
setParameter(devicesObjStr + ".DeviceName", devicesObj.deviceName);
setParameter(devicesObjStr + ".ProductKey", devicesObj.productKey);
}
}
std::string BatchBindDevicesIntoProjectRequest::getApiProduct()const
{
return apiProduct_;
}
void BatchBindDevicesIntoProjectRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string BatchBindDevicesIntoProjectRequest::getApiRevision()const
{
return apiRevision_;
}
void BatchBindDevicesIntoProjectRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

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

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/BatchBindProductsIntoProjectRequest.h>
using AlibabaCloud::Iot::Model::BatchBindProductsIntoProjectRequest;
BatchBindProductsIntoProjectRequest::BatchBindProductsIntoProjectRequest() :
RpcServiceRequest("iot", "2018-01-20", "BatchBindProductsIntoProject")
{
setMethod(HttpRequest::Method::Post);
}
BatchBindProductsIntoProjectRequest::~BatchBindProductsIntoProjectRequest()
{}
std::vector<std::string> BatchBindProductsIntoProjectRequest::getProductKeys()const
{
return productKeys_;
}
void BatchBindProductsIntoProjectRequest::setProductKeys(const std::vector<std::string>& productKeys)
{
productKeys_ = productKeys;
for(int dep1 = 0; dep1!= productKeys.size(); dep1++) {
setBodyParameter("ProductKeys."+ std::to_string(dep1), productKeys.at(dep1));
}
}
std::string BatchBindProductsIntoProjectRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void BatchBindProductsIntoProjectRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setBodyParameter("IotInstanceId", iotInstanceId);
}
std::string BatchBindProductsIntoProjectRequest::getProjectId()const
{
return projectId_;
}
void BatchBindProductsIntoProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string BatchBindProductsIntoProjectRequest::getApiProduct()const
{
return apiProduct_;
}
void BatchBindProductsIntoProjectRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string BatchBindProductsIntoProjectRequest::getApiRevision()const
{
return apiRevision_;
}
void BatchBindProductsIntoProjectRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

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

View File

@@ -27,6 +27,17 @@ BatchCheckDeviceNamesRequest::BatchCheckDeviceNamesRequest() :
BatchCheckDeviceNamesRequest::~BatchCheckDeviceNamesRequest()
{}
std::string BatchCheckDeviceNamesRequest::getRealTenantId()const
{
return realTenantId_;
}
void BatchCheckDeviceNamesRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string BatchCheckDeviceNamesRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void BatchCheckDeviceNamesRequest::setAccessKeyId(const std::string& accessKeyId
setParameter("AccessKeyId", accessKeyId);
}
std::string BatchCheckDeviceNamesRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void BatchCheckDeviceNamesRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::vector<BatchCheckDeviceNamesRequest::DeviceNameList> BatchCheckDeviceNamesRequest::getDeviceNameList()const
{
return deviceNameList_;

View File

@@ -27,6 +27,17 @@ BatchRegisterDeviceRequest::BatchRegisterDeviceRequest() :
BatchRegisterDeviceRequest::~BatchRegisterDeviceRequest()
{}
std::string BatchRegisterDeviceRequest::getRealTenantId()const
{
return realTenantId_;
}
void BatchRegisterDeviceRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string BatchRegisterDeviceRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void BatchRegisterDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string BatchRegisterDeviceRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void BatchRegisterDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string BatchRegisterDeviceRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ BatchRegisterDeviceWithApplyIdRequest::BatchRegisterDeviceWithApplyIdRequest() :
BatchRegisterDeviceWithApplyIdRequest::~BatchRegisterDeviceWithApplyIdRequest()
{}
std::string BatchRegisterDeviceWithApplyIdRequest::getRealTenantId()const
{
return realTenantId_;
}
void BatchRegisterDeviceWithApplyIdRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string BatchRegisterDeviceWithApplyIdRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void BatchRegisterDeviceWithApplyIdRequest::setAccessKeyId(const std::string& ac
setParameter("AccessKeyId", accessKeyId);
}
std::string BatchRegisterDeviceWithApplyIdRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void BatchRegisterDeviceWithApplyIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string BatchRegisterDeviceWithApplyIdRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -0,0 +1,89 @@
/*
* 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/iot/model/BatchUnbindProjectDevicesRequest.h>
using AlibabaCloud::Iot::Model::BatchUnbindProjectDevicesRequest;
BatchUnbindProjectDevicesRequest::BatchUnbindProjectDevicesRequest() :
RpcServiceRequest("iot", "2018-01-20", "BatchUnbindProjectDevices")
{
setMethod(HttpRequest::Method::Post);
}
BatchUnbindProjectDevicesRequest::~BatchUnbindProjectDevicesRequest()
{}
std::string BatchUnbindProjectDevicesRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void BatchUnbindProjectDevicesRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setBodyParameter("IotInstanceId", iotInstanceId);
}
std::string BatchUnbindProjectDevicesRequest::getProjectId()const
{
return projectId_;
}
void BatchUnbindProjectDevicesRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::vector<BatchUnbindProjectDevicesRequest::Devices> BatchUnbindProjectDevicesRequest::getDevices()const
{
return devices_;
}
void BatchUnbindProjectDevicesRequest::setDevices(const std::vector<Devices>& devices)
{
devices_ = devices;
for(int dep1 = 0; dep1!= devices.size(); dep1++) {
auto devicesObj = devices.at(dep1);
std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1);
setParameter(devicesObjStr + ".DeviceName", devicesObj.deviceName);
setParameter(devicesObjStr + ".ProductKey", devicesObj.productKey);
}
}
std::string BatchUnbindProjectDevicesRequest::getApiProduct()const
{
return apiProduct_;
}
void BatchUnbindProjectDevicesRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string BatchUnbindProjectDevicesRequest::getApiRevision()const
{
return apiRevision_;
}
void BatchUnbindProjectDevicesRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/iot/model/DeleteClientIdsResult.h>
#include <alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DeleteClientIdsResult::DeleteClientIdsResult() :
BatchUnbindProjectDevicesResult::BatchUnbindProjectDevicesResult() :
ServiceResult()
{}
DeleteClientIdsResult::DeleteClientIdsResult(const std::string &payload) :
BatchUnbindProjectDevicesResult::BatchUnbindProjectDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteClientIdsResult::~DeleteClientIdsResult()
BatchUnbindProjectDevicesResult::~BatchUnbindProjectDevicesResult()
{}
void DeleteClientIdsResult::parse(const std::string &payload)
void BatchUnbindProjectDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -45,20 +45,27 @@ void DeleteClientIdsResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string DeleteClientIdsResult::getErrorMessage()const
bool BatchUnbindProjectDevicesResult::getData()const
{
return data_;
}
std::string BatchUnbindProjectDevicesResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteClientIdsResult::getCode()const
std::string BatchUnbindProjectDevicesResult::getCode()const
{
return code_;
}
bool DeleteClientIdsResult::getSuccess()const
bool BatchUnbindProjectDevicesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/BatchUnbindProjectProductsRequest.h>
using AlibabaCloud::Iot::Model::BatchUnbindProjectProductsRequest;
BatchUnbindProjectProductsRequest::BatchUnbindProjectProductsRequest() :
RpcServiceRequest("iot", "2018-01-20", "BatchUnbindProjectProducts")
{
setMethod(HttpRequest::Method::Post);
}
BatchUnbindProjectProductsRequest::~BatchUnbindProjectProductsRequest()
{}
std::vector<std::string> BatchUnbindProjectProductsRequest::getProductKeys()const
{
return productKeys_;
}
void BatchUnbindProjectProductsRequest::setProductKeys(const std::vector<std::string>& productKeys)
{
productKeys_ = productKeys;
for(int dep1 = 0; dep1!= productKeys.size(); dep1++) {
setBodyParameter("ProductKeys."+ std::to_string(dep1), productKeys.at(dep1));
}
}
std::string BatchUnbindProjectProductsRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void BatchUnbindProjectProductsRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setBodyParameter("IotInstanceId", iotInstanceId);
}
std::string BatchUnbindProjectProductsRequest::getProjectId()const
{
return projectId_;
}
void BatchUnbindProjectProductsRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string BatchUnbindProjectProductsRequest::getApiProduct()const
{
return apiProduct_;
}
void BatchUnbindProjectProductsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string BatchUnbindProjectProductsRequest::getApiRevision()const
{
return apiRevision_;
}
void BatchUnbindProjectProductsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

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

View File

@@ -27,6 +27,28 @@ CreateConsumerGroupRequest::CreateConsumerGroupRequest() :
CreateConsumerGroupRequest::~CreateConsumerGroupRequest()
{}
std::string CreateConsumerGroupRequest::getRealTenantId()const
{
return realTenantId_;
}
void CreateConsumerGroupRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string CreateConsumerGroupRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void CreateConsumerGroupRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string CreateConsumerGroupRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/CreateRulengDistributeJobRequest.h>
using AlibabaCloud::Iot::Model::CreateRulengDistributeJobRequest;
CreateRulengDistributeJobRequest::CreateRulengDistributeJobRequest() :
RpcServiceRequest("iot", "2018-01-20", "CreateRulengDistributeJob")
{
setMethod(HttpRequest::Method::Post);
}
CreateRulengDistributeJobRequest::~CreateRulengDistributeJobRequest()
{}
std::string CreateRulengDistributeJobRequest::getSourceInstanceId()const
{
return sourceInstanceId_;
}
void CreateRulengDistributeJobRequest::setSourceInstanceId(const std::string& sourceInstanceId)
{
sourceInstanceId_ = sourceInstanceId;
setParameter("SourceInstanceId", sourceInstanceId);
}
std::string CreateRulengDistributeJobRequest::getProductKey()const
{
return productKey_;
}
void CreateRulengDistributeJobRequest::setProductKey(const std::string& productKey)
{
productKey_ = productKey;
setParameter("ProductKey", productKey);
}
std::string CreateRulengDistributeJobRequest::getTargetInstanceId()const
{
return targetInstanceId_;
}
void CreateRulengDistributeJobRequest::setTargetInstanceId(const std::string& targetInstanceId)
{
targetInstanceId_ = targetInstanceId;
setParameter("TargetInstanceId", targetInstanceId);
}
std::string CreateRulengDistributeJobRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateRulengDistributeJobRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateRulengDistributeJobRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateRulengDistributeJobRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/iot/model/TransformClientIdResult.h>
#include <alibabacloud/iot/model/CreateRulengDistributeJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
TransformClientIdResult::TransformClientIdResult() :
CreateRulengDistributeJobResult::CreateRulengDistributeJobResult() :
ServiceResult()
{}
TransformClientIdResult::TransformClientIdResult(const std::string &payload) :
CreateRulengDistributeJobResult::CreateRulengDistributeJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TransformClientIdResult::~TransformClientIdResult()
CreateRulengDistributeJobResult::~CreateRulengDistributeJobResult()
{}
void TransformClientIdResult::parse(const std::string &payload)
void CreateRulengDistributeJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,17 +48,17 @@ void TransformClientIdResult::parse(const std::string &payload)
}
std::string TransformClientIdResult::getErrorMessage()const
std::string CreateRulengDistributeJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string TransformClientIdResult::getCode()const
std::string CreateRulengDistributeJobResult::getCode()const
{
return code_;
}
bool TransformClientIdResult::getSuccess()const
bool CreateRulengDistributeJobResult::getSuccess()const
{
return success_;
}

View File

@@ -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.
*/
#include <alibabacloud/iot/model/DeleteClientIdsRequest.h>
using AlibabaCloud::Iot::Model::DeleteClientIdsRequest;
DeleteClientIdsRequest::DeleteClientIdsRequest() :
RpcServiceRequest("iot", "2018-01-20", "DeleteClientIds")
{
setMethod(HttpRequest::Method::Post);
}
DeleteClientIdsRequest::~DeleteClientIdsRequest()
{}
std::string DeleteClientIdsRequest::getAuthConfig()const
{
return authConfig_;
}
void DeleteClientIdsRequest::setAuthConfig(const std::string& authConfig)
{
authConfig_ = authConfig;
setParameter("AuthConfig", authConfig);
}
std::string DeleteClientIdsRequest::getIotId()const
{
return iotId_;
}
void DeleteClientIdsRequest::setIotId(const std::string& iotId)
{
iotId_ = iotId;
setParameter("IotId", iotId);
}
std::string DeleteClientIdsRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string DeleteClientIdsRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteClientIdsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DeleteClientIdsRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteClientIdsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -27,6 +27,17 @@ DisableThingRequest::DisableThingRequest() :
DisableThingRequest::~DisableThingRequest()
{}
std::string DisableThingRequest::getRealTenantId()const
{
return realTenantId_;
}
void DisableThingRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string DisableThingRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void DisableThingRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string DisableThingRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void DisableThingRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string DisableThingRequest::getIotId()const
{
return iotId_;

View File

@@ -27,6 +27,17 @@ EnableThingRequest::EnableThingRequest() :
EnableThingRequest::~EnableThingRequest()
{}
std::string EnableThingRequest::getRealTenantId()const
{
return realTenantId_;
}
void EnableThingRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string EnableThingRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void EnableThingRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string EnableThingRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void EnableThingRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string EnableThingRequest::getIotId()const
{
return iotId_;

View File

@@ -0,0 +1,40 @@
/*
* 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/iot/model/OpenIotServiceRequest.h>
using AlibabaCloud::Iot::Model::OpenIotServiceRequest;
OpenIotServiceRequest::OpenIotServiceRequest() :
RpcServiceRequest("iot", "2018-01-20", "OpenIotService")
{
setMethod(HttpRequest::Method::Post);
}
OpenIotServiceRequest::~OpenIotServiceRequest()
{}
long OpenIotServiceRequest::getOwnerId()const
{
return ownerId_;
}
void OpenIotServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -27,6 +27,17 @@ QueryBatchRegisterDeviceStatusRequest::QueryBatchRegisterDeviceStatusRequest() :
QueryBatchRegisterDeviceStatusRequest::~QueryBatchRegisterDeviceStatusRequest()
{}
std::string QueryBatchRegisterDeviceStatusRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryBatchRegisterDeviceStatusRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryBatchRegisterDeviceStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryBatchRegisterDeviceStatusRequest::setAccessKeyId(const std::string& ac
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryBatchRegisterDeviceStatusRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryBatchRegisterDeviceStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryBatchRegisterDeviceStatusRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -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.
*/
#include <alibabacloud/iot/model/QueryClientIdsRequest.h>
using AlibabaCloud::Iot::Model::QueryClientIdsRequest;
QueryClientIdsRequest::QueryClientIdsRequest() :
RpcServiceRequest("iot", "2018-01-20", "QueryClientIds")
{
setMethod(HttpRequest::Method::Post);
}
QueryClientIdsRequest::~QueryClientIdsRequest()
{}
std::string QueryClientIdsRequest::getAuthConfig()const
{
return authConfig_;
}
void QueryClientIdsRequest::setAuthConfig(const std::string& authConfig)
{
authConfig_ = authConfig;
setParameter("AuthConfig", authConfig);
}
std::string QueryClientIdsRequest::getIotId()const
{
return iotId_;
}
void QueryClientIdsRequest::setIotId(const std::string& iotId)
{
iotId_ = iotId;
setParameter("IotId", iotId);
}
std::string QueryClientIdsRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void QueryClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string QueryClientIdsRequest::getApiProduct()const
{
return apiProduct_;
}
void QueryClientIdsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string QueryClientIdsRequest::getApiRevision()const
{
return apiRevision_;
}
void QueryClientIdsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -27,6 +27,28 @@ QueryConsumerGroupListRequest::QueryConsumerGroupListRequest() :
QueryConsumerGroupListRequest::~QueryConsumerGroupListRequest()
{}
std::string QueryConsumerGroupListRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryConsumerGroupListRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryConsumerGroupListRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryConsumerGroupListRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryConsumerGroupListRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,28 @@ QueryConsumerGroupStatusRequest::QueryConsumerGroupStatusRequest() :
QueryConsumerGroupStatusRequest::~QueryConsumerGroupStatusRequest()
{}
std::string QueryConsumerGroupStatusRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryConsumerGroupStatusRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryConsumerGroupStatusRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryConsumerGroupStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryConsumerGroupStatusRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QueryDeviceRequest::QueryDeviceRequest() :
QueryDeviceRequest::~QueryDeviceRequest()
{}
std::string QueryDeviceRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryDeviceRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryDeviceRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryDeviceRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryDeviceRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QueryPageByApplyIdRequest::QueryPageByApplyIdRequest() :
QueryPageByApplyIdRequest::~QueryPageByApplyIdRequest()
{}
std::string QueryPageByApplyIdRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryPageByApplyIdRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryPageByApplyIdRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryPageByApplyIdRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryPageByApplyIdRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryPageByApplyIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryPageByApplyIdRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QueryProductListRequest::QueryProductListRequest() :
QueryProductListRequest::~QueryProductListRequest()
{}
std::string QueryProductListRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryProductListRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryProductListRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryProductListRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryProductListRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryProductListRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryProductListRequest::getResourceGroupId()const
{
return resourceGroupId_;

View File

@@ -27,6 +27,17 @@ QueryProductTopicRequest::QueryProductTopicRequest() :
QueryProductTopicRequest::~QueryProductTopicRequest()
{}
std::string QueryProductTopicRequest::getRealTenantId()const
{
return realTenantId_;
}
void QueryProductTopicRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QueryProductTopicRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -38,6 +49,17 @@ void QueryProductTopicRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryProductTopicRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QueryProductTopicRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QueryProductTopicRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -27,6 +27,17 @@ QuerySubscribeRelationRequest::QuerySubscribeRelationRequest() :
QuerySubscribeRelationRequest::~QuerySubscribeRelationRequest()
{}
std::string QuerySubscribeRelationRequest::getRealTenantId()const
{
return realTenantId_;
}
void QuerySubscribeRelationRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string QuerySubscribeRelationRequest::getType()const
{
return type_;
@@ -38,6 +49,17 @@ void QuerySubscribeRelationRequest::setType(const std::string& type)
setParameter("Type", type);
}
std::string QuerySubscribeRelationRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void QuerySubscribeRelationRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string QuerySubscribeRelationRequest::getIotInstanceId()const
{
return iotInstanceId_;

View File

@@ -51,6 +51,17 @@ void SpeechByCombinationRequest::setCombinationList(const std::vector<std::strin
}
}
std::string SpeechByCombinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void SpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setBodyParameter("IotInstanceId", iotInstanceId);
}
std::string SpeechByCombinationRequest::getProductKey()const
{
return productKey_;

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