Add IoT Studio BatchBindDevicesIntoProject API.
This commit is contained in:
89
iot/src/model/BatchBindDevicesIntoProjectRequest.cc
Normal file
89
iot/src/model/BatchBindDevicesIntoProjectRequest.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchBindDevicesIntoProjectRequest;
|
||||
|
||||
BatchBindDevicesIntoProjectRequest::BatchBindDevicesIntoProjectRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchBindDevicesIntoProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchBindDevicesIntoProjectRequest::~BatchBindDevicesIntoProjectRequest()
|
||||
{}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchBindDevicesIntoProjectRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void BatchBindDevicesIntoProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::vector<BatchBindDevicesIntoProjectRequest::Devices> BatchBindDevicesIntoProjectRequest::getDevices()const
|
||||
{
|
||||
return devices_;
|
||||
}
|
||||
|
||||
void BatchBindDevicesIntoProjectRequest::setDevices(const std::vector<Devices>& devices)
|
||||
{
|
||||
devices_ = devices;
|
||||
for(int dep1 = 0; dep1!= devices.size(); dep1++) {
|
||||
auto devicesObj = devices.at(dep1);
|
||||
std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1);
|
||||
setParameter(devicesObjStr + ".DeviceName", devicesObj.deviceName);
|
||||
setParameter(devicesObjStr + ".ProductKey", devicesObj.productKey);
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchBindDevicesIntoProjectRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchBindDevicesIntoProjectRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/BatchBindDevicesIntoProjectResult.cc
Normal file
72
iot/src/model/BatchBindDevicesIntoProjectResult.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/BatchBindDevicesIntoProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchBindDevicesIntoProjectResult::BatchBindDevicesIntoProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchBindDevicesIntoProjectResult::BatchBindDevicesIntoProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchBindDevicesIntoProjectResult::~BatchBindDevicesIntoProjectResult()
|
||||
{}
|
||||
|
||||
void BatchBindDevicesIntoProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchBindDevicesIntoProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchBindDevicesIntoProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
86
iot/src/model/BatchBindProductsIntoProjectRequest.cc
Normal file
86
iot/src/model/BatchBindProductsIntoProjectRequest.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/BatchBindProductsIntoProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchBindProductsIntoProjectRequest;
|
||||
|
||||
BatchBindProductsIntoProjectRequest::BatchBindProductsIntoProjectRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchBindProductsIntoProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchBindProductsIntoProjectRequest::~BatchBindProductsIntoProjectRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> BatchBindProductsIntoProjectRequest::getProductKeys()const
|
||||
{
|
||||
return productKeys_;
|
||||
}
|
||||
|
||||
void BatchBindProductsIntoProjectRequest::setProductKeys(const std::vector<std::string>& productKeys)
|
||||
{
|
||||
productKeys_ = productKeys;
|
||||
for(int dep1 = 0; dep1!= productKeys.size(); dep1++) {
|
||||
setBodyParameter("ProductKeys."+ std::to_string(dep1), productKeys.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchBindProductsIntoProjectRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void BatchBindProductsIntoProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchBindProductsIntoProjectRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchBindProductsIntoProjectRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/BatchBindProductsIntoProjectResult.cc
Normal file
72
iot/src/model/BatchBindProductsIntoProjectResult.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/BatchBindProductsIntoProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchBindProductsIntoProjectResult::BatchBindProductsIntoProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchBindProductsIntoProjectResult::BatchBindProductsIntoProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchBindProductsIntoProjectResult::~BatchBindProductsIntoProjectResult()
|
||||
{}
|
||||
|
||||
void BatchBindProductsIntoProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchBindProductsIntoProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchBindProductsIntoProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ BatchCheckDeviceNamesRequest::BatchCheckDeviceNamesRequest() :
|
||||
BatchCheckDeviceNamesRequest::~BatchCheckDeviceNamesRequest()
|
||||
{}
|
||||
|
||||
std::string BatchCheckDeviceNamesRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void BatchCheckDeviceNamesRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string BatchCheckDeviceNamesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void BatchCheckDeviceNamesRequest::setAccessKeyId(const std::string& accessKeyId
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchCheckDeviceNamesRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void BatchCheckDeviceNamesRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::vector<BatchCheckDeviceNamesRequest::DeviceNameList> BatchCheckDeviceNamesRequest::getDeviceNameList()const
|
||||
{
|
||||
return deviceNameList_;
|
||||
|
||||
@@ -27,6 +27,17 @@ BatchRegisterDeviceRequest::BatchRegisterDeviceRequest() :
|
||||
BatchRegisterDeviceRequest::~BatchRegisterDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void BatchRegisterDeviceRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void BatchRegisterDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void BatchRegisterDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ BatchRegisterDeviceWithApplyIdRequest::BatchRegisterDeviceWithApplyIdRequest() :
|
||||
BatchRegisterDeviceWithApplyIdRequest::~BatchRegisterDeviceWithApplyIdRequest()
|
||||
{}
|
||||
|
||||
std::string BatchRegisterDeviceWithApplyIdRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void BatchRegisterDeviceWithApplyIdRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceWithApplyIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void BatchRegisterDeviceWithApplyIdRequest::setAccessKeyId(const std::string& ac
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceWithApplyIdRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void BatchRegisterDeviceWithApplyIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string BatchRegisterDeviceWithApplyIdRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
89
iot/src/model/BatchUnbindProjectDevicesRequest.cc
Normal file
89
iot/src/model/BatchUnbindProjectDevicesRequest.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchUnbindProjectDevicesRequest;
|
||||
|
||||
BatchUnbindProjectDevicesRequest::BatchUnbindProjectDevicesRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchUnbindProjectDevices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUnbindProjectDevicesRequest::~BatchUnbindProjectDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string BatchUnbindProjectDevicesRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectDevicesRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectDevicesRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectDevicesRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::vector<BatchUnbindProjectDevicesRequest::Devices> BatchUnbindProjectDevicesRequest::getDevices()const
|
||||
{
|
||||
return devices_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectDevicesRequest::setDevices(const std::vector<Devices>& devices)
|
||||
{
|
||||
devices_ = devices;
|
||||
for(int dep1 = 0; dep1!= devices.size(); dep1++) {
|
||||
auto devicesObj = devices.at(dep1);
|
||||
std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1);
|
||||
setParameter(devicesObjStr + ".DeviceName", devicesObj.deviceName);
|
||||
setParameter(devicesObjStr + ".ProductKey", devicesObj.productKey);
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectDevicesRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectDevicesRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectDevicesRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectDevicesRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteClientIdsResult.h>
|
||||
#include <alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteClientIdsResult::DeleteClientIdsResult() :
|
||||
BatchUnbindProjectDevicesResult::BatchUnbindProjectDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClientIdsResult::DeleteClientIdsResult(const std::string &payload) :
|
||||
BatchUnbindProjectDevicesResult::BatchUnbindProjectDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClientIdsResult::~DeleteClientIdsResult()
|
||||
BatchUnbindProjectDevicesResult::~BatchUnbindProjectDevicesResult()
|
||||
{}
|
||||
|
||||
void DeleteClientIdsResult::parse(const std::string &payload)
|
||||
void BatchUnbindProjectDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -45,20 +45,27 @@ void DeleteClientIdsResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteClientIdsResult::getErrorMessage()const
|
||||
std::string BatchUnbindProjectDevicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectDevicesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteClientIdsResult::getCode()const
|
||||
std::string BatchUnbindProjectDevicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteClientIdsResult::getSuccess()const
|
||||
bool BatchUnbindProjectDevicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
86
iot/src/model/BatchUnbindProjectProductsRequest.cc
Normal file
86
iot/src/model/BatchUnbindProjectProductsRequest.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/BatchUnbindProjectProductsRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchUnbindProjectProductsRequest;
|
||||
|
||||
BatchUnbindProjectProductsRequest::BatchUnbindProjectProductsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchUnbindProjectProducts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUnbindProjectProductsRequest::~BatchUnbindProjectProductsRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> BatchUnbindProjectProductsRequest::getProductKeys()const
|
||||
{
|
||||
return productKeys_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectProductsRequest::setProductKeys(const std::vector<std::string>& productKeys)
|
||||
{
|
||||
productKeys_ = productKeys;
|
||||
for(int dep1 = 0; dep1!= productKeys.size(); dep1++) {
|
||||
setBodyParameter("ProductKeys."+ std::to_string(dep1), productKeys.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectProductsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectProductsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectProductsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchUnbindProjectProductsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/BatchUnbindProjectProductsResult.cc
Normal file
72
iot/src/model/BatchUnbindProjectProductsResult.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/BatchUnbindProjectProductsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchUnbindProjectProductsResult::BatchUnbindProjectProductsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchUnbindProjectProductsResult::BatchUnbindProjectProductsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchUnbindProjectProductsResult::~BatchUnbindProjectProductsResult()
|
||||
{}
|
||||
|
||||
void BatchUnbindProjectProductsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchUnbindProjectProductsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchUnbindProjectProductsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
iot/src/model/CreateRulengDistributeJobRequest.cc
Normal file
84
iot/src/model/CreateRulengDistributeJobRequest.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/CreateRulengDistributeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateRulengDistributeJobRequest;
|
||||
|
||||
CreateRulengDistributeJobRequest::CreateRulengDistributeJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateRulengDistributeJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRulengDistributeJobRequest::~CreateRulengDistributeJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getSourceInstanceId()const
|
||||
{
|
||||
return sourceInstanceId_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setSourceInstanceId(const std::string& sourceInstanceId)
|
||||
{
|
||||
sourceInstanceId_ = sourceInstanceId;
|
||||
setParameter("SourceInstanceId", sourceInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getTargetInstanceId()const
|
||||
{
|
||||
return targetInstanceId_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setTargetInstanceId(const std::string& targetInstanceId)
|
||||
{
|
||||
targetInstanceId_ = targetInstanceId;
|
||||
setParameter("TargetInstanceId", targetInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/TransformClientIdResult.h>
|
||||
#include <alibabacloud/iot/model/CreateRulengDistributeJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
TransformClientIdResult::TransformClientIdResult() :
|
||||
CreateRulengDistributeJobResult::CreateRulengDistributeJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TransformClientIdResult::TransformClientIdResult(const std::string &payload) :
|
||||
CreateRulengDistributeJobResult::CreateRulengDistributeJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TransformClientIdResult::~TransformClientIdResult()
|
||||
CreateRulengDistributeJobResult::~CreateRulengDistributeJobResult()
|
||||
{}
|
||||
|
||||
void TransformClientIdResult::parse(const std::string &payload)
|
||||
void CreateRulengDistributeJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -48,17 +48,17 @@ void TransformClientIdResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string TransformClientIdResult::getErrorMessage()const
|
||||
std::string CreateRulengDistributeJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string TransformClientIdResult::getCode()const
|
||||
std::string CreateRulengDistributeJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool TransformClientIdResult::getSuccess()const
|
||||
bool CreateRulengDistributeJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/DeleteClientIdsRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteClientIdsRequest;
|
||||
|
||||
DeleteClientIdsRequest::DeleteClientIdsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteClientIds")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteClientIdsRequest::~DeleteClientIdsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteClientIdsRequest::getAuthConfig()const
|
||||
{
|
||||
return authConfig_;
|
||||
}
|
||||
|
||||
void DeleteClientIdsRequest::setAuthConfig(const std::string& authConfig)
|
||||
{
|
||||
authConfig_ = authConfig;
|
||||
setParameter("AuthConfig", authConfig);
|
||||
}
|
||||
|
||||
std::string DeleteClientIdsRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void DeleteClientIdsRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string DeleteClientIdsRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteClientIdsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteClientIdsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteClientIdsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteClientIdsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ DisableThingRequest::DisableThingRequest() :
|
||||
DisableThingRequest::~DisableThingRequest()
|
||||
{}
|
||||
|
||||
std::string DisableThingRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void DisableThingRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void DisableThingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void DisableThingRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string DisableThingRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ EnableThingRequest::EnableThingRequest() :
|
||||
EnableThingRequest::~EnableThingRequest()
|
||||
{}
|
||||
|
||||
std::string EnableThingRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void EnableThingRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void EnableThingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void EnableThingRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string EnableThingRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
|
||||
40
iot/src/model/OpenIotServiceRequest.cc
Normal file
40
iot/src/model/OpenIotServiceRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/OpenIotServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::OpenIotServiceRequest;
|
||||
|
||||
OpenIotServiceRequest::OpenIotServiceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "OpenIotService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenIotServiceRequest::~OpenIotServiceRequest()
|
||||
{}
|
||||
|
||||
long OpenIotServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OpenIotServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
iot/src/model/OpenIotServiceResult.cc
Normal file
51
iot/src/model/OpenIotServiceResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/OpenIotServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
OpenIotServiceResult::OpenIotServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OpenIotServiceResult::OpenIotServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OpenIotServiceResult::~OpenIotServiceResult()
|
||||
{}
|
||||
|
||||
void OpenIotServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OpenIotServiceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryBatchRegisterDeviceStatusRequest::QueryBatchRegisterDeviceStatusRequest() :
|
||||
QueryBatchRegisterDeviceStatusRequest::~QueryBatchRegisterDeviceStatusRequest()
|
||||
{}
|
||||
|
||||
std::string QueryBatchRegisterDeviceStatusRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void QueryBatchRegisterDeviceStatusRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string QueryBatchRegisterDeviceStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void QueryBatchRegisterDeviceStatusRequest::setAccessKeyId(const std::string& ac
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryBatchRegisterDeviceStatusRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void QueryBatchRegisterDeviceStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string QueryBatchRegisterDeviceStatusRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/QueryClientIdsRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QueryClientIdsRequest;
|
||||
|
||||
QueryClientIdsRequest::QueryClientIdsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QueryClientIds")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryClientIdsRequest::~QueryClientIdsRequest()
|
||||
{}
|
||||
|
||||
std::string QueryClientIdsRequest::getAuthConfig()const
|
||||
{
|
||||
return authConfig_;
|
||||
}
|
||||
|
||||
void QueryClientIdsRequest::setAuthConfig(const std::string& authConfig)
|
||||
{
|
||||
authConfig_ = authConfig;
|
||||
setParameter("AuthConfig", authConfig);
|
||||
}
|
||||
|
||||
std::string QueryClientIdsRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void QueryClientIdsRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string QueryClientIdsRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QueryClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string QueryClientIdsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QueryClientIdsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QueryClientIdsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QueryClientIdsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryDeviceRequest::QueryDeviceRequest() :
|
||||
QueryDeviceRequest::~QueryDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string QueryDeviceRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void QueryDeviceRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string QueryDeviceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void QueryDeviceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryDeviceRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void QueryDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string QueryDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryPageByApplyIdRequest::QueryPageByApplyIdRequest() :
|
||||
QueryPageByApplyIdRequest::~QueryPageByApplyIdRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPageByApplyIdRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void QueryPageByApplyIdRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string QueryPageByApplyIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void QueryPageByApplyIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryPageByApplyIdRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void QueryPageByApplyIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string QueryPageByApplyIdRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryProductListRequest::QueryProductListRequest() :
|
||||
QueryProductListRequest::~QueryProductListRequest()
|
||||
{}
|
||||
|
||||
std::string QueryProductListRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void QueryProductListRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string QueryProductListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void QueryProductListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryProductListRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void QueryProductListRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string QueryProductListRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
|
||||
@@ -51,6 +51,17 @@ void SpeechByCombinationRequest::setCombinationList(const std::vector<std::strin
|
||||
}
|
||||
}
|
||||
|
||||
std::string SpeechByCombinationRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void SpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string SpeechByCombinationRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
|
||||
108
iot/src/model/SyncSpeechByCombinationRequest.cc
Normal file
108
iot/src/model/SyncSpeechByCombinationRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/SyncSpeechByCombinationRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::SyncSpeechByCombinationRequest;
|
||||
|
||||
SyncSpeechByCombinationRequest::SyncSpeechByCombinationRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "SyncSpeechByCombination")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SyncSpeechByCombinationRequest::~SyncSpeechByCombinationRequest()
|
||||
{}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setBodyParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::vector<std::string> SyncSpeechByCombinationRequest::getCombinationList()const
|
||||
{
|
||||
return combinationList_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setCombinationList(const std::vector<std::string>& combinationList)
|
||||
{
|
||||
combinationList_ = combinationList;
|
||||
for(int dep1 = 0; dep1!= combinationList.size(); dep1++) {
|
||||
setBodyParameter("CombinationList."+ std::to_string(dep1), combinationList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
@@ -14,44 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/QueryClientIdsResult.h>
|
||||
#include <alibabacloud/iot/model/SyncSpeechByCombinationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QueryClientIdsResult::QueryClientIdsResult() :
|
||||
SyncSpeechByCombinationResult::SyncSpeechByCombinationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryClientIdsResult::QueryClientIdsResult(const std::string &payload) :
|
||||
SyncSpeechByCombinationResult::SyncSpeechByCombinationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryClientIdsResult::~QueryClientIdsResult()
|
||||
SyncSpeechByCombinationResult::~SyncSpeechByCombinationResult()
|
||||
{}
|
||||
|
||||
void QueryClientIdsResult::parse(const std::string &payload)
|
||||
void SyncSpeechByCombinationResult::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["IotId"].isNull())
|
||||
data_.iotId = dataNode["IotId"].asString();
|
||||
auto allDynamicRegClientIdsNode = dataNode["DynamicRegClientIds"]["DynamicRegClientId"];
|
||||
for (auto dataNodeDynamicRegClientIdsDynamicRegClientId : allDynamicRegClientIdsNode)
|
||||
{
|
||||
Data::DynamicRegClientId dynamicRegClientIdObject;
|
||||
if(!dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].isNull())
|
||||
dynamicRegClientIdObject.clientId = dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].asString();
|
||||
if(!dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].isNull())
|
||||
dynamicRegClientIdObject.createTime = std::stol(dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].asString());
|
||||
data_.dynamicRegClientIds.push_back(dynamicRegClientIdObject);
|
||||
}
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = dataNode["Id"].asString();
|
||||
if(!dataNode["RetryCount"].isNull())
|
||||
data_.retryCount = std::stoi(dataNode["RetryCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
@@ -61,22 +53,22 @@ void QueryClientIdsResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
QueryClientIdsResult::Data QueryClientIdsResult::getData()const
|
||||
SyncSpeechByCombinationResult::Data SyncSpeechByCombinationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryClientIdsResult::getErrorMessage()const
|
||||
std::string SyncSpeechByCombinationResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QueryClientIdsResult::getCode()const
|
||||
std::string SyncSpeechByCombinationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryClientIdsResult::getSuccess()const
|
||||
bool SyncSpeechByCombinationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/TransformClientIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::TransformClientIdRequest;
|
||||
|
||||
TransformClientIdRequest::TransformClientIdRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "TransformClientId")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TransformClientIdRequest::~TransformClientIdRequest()
|
||||
{}
|
||||
|
||||
std::string TransformClientIdRequest::getAuthConfig()const
|
||||
{
|
||||
return authConfig_;
|
||||
}
|
||||
|
||||
void TransformClientIdRequest::setAuthConfig(const std::string& authConfig)
|
||||
{
|
||||
authConfig_ = authConfig;
|
||||
setParameter("AuthConfig", authConfig);
|
||||
}
|
||||
|
||||
std::string TransformClientIdRequest::getClientId()const
|
||||
{
|
||||
return clientId_;
|
||||
}
|
||||
|
||||
void TransformClientIdRequest::setClientId(const std::string& clientId)
|
||||
{
|
||||
clientId_ = clientId;
|
||||
setParameter("ClientId", clientId);
|
||||
}
|
||||
|
||||
std::string TransformClientIdRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void TransformClientIdRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string TransformClientIdRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void TransformClientIdRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string TransformClientIdRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void TransformClientIdRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string TransformClientIdRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void TransformClientIdRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ UpdateProductRequest::UpdateProductRequest() :
|
||||
UpdateProductRequest::~UpdateProductRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProductRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void UpdateProductRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string UpdateProductRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
@@ -49,6 +60,17 @@ void UpdateProductRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpdateProductRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void UpdateProductRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string UpdateProductRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
|
||||
Reference in New Issue
Block a user