Update TMP API, including QueryDevice, CreateThingModel, UpdateThingModel, ImportThingModelTsl, BatchPickThingModel, ListDeviceDistributeJob.

This commit is contained in:
sdk-team
2021-06-09 06:54:22 +00:00
parent 648aacf470
commit 08cc0d55f3
35 changed files with 1282 additions and 1 deletions

View File

@@ -100,6 +100,8 @@
#include "model/ClearEdgeInstanceDriverConfigsResult.h"
#include "model/CloseEdgeInstanceDeploymentRequest.h"
#include "model/CloseEdgeInstanceDeploymentResult.h"
#include "model/ConfirmOTATaskRequest.h"
#include "model/ConfirmOTATaskResult.h"
#include "model/CopyThingModelRequest.h"
#include "model/CopyThingModelResult.h"
#include "model/CreateConsumerGroupRequest.h"
@@ -314,6 +316,8 @@
#include "model/ListOTAModuleVersionsByDeviceResult.h"
#include "model/ListOTATaskByJobRequest.h"
#include "model/ListOTATaskByJobResult.h"
#include "model/ListOTAUnfinishedTaskByDeviceRequest.h"
#include "model/ListOTAUnfinishedTaskByDeviceResult.h"
#include "model/ListProductByTagsRequest.h"
#include "model/ListProductByTagsResult.h"
#include "model/ListProductTagsRequest.h"
@@ -394,6 +398,8 @@
#include "model/QueryDeviceGroupListResult.h"
#include "model/QueryDeviceGroupTagListRequest.h"
#include "model/QueryDeviceGroupTagListResult.h"
#include "model/QueryDeviceInfoRequest.h"
#include "model/QueryDeviceInfoResult.h"
#include "model/QueryDeviceListByDeviceGroupRequest.h"
#include "model/QueryDeviceListByDeviceGroupResult.h"
#include "model/QueryDeviceOriginalEventDataRequest.h"
@@ -726,6 +732,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CloseEdgeInstanceDeploymentResult> CloseEdgeInstanceDeploymentOutcome;
typedef std::future<CloseEdgeInstanceDeploymentOutcome> CloseEdgeInstanceDeploymentOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CloseEdgeInstanceDeploymentRequest&, const CloseEdgeInstanceDeploymentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseEdgeInstanceDeploymentAsyncHandler;
typedef Outcome<Error, Model::ConfirmOTATaskResult> ConfirmOTATaskOutcome;
typedef std::future<ConfirmOTATaskOutcome> ConfirmOTATaskOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ConfirmOTATaskRequest&, const ConfirmOTATaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfirmOTATaskAsyncHandler;
typedef Outcome<Error, Model::CopyThingModelResult> CopyThingModelOutcome;
typedef std::future<CopyThingModelOutcome> CopyThingModelOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CopyThingModelRequest&, const CopyThingModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CopyThingModelAsyncHandler;
@@ -1047,6 +1056,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListOTATaskByJobResult> ListOTATaskByJobOutcome;
typedef std::future<ListOTATaskByJobOutcome> ListOTATaskByJobOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ListOTATaskByJobRequest&, const ListOTATaskByJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOTATaskByJobAsyncHandler;
typedef Outcome<Error, Model::ListOTAUnfinishedTaskByDeviceResult> ListOTAUnfinishedTaskByDeviceOutcome;
typedef std::future<ListOTAUnfinishedTaskByDeviceOutcome> ListOTAUnfinishedTaskByDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ListOTAUnfinishedTaskByDeviceRequest&, const ListOTAUnfinishedTaskByDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOTAUnfinishedTaskByDeviceAsyncHandler;
typedef Outcome<Error, Model::ListProductByTagsResult> ListProductByTagsOutcome;
typedef std::future<ListProductByTagsOutcome> ListProductByTagsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ListProductByTagsRequest&, const ListProductByTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductByTagsAsyncHandler;
@@ -1167,6 +1179,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryDeviceGroupTagListResult> QueryDeviceGroupTagListOutcome;
typedef std::future<QueryDeviceGroupTagListOutcome> QueryDeviceGroupTagListOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceGroupTagListRequest&, const QueryDeviceGroupTagListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceGroupTagListAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceInfoResult> QueryDeviceInfoOutcome;
typedef std::future<QueryDeviceInfoOutcome> QueryDeviceInfoOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceInfoRequest&, const QueryDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceInfoAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceListByDeviceGroupResult> QueryDeviceListByDeviceGroupOutcome;
typedef std::future<QueryDeviceListByDeviceGroupOutcome> QueryDeviceListByDeviceGroupOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceListByDeviceGroupRequest&, const QueryDeviceListByDeviceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceListByDeviceGroupAsyncHandler;
@@ -1598,6 +1613,9 @@ namespace AlibabaCloud
CloseEdgeInstanceDeploymentOutcome closeEdgeInstanceDeployment(const Model::CloseEdgeInstanceDeploymentRequest &request)const;
void closeEdgeInstanceDeploymentAsync(const Model::CloseEdgeInstanceDeploymentRequest& request, const CloseEdgeInstanceDeploymentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CloseEdgeInstanceDeploymentOutcomeCallable closeEdgeInstanceDeploymentCallable(const Model::CloseEdgeInstanceDeploymentRequest& request) const;
ConfirmOTATaskOutcome confirmOTATask(const Model::ConfirmOTATaskRequest &request)const;
void confirmOTATaskAsync(const Model::ConfirmOTATaskRequest& request, const ConfirmOTATaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfirmOTATaskOutcomeCallable confirmOTATaskCallable(const Model::ConfirmOTATaskRequest& request) const;
CopyThingModelOutcome copyThingModel(const Model::CopyThingModelRequest &request)const;
void copyThingModelAsync(const Model::CopyThingModelRequest& request, const CopyThingModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CopyThingModelOutcomeCallable copyThingModelCallable(const Model::CopyThingModelRequest& request) const;
@@ -1919,6 +1937,9 @@ namespace AlibabaCloud
ListOTATaskByJobOutcome listOTATaskByJob(const Model::ListOTATaskByJobRequest &request)const;
void listOTATaskByJobAsync(const Model::ListOTATaskByJobRequest& request, const ListOTATaskByJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListOTATaskByJobOutcomeCallable listOTATaskByJobCallable(const Model::ListOTATaskByJobRequest& request) const;
ListOTAUnfinishedTaskByDeviceOutcome listOTAUnfinishedTaskByDevice(const Model::ListOTAUnfinishedTaskByDeviceRequest &request)const;
void listOTAUnfinishedTaskByDeviceAsync(const Model::ListOTAUnfinishedTaskByDeviceRequest& request, const ListOTAUnfinishedTaskByDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListOTAUnfinishedTaskByDeviceOutcomeCallable listOTAUnfinishedTaskByDeviceCallable(const Model::ListOTAUnfinishedTaskByDeviceRequest& request) const;
ListProductByTagsOutcome listProductByTags(const Model::ListProductByTagsRequest &request)const;
void listProductByTagsAsync(const Model::ListProductByTagsRequest& request, const ListProductByTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListProductByTagsOutcomeCallable listProductByTagsCallable(const Model::ListProductByTagsRequest& request) const;
@@ -2039,6 +2060,9 @@ namespace AlibabaCloud
QueryDeviceGroupTagListOutcome queryDeviceGroupTagList(const Model::QueryDeviceGroupTagListRequest &request)const;
void queryDeviceGroupTagListAsync(const Model::QueryDeviceGroupTagListRequest& request, const QueryDeviceGroupTagListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceGroupTagListOutcomeCallable queryDeviceGroupTagListCallable(const Model::QueryDeviceGroupTagListRequest& request) const;
QueryDeviceInfoOutcome queryDeviceInfo(const Model::QueryDeviceInfoRequest &request)const;
void queryDeviceInfoAsync(const Model::QueryDeviceInfoRequest& request, const QueryDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceInfoOutcomeCallable queryDeviceInfoCallable(const Model::QueryDeviceInfoRequest& request) const;
QueryDeviceListByDeviceGroupOutcome queryDeviceListByDeviceGroup(const Model::QueryDeviceListByDeviceGroupRequest &request)const;
void queryDeviceListByDeviceGroupAsync(const Model::QueryDeviceListByDeviceGroupRequest& request, const QueryDeviceListByDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceListByDeviceGroupOutcomeCallable queryDeviceListByDeviceGroupCallable(const Model::QueryDeviceListByDeviceGroupRequest& request) const;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getJobId()const;
void setJobId(const std::string& jobId);
bool getCancelUnconfirmedTask()const;
void setCancelUnconfirmedTask(bool cancelUnconfirmedTask);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
bool getCancelQueuedTask()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
bool cancelScheduledTask_;
std::string accessKeyId_;
std::string jobId_;
bool cancelUnconfirmedTask_;
std::string iotInstanceId_;
bool cancelQueuedTask_;
bool cancelInProgressTask_;

View File

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

View File

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

View File

@@ -47,8 +47,12 @@ namespace AlibabaCloud
void setRetryCount(int retryCount);
int getTimeoutInMinutes()const;
void setTimeoutInMinutes(int timeoutInMinutes);
bool getNeedConfirm()const;
void setNeedConfirm(bool needConfirm);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
bool getNeedPush()const;
void setNeedPush(bool needPush);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::vector<Tag> getTag()const;
@@ -74,7 +78,9 @@ namespace AlibabaCloud
int dynamicMode_;
int retryCount_;
int timeoutInMinutes_;
bool needConfirm_;
std::string accessKeyId_;
bool needPush_;
std::string iotInstanceId_;
std::vector<Tag> tag_;
std::string firmwareId_;

View File

@@ -45,8 +45,12 @@ namespace AlibabaCloud
void setRetryCount(int retryCount);
int getTimeoutInMinutes()const;
void setTimeoutInMinutes(int timeoutInMinutes);
bool getNeedConfirm()const;
void setNeedConfirm(bool needConfirm);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
bool getNeedPush()const;
void setNeedPush(bool needPush);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTargetSelection()const;
@@ -83,7 +87,9 @@ namespace AlibabaCloud
private:
int retryCount_;
int timeoutInMinutes_;
bool needConfirm_;
std::string accessKeyId_;
bool needPush_;
std::string iotInstanceId_;
std::string targetSelection_;
long scheduleFinishTime_;

View File

@@ -37,8 +37,12 @@ namespace AlibabaCloud
int getTimeoutInMinutes()const;
void setTimeoutInMinutes(int timeoutInMinutes);
bool getNeedConfirm()const;
void setNeedConfirm(bool needConfirm);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
bool getNeedPush()const;
void setNeedPush(bool needPush);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getFirmwareId()const;
@@ -54,7 +58,9 @@ namespace AlibabaCloud
private:
int timeoutInMinutes_;
bool needConfirm_;
std::string accessKeyId_;
bool needPush_;
std::string iotInstanceId_;
std::string firmwareId_;
std::string productKey_;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
private:
std::string jobId_;
std::string nextToken_;
int pageSize_;
int currentPage_;
std::string apiProduct_;

View File

@@ -55,6 +55,7 @@ namespace AlibabaCloud
std::string jobId;
std::string productKey;
};
std::string nextToken;
std::vector<Items> jobInfo;
int total;
};

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_LISTOTAUNFINISHEDTASKBYDEVICEREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_LISTOTAUNFINISHEDTASKBYDEVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT ListOTAUnfinishedTaskByDeviceRequest : public RpcServiceRequest
{
public:
ListOTAUnfinishedTaskByDeviceRequest();
~ListOTAUnfinishedTaskByDeviceRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTaskStatus()const;
void setTaskStatus(const std::string& taskStatus);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getModuleName()const;
void setModuleName(const std::string& moduleName);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::string getDeviceName()const;
void setDeviceName(const std::string& deviceName);
private:
std::string accessKeyId_;
std::string taskStatus_;
std::string iotId_;
std::string iotInstanceId_;
std::string moduleName_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_LISTOTAUNFINISHEDTASKBYDEVICEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_LISTOTAUNFINISHEDTASKBYDEVICERESULT_H_
#define ALIBABACLOUD_IOT_MODEL_LISTOTAUNFINISHEDTASKBYDEVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT ListOTAUnfinishedTaskByDeviceResult : public ServiceResult
{
public:
struct SimpleOTATaskInfo
{
std::string taskId;
std::string productName;
std::string moduleName;
std::string firmwareId;
std::string taskStatus;
std::string iotId;
std::string utcCreate;
std::string utcModified;
std::string destVersion;
std::string productKey;
std::string jobId;
std::string deviceName;
std::string srcVersion;
};
ListOTAUnfinishedTaskByDeviceResult();
explicit ListOTAUnfinishedTaskByDeviceResult(const std::string &payload);
~ListOTAUnfinishedTaskByDeviceResult();
std::vector<SimpleOTATaskInfo> getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SimpleOTATaskInfo> data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_LISTOTAUNFINISHEDTASKBYDEVICERESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEINFOREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT QueryDeviceInfoRequest : public RpcServiceRequest
{
public:
QueryDeviceInfoRequest();
~QueryDeviceInfoRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::string getDeviceName()const;
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEINFOREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEINFORESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT QueryDeviceInfoResult : public ServiceResult
{
public:
struct Data
{
std::string iotId;
std::string deviceSecret;
std::string productKey;
std::string deviceName;
std::string nickname;
};
QueryDeviceInfoResult();
explicit QueryDeviceInfoResult(const std::string &payload);
~QueryDeviceInfoResult();
Data getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEINFORESULT_H_

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
int getPageSize()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string nextToken_;
std::string iotInstanceId_;
int pageSize_;
int currentPage_;

View File

@@ -54,6 +54,7 @@ namespace AlibabaCloud
~QueryDeviceResult();
int getPageSize()const;
int getPageCount()const;
std::string getNextToken()const;
int getTotal()const;
std::vector<DeviceInfo> getData()const;
int getPage()const;
@@ -66,6 +67,7 @@ namespace AlibabaCloud
private:
int pageSize_;
int pageCount_;
std::string nextToken_;
int total_;
std::vector<DeviceInfo> data_;
int page_;

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string key;
};
std::string utcEndTime;
bool needPush;
int overwriteMode;
std::string firmwareId;
std::string name;
@@ -55,6 +56,7 @@ namespace AlibabaCloud
std::string utcStartTime;
std::string utcScheduleFinishTime;
std::vector<std::string> srcVersions;
bool needConfirm;
std::string jobDesc;
std::string jobType;
std::string utcCreate;