regenerate code
This commit is contained in:
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchAddDeviceGroupRelationsRequest;
|
||||
|
||||
BatchAddDeviceGroupRelationsRequest::BatchAddDeviceGroupRelationsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchAddDeviceGroupRelations")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchAddDeviceGroupRelationsRequest::~BatchAddDeviceGroupRelationsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BatchAddDeviceGroupRelationsRequest::getGroupId()const
|
||||
void BatchAddDeviceGroupRelationsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string BatchAddDeviceGroupRelationsRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchAddDeviceGroupRelationsRequest::getAccessKeyId()const
|
||||
void BatchAddDeviceGroupRelationsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchAddDeviceGroupRelationsRequest::getIotInstanceId()const
|
||||
@@ -55,7 +57,7 @@ std::string BatchAddDeviceGroupRelationsRequest::getIotInstanceId()const
|
||||
void BatchAddDeviceGroupRelationsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<BatchAddDeviceGroupRelationsRequest::Device> BatchAddDeviceGroupRelationsRequest::getDevice()const
|
||||
@@ -66,12 +68,11 @@ std::vector<BatchAddDeviceGroupRelationsRequest::Device> BatchAddDeviceGroupRela
|
||||
void BatchAddDeviceGroupRelationsRequest::setDevice(const std::vector<Device>& device)
|
||||
{
|
||||
device_ = device;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= device.size(); i++) {
|
||||
auto obj = device.at(i);
|
||||
std::string str ="Device."+ std::to_string(i);
|
||||
setCoreParameter(str + ".DeviceName", obj.deviceName);
|
||||
setCoreParameter(str + ".ProductKey", obj.productKey);
|
||||
for(int dep1 = 0; dep1!= device.size(); dep1++) {
|
||||
auto deviceObj = device.at(dep1);
|
||||
std::string deviceObjStr = "Device." + std::to_string(dep1 + 1);
|
||||
setParameter(deviceObjStr + ".DeviceName", deviceObj.deviceName);
|
||||
setParameter(deviceObjStr + ".ProductKey", deviceObj.productKey);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
104
iot/src/model/BatchAddThingTopoRequest.cc
Normal file
104
iot/src/model/BatchAddThingTopoRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/BatchAddThingTopoRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchAddThingTopoRequest;
|
||||
|
||||
BatchAddThingTopoRequest::BatchAddThingTopoRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchAddThingTopo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchAddThingTopoRequest::~BatchAddThingTopoRequest()
|
||||
{}
|
||||
|
||||
std::string BatchAddThingTopoRequest::getExt()const
|
||||
{
|
||||
return ext_;
|
||||
}
|
||||
|
||||
void BatchAddThingTopoRequest::setExt(const std::string& ext)
|
||||
{
|
||||
ext_ = ext;
|
||||
setParameter("Ext", ext);
|
||||
}
|
||||
|
||||
std::string BatchAddThingTopoRequest::getGwProductKey()const
|
||||
{
|
||||
return gwProductKey_;
|
||||
}
|
||||
|
||||
void BatchAddThingTopoRequest::setGwProductKey(const std::string& gwProductKey)
|
||||
{
|
||||
gwProductKey_ = gwProductKey;
|
||||
setParameter("GwProductKey", gwProductKey);
|
||||
}
|
||||
|
||||
std::vector<BatchAddThingTopoRequest::TopoAddItem> BatchAddThingTopoRequest::getTopoAddItem()const
|
||||
{
|
||||
return topoAddItem_;
|
||||
}
|
||||
|
||||
void BatchAddThingTopoRequest::setTopoAddItem(const std::vector<TopoAddItem>& topoAddItem)
|
||||
{
|
||||
topoAddItem_ = topoAddItem;
|
||||
for(int dep1 = 0; dep1!= topoAddItem.size(); dep1++) {
|
||||
auto topoAddItemObj = topoAddItem.at(dep1);
|
||||
std::string topoAddItemObjStr = "TopoAddItem." + std::to_string(dep1 + 1);
|
||||
setParameter(topoAddItemObjStr + ".ClientId", topoAddItemObj.clientId);
|
||||
setParameter(topoAddItemObjStr + ".SignMethod", topoAddItemObj.signMethod);
|
||||
setParameter(topoAddItemObjStr + ".Sign", topoAddItemObj.sign);
|
||||
setParameter(topoAddItemObjStr + ".DeviceName", topoAddItemObj.deviceName);
|
||||
setParameter(topoAddItemObjStr + ".ProductKey", topoAddItemObj.productKey);
|
||||
setParameter(topoAddItemObjStr + ".Timestamp", topoAddItemObj.timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchAddThingTopoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BatchAddThingTopoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchAddThingTopoRequest::getGwDeviceName()const
|
||||
{
|
||||
return gwDeviceName_;
|
||||
}
|
||||
|
||||
void BatchAddThingTopoRequest::setGwDeviceName(const std::string& gwDeviceName)
|
||||
{
|
||||
gwDeviceName_ = gwDeviceName;
|
||||
setParameter("GwDeviceName", gwDeviceName);
|
||||
}
|
||||
|
||||
std::string BatchAddThingTopoRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchAddThingTopoRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
65
iot/src/model/BatchAddThingTopoResult.cc
Normal file
65
iot/src/model/BatchAddThingTopoResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/BatchAddThingTopoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchAddThingTopoResult::BatchAddThingTopoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchAddThingTopoResult::BatchAddThingTopoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchAddThingTopoResult::~BatchAddThingTopoResult()
|
||||
{}
|
||||
|
||||
void BatchAddThingTopoResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchAddThingTopoResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchAddThingTopoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchAddThingTopoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,33 +20,13 @@ using AlibabaCloud::Iot::Model::BatchBindDeviceToEdgeInstanceWithDriverRequest;
|
||||
|
||||
BatchBindDeviceToEdgeInstanceWithDriverRequest::BatchBindDeviceToEdgeInstanceWithDriverRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchBindDeviceToEdgeInstanceWithDriver")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchBindDeviceToEdgeInstanceWithDriverRequest::~BatchBindDeviceToEdgeInstanceWithDriverRequest()
|
||||
{}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getDriverId()const
|
||||
{
|
||||
return driverId_;
|
||||
@@ -55,7 +35,7 @@ std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getDriverId()const
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setCoreParameter("DriverId", driverId);
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchBindDeviceToEdgeInstanceWithDriverRequest::getIotIds()const
|
||||
@@ -66,8 +46,9 @@ std::vector<std::string> BatchBindDeviceToEdgeInstanceWithDriverRequest::getIotI
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setIotIds(const std::vector<std::string>& iotIds)
|
||||
{
|
||||
iotIds_ = iotIds;
|
||||
for(int i = 0; i!= iotIds.size(); i++)
|
||||
setCoreParameter("IotIds."+ std::to_string(i), iotIds.at(i));
|
||||
for(int dep1 = 0; dep1!= iotIds.size(); dep1++) {
|
||||
setParameter("IotIds."+ std::to_string(dep1), iotIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getIotInstanceId()const
|
||||
@@ -78,6 +59,39 @@ std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getIotInstanceId()co
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchBindDeviceToEdgeInstanceWithDriverRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchBindDeviceToEdgeInstanceWithDriverRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchCheckDeviceNamesRequest;
|
||||
|
||||
BatchCheckDeviceNamesRequest::BatchCheckDeviceNamesRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchCheckDeviceNames")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchCheckDeviceNamesRequest::~BatchCheckDeviceNamesRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BatchCheckDeviceNamesRequest::getProductKey()const
|
||||
void BatchCheckDeviceNamesRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BatchCheckDeviceNamesRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchCheckDeviceNamesRequest::getAccessKeyId()const
|
||||
void BatchCheckDeviceNamesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchCheckDeviceNamesRequest::getIotInstanceId()const
|
||||
@@ -55,7 +57,7 @@ std::string BatchCheckDeviceNamesRequest::getIotInstanceId()const
|
||||
void BatchCheckDeviceNamesRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchCheckDeviceNamesRequest::getDeviceName()const
|
||||
@@ -66,7 +68,8 @@ std::vector<std::string> BatchCheckDeviceNamesRequest::getDeviceName()const
|
||||
void BatchCheckDeviceNamesRequest::setDeviceName(const std::vector<std::string>& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
for(int i = 0; i!= deviceName.size(); i++)
|
||||
setCoreParameter("DeviceName."+ std::to_string(i), deviceName.at(i));
|
||||
for(int dep1 = 0; dep1!= deviceName.size(); dep1++) {
|
||||
setParameter("DeviceName."+ std::to_string(dep1), deviceName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchClearEdgeInstanceDeviceConfigRequest;
|
||||
|
||||
BatchClearEdgeInstanceDeviceConfigRequest::BatchClearEdgeInstanceDeviceConfigRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchClearEdgeInstanceDeviceConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchClearEdgeInstanceDeviceConfigRequest::~BatchClearEdgeInstanceDeviceConfigRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string BatchClearEdgeInstanceDeviceConfigRequest::getAccessKeyId()const
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchClearEdgeInstanceDeviceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchClearEdgeInstanceDeviceConfigRequest::getIotIds()const
|
||||
@@ -55,8 +46,9 @@ std::vector<std::string> BatchClearEdgeInstanceDeviceConfigRequest::getIotIds()c
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setIotIds(const std::vector<std::string>& iotIds)
|
||||
{
|
||||
iotIds_ = iotIds;
|
||||
for(int i = 0; i!= iotIds.size(); i++)
|
||||
setCoreParameter("IotIds."+ std::to_string(i), iotIds.at(i));
|
||||
for(int dep1 = 0; dep1!= iotIds.size(); dep1++) {
|
||||
setParameter("IotIds."+ std::to_string(dep1), iotIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchClearEdgeInstanceDeviceConfigRequest::getIotInstanceId()const
|
||||
@@ -67,6 +59,39 @@ std::string BatchClearEdgeInstanceDeviceConfigRequest::getIotInstanceId()const
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchClearEdgeInstanceDeviceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchClearEdgeInstanceDeviceConfigRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchClearEdgeInstanceDeviceConfigRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchClearEdgeInstanceDeviceConfigRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchDeleteDeviceGroupRelationsRequest;
|
||||
|
||||
BatchDeleteDeviceGroupRelationsRequest::BatchDeleteDeviceGroupRelationsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchDeleteDeviceGroupRelations")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchDeleteDeviceGroupRelationsRequest::~BatchDeleteDeviceGroupRelationsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BatchDeleteDeviceGroupRelationsRequest::getGroupId()const
|
||||
void BatchDeleteDeviceGroupRelationsRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string BatchDeleteDeviceGroupRelationsRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchDeleteDeviceGroupRelationsRequest::getAccessKeyId()const
|
||||
void BatchDeleteDeviceGroupRelationsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchDeleteDeviceGroupRelationsRequest::getIotInstanceId()const
|
||||
@@ -55,7 +57,7 @@ std::string BatchDeleteDeviceGroupRelationsRequest::getIotInstanceId()const
|
||||
void BatchDeleteDeviceGroupRelationsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<BatchDeleteDeviceGroupRelationsRequest::Device> BatchDeleteDeviceGroupRelationsRequest::getDevice()const
|
||||
@@ -66,12 +68,11 @@ std::vector<BatchDeleteDeviceGroupRelationsRequest::Device> BatchDeleteDeviceGro
|
||||
void BatchDeleteDeviceGroupRelationsRequest::setDevice(const std::vector<Device>& device)
|
||||
{
|
||||
device_ = device;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= device.size(); i++) {
|
||||
auto obj = device.at(i);
|
||||
std::string str ="Device."+ std::to_string(i);
|
||||
setCoreParameter(str + ".DeviceName", obj.deviceName);
|
||||
setCoreParameter(str + ".ProductKey", obj.productKey);
|
||||
for(int dep1 = 0; dep1!= device.size(); dep1++) {
|
||||
auto deviceObj = device.at(dep1);
|
||||
std::string deviceObjStr = "Device." + std::to_string(dep1 + 1);
|
||||
setParameter(deviceObjStr + ".DeviceName", deviceObj.deviceName);
|
||||
setParameter(deviceObjStr + ".ProductKey", deviceObj.productKey);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchGetDeviceDriverRequest;
|
||||
|
||||
BatchGetDeviceDriverRequest::BatchGetDeviceDriverRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchGetDeviceDriver")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchGetDeviceDriverRequest::~BatchGetDeviceDriverRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string BatchGetDeviceDriverRequest::getAccessKeyId()const
|
||||
void BatchGetDeviceDriverRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceDriverRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchGetDeviceDriverRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchGetDeviceDriverRequest::getIotIds()const
|
||||
@@ -55,8 +46,9 @@ std::vector<std::string> BatchGetDeviceDriverRequest::getIotIds()const
|
||||
void BatchGetDeviceDriverRequest::setIotIds(const std::vector<std::string>& iotIds)
|
||||
{
|
||||
iotIds_ = iotIds;
|
||||
for(int i = 0; i!= iotIds.size(); i++)
|
||||
setCoreParameter("IotIds."+ std::to_string(i), iotIds.at(i));
|
||||
for(int dep1 = 0; dep1!= iotIds.size(); dep1++) {
|
||||
setParameter("IotIds."+ std::to_string(dep1), iotIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceDriverRequest::getIotInstanceId()const
|
||||
@@ -67,6 +59,39 @@ std::string BatchGetDeviceDriverRequest::getIotInstanceId()const
|
||||
void BatchGetDeviceDriverRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceDriverRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchGetDeviceDriverRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceDriverRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchGetDeviceDriverRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceDriverRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchGetDeviceDriverRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchGetDeviceStateRequest;
|
||||
|
||||
BatchGetDeviceStateRequest::BatchGetDeviceStateRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchGetDeviceState")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchGetDeviceStateRequest::~BatchGetDeviceStateRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BatchGetDeviceStateRequest::getProductKey()const
|
||||
void BatchGetDeviceStateRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceStateRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchGetDeviceStateRequest::getAccessKeyId()const
|
||||
void BatchGetDeviceStateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchGetDeviceStateRequest::getIotId()const
|
||||
@@ -55,8 +57,9 @@ std::vector<std::string> BatchGetDeviceStateRequest::getIotId()const
|
||||
void BatchGetDeviceStateRequest::setIotId(const std::vector<std::string>& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
for(int i = 0; i!= iotId.size(); i++)
|
||||
setCoreParameter("IotId."+ std::to_string(i), iotId.at(i));
|
||||
for(int dep1 = 0; dep1!= iotId.size(); dep1++) {
|
||||
setParameter("IotId."+ std::to_string(dep1), iotId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchGetDeviceStateRequest::getIotInstanceId()const
|
||||
@@ -67,7 +70,7 @@ std::string BatchGetDeviceStateRequest::getIotInstanceId()const
|
||||
void BatchGetDeviceStateRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchGetDeviceStateRequest::getDeviceName()const
|
||||
@@ -78,7 +81,8 @@ std::vector<std::string> BatchGetDeviceStateRequest::getDeviceName()const
|
||||
void BatchGetDeviceStateRequest::setDeviceName(const std::vector<std::string>& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
for(int i = 0; i!= deviceName.size(); i++)
|
||||
setCoreParameter("DeviceName."+ std::to_string(i), deviceName.at(i));
|
||||
for(int dep1 = 0; dep1!= deviceName.size(); dep1++) {
|
||||
setParameter("DeviceName."+ std::to_string(dep1), deviceName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
86
iot/src/model/BatchGetEdgeDriverRequest.cc
Normal file
86
iot/src/model/BatchGetEdgeDriverRequest.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/BatchGetEdgeDriverRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchGetEdgeDriverRequest;
|
||||
|
||||
BatchGetEdgeDriverRequest::BatchGetEdgeDriverRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchGetEdgeDriver")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchGetEdgeDriverRequest::~BatchGetEdgeDriverRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> BatchGetEdgeDriverRequest::getDriverIds()const
|
||||
{
|
||||
return driverIds_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeDriverRequest::setDriverIds(const std::vector<std::string>& driverIds)
|
||||
{
|
||||
driverIds_ = driverIds;
|
||||
for(int dep1 = 0; dep1!= driverIds.size(); dep1++) {
|
||||
setParameter("DriverIds."+ std::to_string(dep1), driverIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeDriverRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeDriverRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeDriverRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeDriverRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeDriverRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeDriverRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeDriverRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeDriverRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
94
iot/src/model/BatchGetEdgeDriverResult.cc
Normal file
94
iot/src/model/BatchGetEdgeDriverResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/BatchGetEdgeDriverResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchGetEdgeDriverResult::BatchGetEdgeDriverResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchGetEdgeDriverResult::BatchGetEdgeDriverResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchGetEdgeDriverResult::~BatchGetEdgeDriverResult()
|
||||
{}
|
||||
|
||||
void BatchGetEdgeDriverResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDriverListNode = value["DriverList"]["Driver"];
|
||||
for (auto valueDriverListDriver : allDriverListNode)
|
||||
{
|
||||
Driver driverListObject;
|
||||
if(!valueDriverListDriver["DriverId"].isNull())
|
||||
driverListObject.driverId = valueDriverListDriver["DriverId"].asString();
|
||||
if(!valueDriverListDriver["DriverName"].isNull())
|
||||
driverListObject.driverName = valueDriverListDriver["DriverName"].asString();
|
||||
if(!valueDriverListDriver["DriverProtocol"].isNull())
|
||||
driverListObject.driverProtocol = valueDriverListDriver["DriverProtocol"].asString();
|
||||
if(!valueDriverListDriver["Runtime"].isNull())
|
||||
driverListObject.runtime = valueDriverListDriver["Runtime"].asString();
|
||||
if(!valueDriverListDriver["CpuArch"].isNull())
|
||||
driverListObject.cpuArch = valueDriverListDriver["CpuArch"].asString();
|
||||
if(!valueDriverListDriver["Type"].isNull())
|
||||
driverListObject.type = std::stoi(valueDriverListDriver["Type"].asString());
|
||||
if(!valueDriverListDriver["IsBuiltIn"].isNull())
|
||||
driverListObject.isBuiltIn = valueDriverListDriver["IsBuiltIn"].asString() == "true";
|
||||
if(!valueDriverListDriver["GmtCreateTimestamp"].isNull())
|
||||
driverListObject.gmtCreateTimestamp = std::stol(valueDriverListDriver["GmtCreateTimestamp"].asString());
|
||||
if(!valueDriverListDriver["GmtModifiedTimestamp"].isNull())
|
||||
driverListObject.gmtModifiedTimestamp = std::stol(valueDriverListDriver["GmtModifiedTimestamp"].asString());
|
||||
driverList_.push_back(driverListObject);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
std::vector<BatchGetEdgeDriverResult::Driver> BatchGetEdgeDriverResult::getDriverList()const
|
||||
{
|
||||
return driverList_;
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeDriverResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeDriverResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchGetEdgeDriverResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchGetEdgeInstanceDeviceConfigRequest;
|
||||
|
||||
BatchGetEdgeInstanceDeviceConfigRequest::BatchGetEdgeInstanceDeviceConfigRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchGetEdgeInstanceDeviceConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchGetEdgeInstanceDeviceConfigRequest::~BatchGetEdgeInstanceDeviceConfigRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string BatchGetEdgeInstanceDeviceConfigRequest::getAccessKeyId()const
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDeviceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchGetEdgeInstanceDeviceConfigRequest::getIotIds()const
|
||||
@@ -55,8 +46,9 @@ std::vector<std::string> BatchGetEdgeInstanceDeviceConfigRequest::getIotIds()con
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setIotIds(const std::vector<std::string>& iotIds)
|
||||
{
|
||||
iotIds_ = iotIds;
|
||||
for(int i = 0; i!= iotIds.size(); i++)
|
||||
setCoreParameter("IotIds."+ std::to_string(i), iotIds.at(i));
|
||||
for(int dep1 = 0; dep1!= iotIds.size(); dep1++) {
|
||||
setParameter("IotIds."+ std::to_string(dep1), iotIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDeviceConfigRequest::getIotInstanceId()const
|
||||
@@ -67,6 +59,39 @@ std::string BatchGetEdgeInstanceDeviceConfigRequest::getIotInstanceId()const
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDeviceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDeviceConfigRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDeviceConfigRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDeviceConfigRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchGetEdgeInstanceDriverConfigsRequest;
|
||||
|
||||
BatchGetEdgeInstanceDriverConfigsRequest::BatchGetEdgeInstanceDriverConfigsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchGetEdgeInstanceDriverConfigs")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchGetEdgeInstanceDriverConfigsRequest::~BatchGetEdgeInstanceDriverConfigsRequest()
|
||||
{}
|
||||
@@ -33,8 +35,9 @@ std::vector<std::string> BatchGetEdgeInstanceDriverConfigsRequest::getDriverIds(
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setDriverIds(const std::vector<std::string>& driverIds)
|
||||
{
|
||||
driverIds_ = driverIds;
|
||||
for(int i = 0; i!= driverIds.size(); i++)
|
||||
setCoreParameter("DriverIds."+ std::to_string(i), driverIds.at(i));
|
||||
for(int dep1 = 0; dep1!= driverIds.size(); dep1++) {
|
||||
setParameter("DriverIds."+ std::to_string(dep1), driverIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDriverConfigsRequest::getAccessKeyId()const
|
||||
@@ -45,18 +48,7 @@ std::string BatchGetEdgeInstanceDriverConfigsRequest::getAccessKeyId()const
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDriverConfigsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDriverConfigsRequest::getIotInstanceId()const
|
||||
@@ -67,6 +59,39 @@ std::string BatchGetEdgeInstanceDriverConfigsRequest::getIotInstanceId()const
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDriverConfigsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDriverConfigsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchGetEdgeInstanceDriverConfigsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchGetEdgeInstanceDriverConfigsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchQueryDeviceDetailRequest;
|
||||
|
||||
BatchQueryDeviceDetailRequest::BatchQueryDeviceDetailRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchQueryDeviceDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchQueryDeviceDetailRequest::~BatchQueryDeviceDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BatchQueryDeviceDetailRequest::getProductKey()const
|
||||
void BatchQueryDeviceDetailRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BatchQueryDeviceDetailRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchQueryDeviceDetailRequest::getIotInstanceId()const
|
||||
void BatchQueryDeviceDetailRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchQueryDeviceDetailRequest::getDeviceName()const
|
||||
@@ -55,7 +57,8 @@ std::vector<std::string> BatchQueryDeviceDetailRequest::getDeviceName()const
|
||||
void BatchQueryDeviceDetailRequest::setDeviceName(const std::vector<std::string>& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
for(int i = 0; i!= deviceName.size(); i++)
|
||||
setCoreParameter("DeviceName."+ std::to_string(i), deviceName.at(i));
|
||||
for(int dep1 = 0; dep1!= deviceName.size(); dep1++) {
|
||||
setParameter("DeviceName."+ std::to_string(dep1), deviceName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchRegisterDeviceRequest;
|
||||
|
||||
BatchRegisterDeviceRequest::BatchRegisterDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchRegisterDevice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchRegisterDeviceRequest::~BatchRegisterDeviceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int BatchRegisterDeviceRequest::getCount()const
|
||||
void BatchRegisterDeviceRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setCoreParameter("Count", std::to_string(count));
|
||||
setParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getProductKey()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchRegisterDeviceRequest::getProductKey()const
|
||||
void BatchRegisterDeviceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string BatchRegisterDeviceRequest::getAccessKeyId()const
|
||||
void BatchRegisterDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getIotInstanceId()const
|
||||
@@ -66,6 +68,6 @@ std::string BatchRegisterDeviceRequest::getIotInstanceId()const
|
||||
void BatchRegisterDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchRegisterDeviceWithApplyIdRequest;
|
||||
|
||||
BatchRegisterDeviceWithApplyIdRequest::BatchRegisterDeviceWithApplyIdRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchRegisterDeviceWithApplyId")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchRegisterDeviceWithApplyIdRequest::~BatchRegisterDeviceWithApplyIdRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string BatchRegisterDeviceWithApplyIdRequest::getProductKey()const
|
||||
void BatchRegisterDeviceWithApplyIdRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceWithApplyIdRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string BatchRegisterDeviceWithApplyIdRequest::getAccessKeyId()const
|
||||
void BatchRegisterDeviceWithApplyIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long BatchRegisterDeviceWithApplyIdRequest::getApplyId()const
|
||||
@@ -55,7 +57,7 @@ long BatchRegisterDeviceWithApplyIdRequest::getApplyId()const
|
||||
void BatchRegisterDeviceWithApplyIdRequest::setApplyId(long applyId)
|
||||
{
|
||||
applyId_ = applyId;
|
||||
setCoreParameter("ApplyId", std::to_string(applyId));
|
||||
setParameter("ApplyId", std::to_string(applyId));
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceWithApplyIdRequest::getIotInstanceId()const
|
||||
@@ -66,6 +68,6 @@ std::string BatchRegisterDeviceWithApplyIdRequest::getIotInstanceId()const
|
||||
void BatchRegisterDeviceWithApplyIdRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchSetEdgeInstanceDeviceConfigRequest;
|
||||
|
||||
BatchSetEdgeInstanceDeviceConfigRequest::BatchSetEdgeInstanceDeviceConfigRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchSetEdgeInstanceDeviceConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchSetEdgeInstanceDeviceConfigRequest::~BatchSetEdgeInstanceDeviceConfigRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string BatchSetEdgeInstanceDeviceConfigRequest::getAccessKeyId()const
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchSetEdgeInstanceDeviceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<BatchSetEdgeInstanceDeviceConfigRequest::DeviceConfigs> BatchSetEdgeInstanceDeviceConfigRequest::getDeviceConfigs()const
|
||||
@@ -55,12 +46,11 @@ std::vector<BatchSetEdgeInstanceDeviceConfigRequest::DeviceConfigs> BatchSetEdge
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setDeviceConfigs(const std::vector<DeviceConfigs>& deviceConfigs)
|
||||
{
|
||||
deviceConfigs_ = deviceConfigs;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= deviceConfigs.size(); i++) {
|
||||
auto obj = deviceConfigs.at(i);
|
||||
std::string str ="DeviceConfigs."+ std::to_string(i);
|
||||
setCoreParameter(str + ".IotId", obj.iotId);
|
||||
setCoreParameter(str + ".Content", obj.content);
|
||||
for(int dep1 = 0; dep1!= deviceConfigs.size(); dep1++) {
|
||||
auto deviceConfigsObj = deviceConfigs.at(dep1);
|
||||
std::string deviceConfigsObjStr = "DeviceConfigs." + std::to_string(dep1 + 1);
|
||||
setParameter(deviceConfigsObjStr + ".IotId", deviceConfigsObj.iotId);
|
||||
setParameter(deviceConfigsObjStr + ".Content", deviceConfigsObj.content);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +62,39 @@ std::string BatchSetEdgeInstanceDeviceConfigRequest::getIotInstanceId()const
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchSetEdgeInstanceDeviceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchSetEdgeInstanceDeviceConfigRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchSetEdgeInstanceDeviceConfigRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchSetEdgeInstanceDeviceConfigRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchUnbindDeviceFromEdgeInstanceRequest;
|
||||
|
||||
BatchUnbindDeviceFromEdgeInstanceRequest::BatchUnbindDeviceFromEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchUnbindDeviceFromEdgeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUnbindDeviceFromEdgeInstanceRequest::~BatchUnbindDeviceFromEdgeInstanceRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string BatchUnbindDeviceFromEdgeInstanceRequest::getAccessKeyId()const
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchUnbindDeviceFromEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchUnbindDeviceFromEdgeInstanceRequest::getIotIds()const
|
||||
@@ -55,8 +46,9 @@ std::vector<std::string> BatchUnbindDeviceFromEdgeInstanceRequest::getIotIds()co
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setIotIds(const std::vector<std::string>& iotIds)
|
||||
{
|
||||
iotIds_ = iotIds;
|
||||
for(int i = 0; i!= iotIds.size(); i++)
|
||||
setCoreParameter("IotIds."+ std::to_string(i), iotIds.at(i));
|
||||
for(int dep1 = 0; dep1!= iotIds.size(); dep1++) {
|
||||
setParameter("IotIds."+ std::to_string(dep1), iotIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchUnbindDeviceFromEdgeInstanceRequest::getIotInstanceId()const
|
||||
@@ -67,6 +59,39 @@ std::string BatchUnbindDeviceFromEdgeInstanceRequest::getIotInstanceId()const
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchUnbindDeviceFromEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BatchUnbindDeviceFromEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchUnbindDeviceFromEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchUnbindDeviceFromEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BatchUpdateDeviceNicknameRequest;
|
||||
|
||||
BatchUpdateDeviceNicknameRequest::BatchUpdateDeviceNicknameRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchUpdateDeviceNickname")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUpdateDeviceNicknameRequest::~BatchUpdateDeviceNicknameRequest()
|
||||
{}
|
||||
@@ -33,14 +35,13 @@ std::vector<BatchUpdateDeviceNicknameRequest::DeviceNicknameInfo> BatchUpdateDev
|
||||
void BatchUpdateDeviceNicknameRequest::setDeviceNicknameInfo(const std::vector<DeviceNicknameInfo>& deviceNicknameInfo)
|
||||
{
|
||||
deviceNicknameInfo_ = deviceNicknameInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= deviceNicknameInfo.size(); i++) {
|
||||
auto obj = deviceNicknameInfo.at(i);
|
||||
std::string str ="DeviceNicknameInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".IotId", obj.iotId);
|
||||
setCoreParameter(str + ".Nickname", obj.nickname);
|
||||
setCoreParameter(str + ".DeviceName", obj.deviceName);
|
||||
setCoreParameter(str + ".ProductKey", obj.productKey);
|
||||
for(int dep1 = 0; dep1!= deviceNicknameInfo.size(); dep1++) {
|
||||
auto deviceNicknameInfoObj = deviceNicknameInfo.at(dep1);
|
||||
std::string deviceNicknameInfoObjStr = "DeviceNicknameInfo." + std::to_string(dep1 + 1);
|
||||
setParameter(deviceNicknameInfoObjStr + ".IotId", deviceNicknameInfoObj.iotId);
|
||||
setParameter(deviceNicknameInfoObjStr + ".Nickname", deviceNicknameInfoObj.nickname);
|
||||
setParameter(deviceNicknameInfoObjStr + ".DeviceName", deviceNicknameInfoObj.deviceName);
|
||||
setParameter(deviceNicknameInfoObjStr + ".ProductKey", deviceNicknameInfoObj.productKey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +53,7 @@ std::string BatchUpdateDeviceNicknameRequest::getAccessKeyId()const
|
||||
void BatchUpdateDeviceNicknameRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchUpdateDeviceNicknameRequest::getIotInstanceId()const
|
||||
@@ -63,6 +64,6 @@ std::string BatchUpdateDeviceNicknameRequest::getIotInstanceId()const
|
||||
void BatchUpdateDeviceNicknameRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
117
iot/src/model/BindApplicationToEdgeInstanceRequest.cc
Normal file
117
iot/src/model/BindApplicationToEdgeInstanceRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/BindApplicationToEdgeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BindApplicationToEdgeInstanceRequest;
|
||||
|
||||
BindApplicationToEdgeInstanceRequest::BindApplicationToEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BindApplicationToEdgeInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindApplicationToEdgeInstanceRequest::~BindApplicationToEdgeInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getApplicationVersion()const
|
||||
{
|
||||
return applicationVersion_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setApplicationVersion(const std::string& applicationVersion)
|
||||
{
|
||||
applicationVersion_ = applicationVersion;
|
||||
setParameter("ApplicationVersion", applicationVersion);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getApplicationId()const
|
||||
{
|
||||
return applicationId_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setApplicationId(const std::string& applicationId)
|
||||
{
|
||||
applicationId_ = applicationId;
|
||||
setParameter("ApplicationId", applicationId);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getApplicationConfig()const
|
||||
{
|
||||
return applicationConfig_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setApplicationConfig(const std::string& applicationConfig)
|
||||
{
|
||||
applicationConfig_ = applicationConfig;
|
||||
setParameter("ApplicationConfig", applicationConfig);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BindApplicationToEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/BindApplicationToEdgeInstanceResult.cc
Normal file
65
iot/src/model/BindApplicationToEdgeInstanceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/BindApplicationToEdgeInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BindApplicationToEdgeInstanceResult::BindApplicationToEdgeInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindApplicationToEdgeInstanceResult::BindApplicationToEdgeInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindApplicationToEdgeInstanceResult::~BindApplicationToEdgeInstanceResult()
|
||||
{}
|
||||
|
||||
void BindApplicationToEdgeInstanceResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BindApplicationToEdgeInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BindApplicationToEdgeInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::BindDriverToEdgeInstanceRequest;
|
||||
|
||||
BindDriverToEdgeInstanceRequest::BindDriverToEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BindDriverToEdgeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindDriverToEdgeInstanceRequest::~BindDriverToEdgeInstanceRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string BindDriverToEdgeInstanceRequest::getAccessKeyId()const
|
||||
void BindDriverToEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindDriverToEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getDriverId()const
|
||||
@@ -55,7 +46,7 @@ std::string BindDriverToEdgeInstanceRequest::getDriverId()const
|
||||
void BindDriverToEdgeInstanceRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setCoreParameter("DriverId", driverId);
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getIotInstanceId()const
|
||||
@@ -66,6 +57,61 @@ std::string BindDriverToEdgeInstanceRequest::getIotInstanceId()const
|
||||
void BindDriverToEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getDriverVersion()const
|
||||
{
|
||||
return driverVersion_;
|
||||
}
|
||||
|
||||
void BindDriverToEdgeInstanceRequest::setDriverVersion(const std::string& driverVersion)
|
||||
{
|
||||
driverVersion_ = driverVersion;
|
||||
setParameter("DriverVersion", driverVersion);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void BindDriverToEdgeInstanceRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindDriverToEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BindDriverToEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BindDriverToEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BindDriverToEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,22 +20,13 @@ using AlibabaCloud::Iot::Model::BindGatewayToEdgeInstanceRequest;
|
||||
|
||||
BindGatewayToEdgeInstanceRequest::BindGatewayToEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BindGatewayToEdgeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindGatewayToEdgeInstanceRequest::~BindGatewayToEdgeInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void BindGatewayToEdgeInstanceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -44,7 +35,7 @@ std::string BindGatewayToEdgeInstanceRequest::getAccessKeyId()const
|
||||
void BindGatewayToEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getIotId()const
|
||||
@@ -55,18 +46,7 @@ std::string BindGatewayToEdgeInstanceRequest::getIotId()const
|
||||
void BindGatewayToEdgeInstanceRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindGatewayToEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getIotInstanceId()const
|
||||
@@ -77,7 +57,51 @@ std::string BindGatewayToEdgeInstanceRequest::getIotInstanceId()const
|
||||
void BindGatewayToEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void BindGatewayToEdgeInstanceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindGatewayToEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BindGatewayToEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BindGatewayToEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string BindGatewayToEdgeInstanceRequest::getDeviceName()const
|
||||
@@ -88,6 +112,6 @@ std::string BindGatewayToEdgeInstanceRequest::getDeviceName()const
|
||||
void BindGatewayToEdgeInstanceRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
84
iot/src/model/CancelOTAStrategyByJobRequest.cc
Normal file
84
iot/src/model/CancelOTAStrategyByJobRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CancelOTAStrategyByJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CancelOTAStrategyByJobRequest;
|
||||
|
||||
CancelOTAStrategyByJobRequest::CancelOTAStrategyByJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CancelOTAStrategyByJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOTAStrategyByJobRequest::~CancelOTAStrategyByJobRequest()
|
||||
{}
|
||||
|
||||
std::string CancelOTAStrategyByJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelOTAStrategyByJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelOTAStrategyByJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelOTAStrategyByJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string CancelOTAStrategyByJobRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CancelOTAStrategyByJobRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CancelOTAStrategyByJobRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CancelOTAStrategyByJobRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CancelOTAStrategyByJobRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CancelOTAStrategyByJobRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/CancelOTAStrategyByJobResult.cc
Normal file
65
iot/src/model/CancelOTAStrategyByJobResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CancelOTAStrategyByJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CancelOTAStrategyByJobResult::CancelOTAStrategyByJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelOTAStrategyByJobResult::CancelOTAStrategyByJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelOTAStrategyByJobResult::~CancelOTAStrategyByJobResult()
|
||||
{}
|
||||
|
||||
void CancelOTAStrategyByJobResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelOTAStrategyByJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CancelOTAStrategyByJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CancelOTAStrategyByJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
119
iot/src/model/CancelOTATaskByDeviceRequest.cc
Normal file
119
iot/src/model/CancelOTATaskByDeviceRequest.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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/CancelOTATaskByDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CancelOTATaskByDeviceRequest;
|
||||
|
||||
CancelOTATaskByDeviceRequest::CancelOTATaskByDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CancelOTATaskByDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOTATaskByDeviceRequest::~CancelOTATaskByDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getFirmwareId()const
|
||||
{
|
||||
return firmwareId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setFirmwareId(const std::string& firmwareId)
|
||||
{
|
||||
firmwareId_ = firmwareId;
|
||||
setParameter("FirmwareId", firmwareId);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelOTATaskByDeviceRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByDeviceRequest::setDeviceName(const std::vector<std::string>& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
for(int dep1 = 0; dep1!= deviceName.size(); dep1++) {
|
||||
setParameter("DeviceName."+ std::to_string(dep1), deviceName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
65
iot/src/model/CancelOTATaskByDeviceResult.cc
Normal file
65
iot/src/model/CancelOTATaskByDeviceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CancelOTATaskByDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CancelOTATaskByDeviceResult::CancelOTATaskByDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelOTATaskByDeviceResult::CancelOTATaskByDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelOTATaskByDeviceResult::~CancelOTATaskByDeviceResult()
|
||||
{}
|
||||
|
||||
void CancelOTATaskByDeviceResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CancelOTATaskByDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
128
iot/src/model/CancelOTATaskByJobRequest.cc
Normal file
128
iot/src/model/CancelOTATaskByJobRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/CancelOTATaskByJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CancelOTATaskByJobRequest;
|
||||
|
||||
CancelOTATaskByJobRequest::CancelOTATaskByJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CancelOTATaskByJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOTATaskByJobRequest::~CancelOTATaskByJobRequest()
|
||||
{}
|
||||
|
||||
bool CancelOTATaskByJobRequest::getCancelScheduledTask()const
|
||||
{
|
||||
return cancelScheduledTask_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setCancelScheduledTask(bool cancelScheduledTask)
|
||||
{
|
||||
cancelScheduledTask_ = cancelScheduledTask;
|
||||
setParameter("CancelScheduledTask", cancelScheduledTask ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
bool CancelOTATaskByJobRequest::getCancelQueuedTask()const
|
||||
{
|
||||
return cancelQueuedTask_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setCancelQueuedTask(bool cancelQueuedTask)
|
||||
{
|
||||
cancelQueuedTask_ = cancelQueuedTask;
|
||||
setParameter("CancelQueuedTask", cancelQueuedTask ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CancelOTATaskByJobRequest::getCancelInProgressTask()const
|
||||
{
|
||||
return cancelInProgressTask_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setCancelInProgressTask(bool cancelInProgressTask)
|
||||
{
|
||||
cancelInProgressTask_ = cancelInProgressTask;
|
||||
setParameter("CancelInProgressTask", cancelInProgressTask ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CancelOTATaskByJobRequest::getCancelNotifiedTask()const
|
||||
{
|
||||
return cancelNotifiedTask_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setCancelNotifiedTask(bool cancelNotifiedTask)
|
||||
{
|
||||
cancelNotifiedTask_ = cancelNotifiedTask;
|
||||
setParameter("CancelNotifiedTask", cancelNotifiedTask ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CancelOTATaskByJobRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/CancelOTATaskByJobResult.cc
Normal file
65
iot/src/model/CancelOTATaskByJobResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CancelOTATaskByJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CancelOTATaskByJobResult::CancelOTATaskByJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelOTATaskByJobResult::CancelOTATaskByJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelOTATaskByJobResult::~CancelOTATaskByJobResult()
|
||||
{}
|
||||
|
||||
void CancelOTATaskByJobResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CancelOTATaskByJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CancelOTATaskByJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::ClearEdgeInstanceDriverConfigsRequest;
|
||||
|
||||
ClearEdgeInstanceDriverConfigsRequest::ClearEdgeInstanceDriverConfigsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "ClearEdgeInstanceDriverConfigs")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ClearEdgeInstanceDriverConfigsRequest::~ClearEdgeInstanceDriverConfigsRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string ClearEdgeInstanceDriverConfigsRequest::getAccessKeyId()const
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ClearEdgeInstanceDriverConfigsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ClearEdgeInstanceDriverConfigsRequest::getDriverId()const
|
||||
@@ -55,7 +46,7 @@ std::string ClearEdgeInstanceDriverConfigsRequest::getDriverId()const
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setCoreParameter("DriverId", driverId);
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::string ClearEdgeInstanceDriverConfigsRequest::getIotInstanceId()const
|
||||
@@ -66,6 +57,39 @@ std::string ClearEdgeInstanceDriverConfigsRequest::getIotInstanceId()const
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string ClearEdgeInstanceDriverConfigsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ClearEdgeInstanceDriverConfigsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string ClearEdgeInstanceDriverConfigsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void ClearEdgeInstanceDriverConfigsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CloseEdgeInstanceDeploymentRequest;
|
||||
|
||||
CloseEdgeInstanceDeploymentRequest::CloseEdgeInstanceDeploymentRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CloseEdgeInstanceDeployment")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseEdgeInstanceDeploymentRequest::~CloseEdgeInstanceDeploymentRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string CloseEdgeInstanceDeploymentRequest::getAccessKeyId()const
|
||||
void CloseEdgeInstanceDeploymentRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CloseEdgeInstanceDeploymentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CloseEdgeInstanceDeploymentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CloseEdgeInstanceDeploymentRequest::getIotInstanceId()const
|
||||
@@ -55,6 +46,39 @@ std::string CloseEdgeInstanceDeploymentRequest::getIotInstanceId()const
|
||||
void CloseEdgeInstanceDeploymentRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CloseEdgeInstanceDeploymentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CloseEdgeInstanceDeploymentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CloseEdgeInstanceDeploymentRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CloseEdgeInstanceDeploymentRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CloseEdgeInstanceDeploymentRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CloseEdgeInstanceDeploymentRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
95
iot/src/model/CopyThingModelRequest.cc
Normal file
95
iot/src/model/CopyThingModelRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CopyThingModelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CopyThingModelRequest;
|
||||
|
||||
CopyThingModelRequest::CopyThingModelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CopyThingModel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CopyThingModelRequest::~CopyThingModelRequest()
|
||||
{}
|
||||
|
||||
std::string CopyThingModelRequest::getSourceProductKey()const
|
||||
{
|
||||
return sourceProductKey_;
|
||||
}
|
||||
|
||||
void CopyThingModelRequest::setSourceProductKey(const std::string& sourceProductKey)
|
||||
{
|
||||
sourceProductKey_ = sourceProductKey;
|
||||
setParameter("SourceProductKey", sourceProductKey);
|
||||
}
|
||||
|
||||
std::string CopyThingModelRequest::getTargetProductKey()const
|
||||
{
|
||||
return targetProductKey_;
|
||||
}
|
||||
|
||||
void CopyThingModelRequest::setTargetProductKey(const std::string& targetProductKey)
|
||||
{
|
||||
targetProductKey_ = targetProductKey;
|
||||
setParameter("TargetProductKey", targetProductKey);
|
||||
}
|
||||
|
||||
std::string CopyThingModelRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CopyThingModelRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CopyThingModelRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CopyThingModelRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CopyThingModelRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CopyThingModelRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CopyThingModelRequest::getSourceModelVersion()const
|
||||
{
|
||||
return sourceModelVersion_;
|
||||
}
|
||||
|
||||
void CopyThingModelRequest::setSourceModelVersion(const std::string& sourceModelVersion)
|
||||
{
|
||||
sourceModelVersion_ = sourceModelVersion;
|
||||
setParameter("SourceModelVersion", sourceModelVersion);
|
||||
}
|
||||
|
||||
65
iot/src/model/CopyThingModelResult.cc
Normal file
65
iot/src/model/CopyThingModelResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CopyThingModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CopyThingModelResult::CopyThingModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyThingModelResult::CopyThingModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyThingModelResult::~CopyThingModelResult()
|
||||
{}
|
||||
|
||||
void CopyThingModelResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CopyThingModelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CopyThingModelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CopyThingModelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,22 +20,13 @@ using AlibabaCloud::Iot::Model::CreateDataAPIServiceRequest;
|
||||
|
||||
CreateDataAPIServiceRequest::CreateDataAPIServiceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateDataAPIService")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataAPIServiceRequest::~CreateDataAPIServiceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getApiPath()const
|
||||
{
|
||||
return apiPath_;
|
||||
}
|
||||
|
||||
void CreateDataAPIServiceRequest::setApiPath(const std::string& apiPath)
|
||||
{
|
||||
apiPath_ = apiPath;
|
||||
setCoreParameter("ApiPath", apiPath);
|
||||
}
|
||||
|
||||
std::vector<CreateDataAPIServiceRequest::RequestParam> CreateDataAPIServiceRequest::getRequestParam()const
|
||||
{
|
||||
return requestParam_;
|
||||
@@ -44,15 +35,14 @@ std::vector<CreateDataAPIServiceRequest::RequestParam> CreateDataAPIServiceReque
|
||||
void CreateDataAPIServiceRequest::setRequestParam(const std::vector<RequestParam>& requestParam)
|
||||
{
|
||||
requestParam_ = requestParam;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= requestParam.size(); i++) {
|
||||
auto obj = requestParam.at(i);
|
||||
std::string str ="RequestParam."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Required", obj.required ? "true" : "false");
|
||||
setCoreParameter(str + ".Desc", obj.desc);
|
||||
setCoreParameter(str + ".Example", obj.example);
|
||||
for(int dep1 = 0; dep1!= requestParam.size(); dep1++) {
|
||||
auto requestParamObj = requestParam.at(dep1);
|
||||
std::string requestParamObjStr = "RequestParam." + std::to_string(dep1 + 1);
|
||||
setParameter(requestParamObjStr + ".Name", requestParamObj.name);
|
||||
setParameter(requestParamObjStr + ".Type", requestParamObj.type);
|
||||
setParameter(requestParamObjStr + ".Desc", requestParamObj.desc);
|
||||
setParameter(requestParamObjStr + ".Example", requestParamObj.example);
|
||||
setParameter(requestParamObjStr + ".Required", requestParamObj.required ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +54,29 @@ std::string CreateDataAPIServiceRequest::getFolderId()const
|
||||
void CreateDataAPIServiceRequest::setFolderId(const std::string& folderId)
|
||||
{
|
||||
folderId_ = folderId;
|
||||
setCoreParameter("FolderId", folderId);
|
||||
setBodyParameter("FolderId", folderId);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateDataAPIServiceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getApiPath()const
|
||||
{
|
||||
return apiPath_;
|
||||
}
|
||||
|
||||
void CreateDataAPIServiceRequest::setApiPath(const std::string& apiPath)
|
||||
{
|
||||
apiPath_ = apiPath;
|
||||
setBodyParameter("ApiPath", apiPath);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getTemplateSql()const
|
||||
@@ -75,18 +87,7 @@ std::string CreateDataAPIServiceRequest::getTemplateSql()const
|
||||
void CreateDataAPIServiceRequest::setTemplateSql(const std::string& templateSql)
|
||||
{
|
||||
templateSql_ = templateSql;
|
||||
setCoreParameter("TemplateSql", templateSql);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDataAPIServiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setBodyParameter("TemplateSql", templateSql);
|
||||
}
|
||||
|
||||
std::vector<CreateDataAPIServiceRequest::ResponseParam> CreateDataAPIServiceRequest::getResponseParam()const
|
||||
@@ -97,15 +98,14 @@ std::vector<CreateDataAPIServiceRequest::ResponseParam> CreateDataAPIServiceRequ
|
||||
void CreateDataAPIServiceRequest::setResponseParam(const std::vector<ResponseParam>& responseParam)
|
||||
{
|
||||
responseParam_ = responseParam;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= responseParam.size(); i++) {
|
||||
auto obj = responseParam.at(i);
|
||||
std::string str ="ResponseParam."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Required", obj.required ? "true" : "false");
|
||||
setCoreParameter(str + ".Desc", obj.desc);
|
||||
setCoreParameter(str + ".Example", obj.example);
|
||||
for(int dep1 = 0; dep1!= responseParam.size(); dep1++) {
|
||||
auto responseParamObj = responseParam.at(dep1);
|
||||
std::string responseParamObjStr = "ResponseParam." + std::to_string(dep1 + 1);
|
||||
setParameter(responseParamObjStr + ".Name", responseParamObj.name);
|
||||
setParameter(responseParamObjStr + ".Type", responseParamObj.type);
|
||||
setParameter(responseParamObjStr + ".Desc", responseParamObj.desc);
|
||||
setParameter(responseParamObjStr + ".Example", responseParamObj.example);
|
||||
setParameter(responseParamObjStr + ".Required", responseParamObj.required ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ std::string CreateDataAPIServiceRequest::getOriginSql()const
|
||||
void CreateDataAPIServiceRequest::setOriginSql(const std::string& originSql)
|
||||
{
|
||||
originSql_ = originSql;
|
||||
setCoreParameter("OriginSql", originSql);
|
||||
setBodyParameter("OriginSql", originSql);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getDisplayName()const
|
||||
@@ -128,7 +128,29 @@ std::string CreateDataAPIServiceRequest::getDisplayName()const
|
||||
void CreateDataAPIServiceRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
setBodyParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateDataAPIServiceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateDataAPIServiceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string CreateDataAPIServiceRequest::getDesc()const
|
||||
@@ -139,6 +161,6 @@ std::string CreateDataAPIServiceRequest::getDesc()const
|
||||
void CreateDataAPIServiceRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setCoreParameter("Desc", desc);
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,10 +48,10 @@ void CreateDataAPIServiceResult::parse(const std::string &payload)
|
||||
data_.lastUpdateTime = std::stol(dataNode["LastUpdateTime"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateDeviceGroupRequest;
|
||||
|
||||
CreateDeviceGroupRequest::CreateDeviceGroupRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateDeviceGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDeviceGroupRequest::~CreateDeviceGroupRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateDeviceGroupRequest::getSuperGroupId()const
|
||||
void CreateDeviceGroupRequest::setSuperGroupId(const std::string& superGroupId)
|
||||
{
|
||||
superGroupId_ = superGroupId;
|
||||
setCoreParameter("SuperGroupId", superGroupId);
|
||||
setParameter("SuperGroupId", superGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDeviceGroupRequest::getGroupName()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateDeviceGroupRequest::getGroupName()const
|
||||
void CreateDeviceGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string CreateDeviceGroupRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateDeviceGroupRequest::getAccessKeyId()const
|
||||
void CreateDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDeviceGroupRequest::getGroupDesc()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateDeviceGroupRequest::getGroupDesc()const
|
||||
void CreateDeviceGroupRequest::setGroupDesc(const std::string& groupDesc)
|
||||
{
|
||||
groupDesc_ = groupDesc;
|
||||
setCoreParameter("GroupDesc", groupDesc);
|
||||
setParameter("GroupDesc", groupDesc);
|
||||
}
|
||||
|
||||
std::string CreateDeviceGroupRequest::getIotInstanceId()const
|
||||
@@ -77,6 +79,6 @@ std::string CreateDeviceGroupRequest::getIotInstanceId()const
|
||||
void CreateDeviceGroupRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
128
iot/src/model/CreateEdgeDriverRequest.cc
Normal file
128
iot/src/model/CreateEdgeDriverRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/CreateEdgeDriverRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateEdgeDriverRequest;
|
||||
|
||||
CreateEdgeDriverRequest::CreateEdgeDriverRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateEdgeDriver")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEdgeDriverRequest::~CreateEdgeDriverRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getDriverProtocol()const
|
||||
{
|
||||
return driverProtocol_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setDriverProtocol(const std::string& driverProtocol)
|
||||
{
|
||||
driverProtocol_ = driverProtocol;
|
||||
setParameter("DriverProtocol", driverProtocol);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getDriverName()const
|
||||
{
|
||||
return driverName_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setDriverName(const std::string& driverName)
|
||||
{
|
||||
driverName_ = driverName;
|
||||
setParameter("DriverName", driverName);
|
||||
}
|
||||
|
||||
bool CreateEdgeDriverRequest::getIsBuiltIn()const
|
||||
{
|
||||
return isBuiltIn_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setIsBuiltIn(bool isBuiltIn)
|
||||
{
|
||||
isBuiltIn_ = isBuiltIn;
|
||||
setParameter("IsBuiltIn", isBuiltIn ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getRuntime()const
|
||||
{
|
||||
return runtime_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setRuntime(const std::string& runtime)
|
||||
{
|
||||
runtime_ = runtime;
|
||||
setParameter("Runtime", runtime);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getCpuArch()const
|
||||
{
|
||||
return cpuArch_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setCpuArch(const std::string& cpuArch)
|
||||
{
|
||||
cpuArch_ = cpuArch;
|
||||
setParameter("CpuArch", cpuArch);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/CreateEdgeDriverResult.cc
Normal file
72
iot/src/model/CreateEdgeDriverResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateEdgeDriverResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateEdgeDriverResult::CreateEdgeDriverResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEdgeDriverResult::CreateEdgeDriverResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEdgeDriverResult::~CreateEdgeDriverResult()
|
||||
{}
|
||||
|
||||
void CreateEdgeDriverResult::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["DriverId"].isNull())
|
||||
driverId_ = value["DriverId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverResult::getDriverId()const
|
||||
{
|
||||
return driverId_;
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateEdgeDriverResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
161
iot/src/model/CreateEdgeDriverVersionRequest.cc
Normal file
161
iot/src/model/CreateEdgeDriverVersionRequest.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/CreateEdgeDriverVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateEdgeDriverVersionRequest;
|
||||
|
||||
CreateEdgeDriverVersionRequest::CreateEdgeDriverVersionRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateEdgeDriverVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEdgeDriverVersionRequest::~CreateEdgeDriverVersionRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getConfigCheckRule()const
|
||||
{
|
||||
return configCheckRule_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setConfigCheckRule(const std::string& configCheckRule)
|
||||
{
|
||||
configCheckRule_ = configCheckRule;
|
||||
setParameter("ConfigCheckRule", configCheckRule);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getEdgeVersion()const
|
||||
{
|
||||
return edgeVersion_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setEdgeVersion(const std::string& edgeVersion)
|
||||
{
|
||||
edgeVersion_ = edgeVersion;
|
||||
setParameter("EdgeVersion", edgeVersion);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getDriverId()const
|
||||
{
|
||||
return driverId_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getContainerConfig()const
|
||||
{
|
||||
return containerConfig_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setContainerConfig(const std::string& containerConfig)
|
||||
{
|
||||
containerConfig_ = containerConfig;
|
||||
setParameter("ContainerConfig", containerConfig);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getDriverVersion()const
|
||||
{
|
||||
return driverVersion_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setDriverVersion(const std::string& driverVersion)
|
||||
{
|
||||
driverVersion_ = driverVersion;
|
||||
setParameter("DriverVersion", driverVersion);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getDriverConfig()const
|
||||
{
|
||||
return driverConfig_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setDriverConfig(const std::string& driverConfig)
|
||||
{
|
||||
driverConfig_ = driverConfig;
|
||||
setParameter("DriverConfig", driverConfig);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getSourceConfig()const
|
||||
{
|
||||
return sourceConfig_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setSourceConfig(const std::string& sourceConfig)
|
||||
{
|
||||
sourceConfig_ = sourceConfig;
|
||||
setParameter("SourceConfig", sourceConfig);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateEdgeDriverVersionRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/CreateEdgeDriverVersionResult.cc
Normal file
65
iot/src/model/CreateEdgeDriverVersionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateEdgeDriverVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateEdgeDriverVersionResult::CreateEdgeDriverVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEdgeDriverVersionResult::CreateEdgeDriverVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEdgeDriverVersionResult::~CreateEdgeDriverVersionResult()
|
||||
{}
|
||||
|
||||
void CreateEdgeDriverVersionResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateEdgeDriverVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateEdgeDriverVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateEdgeInstanceDeploymentRequest;
|
||||
|
||||
CreateEdgeInstanceDeploymentRequest::CreateEdgeInstanceDeploymentRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateEdgeInstanceDeployment")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEdgeInstanceDeploymentRequest::~CreateEdgeInstanceDeploymentRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateEdgeInstanceDeploymentRequest::getType()const
|
||||
void CreateEdgeInstanceDeploymentRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceDeploymentRequest::getAccessKeyId()const
|
||||
@@ -44,18 +46,7 @@ std::string CreateEdgeInstanceDeploymentRequest::getAccessKeyId()const
|
||||
void CreateEdgeInstanceDeploymentRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceDeploymentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceDeploymentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceDeploymentRequest::getIotInstanceId()const
|
||||
@@ -66,6 +57,39 @@ std::string CreateEdgeInstanceDeploymentRequest::getIotInstanceId()const
|
||||
void CreateEdgeInstanceDeploymentRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceDeploymentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceDeploymentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceDeploymentRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceDeploymentRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceDeploymentRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceDeploymentRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateEdgeInstanceRequest;
|
||||
|
||||
CreateEdgeInstanceRequest::CreateEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateEdgeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEdgeInstanceRequest::~CreateEdgeInstanceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int CreateEdgeInstanceRequest::getSpec()const
|
||||
void CreateEdgeInstanceRequest::setSpec(int spec)
|
||||
{
|
||||
spec_ = spec;
|
||||
setCoreParameter("Spec", std::to_string(spec));
|
||||
setParameter("Spec", std::to_string(spec));
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getAccessKeyId()const
|
||||
@@ -44,18 +46,7 @@ std::string CreateEdgeInstanceRequest::getAccessKeyId()const
|
||||
void CreateEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setCoreParameter("Tags", tags);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getIotInstanceId()const
|
||||
@@ -66,7 +57,29 @@ std::string CreateEdgeInstanceRequest::getIotInstanceId()const
|
||||
void CreateEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getName()const
|
||||
@@ -77,6 +90,17 @@ std::string CreateEdgeInstanceRequest::getName()const
|
||||
void CreateEdgeInstanceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
117
iot/src/model/CreateEdgeOssPreSignedAddressRequest.cc
Normal file
117
iot/src/model/CreateEdgeOssPreSignedAddressRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/CreateEdgeOssPreSignedAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateEdgeOssPreSignedAddressRequest;
|
||||
|
||||
CreateEdgeOssPreSignedAddressRequest::CreateEdgeOssPreSignedAddressRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateEdgeOssPreSignedAddress")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEdgeOssPreSignedAddressRequest::~CreateEdgeOssPreSignedAddressRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getResourceVersion()const
|
||||
{
|
||||
return resourceVersion_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setResourceVersion(const std::string& resourceVersion)
|
||||
{
|
||||
resourceVersion_ = resourceVersion;
|
||||
setParameter("ResourceVersion", resourceVersion);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
75
iot/src/model/CreateEdgeOssPreSignedAddressResult.cc
Normal file
75
iot/src/model/CreateEdgeOssPreSignedAddressResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateEdgeOssPreSignedAddressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateEdgeOssPreSignedAddressResult::CreateEdgeOssPreSignedAddressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEdgeOssPreSignedAddressResult::CreateEdgeOssPreSignedAddressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEdgeOssPreSignedAddressResult::~CreateEdgeOssPreSignedAddressResult()
|
||||
{}
|
||||
|
||||
void CreateEdgeOssPreSignedAddressResult::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["OssPreSignedAddress"].isNull())
|
||||
data_.ossPreSignedAddress = dataNode["OssPreSignedAddress"].asString();
|
||||
if(!dataNode["OssAddress"].isNull())
|
||||
data_.ossAddress = dataNode["OssAddress"].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();
|
||||
|
||||
}
|
||||
|
||||
CreateEdgeOssPreSignedAddressResult::Data CreateEdgeOssPreSignedAddressResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateEdgeOssPreSignedAddressResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateEdgeOssPreSignedAddressResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateLoRaNodesTaskRequest;
|
||||
|
||||
CreateLoRaNodesTaskRequest::CreateLoRaNodesTaskRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateLoRaNodesTask")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLoRaNodesTaskRequest::~CreateLoRaNodesTaskRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateLoRaNodesTaskRequest::getProductKey()const
|
||||
void CreateLoRaNodesTaskRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateLoRaNodesTaskRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateLoRaNodesTaskRequest::getAccessKeyId()const
|
||||
void CreateLoRaNodesTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateLoRaNodesTaskRequest::getIotInstanceId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateLoRaNodesTaskRequest::getIotInstanceId()const
|
||||
void CreateLoRaNodesTaskRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<CreateLoRaNodesTaskRequest::DeviceInfo> CreateLoRaNodesTaskRequest::getDeviceInfo()const
|
||||
@@ -66,12 +68,11 @@ std::vector<CreateLoRaNodesTaskRequest::DeviceInfo> CreateLoRaNodesTaskRequest::
|
||||
void CreateLoRaNodesTaskRequest::setDeviceInfo(const std::vector<DeviceInfo>& deviceInfo)
|
||||
{
|
||||
deviceInfo_ = deviceInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= deviceInfo.size(); i++) {
|
||||
auto obj = deviceInfo.at(i);
|
||||
std::string str ="DeviceInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".PinCode", obj.pinCode);
|
||||
setCoreParameter(str + ".DevEui", obj.devEui);
|
||||
for(int dep1 = 0; dep1!= deviceInfo.size(); dep1++) {
|
||||
auto deviceInfoObj = deviceInfo.at(dep1);
|
||||
std::string deviceInfoObjStr = "DeviceInfo." + std::to_string(dep1 + 1);
|
||||
setParameter(deviceInfoObjStr + ".PinCode", deviceInfoObj.pinCode);
|
||||
setParameter(deviceInfoObjStr + ".DevEui", deviceInfoObj.devEui);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
130
iot/src/model/CreateOTADynamicUpgradeJobRequest.cc
Normal file
130
iot/src/model/CreateOTADynamicUpgradeJobRequest.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/CreateOTADynamicUpgradeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateOTADynamicUpgradeJobRequest;
|
||||
|
||||
CreateOTADynamicUpgradeJobRequest::CreateOTADynamicUpgradeJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateOTADynamicUpgradeJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOTADynamicUpgradeJobRequest::~CreateOTADynamicUpgradeJobRequest()
|
||||
{}
|
||||
|
||||
int CreateOTADynamicUpgradeJobRequest::getRetryCount()const
|
||||
{
|
||||
return retryCount_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setRetryCount(int retryCount)
|
||||
{
|
||||
retryCount_ = retryCount;
|
||||
setParameter("RetryCount", std::to_string(retryCount));
|
||||
}
|
||||
|
||||
std::string CreateOTADynamicUpgradeJobRequest::getFirmwareId()const
|
||||
{
|
||||
return firmwareId_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setFirmwareId(const std::string& firmwareId)
|
||||
{
|
||||
firmwareId_ = firmwareId;
|
||||
setParameter("FirmwareId", firmwareId);
|
||||
}
|
||||
|
||||
std::string CreateOTADynamicUpgradeJobRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
int CreateOTADynamicUpgradeJobRequest::getTimeoutInMinutes()const
|
||||
{
|
||||
return timeoutInMinutes_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setTimeoutInMinutes(int timeoutInMinutes)
|
||||
{
|
||||
timeoutInMinutes_ = timeoutInMinutes;
|
||||
setParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes));
|
||||
}
|
||||
|
||||
std::string CreateOTADynamicUpgradeJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int CreateOTADynamicUpgradeJobRequest::getRetryInterval()const
|
||||
{
|
||||
return retryInterval_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setRetryInterval(int retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateOTADynamicUpgradeJobRequest::getSrcVersion()const
|
||||
{
|
||||
return srcVersion_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setSrcVersion(const std::vector<std::string>& srcVersion)
|
||||
{
|
||||
srcVersion_ = srcVersion;
|
||||
for(int dep1 = 0; dep1!= srcVersion.size(); dep1++) {
|
||||
setParameter("SrcVersion."+ std::to_string(dep1), srcVersion.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateOTADynamicUpgradeJobRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int CreateOTADynamicUpgradeJobRequest::getMaximumPerMinute()const
|
||||
{
|
||||
return maximumPerMinute_;
|
||||
}
|
||||
|
||||
void CreateOTADynamicUpgradeJobRequest::setMaximumPerMinute(int maximumPerMinute)
|
||||
{
|
||||
maximumPerMinute_ = maximumPerMinute;
|
||||
setParameter("MaximumPerMinute", std::to_string(maximumPerMinute));
|
||||
}
|
||||
|
||||
75
iot/src/model/CreateOTADynamicUpgradeJobResult.cc
Normal file
75
iot/src/model/CreateOTADynamicUpgradeJobResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateOTADynamicUpgradeJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateOTADynamicUpgradeJobResult::CreateOTADynamicUpgradeJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOTADynamicUpgradeJobResult::CreateOTADynamicUpgradeJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOTADynamicUpgradeJobResult::~CreateOTADynamicUpgradeJobResult()
|
||||
{}
|
||||
|
||||
void CreateOTADynamicUpgradeJobResult::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["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["UtcCreate"].isNull())
|
||||
data_.utcCreate = dataNode["UtcCreate"].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();
|
||||
|
||||
}
|
||||
|
||||
CreateOTADynamicUpgradeJobResult::Data CreateOTADynamicUpgradeJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateOTADynamicUpgradeJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateOTADynamicUpgradeJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateOTADynamicUpgradeJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
194
iot/src/model/CreateOTAFirmwareRequest.cc
Normal file
194
iot/src/model/CreateOTAFirmwareRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/CreateOTAFirmwareRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateOTAFirmwareRequest;
|
||||
|
||||
CreateOTAFirmwareRequest::CreateOTAFirmwareRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateOTAFirmware")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOTAFirmwareRequest::~CreateOTAFirmwareRequest()
|
||||
{}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getSignMethod()const
|
||||
{
|
||||
return signMethod_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setSignMethod(const std::string& signMethod)
|
||||
{
|
||||
signMethod_ = signMethod;
|
||||
setParameter("SignMethod", signMethod);
|
||||
}
|
||||
|
||||
int CreateOTAFirmwareRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getFirmwareUrl()const
|
||||
{
|
||||
return firmwareUrl_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setFirmwareUrl(const std::string& firmwareUrl)
|
||||
{
|
||||
firmwareUrl_ = firmwareUrl;
|
||||
setParameter("FirmwareUrl", firmwareUrl);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getFirmwareDesc()const
|
||||
{
|
||||
return firmwareDesc_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setFirmwareDesc(const std::string& firmwareDesc)
|
||||
{
|
||||
firmwareDesc_ = firmwareDesc;
|
||||
setParameter("FirmwareDesc", firmwareDesc);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getModuleName()const
|
||||
{
|
||||
return moduleName_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setModuleName(const std::string& moduleName)
|
||||
{
|
||||
moduleName_ = moduleName;
|
||||
setParameter("ModuleName", moduleName);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getFirmwareSign()const
|
||||
{
|
||||
return firmwareSign_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setFirmwareSign(const std::string& firmwareSign)
|
||||
{
|
||||
firmwareSign_ = firmwareSign;
|
||||
setParameter("FirmwareSign", firmwareSign);
|
||||
}
|
||||
|
||||
int CreateOTAFirmwareRequest::getFirmwareSize()const
|
||||
{
|
||||
return firmwareSize_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setFirmwareSize(int firmwareSize)
|
||||
{
|
||||
firmwareSize_ = firmwareSize;
|
||||
setParameter("FirmwareSize", std::to_string(firmwareSize));
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getFirmwareName()const
|
||||
{
|
||||
return firmwareName_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setFirmwareName(const std::string& firmwareName)
|
||||
{
|
||||
firmwareName_ = firmwareName;
|
||||
setParameter("FirmwareName", firmwareName);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getSrcVersion()const
|
||||
{
|
||||
return srcVersion_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setSrcVersion(const std::string& srcVersion)
|
||||
{
|
||||
srcVersion_ = srcVersion;
|
||||
setParameter("SrcVersion", srcVersion);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareRequest::getDestVersion()const
|
||||
{
|
||||
return destVersion_;
|
||||
}
|
||||
|
||||
void CreateOTAFirmwareRequest::setDestVersion(const std::string& destVersion)
|
||||
{
|
||||
destVersion_ = destVersion;
|
||||
setParameter("DestVersion", destVersion);
|
||||
}
|
||||
|
||||
75
iot/src/model/CreateOTAFirmwareResult.cc
Normal file
75
iot/src/model/CreateOTAFirmwareResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateOTAFirmwareResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateOTAFirmwareResult::CreateOTAFirmwareResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOTAFirmwareResult::CreateOTAFirmwareResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOTAFirmwareResult::~CreateOTAFirmwareResult()
|
||||
{}
|
||||
|
||||
void CreateOTAFirmwareResult::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["FirmwareId"].isNull())
|
||||
data_.firmwareId = dataNode["FirmwareId"].asString();
|
||||
if(!dataNode["UtcCreate"].isNull())
|
||||
data_.utcCreate = dataNode["UtcCreate"].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();
|
||||
|
||||
}
|
||||
|
||||
CreateOTAFirmwareResult::Data CreateOTAFirmwareResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateOTAFirmwareResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateOTAFirmwareResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
198
iot/src/model/CreateOTAStaticUpgradeJobRequest.cc
Normal file
198
iot/src/model/CreateOTAStaticUpgradeJobRequest.cc
Normal file
@@ -0,0 +1,198 @@
|
||||
/*
|
||||
* 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/CreateOTAStaticUpgradeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateOTAStaticUpgradeJobRequest;
|
||||
|
||||
CreateOTAStaticUpgradeJobRequest::CreateOTAStaticUpgradeJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateOTAStaticUpgradeJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOTAStaticUpgradeJobRequest::~CreateOTAStaticUpgradeJobRequest()
|
||||
{}
|
||||
|
||||
int CreateOTAStaticUpgradeJobRequest::getRetryCount()const
|
||||
{
|
||||
return retryCount_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setRetryCount(int retryCount)
|
||||
{
|
||||
retryCount_ = retryCount;
|
||||
setParameter("RetryCount", std::to_string(retryCount));
|
||||
}
|
||||
|
||||
int CreateOTAStaticUpgradeJobRequest::getTimeoutInMinutes()const
|
||||
{
|
||||
return timeoutInMinutes_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setTimeoutInMinutes(int timeoutInMinutes)
|
||||
{
|
||||
timeoutInMinutes_ = timeoutInMinutes;
|
||||
setParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes));
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getTargetSelection()const
|
||||
{
|
||||
return targetSelection_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setTargetSelection(const std::string& targetSelection)
|
||||
{
|
||||
targetSelection_ = targetSelection;
|
||||
setParameter("TargetSelection", targetSelection);
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getGrayPercent()const
|
||||
{
|
||||
return grayPercent_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setGrayPercent(const std::string& grayPercent)
|
||||
{
|
||||
grayPercent_ = grayPercent;
|
||||
setParameter("GrayPercent", grayPercent);
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getFirmwareId()const
|
||||
{
|
||||
return firmwareId_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setFirmwareId(const std::string& firmwareId)
|
||||
{
|
||||
firmwareId_ = firmwareId;
|
||||
setParameter("FirmwareId", firmwareId);
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
int CreateOTAStaticUpgradeJobRequest::getRetryInterval()const
|
||||
{
|
||||
return retryInterval_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setRetryInterval(int retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateOTAStaticUpgradeJobRequest::getSrcVersion()const
|
||||
{
|
||||
return srcVersion_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setSrcVersion(const std::vector<std::string>& srcVersion)
|
||||
{
|
||||
srcVersion_ = srcVersion;
|
||||
for(int dep1 = 0; dep1!= srcVersion.size(); dep1++) {
|
||||
setParameter("SrcVersion."+ std::to_string(dep1), srcVersion.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
long CreateOTAStaticUpgradeJobRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setScheduleTime(long scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setParameter("ScheduleTime", std::to_string(scheduleTime));
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
int CreateOTAStaticUpgradeJobRequest::getMaximumPerMinute()const
|
||||
{
|
||||
return maximumPerMinute_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setMaximumPerMinute(int maximumPerMinute)
|
||||
{
|
||||
maximumPerMinute_ = maximumPerMinute;
|
||||
setParameter("MaximumPerMinute", std::to_string(maximumPerMinute));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateOTAStaticUpgradeJobRequest::getTargetDeviceName()const
|
||||
{
|
||||
return targetDeviceName_;
|
||||
}
|
||||
|
||||
void CreateOTAStaticUpgradeJobRequest::setTargetDeviceName(const std::vector<std::string>& targetDeviceName)
|
||||
{
|
||||
targetDeviceName_ = targetDeviceName;
|
||||
for(int dep1 = 0; dep1!= targetDeviceName.size(); dep1++) {
|
||||
setParameter("TargetDeviceName."+ std::to_string(dep1), targetDeviceName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
75
iot/src/model/CreateOTAStaticUpgradeJobResult.cc
Normal file
75
iot/src/model/CreateOTAStaticUpgradeJobResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateOTAStaticUpgradeJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateOTAStaticUpgradeJobResult::CreateOTAStaticUpgradeJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOTAStaticUpgradeJobResult::CreateOTAStaticUpgradeJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOTAStaticUpgradeJobResult::~CreateOTAStaticUpgradeJobResult()
|
||||
{}
|
||||
|
||||
void CreateOTAStaticUpgradeJobResult::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["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["UtcCreate"].isNull())
|
||||
data_.utcCreate = dataNode["UtcCreate"].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();
|
||||
|
||||
}
|
||||
|
||||
CreateOTAStaticUpgradeJobResult::Data CreateOTAStaticUpgradeJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateOTAStaticUpgradeJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateOTAStaticUpgradeJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
119
iot/src/model/CreateOTAVerifyJobRequest.cc
Normal file
119
iot/src/model/CreateOTAVerifyJobRequest.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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/CreateOTAVerifyJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateOTAVerifyJobRequest;
|
||||
|
||||
CreateOTAVerifyJobRequest::CreateOTAVerifyJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateOTAVerifyJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOTAVerifyJobRequest::~CreateOTAVerifyJobRequest()
|
||||
{}
|
||||
|
||||
int CreateOTAVerifyJobRequest::getTimeoutInMinutes()const
|
||||
{
|
||||
return timeoutInMinutes_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setTimeoutInMinutes(int timeoutInMinutes)
|
||||
{
|
||||
timeoutInMinutes_ = timeoutInMinutes;
|
||||
setParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes));
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobRequest::getFirmwareId()const
|
||||
{
|
||||
return firmwareId_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setFirmwareId(const std::string& firmwareId)
|
||||
{
|
||||
firmwareId_ = firmwareId;
|
||||
setParameter("FirmwareId", firmwareId);
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateOTAVerifyJobRequest::getTargetDeviceName()const
|
||||
{
|
||||
return targetDeviceName_;
|
||||
}
|
||||
|
||||
void CreateOTAVerifyJobRequest::setTargetDeviceName(const std::vector<std::string>& targetDeviceName)
|
||||
{
|
||||
targetDeviceName_ = targetDeviceName;
|
||||
for(int dep1 = 0; dep1!= targetDeviceName.size(); dep1++) {
|
||||
setParameter("TargetDeviceName."+ std::to_string(dep1), targetDeviceName.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
75
iot/src/model/CreateOTAVerifyJobResult.cc
Normal file
75
iot/src/model/CreateOTAVerifyJobResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateOTAVerifyJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateOTAVerifyJobResult::CreateOTAVerifyJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOTAVerifyJobResult::CreateOTAVerifyJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOTAVerifyJobResult::~CreateOTAVerifyJobResult()
|
||||
{}
|
||||
|
||||
void CreateOTAVerifyJobResult::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["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["UtcCreate"].isNull())
|
||||
data_.utcCreate = dataNode["UtcCreate"].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();
|
||||
|
||||
}
|
||||
|
||||
CreateOTAVerifyJobResult::Data CreateOTAVerifyJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateOTAVerifyJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateOTAVerifyJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateProductRequest;
|
||||
|
||||
CreateProductRequest::CreateProductRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateProduct")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProductRequest::~CreateProductRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int CreateProductRequest::getNodeType()const
|
||||
void CreateProductRequest::setNodeType(int nodeType)
|
||||
{
|
||||
nodeType_ = nodeType;
|
||||
setCoreParameter("NodeType", std::to_string(nodeType));
|
||||
setParameter("NodeType", std::to_string(nodeType));
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getDescription()const
|
||||
@@ -44,7 +46,18 @@ std::string CreateProductRequest::getDescription()const
|
||||
void CreateProductRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getCategoryKey()const
|
||||
{
|
||||
return categoryKey_;
|
||||
}
|
||||
|
||||
void CreateProductRequest::setCategoryKey(const std::string& categoryKey)
|
||||
{
|
||||
categoryKey_ = categoryKey;
|
||||
setParameter("CategoryKey", categoryKey);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getJoinPermissionId()const
|
||||
@@ -55,7 +68,7 @@ std::string CreateProductRequest::getJoinPermissionId()const
|
||||
void CreateProductRequest::setJoinPermissionId(const std::string& joinPermissionId)
|
||||
{
|
||||
joinPermissionId_ = joinPermissionId;
|
||||
setCoreParameter("JoinPermissionId", joinPermissionId);
|
||||
setParameter("JoinPermissionId", joinPermissionId);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getAccessKeyId()const
|
||||
@@ -66,7 +79,29 @@ std::string CreateProductRequest::getAccessKeyId()const
|
||||
void CreateProductRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getAuthType()const
|
||||
{
|
||||
return authType_;
|
||||
}
|
||||
|
||||
void CreateProductRequest::setAuthType(const std::string& authType)
|
||||
{
|
||||
authType_ = authType;
|
||||
setParameter("AuthType", authType);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateProductRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getIotInstanceId()const
|
||||
@@ -77,7 +112,7 @@ std::string CreateProductRequest::getIotInstanceId()const
|
||||
void CreateProductRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getProductName()const
|
||||
@@ -88,7 +123,7 @@ std::string CreateProductRequest::getProductName()const
|
||||
void CreateProductRequest::setProductName(const std::string& productName)
|
||||
{
|
||||
productName_ = productName;
|
||||
setCoreParameter("ProductName", productName);
|
||||
setParameter("ProductName", productName);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getAliyunCommodityCode()const
|
||||
@@ -99,7 +134,18 @@ std::string CreateProductRequest::getAliyunCommodityCode()const
|
||||
void CreateProductRequest::setAliyunCommodityCode(const std::string& aliyunCommodityCode)
|
||||
{
|
||||
aliyunCommodityCode_ = aliyunCommodityCode;
|
||||
setCoreParameter("AliyunCommodityCode", aliyunCommodityCode);
|
||||
setParameter("AliyunCommodityCode", aliyunCommodityCode);
|
||||
}
|
||||
|
||||
bool CreateProductRequest::getPublishAuto()const
|
||||
{
|
||||
return publishAuto_;
|
||||
}
|
||||
|
||||
void CreateProductRequest::setPublishAuto(bool publishAuto)
|
||||
{
|
||||
publishAuto_ = publishAuto;
|
||||
setParameter("PublishAuto", publishAuto ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateProductRequest::getCategoryId()const
|
||||
@@ -110,7 +156,7 @@ long CreateProductRequest::getCategoryId()const
|
||||
void CreateProductRequest::setCategoryId(long categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setCoreParameter("CategoryId", std::to_string(categoryId));
|
||||
setParameter("CategoryId", std::to_string(categoryId));
|
||||
}
|
||||
|
||||
int CreateProductRequest::getDataFormat()const
|
||||
@@ -121,7 +167,7 @@ int CreateProductRequest::getDataFormat()const
|
||||
void CreateProductRequest::setDataFormat(int dataFormat)
|
||||
{
|
||||
dataFormat_ = dataFormat;
|
||||
setCoreParameter("DataFormat", std::to_string(dataFormat));
|
||||
setParameter("DataFormat", std::to_string(dataFormat));
|
||||
}
|
||||
|
||||
bool CreateProductRequest::getId2()const
|
||||
@@ -132,7 +178,7 @@ bool CreateProductRequest::getId2()const
|
||||
void CreateProductRequest::setId2(bool id2)
|
||||
{
|
||||
id2_ = id2;
|
||||
setCoreParameter("Id2", id2 ? "true" : "false");
|
||||
setParameter("Id2", id2 ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getNetType()const
|
||||
@@ -143,7 +189,7 @@ std::string CreateProductRequest::getNetType()const
|
||||
void CreateProductRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setCoreParameter("NetType", netType);
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::string CreateProductRequest::getProtocolType()const
|
||||
@@ -154,6 +200,6 @@ std::string CreateProductRequest::getProtocolType()const
|
||||
void CreateProductRequest::setProtocolType(const std::string& protocolType)
|
||||
{
|
||||
protocolType_ = protocolType;
|
||||
setCoreParameter("ProtocolType", protocolType);
|
||||
setParameter("ProtocolType", protocolType);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,8 @@ void CreateProductResult::parse(const std::string &payload)
|
||||
data_.id2 = dataNode["Id2"].asString() == "true";
|
||||
if(!dataNode["ProtocolType"].isNull())
|
||||
data_.protocolType = dataNode["ProtocolType"].asString();
|
||||
if(!dataNode["AuthType"].isNull())
|
||||
data_.authType = dataNode["AuthType"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateProductTagsRequest;
|
||||
|
||||
CreateProductTagsRequest::CreateProductTagsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateProductTags")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProductTagsRequest::~CreateProductTagsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateProductTagsRequest::getProductKey()const
|
||||
void CreateProductTagsRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateProductTagsRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateProductTagsRequest::getAccessKeyId()const
|
||||
void CreateProductTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<CreateProductTagsRequest::ProductTag> CreateProductTagsRequest::getProductTag()const
|
||||
@@ -55,12 +57,11 @@ std::vector<CreateProductTagsRequest::ProductTag> CreateProductTagsRequest::getP
|
||||
void CreateProductTagsRequest::setProductTag(const std::vector<ProductTag>& productTag)
|
||||
{
|
||||
productTag_ = productTag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= productTag.size(); i++) {
|
||||
auto obj = productTag.at(i);
|
||||
std::string str ="ProductTag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".TagValue", obj.tagValue);
|
||||
setCoreParameter(str + ".TagKey", obj.tagKey);
|
||||
for(int dep1 = 0; dep1!= productTag.size(); dep1++) {
|
||||
auto productTagObj = productTag.at(dep1);
|
||||
std::string productTagObjStr = "ProductTag." + std::to_string(dep1 + 1);
|
||||
setParameter(productTagObjStr + ".TagValue", productTagObj.tagValue);
|
||||
setParameter(productTagObjStr + ".TagKey", productTagObj.tagKey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +73,6 @@ std::string CreateProductTagsRequest::getIotInstanceId()const
|
||||
void CreateProductTagsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateProductTopicRequest;
|
||||
|
||||
CreateProductTopicRequest::CreateProductTopicRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateProductTopic")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProductTopicRequest::~CreateProductTopicRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateProductTopicRequest::getProductKey()const
|
||||
void CreateProductTopicRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateProductTopicRequest::getAccessKeyId()const
|
||||
void CreateProductTopicRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getIotInstanceId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateProductTopicRequest::getIotInstanceId()const
|
||||
void CreateProductTopicRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getTopicShortName()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateProductTopicRequest::getTopicShortName()const
|
||||
void CreateProductTopicRequest::setTopicShortName(const std::string& topicShortName)
|
||||
{
|
||||
topicShortName_ = topicShortName;
|
||||
setCoreParameter("TopicShortName", topicShortName);
|
||||
setParameter("TopicShortName", topicShortName);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getOperation()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateProductTopicRequest::getOperation()const
|
||||
void CreateProductTopicRequest::setOperation(const std::string& operation)
|
||||
{
|
||||
operation_ = operation;
|
||||
setCoreParameter("Operation", operation);
|
||||
setParameter("Operation", operation);
|
||||
}
|
||||
|
||||
std::string CreateProductTopicRequest::getDesc()const
|
||||
@@ -88,6 +90,6 @@ std::string CreateProductTopicRequest::getDesc()const
|
||||
void CreateProductTopicRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setCoreParameter("Desc", desc);
|
||||
setParameter("Desc", desc);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateRuleActionRequest;
|
||||
|
||||
CreateRuleActionRequest::CreateRuleActionRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateRuleAction")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRuleActionRequest::~CreateRuleActionRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateRuleActionRequest::getConfiguration()const
|
||||
void CreateRuleActionRequest::setConfiguration(const std::string& configuration)
|
||||
{
|
||||
configuration_ = configuration;
|
||||
setCoreParameter("Configuration", configuration);
|
||||
setParameter("Configuration", configuration);
|
||||
}
|
||||
|
||||
std::string CreateRuleActionRequest::getType()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateRuleActionRequest::getType()const
|
||||
void CreateRuleActionRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateRuleActionRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateRuleActionRequest::getAccessKeyId()const
|
||||
void CreateRuleActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateRuleActionRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateRuleActionRequest::getIotInstanceId()const
|
||||
void CreateRuleActionRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
long CreateRuleActionRequest::getRuleId()const
|
||||
@@ -77,7 +79,7 @@ long CreateRuleActionRequest::getRuleId()const
|
||||
void CreateRuleActionRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
bool CreateRuleActionRequest::getErrorActionFlag()const
|
||||
@@ -88,6 +90,6 @@ bool CreateRuleActionRequest::getErrorActionFlag()const
|
||||
void CreateRuleActionRequest::setErrorActionFlag(bool errorActionFlag)
|
||||
{
|
||||
errorActionFlag_ = errorActionFlag;
|
||||
setCoreParameter("ErrorActionFlag", errorActionFlag ? "true" : "false");
|
||||
setParameter("ErrorActionFlag", errorActionFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::CreateRuleRequest;
|
||||
|
||||
CreateRuleRequest::CreateRuleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRuleRequest::~CreateRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateRuleRequest::getSelect()const
|
||||
void CreateRuleRequest::setSelect(const std::string& select)
|
||||
{
|
||||
select_ = select;
|
||||
setCoreParameter("Select", select);
|
||||
setParameter("Select", select);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getRuleDesc()const
|
||||
@@ -44,18 +46,7 @@ std::string CreateRuleRequest::getRuleDesc()const
|
||||
void CreateRuleRequest::setRuleDesc(const std::string& ruleDesc)
|
||||
{
|
||||
ruleDesc_ = ruleDesc;
|
||||
setCoreParameter("RuleDesc", ruleDesc);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("RuleDesc", ruleDesc);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getAccessKeyId()const
|
||||
@@ -66,7 +57,7 @@ std::string CreateRuleRequest::getAccessKeyId()const
|
||||
void CreateRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getShortTopic()const
|
||||
@@ -77,7 +68,18 @@ std::string CreateRuleRequest::getShortTopic()const
|
||||
void CreateRuleRequest::setShortTopic(const std::string& shortTopic)
|
||||
{
|
||||
shortTopic_ = shortTopic;
|
||||
setCoreParameter("ShortTopic", shortTopic);
|
||||
setParameter("ShortTopic", shortTopic);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getDataType()const
|
||||
@@ -88,7 +90,7 @@ std::string CreateRuleRequest::getDataType()const
|
||||
void CreateRuleRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setCoreParameter("DataType", dataType);
|
||||
setParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getIotInstanceId()const
|
||||
@@ -99,18 +101,7 @@ std::string CreateRuleRequest::getIotInstanceId()const
|
||||
void CreateRuleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getWhere()const
|
||||
@@ -121,7 +112,7 @@ std::string CreateRuleRequest::getWhere()const
|
||||
void CreateRuleRequest::setWhere(const std::string& where)
|
||||
{
|
||||
where_ = where;
|
||||
setCoreParameter("Where", where);
|
||||
setParameter("Where", where);
|
||||
}
|
||||
|
||||
int CreateRuleRequest::getTopicType()const
|
||||
@@ -132,6 +123,28 @@ int CreateRuleRequest::getTopicType()const
|
||||
void CreateRuleRequest::setTopicType(int topicType)
|
||||
{
|
||||
topicType_ = topicType;
|
||||
setCoreParameter("TopicType", std::to_string(topicType));
|
||||
setParameter("TopicType", std::to_string(topicType));
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
73
iot/src/model/CreateThingModelRequest.cc
Normal file
73
iot/src/model/CreateThingModelRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateThingModelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateThingModelRequest;
|
||||
|
||||
CreateThingModelRequest::CreateThingModelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateThingModel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateThingModelRequest::~CreateThingModelRequest()
|
||||
{}
|
||||
|
||||
std::string CreateThingModelRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateThingModelRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateThingModelRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateThingModelRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateThingModelRequest::getThingModelJson()const
|
||||
{
|
||||
return thingModelJson_;
|
||||
}
|
||||
|
||||
void CreateThingModelRequest::setThingModelJson(const std::string& thingModelJson)
|
||||
{
|
||||
thingModelJson_ = thingModelJson;
|
||||
setParameter("ThingModelJson", thingModelJson);
|
||||
}
|
||||
|
||||
std::string CreateThingModelRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateThingModelRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/CreateThingModelResult.cc
Normal file
65
iot/src/model/CreateThingModelResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/CreateThingModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateThingModelResult::CreateThingModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateThingModelResult::CreateThingModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateThingModelResult::~CreateThingModelResult()
|
||||
{}
|
||||
|
||||
void CreateThingModelResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateThingModelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateThingModelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateThingModelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,23 +20,13 @@ using AlibabaCloud::Iot::Model::CreateTopicRouteTableRequest;
|
||||
|
||||
CreateTopicRouteTableRequest::CreateTopicRouteTableRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateTopicRouteTable")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTopicRouteTableRequest::~CreateTopicRouteTableRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> CreateTopicRouteTableRequest::getDstTopic()const
|
||||
{
|
||||
return dstTopic_;
|
||||
}
|
||||
|
||||
void CreateTopicRouteTableRequest::setDstTopic(const std::vector<std::string>& dstTopic)
|
||||
{
|
||||
dstTopic_ = dstTopic;
|
||||
for(int i = 0; i!= dstTopic.size(); i++)
|
||||
setCoreParameter("DstTopic."+ std::to_string(i), dstTopic.at(i));
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -45,7 +35,7 @@ std::string CreateTopicRouteTableRequest::getAccessKeyId()const
|
||||
void CreateTopicRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getRegionId()const
|
||||
@@ -56,7 +46,7 @@ std::string CreateTopicRouteTableRequest::getRegionId()const
|
||||
void CreateTopicRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getIotInstanceId()const
|
||||
@@ -67,7 +57,42 @@ std::string CreateTopicRouteTableRequest::getIotInstanceId()const
|
||||
void CreateTopicRouteTableRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateTopicRouteTableRequest::getDstTopic()const
|
||||
{
|
||||
return dstTopic_;
|
||||
}
|
||||
|
||||
void CreateTopicRouteTableRequest::setDstTopic(const std::vector<std::string>& dstTopic)
|
||||
{
|
||||
dstTopic_ = dstTopic;
|
||||
for(int dep1 = 0; dep1!= dstTopic.size(); dep1++) {
|
||||
setParameter("DstTopic."+ std::to_string(dep1), dstTopic.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateTopicRouteTableRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateTopicRouteTableRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string CreateTopicRouteTableRequest::getSrcTopic()const
|
||||
@@ -78,6 +103,6 @@ std::string CreateTopicRouteTableRequest::getSrcTopic()const
|
||||
void CreateTopicRouteTableRequest::setSrcTopic(const std::string& srcTopic)
|
||||
{
|
||||
srcTopic_ = srcTopic;
|
||||
setCoreParameter("SrcTopic", srcTopic);
|
||||
setParameter("SrcTopic", srcTopic);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteDeviceFileRequest;
|
||||
|
||||
DeleteDeviceFileRequest::DeleteDeviceFileRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteDeviceFile")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDeviceFileRequest::~DeleteDeviceFileRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteDeviceFileRequest::getProductKey()const
|
||||
void DeleteDeviceFileRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceFileRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteDeviceFileRequest::getAccessKeyId()const
|
||||
void DeleteDeviceFileRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceFileRequest::getIotId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteDeviceFileRequest::getIotId()const
|
||||
void DeleteDeviceFileRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceFileRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteDeviceFileRequest::getIotInstanceId()const
|
||||
void DeleteDeviceFileRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceFileRequest::getDeviceName()const
|
||||
@@ -77,7 +79,7 @@ std::string DeleteDeviceFileRequest::getDeviceName()const
|
||||
void DeleteDeviceFileRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceFileRequest::getFileId()const
|
||||
@@ -88,6 +90,6 @@ std::string DeleteDeviceFileRequest::getFileId()const
|
||||
void DeleteDeviceFileRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setCoreParameter("FileId", fileId);
|
||||
setParameter("FileId", fileId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteDeviceGroupRequest;
|
||||
|
||||
DeleteDeviceGroupRequest::DeleteDeviceGroupRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteDeviceGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDeviceGroupRequest::~DeleteDeviceGroupRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteDeviceGroupRequest::getGroupId()const
|
||||
void DeleteDeviceGroupRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceGroupRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteDeviceGroupRequest::getAccessKeyId()const
|
||||
void DeleteDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceGroupRequest::getIotInstanceId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteDeviceGroupRequest::getIotInstanceId()const
|
||||
void DeleteDeviceGroupRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteDevicePropRequest;
|
||||
|
||||
DeleteDevicePropRequest::DeleteDevicePropRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteDeviceProp")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevicePropRequest::~DeleteDevicePropRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteDevicePropRequest::getProductKey()const
|
||||
void DeleteDevicePropRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DeleteDevicePropRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteDevicePropRequest::getAccessKeyId()const
|
||||
void DeleteDevicePropRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDevicePropRequest::getPropKey()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteDevicePropRequest::getPropKey()const
|
||||
void DeleteDevicePropRequest::setPropKey(const std::string& propKey)
|
||||
{
|
||||
propKey_ = propKey;
|
||||
setCoreParameter("PropKey", propKey);
|
||||
setParameter("PropKey", propKey);
|
||||
}
|
||||
|
||||
std::string DeleteDevicePropRequest::getIotId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteDevicePropRequest::getIotId()const
|
||||
void DeleteDevicePropRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string DeleteDevicePropRequest::getIotInstanceId()const
|
||||
@@ -77,7 +79,7 @@ std::string DeleteDevicePropRequest::getIotInstanceId()const
|
||||
void DeleteDevicePropRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteDevicePropRequest::getDeviceName()const
|
||||
@@ -88,6 +90,6 @@ std::string DeleteDevicePropRequest::getDeviceName()const
|
||||
void DeleteDevicePropRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteDeviceRequest;
|
||||
|
||||
DeleteDeviceRequest::DeleteDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteDevice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDeviceRequest::~DeleteDeviceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteDeviceRequest::getProductKey()const
|
||||
void DeleteDeviceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteDeviceRequest::getAccessKeyId()const
|
||||
void DeleteDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceRequest::getIotId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteDeviceRequest::getIotId()const
|
||||
void DeleteDeviceRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteDeviceRequest::getIotInstanceId()const
|
||||
void DeleteDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteDeviceRequest::getDeviceName()const
|
||||
@@ -77,6 +79,6 @@ std::string DeleteDeviceRequest::getDeviceName()const
|
||||
void DeleteDeviceRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
84
iot/src/model/DeleteEdgeDriverRequest.cc
Normal file
84
iot/src/model/DeleteEdgeDriverRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteEdgeDriverRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteEdgeDriverRequest;
|
||||
|
||||
DeleteEdgeDriverRequest::DeleteEdgeDriverRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteEdgeDriver")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEdgeDriverRequest::~DeleteEdgeDriverRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEdgeDriverRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverRequest::getDriverId()const
|
||||
{
|
||||
return driverId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteEdgeDriverResult.cc
Normal file
65
iot/src/model/DeleteEdgeDriverResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteEdgeDriverResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteEdgeDriverResult::DeleteEdgeDriverResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEdgeDriverResult::DeleteEdgeDriverResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEdgeDriverResult::~DeleteEdgeDriverResult()
|
||||
{}
|
||||
|
||||
void DeleteEdgeDriverResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteEdgeDriverResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
iot/src/model/DeleteEdgeDriverVersionRequest.cc
Normal file
95
iot/src/model/DeleteEdgeDriverVersionRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteEdgeDriverVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteEdgeDriverVersionRequest;
|
||||
|
||||
DeleteEdgeDriverVersionRequest::DeleteEdgeDriverVersionRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteEdgeDriverVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEdgeDriverVersionRequest::~DeleteEdgeDriverVersionRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEdgeDriverVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionRequest::getDriverId()const
|
||||
{
|
||||
return driverId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverVersionRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverVersionRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionRequest::getDriverVersion()const
|
||||
{
|
||||
return driverVersion_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverVersionRequest::setDriverVersion(const std::string& driverVersion)
|
||||
{
|
||||
driverVersion_ = driverVersion;
|
||||
setParameter("DriverVersion", driverVersion);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverVersionRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteEdgeDriverVersionRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteEdgeDriverVersionResult.cc
Normal file
65
iot/src/model/DeleteEdgeDriverVersionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteEdgeDriverVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteEdgeDriverVersionResult::DeleteEdgeDriverVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEdgeDriverVersionResult::DeleteEdgeDriverVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEdgeDriverVersionResult::~DeleteEdgeDriverVersionResult()
|
||||
{}
|
||||
|
||||
void DeleteEdgeDriverVersionResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteEdgeDriverVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteEdgeDriverVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteEdgeInstanceRequest;
|
||||
|
||||
DeleteEdgeInstanceRequest::DeleteEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteEdgeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEdgeInstanceRequest::~DeleteEdgeInstanceRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string DeleteEdgeInstanceRequest::getAccessKeyId()const
|
||||
void DeleteEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeInstanceRequest::getIotInstanceId()const
|
||||
@@ -55,6 +46,39 @@ std::string DeleteEdgeInstanceRequest::getIotInstanceId()const
|
||||
void DeleteEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
84
iot/src/model/DeleteOTAFirmwareRequest.cc
Normal file
84
iot/src/model/DeleteOTAFirmwareRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteOTAFirmwareRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteOTAFirmwareRequest;
|
||||
|
||||
DeleteOTAFirmwareRequest::DeleteOTAFirmwareRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteOTAFirmware")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteOTAFirmwareRequest::~DeleteOTAFirmwareRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteOTAFirmwareRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteOTAFirmwareRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteOTAFirmwareRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteOTAFirmwareRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteOTAFirmwareRequest::getFirmwareId()const
|
||||
{
|
||||
return firmwareId_;
|
||||
}
|
||||
|
||||
void DeleteOTAFirmwareRequest::setFirmwareId(const std::string& firmwareId)
|
||||
{
|
||||
firmwareId_ = firmwareId;
|
||||
setParameter("FirmwareId", firmwareId);
|
||||
}
|
||||
|
||||
std::string DeleteOTAFirmwareRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteOTAFirmwareRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteOTAFirmwareRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteOTAFirmwareRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteOTAFirmwareResult.cc
Normal file
65
iot/src/model/DeleteOTAFirmwareResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteOTAFirmwareResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteOTAFirmwareResult::DeleteOTAFirmwareResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteOTAFirmwareResult::DeleteOTAFirmwareResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteOTAFirmwareResult::~DeleteOTAFirmwareResult()
|
||||
{}
|
||||
|
||||
void DeleteOTAFirmwareResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteOTAFirmwareResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteOTAFirmwareResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteOTAFirmwareResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteProductRequest;
|
||||
|
||||
DeleteProductRequest::DeleteProductRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteProduct")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProductRequest::~DeleteProductRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteProductRequest::getProductKey()const
|
||||
void DeleteProductRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DeleteProductRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteProductRequest::getAccessKeyId()const
|
||||
void DeleteProductRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteProductRequest::getIotInstanceId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteProductRequest::getIotInstanceId()const
|
||||
void DeleteProductRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteProductTagsRequest;
|
||||
|
||||
DeleteProductTagsRequest::DeleteProductTagsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteProductTags")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProductTagsRequest::~DeleteProductTagsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteProductTagsRequest::getProductKey()const
|
||||
void DeleteProductTagsRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DeleteProductTagsRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteProductTagsRequest::getAccessKeyId()const
|
||||
void DeleteProductTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteProductTagsRequest::getIotInstanceId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteProductTagsRequest::getIotInstanceId()const
|
||||
void DeleteProductTagsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteProductTagsRequest::getProductTagKey()const
|
||||
@@ -66,7 +68,8 @@ std::vector<std::string> DeleteProductTagsRequest::getProductTagKey()const
|
||||
void DeleteProductTagsRequest::setProductTagKey(const std::vector<std::string>& productTagKey)
|
||||
{
|
||||
productTagKey_ = productTagKey;
|
||||
for(int i = 0; i!= productTagKey.size(); i++)
|
||||
setCoreParameter("ProductTagKey."+ std::to_string(i), productTagKey.at(i));
|
||||
for(int dep1 = 0; dep1!= productTagKey.size(); dep1++) {
|
||||
setParameter("ProductTagKey."+ std::to_string(dep1), productTagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteProductTopicRequest;
|
||||
|
||||
DeleteProductTopicRequest::DeleteProductTopicRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteProductTopic")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProductTopicRequest::~DeleteProductTopicRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteProductTopicRequest::getAccessKeyId()const
|
||||
void DeleteProductTopicRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteProductTopicRequest::getTopicId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteProductTopicRequest::getTopicId()const
|
||||
void DeleteProductTopicRequest::setTopicId(const std::string& topicId)
|
||||
{
|
||||
topicId_ = topicId;
|
||||
setCoreParameter("TopicId", topicId);
|
||||
setParameter("TopicId", topicId);
|
||||
}
|
||||
|
||||
std::string DeleteProductTopicRequest::getIotInstanceId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteProductTopicRequest::getIotInstanceId()const
|
||||
void DeleteProductTopicRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteRuleActionRequest;
|
||||
|
||||
DeleteRuleActionRequest::DeleteRuleActionRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteRuleAction")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRuleActionRequest::~DeleteRuleActionRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteRuleActionRequest::getAccessKeyId()const
|
||||
void DeleteRuleActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteRuleActionRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteRuleActionRequest::getIotInstanceId()const
|
||||
void DeleteRuleActionRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
long DeleteRuleActionRequest::getActionId()const
|
||||
@@ -55,6 +57,6 @@ long DeleteRuleActionRequest::getActionId()const
|
||||
void DeleteRuleActionRequest::setActionId(long actionId)
|
||||
{
|
||||
actionId_ = actionId;
|
||||
setCoreParameter("ActionId", std::to_string(actionId));
|
||||
setParameter("ActionId", std::to_string(actionId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteRuleRequest;
|
||||
|
||||
DeleteRuleRequest::DeleteRuleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRuleRequest::~DeleteRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteRuleRequest::getAccessKeyId()const
|
||||
void DeleteRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteRuleRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteRuleRequest::getIotInstanceId()const
|
||||
void DeleteRuleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
long DeleteRuleRequest::getRuleId()const
|
||||
@@ -55,6 +57,6 @@ long DeleteRuleRequest::getRuleId()const
|
||||
void DeleteRuleRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
112
iot/src/model/DeleteThingModelRequest.cc
Normal file
112
iot/src/model/DeleteThingModelRequest.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteThingModelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteThingModelRequest;
|
||||
|
||||
DeleteThingModelRequest::DeleteThingModelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteThingModel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteThingModelRequest::~DeleteThingModelRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> DeleteThingModelRequest::getServiceIdentifier()const
|
||||
{
|
||||
return serviceIdentifier_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setServiceIdentifier(const std::vector<std::string>& serviceIdentifier)
|
||||
{
|
||||
serviceIdentifier_ = serviceIdentifier;
|
||||
for(int dep1 = 0; dep1!= serviceIdentifier.size(); dep1++) {
|
||||
setParameter("ServiceIdentifier."+ std::to_string(dep1), serviceIdentifier.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteThingModelRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DeleteThingModelRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteThingModelRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteThingModelRequest::getPropertyIdentifier()const
|
||||
{
|
||||
return propertyIdentifier_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setPropertyIdentifier(const std::vector<std::string>& propertyIdentifier)
|
||||
{
|
||||
propertyIdentifier_ = propertyIdentifier;
|
||||
for(int dep1 = 0; dep1!= propertyIdentifier.size(); dep1++) {
|
||||
setParameter("PropertyIdentifier."+ std::to_string(dep1), propertyIdentifier.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteThingModelRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteThingModelRequest::getEventIdentifier()const
|
||||
{
|
||||
return eventIdentifier_;
|
||||
}
|
||||
|
||||
void DeleteThingModelRequest::setEventIdentifier(const std::vector<std::string>& eventIdentifier)
|
||||
{
|
||||
eventIdentifier_ = eventIdentifier;
|
||||
for(int dep1 = 0; dep1!= eventIdentifier.size(); dep1++) {
|
||||
setParameter("EventIdentifier."+ std::to_string(dep1), eventIdentifier.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteThingModelResult.cc
Normal file
65
iot/src/model/DeleteThingModelResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteThingModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteThingModelResult::DeleteThingModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteThingModelResult::DeleteThingModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteThingModelResult::~DeleteThingModelResult()
|
||||
{}
|
||||
|
||||
void DeleteThingModelResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteThingModelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteThingModelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteThingModelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DeleteTopicRouteTableRequest;
|
||||
|
||||
DeleteTopicRouteTableRequest::DeleteTopicRouteTableRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteTopicRouteTable")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTopicRouteTableRequest::~DeleteTopicRouteTableRequest()
|
||||
{}
|
||||
@@ -33,8 +35,9 @@ std::vector<std::string> DeleteTopicRouteTableRequest::getDstTopic()const
|
||||
void DeleteTopicRouteTableRequest::setDstTopic(const std::vector<std::string>& dstTopic)
|
||||
{
|
||||
dstTopic_ = dstTopic;
|
||||
for(int i = 0; i!= dstTopic.size(); i++)
|
||||
setCoreParameter("DstTopic."+ std::to_string(i), dstTopic.at(i));
|
||||
for(int dep1 = 0; dep1!= dstTopic.size(); dep1++) {
|
||||
setParameter("DstTopic."+ std::to_string(dep1), dstTopic.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteTopicRouteTableRequest::getAccessKeyId()const
|
||||
@@ -45,7 +48,7 @@ std::string DeleteTopicRouteTableRequest::getAccessKeyId()const
|
||||
void DeleteTopicRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteTopicRouteTableRequest::getRegionId()const
|
||||
@@ -56,7 +59,7 @@ std::string DeleteTopicRouteTableRequest::getRegionId()const
|
||||
void DeleteTopicRouteTableRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTopicRouteTableRequest::getIotInstanceId()const
|
||||
@@ -67,7 +70,7 @@ std::string DeleteTopicRouteTableRequest::getIotInstanceId()const
|
||||
void DeleteTopicRouteTableRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteTopicRouteTableRequest::getSrcTopic()const
|
||||
@@ -78,6 +81,6 @@ std::string DeleteTopicRouteTableRequest::getSrcTopic()const
|
||||
void DeleteTopicRouteTableRequest::setSrcTopic(const std::string& srcTopic)
|
||||
{
|
||||
srcTopic_ = srcTopic;
|
||||
setCoreParameter("SrcTopic", srcTopic);
|
||||
setParameter("SrcTopic", srcTopic);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::DisableThingRequest;
|
||||
|
||||
DisableThingRequest::DisableThingRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DisableThing")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableThingRequest::~DisableThingRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DisableThingRequest::getProductKey()const
|
||||
void DisableThingRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DisableThingRequest::getAccessKeyId()const
|
||||
void DisableThingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getIotId()const
|
||||
@@ -55,7 +57,7 @@ std::string DisableThingRequest::getIotId()const
|
||||
void DisableThingRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string DisableThingRequest::getIotInstanceId()const
|
||||
void DisableThingRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getDeviceName()const
|
||||
@@ -77,6 +79,6 @@ std::string DisableThingRequest::getDeviceName()const
|
||||
void DisableThingRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::EnableThingRequest;
|
||||
|
||||
EnableThingRequest::EnableThingRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "EnableThing")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableThingRequest::~EnableThingRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string EnableThingRequest::getProductKey()const
|
||||
void EnableThingRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string EnableThingRequest::getAccessKeyId()const
|
||||
void EnableThingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getIotId()const
|
||||
@@ -55,7 +57,7 @@ std::string EnableThingRequest::getIotId()const
|
||||
void EnableThingRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string EnableThingRequest::getIotInstanceId()const
|
||||
void EnableThingRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getDeviceName()const
|
||||
@@ -77,6 +79,6 @@ std::string EnableThingRequest::getDeviceName()const
|
||||
void EnableThingRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
73
iot/src/model/GenerateOTAUploadURLRequest.cc
Normal file
73
iot/src/model/GenerateOTAUploadURLRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/GenerateOTAUploadURLRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GenerateOTAUploadURLRequest;
|
||||
|
||||
GenerateOTAUploadURLRequest::GenerateOTAUploadURLRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GenerateOTAUploadURL")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateOTAUploadURLRequest::~GenerateOTAUploadURLRequest()
|
||||
{}
|
||||
|
||||
std::string GenerateOTAUploadURLRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GenerateOTAUploadURLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GenerateOTAUploadURLRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GenerateOTAUploadURLRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GenerateOTAUploadURLRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GenerateOTAUploadURLRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GenerateOTAUploadURLRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GenerateOTAUploadURLRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
83
iot/src/model/GenerateOTAUploadURLResult.cc
Normal file
83
iot/src/model/GenerateOTAUploadURLResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/GenerateOTAUploadURLResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GenerateOTAUploadURLResult::GenerateOTAUploadURLResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateOTAUploadURLResult::GenerateOTAUploadURLResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateOTAUploadURLResult::~GenerateOTAUploadURLResult()
|
||||
{}
|
||||
|
||||
void GenerateOTAUploadURLResult::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["Key"].isNull())
|
||||
data_.key = dataNode["Key"].asString();
|
||||
if(!dataNode["Host"].isNull())
|
||||
data_.host = dataNode["Host"].asString();
|
||||
if(!dataNode["Policy"].isNull())
|
||||
data_.policy = dataNode["Policy"].asString();
|
||||
if(!dataNode["OSSAccessKeyId"].isNull())
|
||||
data_.oSSAccessKeyId = dataNode["OSSAccessKeyId"].asString();
|
||||
if(!dataNode["Signature"].isNull())
|
||||
data_.signature = dataNode["Signature"].asString();
|
||||
if(!dataNode["FirmwareUrl"].isNull())
|
||||
data_.firmwareUrl = dataNode["FirmwareUrl"].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();
|
||||
|
||||
}
|
||||
|
||||
GenerateOTAUploadURLResult::Data GenerateOTAUploadURLResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GenerateOTAUploadURLResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GenerateOTAUploadURLResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GenerateOTAUploadURLResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,20 +20,22 @@ using AlibabaCloud::Iot::Model::GetDataAPIServiceDetailRequest;
|
||||
|
||||
GetDataAPIServiceDetailRequest::GetDataAPIServiceDetailRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetDataAPIServiceDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataAPIServiceDetailRequest::~GetDataAPIServiceDetailRequest()
|
||||
{}
|
||||
|
||||
std::string GetDataAPIServiceDetailRequest::getAccessKeyId()const
|
||||
std::string GetDataAPIServiceDetailRequest::getIotInstanceId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GetDataAPIServiceDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
void GetDataAPIServiceDetailRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetDataAPIServiceDetailRequest::getApiSrn()const
|
||||
@@ -44,6 +46,28 @@ std::string GetDataAPIServiceDetailRequest::getApiSrn()const
|
||||
void GetDataAPIServiceDetailRequest::setApiSrn(const std::string& apiSrn)
|
||||
{
|
||||
apiSrn_ = apiSrn;
|
||||
setCoreParameter("ApiSrn", apiSrn);
|
||||
setBodyParameter("ApiSrn", apiSrn);
|
||||
}
|
||||
|
||||
std::string GetDataAPIServiceDetailRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetDataAPIServiceDetailRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetDataAPIServiceDetailRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetDataAPIServiceDetailRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,10 +99,10 @@ void GetDataAPIServiceDetailResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetDeviceShadowRequest;
|
||||
|
||||
GetDeviceShadowRequest::GetDeviceShadowRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetDeviceShadow")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDeviceShadowRequest::~GetDeviceShadowRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetDeviceShadowRequest::getShadowMessage()const
|
||||
void GetDeviceShadowRequest::setShadowMessage(const std::string& shadowMessage)
|
||||
{
|
||||
shadowMessage_ = shadowMessage;
|
||||
setCoreParameter("ShadowMessage", shadowMessage);
|
||||
setParameter("ShadowMessage", shadowMessage);
|
||||
}
|
||||
|
||||
std::string GetDeviceShadowRequest::getProductKey()const
|
||||
@@ -44,7 +46,7 @@ std::string GetDeviceShadowRequest::getProductKey()const
|
||||
void GetDeviceShadowRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string GetDeviceShadowRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string GetDeviceShadowRequest::getAccessKeyId()const
|
||||
void GetDeviceShadowRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetDeviceShadowRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string GetDeviceShadowRequest::getIotInstanceId()const
|
||||
void GetDeviceShadowRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetDeviceShadowRequest::getDeviceName()const
|
||||
@@ -77,6 +79,6 @@ std::string GetDeviceShadowRequest::getDeviceName()const
|
||||
void GetDeviceShadowRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetDeviceStatusRequest;
|
||||
|
||||
GetDeviceStatusRequest::GetDeviceStatusRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetDeviceStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDeviceStatusRequest::~GetDeviceStatusRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetDeviceStatusRequest::getProductKey()const
|
||||
void GetDeviceStatusRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string GetDeviceStatusRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string GetDeviceStatusRequest::getAccessKeyId()const
|
||||
void GetDeviceStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetDeviceStatusRequest::getIotId()const
|
||||
@@ -55,7 +57,7 @@ std::string GetDeviceStatusRequest::getIotId()const
|
||||
void GetDeviceStatusRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string GetDeviceStatusRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string GetDeviceStatusRequest::getIotInstanceId()const
|
||||
void GetDeviceStatusRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetDeviceStatusRequest::getDeviceName()const
|
||||
@@ -77,6 +79,6 @@ std::string GetDeviceStatusRequest::getDeviceName()const
|
||||
void GetDeviceStatusRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
95
iot/src/model/GetEdgeDriverVersionRequest.cc
Normal file
95
iot/src/model/GetEdgeDriverVersionRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/GetEdgeDriverVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GetEdgeDriverVersionRequest;
|
||||
|
||||
GetEdgeDriverVersionRequest::GetEdgeDriverVersionRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetEdgeDriverVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEdgeDriverVersionRequest::~GetEdgeDriverVersionRequest()
|
||||
{}
|
||||
|
||||
std::string GetEdgeDriverVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetEdgeDriverVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionRequest::getDriverId()const
|
||||
{
|
||||
return driverId_;
|
||||
}
|
||||
|
||||
void GetEdgeDriverVersionRequest::setDriverId(const std::string& driverId)
|
||||
{
|
||||
driverId_ = driverId;
|
||||
setParameter("DriverId", driverId);
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GetEdgeDriverVersionRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionRequest::getDriverVersion()const
|
||||
{
|
||||
return driverVersion_;
|
||||
}
|
||||
|
||||
void GetEdgeDriverVersionRequest::setDriverVersion(const std::string& driverVersion)
|
||||
{
|
||||
driverVersion_ = driverVersion;
|
||||
setParameter("DriverVersion", driverVersion);
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetEdgeDriverVersionRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetEdgeDriverVersionRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
93
iot/src/model/GetEdgeDriverVersionResult.cc
Normal file
93
iot/src/model/GetEdgeDriverVersionResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/GetEdgeDriverVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GetEdgeDriverVersionResult::GetEdgeDriverVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEdgeDriverVersionResult::GetEdgeDriverVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEdgeDriverVersionResult::~GetEdgeDriverVersionResult()
|
||||
{}
|
||||
|
||||
void GetEdgeDriverVersionResult::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["DriverId"].isNull())
|
||||
data_.driverId = dataNode["DriverId"].asString();
|
||||
if(!dataNode["DriverVersion"].isNull())
|
||||
data_.driverVersion = dataNode["DriverVersion"].asString();
|
||||
if(!dataNode["VersionState"].isNull())
|
||||
data_.versionState = dataNode["VersionState"].asString();
|
||||
if(!dataNode["EdgeVersion"].isNull())
|
||||
data_.edgeVersion = dataNode["EdgeVersion"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["SourceConfig"].isNull())
|
||||
data_.sourceConfig = dataNode["SourceConfig"].asString();
|
||||
if(!dataNode["DriverConfig"].isNull())
|
||||
data_.driverConfig = dataNode["DriverConfig"].asString();
|
||||
if(!dataNode["ContainerConfig"].isNull())
|
||||
data_.containerConfig = dataNode["ContainerConfig"].asString();
|
||||
if(!dataNode["ConfigCheckRule"].isNull())
|
||||
data_.configCheckRule = dataNode["ConfigCheckRule"].asString();
|
||||
if(!dataNode["GmtCreateTimestamp"].isNull())
|
||||
data_.gmtCreateTimestamp = std::stol(dataNode["GmtCreateTimestamp"].asString());
|
||||
if(!dataNode["GmtModifiedTimestamp"].isNull())
|
||||
data_.gmtModifiedTimestamp = std::stol(dataNode["GmtModifiedTimestamp"].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();
|
||||
|
||||
}
|
||||
|
||||
GetEdgeDriverVersionResult::Data GetEdgeDriverVersionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetEdgeDriverVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetEdgeDriverVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetEdgeInstanceDeploymentRequest;
|
||||
|
||||
GetEdgeInstanceDeploymentRequest::GetEdgeInstanceDeploymentRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetEdgeInstanceDeployment")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEdgeInstanceDeploymentRequest::~GetEdgeInstanceDeploymentRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string GetEdgeInstanceDeploymentRequest::getAccessKeyId()const
|
||||
void GetEdgeInstanceDeploymentRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceDeploymentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceDeploymentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceDeploymentRequest::getIotInstanceId()const
|
||||
@@ -55,7 +46,18 @@ std::string GetEdgeInstanceDeploymentRequest::getIotInstanceId()const
|
||||
void GetEdgeInstanceDeploymentRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceDeploymentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceDeploymentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceDeploymentRequest::getDeploymentId()const
|
||||
@@ -66,6 +68,28 @@ std::string GetEdgeInstanceDeploymentRequest::getDeploymentId()const
|
||||
void GetEdgeInstanceDeploymentRequest::setDeploymentId(const std::string& deploymentId)
|
||||
{
|
||||
deploymentId_ = deploymentId;
|
||||
setCoreParameter("DeploymentId", deploymentId);
|
||||
setParameter("DeploymentId", deploymentId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceDeploymentRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceDeploymentRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceDeploymentRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceDeploymentRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,12 @@ void GetEdgeInstanceDeploymentResult::parse(const std::string &payload)
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!dataNode["GmtCreateTimestamp"].isNull())
|
||||
data_.gmtCreateTimestamp = std::stol(dataNode["GmtCreateTimestamp"].asString());
|
||||
if(!dataNode["GmtModifiedTimestamp"].isNull())
|
||||
data_.gmtModifiedTimestamp = std::stol(dataNode["GmtModifiedTimestamp"].asString());
|
||||
if(!dataNode["GmtCompletedTimestamp"].isNull())
|
||||
data_.gmtCompletedTimestamp = std::stol(dataNode["GmtCompletedTimestamp"].asString());
|
||||
auto allTaskListNode = dataNode["TaskList"]["Task"];
|
||||
for (auto dataNodeTaskListTask : allTaskListNode)
|
||||
{
|
||||
@@ -72,6 +78,12 @@ void GetEdgeInstanceDeploymentResult::parse(const std::string &payload)
|
||||
taskObject.stage = std::stoi(dataNodeTaskListTask["Stage"].asString());
|
||||
if(!dataNodeTaskListTask["Status"].isNull())
|
||||
taskObject.status = std::stoi(dataNodeTaskListTask["Status"].asString());
|
||||
if(!dataNodeTaskListTask["GmtCreateTimestamp"].isNull())
|
||||
taskObject.gmtCreateTimestamp = std::stol(dataNodeTaskListTask["GmtCreateTimestamp"].asString());
|
||||
if(!dataNodeTaskListTask["GmtModifiedTimestamp"].isNull())
|
||||
taskObject.gmtModifiedTimestamp = std::stol(dataNodeTaskListTask["GmtModifiedTimestamp"].asString());
|
||||
if(!dataNodeTaskListTask["GmtCompletedTimestamp"].isNull())
|
||||
taskObject.gmtCompletedTimestamp = std::stol(dataNodeTaskListTask["GmtCompletedTimestamp"].asString());
|
||||
auto allResourceSnapshotListNode = allTaskListNode["ResourceSnapshotList"]["ResourceSnapshot"];
|
||||
for (auto allTaskListNodeResourceSnapshotListResourceSnapshot : allResourceSnapshotListNode)
|
||||
{
|
||||
@@ -98,6 +110,12 @@ void GetEdgeInstanceDeploymentResult::parse(const std::string &payload)
|
||||
resourceSnapshotListObject.status = std::stoi(allTaskListNodeResourceSnapshotListResourceSnapshot["Status"].asString());
|
||||
if(!allTaskListNodeResourceSnapshotListResourceSnapshot["Log"].isNull())
|
||||
resourceSnapshotListObject.log = allTaskListNodeResourceSnapshotListResourceSnapshot["Log"].asString();
|
||||
if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCreateTimestamp"].isNull())
|
||||
resourceSnapshotListObject.gmtCreateTimestamp = std::stol(allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCreateTimestamp"].asString());
|
||||
if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtModifiedTimestamp"].isNull())
|
||||
resourceSnapshotListObject.gmtModifiedTimestamp = std::stol(allTaskListNodeResourceSnapshotListResourceSnapshot["GmtModifiedTimestamp"].asString());
|
||||
if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCompletedTimestamp"].isNull())
|
||||
resourceSnapshotListObject.gmtCompletedTimestamp = std::stol(allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCompletedTimestamp"].asString());
|
||||
taskObject.resourceSnapshotList.push_back(resourceSnapshotListObject);
|
||||
}
|
||||
data_.taskList.push_back(taskObject);
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetEdgeInstanceRequest;
|
||||
|
||||
GetEdgeInstanceRequest::GetEdgeInstanceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetEdgeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEdgeInstanceRequest::~GetEdgeInstanceRequest()
|
||||
{}
|
||||
@@ -33,18 +35,7 @@ std::string GetEdgeInstanceRequest::getAccessKeyId()const
|
||||
void GetEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceRequest::getIotInstanceId()const
|
||||
@@ -55,6 +46,39 @@ std::string GetEdgeInstanceRequest::getIotInstanceId()const
|
||||
void GetEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetEdgeInstanceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetEdgeInstanceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ void GetEdgeInstanceResult::parse(const std::string &payload)
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Tags"].isNull())
|
||||
data_.tags = dataNode["Tags"].asString();
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!dataNode["Spec"].isNull())
|
||||
data_.spec = std::stoi(dataNode["Spec"].asString());
|
||||
if(!dataNode["BizEnable"].isNull())
|
||||
@@ -64,6 +66,12 @@ void GetEdgeInstanceResult::parse(const std::string &payload)
|
||||
data_.latestDeploymentStatus = std::stoi(dataNode["LatestDeploymentStatus"].asString());
|
||||
if(!dataNode["LatestDeploymentType"].isNull())
|
||||
data_.latestDeploymentType = dataNode["LatestDeploymentType"].asString();
|
||||
if(!dataNode["GmtCreateTimestamp"].isNull())
|
||||
data_.gmtCreateTimestamp = std::stol(dataNode["GmtCreateTimestamp"].asString());
|
||||
if(!dataNode["GmtModifiedTimestamp"].isNull())
|
||||
data_.gmtModifiedTimestamp = std::stol(dataNode["GmtModifiedTimestamp"].asString());
|
||||
if(!dataNode["RoleAttachTimestamp"].isNull())
|
||||
data_.roleAttachTimestamp = std::stol(dataNode["RoleAttachTimestamp"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetGatewayBySubDeviceRequest;
|
||||
|
||||
GetGatewayBySubDeviceRequest::GetGatewayBySubDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetGatewayBySubDevice")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGatewayBySubDeviceRequest::~GetGatewayBySubDeviceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetGatewayBySubDeviceRequest::getProductKey()const
|
||||
void GetGatewayBySubDeviceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setCoreParameter("ProductKey", productKey);
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string GetGatewayBySubDeviceRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string GetGatewayBySubDeviceRequest::getAccessKeyId()const
|
||||
void GetGatewayBySubDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetGatewayBySubDeviceRequest::getIotId()const
|
||||
@@ -55,7 +57,7 @@ std::string GetGatewayBySubDeviceRequest::getIotId()const
|
||||
void GetGatewayBySubDeviceRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setCoreParameter("IotId", iotId);
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string GetGatewayBySubDeviceRequest::getIotInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string GetGatewayBySubDeviceRequest::getIotInstanceId()const
|
||||
void GetGatewayBySubDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetGatewayBySubDeviceRequest::getDeviceName()const
|
||||
@@ -77,6 +79,6 @@ std::string GetGatewayBySubDeviceRequest::getDeviceName()const
|
||||
void GetGatewayBySubDeviceRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setCoreParameter("DeviceName", deviceName);
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetLoraNodesTaskRequest;
|
||||
|
||||
GetLoraNodesTaskRequest::GetLoraNodesTaskRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetLoraNodesTask")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLoraNodesTaskRequest::~GetLoraNodesTaskRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetLoraNodesTaskRequest::getAccessKeyId()const
|
||||
void GetLoraNodesTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetLoraNodesTaskRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string GetLoraNodesTaskRequest::getIotInstanceId()const
|
||||
void GetLoraNodesTaskRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetLoraNodesTaskRequest::getTaskId()const
|
||||
@@ -55,6 +57,6 @@ std::string GetLoraNodesTaskRequest::getTaskId()const
|
||||
void GetLoraNodesTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetNodesAddingTaskRequest;
|
||||
|
||||
GetNodesAddingTaskRequest::GetNodesAddingTaskRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetNodesAddingTask")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNodesAddingTaskRequest::~GetNodesAddingTaskRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetNodesAddingTaskRequest::getAccessKeyId()const
|
||||
void GetNodesAddingTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetNodesAddingTaskRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string GetNodesAddingTaskRequest::getIotInstanceId()const
|
||||
void GetNodesAddingTaskRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetNodesAddingTaskRequest::getTaskId()const
|
||||
@@ -55,6 +57,6 @@ std::string GetNodesAddingTaskRequest::getTaskId()const
|
||||
void GetNodesAddingTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetRuleActionRequest;
|
||||
|
||||
GetRuleActionRequest::GetRuleActionRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetRuleAction")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRuleActionRequest::~GetRuleActionRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetRuleActionRequest::getAccessKeyId()const
|
||||
void GetRuleActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetRuleActionRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string GetRuleActionRequest::getIotInstanceId()const
|
||||
void GetRuleActionRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
long GetRuleActionRequest::getActionId()const
|
||||
@@ -55,6 +57,6 @@ long GetRuleActionRequest::getActionId()const
|
||||
void GetRuleActionRequest::setActionId(long actionId)
|
||||
{
|
||||
actionId_ = actionId;
|
||||
setCoreParameter("ActionId", std::to_string(actionId));
|
||||
setParameter("ActionId", std::to_string(actionId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Iot::Model::GetRuleRequest;
|
||||
|
||||
GetRuleRequest::GetRuleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRuleRequest::~GetRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetRuleRequest::getAccessKeyId()const
|
||||
void GetRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetRuleRequest::getIotInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string GetRuleRequest::getIotInstanceId()const
|
||||
void GetRuleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setCoreParameter("IotInstanceId", iotInstanceId);
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
long GetRuleRequest::getRuleId()const
|
||||
@@ -55,6 +57,6 @@ long GetRuleRequest::getRuleId()const
|
||||
void GetRuleRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user