Pub Support MessageExpiryInterval and Retained.

This commit is contained in:
sdk-team
2023-05-11 10:24:33 +00:00
parent aab920ef80
commit 76b653f2fe
77 changed files with 2537 additions and 109 deletions

View File

@@ -26,6 +26,8 @@
#include "model/AddDataForApiSourceResult.h"
#include "model/AddShareTaskDeviceRequest.h"
#include "model/AddShareTaskDeviceResult.h"
#include "model/AsyncRRpcRequest.h"
#include "model/AsyncRRpcResult.h"
#include "model/AttachDestinationRequest.h"
#include "model/AttachDestinationResult.h"
#include "model/AttachParserDataSourceRequest.h"
@@ -74,6 +76,8 @@
#include "model/BatchGetEdgeInstanceDeviceDriverResult.h"
#include "model/BatchGetEdgeInstanceDriverConfigsRequest.h"
#include "model/BatchGetEdgeInstanceDriverConfigsResult.h"
#include "model/BatchGrayMigrationDeviceRequest.h"
#include "model/BatchGrayMigrationDeviceResult.h"
#include "model/BatchImportDeviceRequest.h"
#include "model/BatchImportDeviceResult.h"
#include "model/BatchImportVehicleDeviceRequest.h"
@@ -222,6 +226,8 @@
#include "model/CreateThingModelResult.h"
#include "model/CreateThingScriptRequest.h"
#include "model/CreateThingScriptResult.h"
#include "model/CreateTopicConfigRequest.h"
#include "model/CreateTopicConfigResult.h"
#include "model/CreateTopicRouteTableRequest.h"
#include "model/CreateTopicRouteTableResult.h"
#include "model/DeleteClientIdsRequest.h"
@@ -298,6 +304,8 @@
#include "model/DeleteSubscribeRelationResult.h"
#include "model/DeleteThingModelRequest.h"
#include "model/DeleteThingModelResult.h"
#include "model/DeleteTopicConfigRequest.h"
#include "model/DeleteTopicConfigResult.h"
#include "model/DeleteTopicRouteTableRequest.h"
#include "model/DeleteTopicRouteTableResult.h"
#include "model/DetachDestinationRequest.h"
@@ -670,6 +678,8 @@
#include "model/QueryThingModelExtendConfigPublishedResult.h"
#include "model/QueryThingModelPublishedRequest.h"
#include "model/QueryThingModelPublishedResult.h"
#include "model/QueryTopicConfigRequest.h"
#include "model/QueryTopicConfigResult.h"
#include "model/QueryTopicReverseRouteTableRequest.h"
#include "model/QueryTopicReverseRouteTableResult.h"
#include "model/QueryTopicRouteTableRequest.h"
@@ -748,6 +758,8 @@
#include "model/SyncSpeechByCombinationResult.h"
#include "model/TestSpeechRequest.h"
#include "model/TestSpeechResult.h"
#include "model/TestSwitchRequest.h"
#include "model/TestSwitchResult.h"
#include "model/TransformClientIdRequest.h"
#include "model/TransformClientIdResult.h"
#include "model/TriggerSceneRuleRequest.h"
@@ -835,6 +847,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddShareTaskDeviceResult> AddShareTaskDeviceOutcome;
typedef std::future<AddShareTaskDeviceOutcome> AddShareTaskDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::AddShareTaskDeviceRequest&, const AddShareTaskDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddShareTaskDeviceAsyncHandler;
typedef Outcome<Error, Model::AsyncRRpcResult> AsyncRRpcOutcome;
typedef std::future<AsyncRRpcOutcome> AsyncRRpcOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::AsyncRRpcRequest&, const AsyncRRpcOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AsyncRRpcAsyncHandler;
typedef Outcome<Error, Model::AttachDestinationResult> AttachDestinationOutcome;
typedef std::future<AttachDestinationOutcome> AttachDestinationOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::AttachDestinationRequest&, const AttachDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachDestinationAsyncHandler;
@@ -907,6 +922,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::BatchGetEdgeInstanceDriverConfigsResult> BatchGetEdgeInstanceDriverConfigsOutcome;
typedef std::future<BatchGetEdgeInstanceDriverConfigsOutcome> BatchGetEdgeInstanceDriverConfigsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchGetEdgeInstanceDriverConfigsRequest&, const BatchGetEdgeInstanceDriverConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchGetEdgeInstanceDriverConfigsAsyncHandler;
typedef Outcome<Error, Model::BatchGrayMigrationDeviceResult> BatchGrayMigrationDeviceOutcome;
typedef std::future<BatchGrayMigrationDeviceOutcome> BatchGrayMigrationDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchGrayMigrationDeviceRequest&, const BatchGrayMigrationDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchGrayMigrationDeviceAsyncHandler;
typedef Outcome<Error, Model::BatchImportDeviceResult> BatchImportDeviceOutcome;
typedef std::future<BatchImportDeviceOutcome> BatchImportDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchImportDeviceRequest&, const BatchImportDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchImportDeviceAsyncHandler;
@@ -1129,6 +1147,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateThingScriptResult> CreateThingScriptOutcome;
typedef std::future<CreateThingScriptOutcome> CreateThingScriptOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateThingScriptRequest&, const CreateThingScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateThingScriptAsyncHandler;
typedef Outcome<Error, Model::CreateTopicConfigResult> CreateTopicConfigOutcome;
typedef std::future<CreateTopicConfigOutcome> CreateTopicConfigOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateTopicConfigRequest&, const CreateTopicConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTopicConfigAsyncHandler;
typedef Outcome<Error, Model::CreateTopicRouteTableResult> CreateTopicRouteTableOutcome;
typedef std::future<CreateTopicRouteTableOutcome> CreateTopicRouteTableOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateTopicRouteTableRequest&, const CreateTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTopicRouteTableAsyncHandler;
@@ -1243,6 +1264,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteThingModelResult> DeleteThingModelOutcome;
typedef std::future<DeleteThingModelOutcome> DeleteThingModelOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteThingModelRequest&, const DeleteThingModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteThingModelAsyncHandler;
typedef Outcome<Error, Model::DeleteTopicConfigResult> DeleteTopicConfigOutcome;
typedef std::future<DeleteTopicConfigOutcome> DeleteTopicConfigOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteTopicConfigRequest&, const DeleteTopicConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTopicConfigAsyncHandler;
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;
@@ -1801,6 +1825,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryThingModelPublishedResult> QueryThingModelPublishedOutcome;
typedef std::future<QueryThingModelPublishedOutcome> QueryThingModelPublishedOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryThingModelPublishedRequest&, const QueryThingModelPublishedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryThingModelPublishedAsyncHandler;
typedef Outcome<Error, Model::QueryTopicConfigResult> QueryTopicConfigOutcome;
typedef std::future<QueryTopicConfigOutcome> QueryTopicConfigOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryTopicConfigRequest&, const QueryTopicConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTopicConfigAsyncHandler;
typedef Outcome<Error, Model::QueryTopicReverseRouteTableResult> QueryTopicReverseRouteTableOutcome;
typedef std::future<QueryTopicReverseRouteTableOutcome> QueryTopicReverseRouteTableOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryTopicReverseRouteTableRequest&, const QueryTopicReverseRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTopicReverseRouteTableAsyncHandler;
@@ -1918,6 +1945,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TestSpeechResult> TestSpeechOutcome;
typedef std::future<TestSpeechOutcome> TestSpeechOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::TestSpeechRequest&, const TestSpeechOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TestSpeechAsyncHandler;
typedef Outcome<Error, Model::TestSwitchResult> TestSwitchOutcome;
typedef std::future<TestSwitchOutcome> TestSwitchOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::TestSwitchRequest&, const TestSwitchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TestSwitchAsyncHandler;
typedef Outcome<Error, Model::TransformClientIdResult> TransformClientIdOutcome;
typedef std::future<TransformClientIdOutcome> TransformClientIdOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::TransformClientIdRequest&, const TransformClientIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransformClientIdAsyncHandler;
@@ -2037,6 +2067,9 @@ namespace AlibabaCloud
AddShareTaskDeviceOutcome addShareTaskDevice(const Model::AddShareTaskDeviceRequest &request)const;
void addShareTaskDeviceAsync(const Model::AddShareTaskDeviceRequest& request, const AddShareTaskDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddShareTaskDeviceOutcomeCallable addShareTaskDeviceCallable(const Model::AddShareTaskDeviceRequest& request) const;
AsyncRRpcOutcome asyncRRpc(const Model::AsyncRRpcRequest &request)const;
void asyncRRpcAsync(const Model::AsyncRRpcRequest& request, const AsyncRRpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AsyncRRpcOutcomeCallable asyncRRpcCallable(const Model::AsyncRRpcRequest& request) const;
AttachDestinationOutcome attachDestination(const Model::AttachDestinationRequest &request)const;
void attachDestinationAsync(const Model::AttachDestinationRequest& request, const AttachDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachDestinationOutcomeCallable attachDestinationCallable(const Model::AttachDestinationRequest& request) const;
@@ -2109,6 +2142,9 @@ namespace AlibabaCloud
BatchGetEdgeInstanceDriverConfigsOutcome batchGetEdgeInstanceDriverConfigs(const Model::BatchGetEdgeInstanceDriverConfigsRequest &request)const;
void batchGetEdgeInstanceDriverConfigsAsync(const Model::BatchGetEdgeInstanceDriverConfigsRequest& request, const BatchGetEdgeInstanceDriverConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchGetEdgeInstanceDriverConfigsOutcomeCallable batchGetEdgeInstanceDriverConfigsCallable(const Model::BatchGetEdgeInstanceDriverConfigsRequest& request) const;
BatchGrayMigrationDeviceOutcome batchGrayMigrationDevice(const Model::BatchGrayMigrationDeviceRequest &request)const;
void batchGrayMigrationDeviceAsync(const Model::BatchGrayMigrationDeviceRequest& request, const BatchGrayMigrationDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchGrayMigrationDeviceOutcomeCallable batchGrayMigrationDeviceCallable(const Model::BatchGrayMigrationDeviceRequest& request) const;
BatchImportDeviceOutcome batchImportDevice(const Model::BatchImportDeviceRequest &request)const;
void batchImportDeviceAsync(const Model::BatchImportDeviceRequest& request, const BatchImportDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchImportDeviceOutcomeCallable batchImportDeviceCallable(const Model::BatchImportDeviceRequest& request) const;
@@ -2331,6 +2367,9 @@ namespace AlibabaCloud
CreateThingScriptOutcome createThingScript(const Model::CreateThingScriptRequest &request)const;
void createThingScriptAsync(const Model::CreateThingScriptRequest& request, const CreateThingScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateThingScriptOutcomeCallable createThingScriptCallable(const Model::CreateThingScriptRequest& request) const;
CreateTopicConfigOutcome createTopicConfig(const Model::CreateTopicConfigRequest &request)const;
void createTopicConfigAsync(const Model::CreateTopicConfigRequest& request, const CreateTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTopicConfigOutcomeCallable createTopicConfigCallable(const Model::CreateTopicConfigRequest& request) const;
CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const;
void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const;
@@ -2445,6 +2484,9 @@ namespace AlibabaCloud
DeleteThingModelOutcome deleteThingModel(const Model::DeleteThingModelRequest &request)const;
void deleteThingModelAsync(const Model::DeleteThingModelRequest& request, const DeleteThingModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteThingModelOutcomeCallable deleteThingModelCallable(const Model::DeleteThingModelRequest& request) const;
DeleteTopicConfigOutcome deleteTopicConfig(const Model::DeleteTopicConfigRequest &request)const;
void deleteTopicConfigAsync(const Model::DeleteTopicConfigRequest& request, const DeleteTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteTopicConfigOutcomeCallable deleteTopicConfigCallable(const Model::DeleteTopicConfigRequest& 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;
@@ -3003,6 +3045,9 @@ namespace AlibabaCloud
QueryThingModelPublishedOutcome queryThingModelPublished(const Model::QueryThingModelPublishedRequest &request)const;
void queryThingModelPublishedAsync(const Model::QueryThingModelPublishedRequest& request, const QueryThingModelPublishedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryThingModelPublishedOutcomeCallable queryThingModelPublishedCallable(const Model::QueryThingModelPublishedRequest& request) const;
QueryTopicConfigOutcome queryTopicConfig(const Model::QueryTopicConfigRequest &request)const;
void queryTopicConfigAsync(const Model::QueryTopicConfigRequest& request, const QueryTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryTopicConfigOutcomeCallable queryTopicConfigCallable(const Model::QueryTopicConfigRequest& request) const;
QueryTopicReverseRouteTableOutcome queryTopicReverseRouteTable(const Model::QueryTopicReverseRouteTableRequest &request)const;
void queryTopicReverseRouteTableAsync(const Model::QueryTopicReverseRouteTableRequest& request, const QueryTopicReverseRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryTopicReverseRouteTableOutcomeCallable queryTopicReverseRouteTableCallable(const Model::QueryTopicReverseRouteTableRequest& request) const;
@@ -3120,6 +3165,9 @@ namespace AlibabaCloud
TestSpeechOutcome testSpeech(const Model::TestSpeechRequest &request)const;
void testSpeechAsync(const Model::TestSpeechRequest& request, const TestSpeechAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TestSpeechOutcomeCallable testSpeechCallable(const Model::TestSpeechRequest& request) const;
TestSwitchOutcome testSwitch(const Model::TestSwitchRequest &request)const;
void testSwitchAsync(const Model::TestSwitchRequest& request, const TestSwitchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TestSwitchOutcomeCallable testSwitchCallable(const Model::TestSwitchRequest& request) const;
TransformClientIdOutcome transformClientId(const Model::TransformClientIdRequest &request)const;
void transformClientIdAsync(const Model::TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransformClientIdOutcomeCallable transformClientIdCallable(const Model::TransformClientIdRequest& request) const;

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_ASYNCRRPCREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_ASYNCRRPCREQUEST_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 AsyncRRpcRequest : public RpcServiceRequest
{
public:
AsyncRRpcRequest();
~AsyncRRpcRequest();
std::string getMessageContent()const;
void setMessageContent(const std::string& messageContent);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getExtInfo()const;
void setExtInfo(const std::string& extInfo);
std::string getTopicFullName()const;
void setTopicFullName(const std::string& topicFullName);
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 messageContent_;
std::string accessKeyId_;
std::string iotInstanceId_;
std::string extInfo_;
std::string topicFullName_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_ASYNCRRPCREQUEST_H_

View File

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

View File

@@ -34,8 +34,16 @@ namespace AlibabaCloud
public:
struct Data
{
struct InvalidDetailListItem
{
std::string errorMsg;
std::string nickName;
std::string deviceName;
};
std::vector<std::string> invalidDeviceNameList;
long applyId;
std::vector<InvalidDetailListItem> invalidDetailList;
std::vector<std::string> repeatedDeviceNameList;
std::vector<std::string> invalidDeviceNicknameList;
};

View File

@@ -42,8 +42,6 @@ namespace AlibabaCloud
BatchCheckImportDeviceRequest();
~BatchCheckImportDeviceRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -56,7 +54,6 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string accessKeyId_;
std::string iotInstanceId_;
std::string productKey_;
std::vector<DeviceList> deviceList_;

View File

@@ -34,7 +34,15 @@ namespace AlibabaCloud
public:
struct Data
{
struct InvalidDetailListItem
{
std::string deviceSecret;
std::string errorMsg;
std::string sn;
std::string deviceName;
};
std::vector<std::string> invalidDeviceNameList;
std::vector<InvalidDetailListItem> invalidDetailList;
std::vector<std::string> repeatedDeviceNameList;
std::vector<std::string> invalidDeviceSecretList;
std::vector<std::string> invalidSnList;

View File

@@ -33,6 +33,7 @@ namespace AlibabaCloud
public:
struct DeviceList
{
std::string deviceName;
std::string deviceId;
std::string manufacturer;
std::string deviceModel;
@@ -42,8 +43,6 @@ namespace AlibabaCloud
BatchCheckVehicleDeviceRequest();
~BatchCheckVehicleDeviceRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -56,7 +55,6 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string accessKeyId_;
std::string iotInstanceId_;
std::string productKey_;
std::vector<DeviceList> deviceList_;

View File

@@ -34,9 +34,20 @@ namespace AlibabaCloud
public:
struct Data
{
struct InvalidDetailListItem
{
std::string deviceModel;
std::string deviceId;
std::string manufacturer;
std::string errorMsg;
std::string deviceName;
};
std::vector<std::string> invalidDeviceNameList;
std::vector<std::string> invalidDeviceIdList;
std::vector<std::string> repeatedDeviceIdList;
std::vector<std::string> invalidManufacturerList;
std::vector<InvalidDetailListItem> invalidDetailList;
std::vector<std::string> repeatedDeviceNameList;
std::vector<std::string> invalidDeviceModelList;
};

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHGRAYMIGRATIONDEVICEREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHGRAYMIGRATIONDEVICEREQUEST_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 BatchGrayMigrationDeviceRequest : public RpcServiceRequest
{
public:
BatchGrayMigrationDeviceRequest();
~BatchGrayMigrationDeviceRequest();
std::vector<std::string> getDeviceNames()const;
void setDeviceNames(const std::vector<std::string>& deviceNames);
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);
private:
std::vector<std::string> deviceNames_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHGRAYMIGRATIONDEVICEREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* 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_BATCHGRAYMIGRATIONDEVICERESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHGRAYMIGRATIONDEVICERESULT_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 BatchGrayMigrationDeviceResult : public ServiceResult
{
public:
struct Data
{
struct Item
{
std::string status;
std::string message;
int code;
std::string deviceName;
};
std::vector<Item> details;
};
BatchGrayMigrationDeviceResult();
explicit BatchGrayMigrationDeviceResult(const std::string &payload);
~BatchGrayMigrationDeviceResult();
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_BATCHGRAYMIGRATIONDEVICERESULT_H_

View File

@@ -42,8 +42,6 @@ namespace AlibabaCloud
BatchImportDeviceRequest();
~BatchImportDeviceRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -56,7 +54,6 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string accessKeyId_;
std::string iotInstanceId_;
std::string productKey_;
std::vector<DeviceList> deviceList_;

View File

@@ -34,8 +34,16 @@ namespace AlibabaCloud
public:
struct Data
{
struct InvalidDetailListItem
{
std::string deviceSecret;
std::string errorMsg;
std::string sn;
std::string deviceName;
};
std::vector<std::string> invalidDeviceNameList;
long applyId;
std::vector<InvalidDetailListItem> invalidDetailList;
std::vector<std::string> repeatedDeviceNameList;
std::vector<std::string> invalidDeviceSecretList;
std::vector<std::string> invalidSnList;

View File

@@ -33,6 +33,7 @@ namespace AlibabaCloud
public:
struct DeviceList
{
std::string deviceName;
std::string deviceId;
std::string manufacturer;
std::string deviceModel;
@@ -42,8 +43,6 @@ namespace AlibabaCloud
BatchImportVehicleDeviceRequest();
~BatchImportVehicleDeviceRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -56,7 +55,6 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
private:
std::string accessKeyId_;
std::string iotInstanceId_;
std::string productKey_;
std::vector<DeviceList> deviceList_;

View File

@@ -34,7 +34,22 @@ namespace AlibabaCloud
public:
struct Data
{
struct InvalidDetailListItem
{
std::string deviceModel;
std::string deviceId;
std::string manufacturer;
std::string errorMsg;
std::string deviceName;
};
std::vector<std::string> invalidDeviceNameList;
std::vector<std::string> invalidDeviceIdList;
std::vector<std::string> repeatedDeviceIdList;
long applyId;
std::vector<std::string> invalidManufacturerList;
std::vector<InvalidDetailListItem> invalidDetailList;
std::vector<std::string> repeatedDeviceNameList;
std::vector<std::string> invalidDeviceModelList;
};

View File

@@ -37,12 +37,16 @@ namespace AlibabaCloud
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getType()const;
void setType(const std::string& type);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
std::string getSubBizCode()const;
void setSubBizCode(const std::string& subBizCode);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -50,9 +54,11 @@ namespace AlibabaCloud
private:
std::string realTenantId_;
std::string type_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string groupName_;
std::string subBizCode_;
std::string apiProduct_;
std::string apiRevision_;

View File

@@ -45,8 +45,12 @@ namespace AlibabaCloud
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTopicShortName()const;
void setTopicShortName(const std::string& topicShortName);
bool getEnableProxySubscribe()const;
void setEnableProxySubscribe(bool enableProxySubscribe);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getCodec()const;
void setCodec(const std::string& codec);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -62,7 +66,9 @@ namespace AlibabaCloud
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string topicShortName_;
bool enableProxySubscribe_;
std::string productKey_;
std::string codec_;
std::string apiProduct_;
std::string apiRevision_;
std::string operation_;

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_CREATETOPICCONFIGREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_CREATETOPICCONFIGREQUEST_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 CreateTopicConfigRequest : public RpcServiceRequest
{
public:
CreateTopicConfigRequest();
~CreateTopicConfigRequest();
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTopicFullName()const;
void setTopicFullName(const std::string& topicFullName);
bool getEnableBroadcast()const;
void setEnableBroadcast(bool enableBroadcast);
bool getEnableProxySubscribe()const;
void setEnableProxySubscribe(bool enableProxySubscribe);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getCodec()const;
void setCodec(const std::string& codec);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::string getOperation()const;
void setOperation(const std::string& operation);
private:
std::string description_;
std::string iotInstanceId_;
std::string topicFullName_;
bool enableBroadcast_;
bool enableProxySubscribe_;
std::string productKey_;
std::string codec_;
std::string apiProduct_;
std::string apiRevision_;
std::string operation_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_CREATETOPICCONFIGREQUEST_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_CREATETOPICCONFIGRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_CREATETOPICCONFIGRESULT_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 CreateTopicConfigResult : public ServiceResult
{
public:
CreateTopicConfigResult();
explicit CreateTopicConfigResult(const std::string &payload);
~CreateTopicConfigResult();
std::string getMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_CREATETOPICCONFIGRESULT_H_

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_DELETETOPICCONFIGREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_DELETETOPICCONFIGREQUEST_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 DeleteTopicConfigRequest : public RpcServiceRequest
{
public:
DeleteTopicConfigRequest();
~DeleteTopicConfigRequest();
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTopicFullName()const;
void setTopicFullName(const std::string& topicFullName);
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);
private:
std::string iotInstanceId_;
std::string topicFullName_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_DELETETOPICCONFIGREQUEST_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_DELETETOPICCONFIGRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_DELETETOPICCONFIGRESULT_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 DeleteTopicConfigResult : public ServiceResult
{
public:
DeleteTopicConfigResult();
explicit DeleteTopicConfigResult(const std::string &payload);
~DeleteTopicConfigResult();
std::string getMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_DELETETOPICCONFIGRESULT_H_

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getDTInstanceId()const;
void setDTInstanceId(const std::string& dTInstanceId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
private:
std::string realTenantId_;
std::string dTInstanceId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -53,6 +53,8 @@ namespace AlibabaCloud
void setApiRevision(const std::string& apiRevision);
std::string getTargetUid()const;
void setTargetUid(const std::string& targetUid);
std::string getSourceRegion()const;
void setSourceRegion(const std::string& sourceRegion);
int getStatus()const;
void setStatus(int status);
@@ -66,6 +68,7 @@ namespace AlibabaCloud
std::string apiProduct_;
std::string apiRevision_;
std::string targetUid_;
std::string sourceRegion_;
int status_;
};

View File

@@ -34,9 +34,16 @@ namespace AlibabaCloud
public:
struct Data
{
struct InvalidDetailListItem
{
std::string errorMsg;
std::string nickName;
std::string deviceName;
};
std::string status;
std::vector<std::string> invalidList;
std::vector<std::string> validList;
std::vector<InvalidDetailListItem> invalidDetailList;
};

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getType()const;
void setType(const std::string& type);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
@@ -49,6 +51,8 @@ namespace AlibabaCloud
void setCurrentPage(int currentPage);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
std::string getSubBizCode()const;
void setSubBizCode(const std::string& subBizCode);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -56,12 +60,14 @@ namespace AlibabaCloud
private:
std::string realTenantId_;
std::string type_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
int pageSize_;
bool fuzzy_;
int currentPage_;
std::string groupName_;
std::string subBizCode_;
std::string apiProduct_;
std::string apiRevision_;

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setProductKey(const std::string& productKey);
int getAsc()const;
void setAsc(int asc);
bool getNeedIopsCheck()const;
void setNeedIopsCheck(bool needIopsCheck);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -78,6 +80,7 @@ namespace AlibabaCloud
long endTime_;
std::string productKey_;
int asc_;
bool needIopsCheck_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setProductKey(const std::string& productKey);
int getAsc()const;
void setAsc(int asc);
bool getNeedIopsCheck()const;
void setNeedIopsCheck(bool needIopsCheck);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -76,6 +78,7 @@ namespace AlibabaCloud
long endTime_;
std::string productKey_;
int asc_;
bool needIopsCheck_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setProductKey(const std::string& productKey);
int getAsc()const;
void setAsc(int asc);
bool getNeedIopsCheck()const;
void setNeedIopsCheck(bool needIopsCheck);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -76,6 +78,7 @@ namespace AlibabaCloud
long endTime_;
std::string productKey_;
int asc_;
bool needIopsCheck_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;

View File

@@ -35,7 +35,9 @@ namespace AlibabaCloud
struct ProductTopicInfo
{
std::string desc;
std::string codec;
std::string topicShortName;
bool enableProxySubscribe;
std::string operation;
std::string id;
std::string productKey;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYTOPICCONFIGREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYTOPICCONFIGREQUEST_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 QueryTopicConfigRequest : public RpcServiceRequest
{
public:
QueryTopicConfigRequest();
~QueryTopicConfigRequest();
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);
private:
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTOPICCONFIGREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* 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_QUERYTOPICCONFIGRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYTOPICCONFIGRESULT_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 QueryTopicConfigResult : public ServiceResult
{
public:
struct TopicConfigInfo
{
std::string codec;
std::string description;
bool enableProxySubscribe;
std::string operation;
std::string productKey;
bool enableBroadcast;
std::string topicFullName;
};
QueryTopicConfigResult();
explicit QueryTopicConfigResult(const std::string &payload);
~QueryTopicConfigResult();
std::string getMessage()const;
std::vector<TopicConfigInfo> getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<TopicConfigInfo> data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTOPICCONFIGRESULT_H_

View File

@@ -37,8 +37,6 @@ namespace AlibabaCloud
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
@@ -54,7 +52,6 @@ namespace AlibabaCloud
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;

View File

@@ -34,20 +34,25 @@ namespace AlibabaCloud
public:
struct Data
{
std::string deviceModel;
std::string status;
std::string authCode;
std::string deviceId;
long createTime;
std::string vehicleColour;
std::string city;
std::string province;
struct JtProtocolDeviceData
{
std::string deviceModel;
std::string status;
std::string registerTime;
std::string authCode;
std::string deviceId;
std::string manufacturer;
std::string vehicleColour;
std::string city;
std::string province;
std::string vehicleNumber;
};
std::string iotId;
long registerTime;
long modifiedTime;
std::string manufacturer;
JtProtocolDeviceData jtProtocolDeviceData;
long createTime;
std::string protocol;
std::string productKey;
std::string vehicleNumber;
std::string deviceName;
};

View File

@@ -0,0 +1,63 @@
/*
* 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_TESTSWITCHREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_TESTSWITCHREQUEST_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 TestSwitchRequest : public RpcServiceRequest
{
public:
TestSwitchRequest();
~TestSwitchRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
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 accessKeyId_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_TESTSWITCHREQUEST_H_

View File

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

View File

@@ -43,6 +43,10 @@ namespace AlibabaCloud
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTopicShortName()const;
void setTopicShortName(const std::string& topicShortName);
bool getEnableProxySubscribe()const;
void setEnableProxySubscribe(bool enableProxySubscribe);
std::string getCodec()const;
void setCodec(const std::string& codec);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
@@ -57,6 +61,8 @@ namespace AlibabaCloud
std::string topicId_;
std::string iotInstanceId_;
std::string topicShortName_;
bool enableProxySubscribe_;
std::string codec_;
std::string apiProduct_;
std::string apiRevision_;
std::string operation_;

View File

@@ -35,26 +35,38 @@ namespace AlibabaCloud
UpdateTopicConfigRequest();
~UpdateTopicConfigRequest();
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getTopicFullName()const;
void setTopicFullName(const std::string& topicFullName);
bool getEnableBroadcast()const;
void setEnableBroadcast(bool enableBroadcast);
bool getEnableProxySubscribe()const;
void setEnableProxySubscribe(bool enableProxySubscribe);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getCodec()const;
void setCodec(const std::string& codec);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::string getOperation()const;
void setOperation(const std::string& operation);
private:
std::string description_;
std::string iotInstanceId_;
std::string topicFullName_;
bool enableBroadcast_;
bool enableProxySubscribe_;
std::string productKey_;
std::string codec_;
std::string apiProduct_;
std::string apiRevision_;
std::string operation_;
};
}

View File

@@ -37,14 +37,14 @@ namespace AlibabaCloud
UpdateTopicConfigResult();
explicit UpdateTopicConfigResult(const std::string &payload);
~UpdateTopicConfigResult();
std::string getErrorMessage()const;
std::string getMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMessage_;
std::string message_;
std::string code_;
bool success_;