IOT SDK Auto Released By cheyun.lxf,Version:1.25.1
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "IotExport.h"
|
||||
#include "model/RegistDeviceRequest.h"
|
||||
#include "model/RegistDeviceResult.h"
|
||||
#include "model/DeleteTopicRouteTableRequest.h"
|
||||
#include "model/DeleteTopicRouteTableResult.h"
|
||||
#include "model/QueryDeviceEventDataRequest.h"
|
||||
@@ -38,8 +36,6 @@
|
||||
#include "model/RRpcResult.h"
|
||||
#include "model/DeleteRuleRequest.h"
|
||||
#include "model/DeleteRuleResult.h"
|
||||
#include "model/QueryDeviceByNameRequest.h"
|
||||
#include "model/QueryDeviceByNameResult.h"
|
||||
#include "model/QueryProductTopicRequest.h"
|
||||
#include "model/QueryProductTopicResult.h"
|
||||
#include "model/GetThingTopoRequest.h"
|
||||
@@ -96,8 +92,6 @@
|
||||
#include "model/CreateRuleResult.h"
|
||||
#include "model/StartRuleRequest.h"
|
||||
#include "model/StartRuleResult.h"
|
||||
#include "model/ApplyDeviceWithNamesRequest.h"
|
||||
#include "model/ApplyDeviceWithNamesResult.h"
|
||||
#include "model/QueryProductListRequest.h"
|
||||
#include "model/QueryProductListResult.h"
|
||||
#include "model/QueryDevicePropertyStatusRequest.h"
|
||||
@@ -106,12 +100,12 @@
|
||||
#include "model/QueryDeviceStatisticsResult.h"
|
||||
#include "model/PubRequest.h"
|
||||
#include "model/PubResult.h"
|
||||
#include "model/DeleteProductRequest.h"
|
||||
#include "model/DeleteProductResult.h"
|
||||
#include "model/SaveDevicePropRequest.h"
|
||||
#include "model/SaveDevicePropResult.h"
|
||||
#include "model/DeleteProductTopicRequest.h"
|
||||
#include "model/DeleteProductTopicResult.h"
|
||||
#include "model/QueryApplyStatusRequest.h"
|
||||
#include "model/QueryApplyStatusResult.h"
|
||||
#include "model/QueryDeviceServiceDataRequest.h"
|
||||
#include "model/QueryDeviceServiceDataResult.h"
|
||||
#include "model/BatchRegisterDeviceWithApplyIdRequest.h"
|
||||
@@ -151,9 +145,6 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_IOT_EXPORT IotClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::RegistDeviceResult> RegistDeviceOutcome;
|
||||
typedef std::future<RegistDeviceOutcome> RegistDeviceOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::RegistDeviceRequest&, const RegistDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegistDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTopicRouteTableResult> DeleteTopicRouteTableOutcome;
|
||||
typedef std::future<DeleteTopicRouteTableOutcome> DeleteTopicRouteTableOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteTopicRouteTableRequest&, const DeleteTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTopicRouteTableAsyncHandler;
|
||||
@@ -175,9 +166,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRuleResult> DeleteRuleOutcome;
|
||||
typedef std::future<DeleteRuleOutcome> DeleteRuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteRuleRequest&, const DeleteRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDeviceByNameResult> QueryDeviceByNameOutcome;
|
||||
typedef std::future<QueryDeviceByNameOutcome> QueryDeviceByNameOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceByNameRequest&, const QueryDeviceByNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceByNameAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryProductTopicResult> QueryProductTopicOutcome;
|
||||
typedef std::future<QueryProductTopicOutcome> QueryProductTopicOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryProductTopicRequest&, const QueryProductTopicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryProductTopicAsyncHandler;
|
||||
@@ -262,9 +250,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartRuleResult> StartRuleOutcome;
|
||||
typedef std::future<StartRuleOutcome> StartRuleOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::StartRuleRequest&, const StartRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyDeviceWithNamesResult> ApplyDeviceWithNamesOutcome;
|
||||
typedef std::future<ApplyDeviceWithNamesOutcome> ApplyDeviceWithNamesOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::ApplyDeviceWithNamesRequest&, const ApplyDeviceWithNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyDeviceWithNamesAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryProductListResult> QueryProductListOutcome;
|
||||
typedef std::future<QueryProductListOutcome> QueryProductListOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryProductListRequest&, const QueryProductListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryProductListAsyncHandler;
|
||||
@@ -277,15 +262,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PubResult> PubOutcome;
|
||||
typedef std::future<PubOutcome> PubOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::PubRequest&, const PubOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PubAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteProductResult> DeleteProductOutcome;
|
||||
typedef std::future<DeleteProductOutcome> DeleteProductOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteProductRequest&, const DeleteProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProductAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveDevicePropResult> SaveDevicePropOutcome;
|
||||
typedef std::future<SaveDevicePropOutcome> SaveDevicePropOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::SaveDevicePropRequest&, const SaveDevicePropOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveDevicePropAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteProductTopicResult> DeleteProductTopicOutcome;
|
||||
typedef std::future<DeleteProductTopicOutcome> DeleteProductTopicOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::DeleteProductTopicRequest&, const DeleteProductTopicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProductTopicAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryApplyStatusResult> QueryApplyStatusOutcome;
|
||||
typedef std::future<QueryApplyStatusOutcome> QueryApplyStatusOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryApplyStatusRequest&, const QueryApplyStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryApplyStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDeviceServiceDataResult> QueryDeviceServiceDataOutcome;
|
||||
typedef std::future<QueryDeviceServiceDataOutcome> QueryDeviceServiceDataOutcomeCallable;
|
||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceServiceDataRequest&, const QueryDeviceServiceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceServiceDataAsyncHandler;
|
||||
@@ -336,9 +321,6 @@ namespace AlibabaCloud
|
||||
IotClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
IotClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~IotClient();
|
||||
RegistDeviceOutcome registDevice(const Model::RegistDeviceRequest &request)const;
|
||||
void registDeviceAsync(const Model::RegistDeviceRequest& request, const RegistDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegistDeviceOutcomeCallable registDeviceCallable(const Model::RegistDeviceRequest& request) const;
|
||||
DeleteTopicRouteTableOutcome deleteTopicRouteTable(const Model::DeleteTopicRouteTableRequest &request)const;
|
||||
void deleteTopicRouteTableAsync(const Model::DeleteTopicRouteTableRequest& request, const DeleteTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTopicRouteTableOutcomeCallable deleteTopicRouteTableCallable(const Model::DeleteTopicRouteTableRequest& request) const;
|
||||
@@ -360,9 +342,6 @@ namespace AlibabaCloud
|
||||
DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const;
|
||||
void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const;
|
||||
QueryDeviceByNameOutcome queryDeviceByName(const Model::QueryDeviceByNameRequest &request)const;
|
||||
void queryDeviceByNameAsync(const Model::QueryDeviceByNameRequest& request, const QueryDeviceByNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceByNameOutcomeCallable queryDeviceByNameCallable(const Model::QueryDeviceByNameRequest& request) const;
|
||||
QueryProductTopicOutcome queryProductTopic(const Model::QueryProductTopicRequest &request)const;
|
||||
void queryProductTopicAsync(const Model::QueryProductTopicRequest& request, const QueryProductTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryProductTopicOutcomeCallable queryProductTopicCallable(const Model::QueryProductTopicRequest& request) const;
|
||||
@@ -447,9 +426,6 @@ namespace AlibabaCloud
|
||||
StartRuleOutcome startRule(const Model::StartRuleRequest &request)const;
|
||||
void startRuleAsync(const Model::StartRuleRequest& request, const StartRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartRuleOutcomeCallable startRuleCallable(const Model::StartRuleRequest& request) const;
|
||||
ApplyDeviceWithNamesOutcome applyDeviceWithNames(const Model::ApplyDeviceWithNamesRequest &request)const;
|
||||
void applyDeviceWithNamesAsync(const Model::ApplyDeviceWithNamesRequest& request, const ApplyDeviceWithNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyDeviceWithNamesOutcomeCallable applyDeviceWithNamesCallable(const Model::ApplyDeviceWithNamesRequest& request) const;
|
||||
QueryProductListOutcome queryProductList(const Model::QueryProductListRequest &request)const;
|
||||
void queryProductListAsync(const Model::QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryProductListOutcomeCallable queryProductListCallable(const Model::QueryProductListRequest& request) const;
|
||||
@@ -462,15 +438,15 @@ namespace AlibabaCloud
|
||||
PubOutcome pub(const Model::PubRequest &request)const;
|
||||
void pubAsync(const Model::PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PubOutcomeCallable pubCallable(const Model::PubRequest& request) const;
|
||||
DeleteProductOutcome deleteProduct(const Model::DeleteProductRequest &request)const;
|
||||
void deleteProductAsync(const Model::DeleteProductRequest& request, const DeleteProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteProductOutcomeCallable deleteProductCallable(const Model::DeleteProductRequest& request) const;
|
||||
SaveDevicePropOutcome saveDeviceProp(const Model::SaveDevicePropRequest &request)const;
|
||||
void saveDevicePropAsync(const Model::SaveDevicePropRequest& request, const SaveDevicePropAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveDevicePropOutcomeCallable saveDevicePropCallable(const Model::SaveDevicePropRequest& request) const;
|
||||
DeleteProductTopicOutcome deleteProductTopic(const Model::DeleteProductTopicRequest &request)const;
|
||||
void deleteProductTopicAsync(const Model::DeleteProductTopicRequest& request, const DeleteProductTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteProductTopicOutcomeCallable deleteProductTopicCallable(const Model::DeleteProductTopicRequest& request) const;
|
||||
QueryApplyStatusOutcome queryApplyStatus(const Model::QueryApplyStatusRequest &request)const;
|
||||
void queryApplyStatusAsync(const Model::QueryApplyStatusRequest& request, const QueryApplyStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryApplyStatusOutcomeCallable queryApplyStatusCallable(const Model::QueryApplyStatusRequest& request) const;
|
||||
QueryDeviceServiceDataOutcome queryDeviceServiceData(const Model::QueryDeviceServiceDataRequest &request)const;
|
||||
void queryDeviceServiceDataAsync(const Model::QueryDeviceServiceDataRequest& request, const QueryDeviceServiceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDeviceServiceDataOutcomeCallable queryDeviceServiceDataCallable(const Model::QueryDeviceServiceDataRequest& request) const;
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_APPLYDEVICEWITHNAMESREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_APPLYDEVICEWITHNAMESREQUEST_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 ApplyDeviceWithNamesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ApplyDeviceWithNamesRequest();
|
||||
~ApplyDeviceWithNamesRequest();
|
||||
|
||||
std::vector<std::string> getDeviceName()const;
|
||||
void setDeviceName(const std::vector<std::string>& deviceName);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::vector<std::string> deviceName_;
|
||||
std::string productKey_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_APPLYDEVICEWITHNAMESREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_APPLYDEVICEWITHNAMESRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_APPLYDEVICEWITHNAMESRESULT_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 ApplyDeviceWithNamesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ApplyDeviceWithNamesResult();
|
||||
explicit ApplyDeviceWithNamesResult(const std::string &payload);
|
||||
~ApplyDeviceWithNamesResult();
|
||||
long getApplyId()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long applyId_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_APPLYDEVICEWITHNAMESRESULT_H_
|
||||
@@ -35,38 +35,35 @@ namespace AlibabaCloud
|
||||
CreateProductRequest();
|
||||
~CreateProductRequest();
|
||||
|
||||
long getCatId()const;
|
||||
void setCatId(long catId);
|
||||
int getDataFormat()const;
|
||||
void setDataFormat(int dataFormat);
|
||||
int getNodeType()const;
|
||||
void setNodeType(int nodeType);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getId2()const;
|
||||
void setId2(bool id2);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getExtProps()const;
|
||||
void setExtProps(const std::string& extProps);
|
||||
std::string getSecurityPolicy()const;
|
||||
void setSecurityPolicy(const std::string& securityPolicy);
|
||||
int getPayType()const;
|
||||
void setPayType(int payType);
|
||||
std::string getProductName()const;
|
||||
void setProductName(const std::string& productName);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getProtocolType()const;
|
||||
void setProtocolType(const std::string& protocolType);
|
||||
std::string getAliyunCommodityCode()const;
|
||||
void setAliyunCommodityCode(const std::string& aliyunCommodityCode);
|
||||
long getCategoryId()const;
|
||||
void setCategoryId(long categoryId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
|
||||
private:
|
||||
long catId_;
|
||||
int dataFormat_;
|
||||
int nodeType_;
|
||||
std::string regionId_;
|
||||
bool id2_;
|
||||
std::string name_;
|
||||
std::string extProps_;
|
||||
std::string securityPolicy_;
|
||||
int payType_;
|
||||
std::string productName_;
|
||||
std::string description_;
|
||||
std::string protocolType_;
|
||||
std::string aliyunCommodityCode_;
|
||||
long categoryId_;
|
||||
std::string accessKeyId_;
|
||||
std::string desc_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,19 +32,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_IOT_EXPORT CreateProductResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ProductInfo
|
||||
struct Data
|
||||
{
|
||||
std::string gmtCreate;
|
||||
std::string description;
|
||||
std::string productName;
|
||||
std::string extProps;
|
||||
std::string aliyunCommodityCode;
|
||||
bool id2;
|
||||
std::string protocolType;
|
||||
int nodeType;
|
||||
std::string fromSource;
|
||||
std::string gmtModified;
|
||||
long createUserId;
|
||||
std::string productDesc;
|
||||
std::string productSecret;
|
||||
long catId;
|
||||
int dataFormat;
|
||||
std::string productKey;
|
||||
};
|
||||
|
||||
@@ -52,18 +48,20 @@ namespace AlibabaCloud
|
||||
CreateProductResult();
|
||||
explicit CreateProductResult(const std::string &payload);
|
||||
~CreateProductResult();
|
||||
ProductInfo getProductInfo()const;
|
||||
Data getData()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getProductKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ProductInfo productInfo_;
|
||||
Data data_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
std::string productKey_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setWhere(const std::string& where);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
int getTopicType()const;
|
||||
void setTopicType(int topicType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getShortTopic()const;
|
||||
@@ -59,6 +61,7 @@ namespace AlibabaCloud
|
||||
std::string name_;
|
||||
std::string where_;
|
||||
std::string productKey_;
|
||||
int topicType_;
|
||||
std::string accessKeyId_;
|
||||
std::string shortTopic_;
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_REGISTDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_REGISTDEVICEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_DELETEPRODUCTREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_DELETEPRODUCTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,22 +28,19 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT RegistDeviceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_IOT_EXPORT DeleteProductRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RegistDeviceRequest();
|
||||
~RegistDeviceRequest();
|
||||
DeleteProductRequest();
|
||||
~DeleteProductRequest();
|
||||
|
||||
std::string getDeviceName()const;
|
||||
void setDeviceName(const std::string& deviceName);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string deviceName_;
|
||||
std::string productKey_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
@@ -51,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_REGISTDEVICEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_DELETEPRODUCTREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYAPPLYSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_QUERYAPPLYSTATUSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_DELETEPRODUCTRESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_DELETEPRODUCTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,17 +29,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IOT_EXPORT QueryApplyStatusResult : public ServiceResult
|
||||
class ALIBABACLOUD_IOT_EXPORT DeleteProductResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryApplyStatusResult();
|
||||
explicit QueryApplyStatusResult(const std::string &payload);
|
||||
~QueryApplyStatusResult();
|
||||
DeleteProductResult();
|
||||
explicit DeleteProductResult(const std::string &payload);
|
||||
~DeleteProductResult();
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getFinish()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
@@ -47,11 +46,10 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool finish_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYAPPLYSTATUSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_DELETEPRODUCTRESULT_H_
|
||||
@@ -36,13 +36,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
std::string modified;
|
||||
std::string utcCreated;
|
||||
long createUserId;
|
||||
std::string name;
|
||||
std::string created;
|
||||
int topicType;
|
||||
std::string select;
|
||||
std::string shortTopic;
|
||||
std::string ruleDesc;
|
||||
std::string dataType;
|
||||
std::string utcModified;
|
||||
long id;
|
||||
std::string topic;
|
||||
std::string where;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
std::string modified;
|
||||
std::string utcCreated;
|
||||
long createUserId;
|
||||
std::string name;
|
||||
std::string created;
|
||||
@@ -43,6 +44,7 @@ namespace AlibabaCloud
|
||||
std::string shortTopic;
|
||||
std::string dataType;
|
||||
std::string ruleDesc;
|
||||
std::string utcModified;
|
||||
long id;
|
||||
std::string topic;
|
||||
std::string where;
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYAPPLYSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_QUERYAPPLYSTATUSREQUEST_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 QueryApplyStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryApplyStatusRequest();
|
||||
~QueryApplyStatusRequest();
|
||||
|
||||
long getApplyId()const;
|
||||
void setApplyId(long applyId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long applyId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYAPPLYSTATUSREQUEST_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYNAMEREQUEST_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYNAMEREQUEST_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 QueryDeviceByNameRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryDeviceByNameRequest();
|
||||
~QueryDeviceByNameRequest();
|
||||
|
||||
std::string getDeviceName()const;
|
||||
void setDeviceName(const std::string& deviceName);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string deviceName_;
|
||||
std::string productKey_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYNAMEREQUEST_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYNAMERESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYNAMERESULT_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 QueryDeviceByNameResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DeviceInfo
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string gmtCreate;
|
||||
std::string deviceId;
|
||||
std::string deviceSecret;
|
||||
std::string gmtModified;
|
||||
std::string deviceStatus;
|
||||
std::string clientIp;
|
||||
std::string productKey;
|
||||
std::string deviceName;
|
||||
};
|
||||
|
||||
|
||||
QueryDeviceByNameResult();
|
||||
explicit QueryDeviceByNameResult(const std::string &payload);
|
||||
~QueryDeviceByNameResult();
|
||||
DeviceInfo getDeviceInfo()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DeviceInfo deviceInfo_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYNAMERESULT_H_
|
||||
@@ -34,16 +34,17 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long gmtCreate;
|
||||
std::string description;
|
||||
std::string categoryKey;
|
||||
std::string productName;
|
||||
std::string aliyunCommodityCode;
|
||||
std::string productSecret;
|
||||
long gmtCreate;
|
||||
std::string categoryKey;
|
||||
bool id2;
|
||||
std::string protocolType;
|
||||
int nodeType;
|
||||
int dataFormat;
|
||||
std::string categoryName;
|
||||
std::string productSecret;
|
||||
std::string productKey;
|
||||
int deviceCount;
|
||||
};
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getRequestBase64Byte()const;
|
||||
void setRequestBase64Byte(const std::string& requestBase64Byte);
|
||||
std::string getTopic()const;
|
||||
void setTopic(const std::string& topic);
|
||||
std::string getDeviceName()const;
|
||||
void setDeviceName(const std::string& deviceName);
|
||||
std::string getProductKey()const;
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string requestBase64Byte_;
|
||||
std::string topic_;
|
||||
std::string deviceName_;
|
||||
std::string productKey_;
|
||||
int timeout_;
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IOT_MODEL_REGISTDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_IOT_MODEL_REGISTDEVICERESULT_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 RegistDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RegistDeviceResult();
|
||||
explicit RegistDeviceResult(const std::string &payload);
|
||||
~RegistDeviceResult();
|
||||
std::string getDeviceId()const;
|
||||
std::string getDeviceSecret()const;
|
||||
std::string getDeviceStatus()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getDeviceName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string deviceId_;
|
||||
std::string deviceSecret_;
|
||||
std::string deviceStatus_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
std::string deviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IOT_MODEL_REGISTDEVICERESULT_H_
|
||||
@@ -35,28 +35,19 @@ namespace AlibabaCloud
|
||||
UpdateProductRequest();
|
||||
~UpdateProductRequest();
|
||||
|
||||
long getCatId()const;
|
||||
void setCatId(long catId);
|
||||
int getNodeType()const;
|
||||
void setNodeType(int nodeType);
|
||||
std::string getProductName()const;
|
||||
void setProductName(const std::string& productName);
|
||||
std::string getExtProps()const;
|
||||
void setExtProps(const std::string& extProps);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
std::string getProductDesc()const;
|
||||
void setProductDesc(const std::string& productDesc);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long catId_;
|
||||
int nodeType_;
|
||||
std::string productName_;
|
||||
std::string extProps_;
|
||||
std::string description_;
|
||||
std::string productKey_;
|
||||
std::string productDesc_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setRuleId(long ruleId);
|
||||
std::string getProductKey()const;
|
||||
void setProductKey(const std::string& productKey);
|
||||
int getTopicType()const;
|
||||
void setTopicType(int topicType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getShortTopic()const;
|
||||
@@ -59,6 +61,7 @@ namespace AlibabaCloud
|
||||
std::string where_;
|
||||
long ruleId_;
|
||||
std::string productKey_;
|
||||
int topicType_;
|
||||
std::string accessKeyId_;
|
||||
std::string shortTopic_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user