diff --git a/CHANGELOG b/CHANGELOG index 190e7e0c0..e99b1d2f5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-11 Version: 1.36.1175 +- Add new api for rule. + 2022-07-11 Version: 1.36.1174 - Add open file detect api. diff --git a/VERSION b/VERSION index 99fb603dc..f48bfeb9c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1174 \ No newline at end of file +1.36.1175 \ No newline at end of file diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index dd10a4918..7a9b92fe0 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -23,6 +23,10 @@ set(iot_public_header set(iot_public_header_model include/alibabacloud/iot/model/AddDataForApiSourceRequest.h include/alibabacloud/iot/model/AddDataForApiSourceResult.h + include/alibabacloud/iot/model/AttachDestinationRequest.h + include/alibabacloud/iot/model/AttachDestinationResult.h + include/alibabacloud/iot/model/AttachParserDataSourceRequest.h + include/alibabacloud/iot/model/AttachParserDataSourceResult.h include/alibabacloud/iot/model/BatchAddDataForApiSourceRequest.h include/alibabacloud/iot/model/BatchAddDataForApiSourceResult.h include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h @@ -131,6 +135,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateDataAPIServiceResult.h include/alibabacloud/iot/model/CreateDataSourceItemRequest.h include/alibabacloud/iot/model/CreateDataSourceItemResult.h + include/alibabacloud/iot/model/CreateDestinationRequest.h + include/alibabacloud/iot/model/CreateDestinationResult.h include/alibabacloud/iot/model/CreateDeviceDistributeJobRequest.h include/alibabacloud/iot/model/CreateDeviceDistributeJobResult.h include/alibabacloud/iot/model/CreateDeviceDynamicGroupRequest.h @@ -167,6 +173,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobResult.h include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h include/alibabacloud/iot/model/CreateOTAVerifyJobResult.h + include/alibabacloud/iot/model/CreateParserRequest.h + include/alibabacloud/iot/model/CreateParserResult.h + include/alibabacloud/iot/model/CreateParserDataSourceRequest.h + include/alibabacloud/iot/model/CreateParserDataSourceResult.h include/alibabacloud/iot/model/CreateProductRequest.h include/alibabacloud/iot/model/CreateProductResult.h include/alibabacloud/iot/model/CreateProductDistributeJobRequest.h @@ -207,6 +217,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteConsumerGroupResult.h include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationRequest.h include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationResult.h + include/alibabacloud/iot/model/DeleteDataSourceItemRequest.h + include/alibabacloud/iot/model/DeleteDataSourceItemResult.h + include/alibabacloud/iot/model/DeleteDestinationRequest.h + include/alibabacloud/iot/model/DeleteDestinationResult.h include/alibabacloud/iot/model/DeleteDeviceRequest.h include/alibabacloud/iot/model/DeleteDeviceResult.h include/alibabacloud/iot/model/DeleteDeviceDistributeJobRequest.h @@ -237,6 +251,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteOTAFirmwareResult.h include/alibabacloud/iot/model/DeleteOTAModuleRequest.h include/alibabacloud/iot/model/DeleteOTAModuleResult.h + include/alibabacloud/iot/model/DeleteParserRequest.h + include/alibabacloud/iot/model/DeleteParserResult.h + include/alibabacloud/iot/model/DeleteParserDataSourceRequest.h + include/alibabacloud/iot/model/DeleteParserDataSourceResult.h include/alibabacloud/iot/model/DeleteProductRequest.h include/alibabacloud/iot/model/DeleteProductResult.h include/alibabacloud/iot/model/DeleteProductTagsRequest.h @@ -267,6 +285,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteThingModelResult.h include/alibabacloud/iot/model/DeleteTopicRouteTableRequest.h include/alibabacloud/iot/model/DeleteTopicRouteTableResult.h + include/alibabacloud/iot/model/DetachDestinationRequest.h + include/alibabacloud/iot/model/DetachDestinationResult.h + include/alibabacloud/iot/model/DetachParserDataSourceRequest.h + include/alibabacloud/iot/model/DetachParserDataSourceResult.h include/alibabacloud/iot/model/DisableDeviceTunnelRequest.h include/alibabacloud/iot/model/DisableDeviceTunnelResult.h include/alibabacloud/iot/model/DisableDeviceTunnelShareRequest.h @@ -291,6 +313,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h include/alibabacloud/iot/model/GetDataAPIServiceDetailRequest.h include/alibabacloud/iot/model/GetDataAPIServiceDetailResult.h + include/alibabacloud/iot/model/GetDestinationRequest.h + include/alibabacloud/iot/model/GetDestinationResult.h include/alibabacloud/iot/model/GetDeviceShadowRequest.h include/alibabacloud/iot/model/GetDeviceShadowResult.h include/alibabacloud/iot/model/GetDeviceStatusRequest.h @@ -311,6 +335,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/GetGatewayBySubDeviceResult.h include/alibabacloud/iot/model/GetLoraNodesTaskRequest.h include/alibabacloud/iot/model/GetLoraNodesTaskResult.h + include/alibabacloud/iot/model/GetParserRequest.h + include/alibabacloud/iot/model/GetParserResult.h + include/alibabacloud/iot/model/GetParserDataSourceRequest.h + include/alibabacloud/iot/model/GetParserDataSourceResult.h include/alibabacloud/iot/model/GetRuleRequest.h include/alibabacloud/iot/model/GetRuleResult.h include/alibabacloud/iot/model/GetRuleActionRequest.h @@ -355,6 +383,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListAnalyticsDataResult.h include/alibabacloud/iot/model/ListDataSourceItemRequest.h include/alibabacloud/iot/model/ListDataSourceItemResult.h + include/alibabacloud/iot/model/ListDestinationRequest.h + include/alibabacloud/iot/model/ListDestinationResult.h include/alibabacloud/iot/model/ListDeviceDistributeJobRequest.h include/alibabacloud/iot/model/ListDeviceDistributeJobResult.h include/alibabacloud/iot/model/ListDistributedDeviceRequest.h @@ -377,6 +407,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListOTATaskByJobResult.h include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceRequest.h include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceResult.h + include/alibabacloud/iot/model/ListParserRequest.h + include/alibabacloud/iot/model/ListParserResult.h + include/alibabacloud/iot/model/ListParserDataSourceRequest.h + include/alibabacloud/iot/model/ListParserDataSourceResult.h + include/alibabacloud/iot/model/ListParserDestinationRequest.h + include/alibabacloud/iot/model/ListParserDestinationResult.h include/alibabacloud/iot/model/ListProductByTagsRequest.h include/alibabacloud/iot/model/ListProductByTagsResult.h include/alibabacloud/iot/model/ListProductTagsRequest.h @@ -403,6 +439,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/PubResult.h include/alibabacloud/iot/model/PubBroadcastRequest.h include/alibabacloud/iot/model/PubBroadcastResult.h + include/alibabacloud/iot/model/PublishScriptRequest.h + include/alibabacloud/iot/model/PublishScriptResult.h include/alibabacloud/iot/model/PublishStudioAppRequest.h include/alibabacloud/iot/model/PublishStudioAppResult.h include/alibabacloud/iot/model/PublishThingModelRequest.h @@ -623,6 +661,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/ReupgradeOTATaskResult.h include/alibabacloud/iot/model/SaveDevicePropRequest.h include/alibabacloud/iot/model/SaveDevicePropResult.h + include/alibabacloud/iot/model/SaveScriptRequest.h + include/alibabacloud/iot/model/SaveScriptResult.h include/alibabacloud/iot/model/SetDeviceDesiredPropertyRequest.h include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h include/alibabacloud/iot/model/SetDeviceGroupTagsRequest.h @@ -643,8 +683,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/SpeechByCombinationResult.h include/alibabacloud/iot/model/SpeechBySynthesisRequest.h include/alibabacloud/iot/model/SpeechBySynthesisResult.h + include/alibabacloud/iot/model/StartParserRequest.h + include/alibabacloud/iot/model/StartParserResult.h include/alibabacloud/iot/model/StartRuleRequest.h include/alibabacloud/iot/model/StartRuleResult.h + include/alibabacloud/iot/model/StopParserRequest.h + include/alibabacloud/iot/model/StopParserResult.h include/alibabacloud/iot/model/StopRuleRequest.h include/alibabacloud/iot/model/StopRuleResult.h include/alibabacloud/iot/model/SubscribeTopicRequest.h @@ -669,6 +713,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/UnbindSceneRuleFromEdgeInstanceResult.h include/alibabacloud/iot/model/UpdateConsumerGroupRequest.h include/alibabacloud/iot/model/UpdateConsumerGroupResult.h + include/alibabacloud/iot/model/UpdateDestinationRequest.h + include/alibabacloud/iot/model/UpdateDestinationResult.h include/alibabacloud/iot/model/UpdateDeviceGroupRequest.h include/alibabacloud/iot/model/UpdateDeviceGroupResult.h include/alibabacloud/iot/model/UpdateDeviceShadowRequest.h @@ -685,6 +731,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/UpdateJobResult.h include/alibabacloud/iot/model/UpdateOTAModuleRequest.h include/alibabacloud/iot/model/UpdateOTAModuleResult.h + include/alibabacloud/iot/model/UpdateParserRequest.h + include/alibabacloud/iot/model/UpdateParserResult.h + include/alibabacloud/iot/model/UpdateParserDataSourceRequest.h + include/alibabacloud/iot/model/UpdateParserDataSourceResult.h include/alibabacloud/iot/model/UpdateProductRequest.h include/alibabacloud/iot/model/UpdateProductResult.h include/alibabacloud/iot/model/UpdateProductFilterConfigRequest.h @@ -720,6 +770,10 @@ set(iot_src src/IotClient.cc src/model/AddDataForApiSourceRequest.cc src/model/AddDataForApiSourceResult.cc + src/model/AttachDestinationRequest.cc + src/model/AttachDestinationResult.cc + src/model/AttachParserDataSourceRequest.cc + src/model/AttachParserDataSourceResult.cc src/model/BatchAddDataForApiSourceRequest.cc src/model/BatchAddDataForApiSourceResult.cc src/model/BatchAddDeviceGroupRelationsRequest.cc @@ -828,6 +882,8 @@ set(iot_src src/model/CreateDataAPIServiceResult.cc src/model/CreateDataSourceItemRequest.cc src/model/CreateDataSourceItemResult.cc + src/model/CreateDestinationRequest.cc + src/model/CreateDestinationResult.cc src/model/CreateDeviceDistributeJobRequest.cc src/model/CreateDeviceDistributeJobResult.cc src/model/CreateDeviceDynamicGroupRequest.cc @@ -864,6 +920,10 @@ set(iot_src src/model/CreateOTAStaticUpgradeJobResult.cc src/model/CreateOTAVerifyJobRequest.cc src/model/CreateOTAVerifyJobResult.cc + src/model/CreateParserRequest.cc + src/model/CreateParserResult.cc + src/model/CreateParserDataSourceRequest.cc + src/model/CreateParserDataSourceResult.cc src/model/CreateProductRequest.cc src/model/CreateProductResult.cc src/model/CreateProductDistributeJobRequest.cc @@ -904,6 +964,10 @@ set(iot_src src/model/DeleteConsumerGroupResult.cc src/model/DeleteConsumerGroupSubscribeRelationRequest.cc src/model/DeleteConsumerGroupSubscribeRelationResult.cc + src/model/DeleteDataSourceItemRequest.cc + src/model/DeleteDataSourceItemResult.cc + src/model/DeleteDestinationRequest.cc + src/model/DeleteDestinationResult.cc src/model/DeleteDeviceRequest.cc src/model/DeleteDeviceResult.cc src/model/DeleteDeviceDistributeJobRequest.cc @@ -934,6 +998,10 @@ set(iot_src src/model/DeleteOTAFirmwareResult.cc src/model/DeleteOTAModuleRequest.cc src/model/DeleteOTAModuleResult.cc + src/model/DeleteParserRequest.cc + src/model/DeleteParserResult.cc + src/model/DeleteParserDataSourceRequest.cc + src/model/DeleteParserDataSourceResult.cc src/model/DeleteProductRequest.cc src/model/DeleteProductResult.cc src/model/DeleteProductTagsRequest.cc @@ -964,6 +1032,10 @@ set(iot_src src/model/DeleteThingModelResult.cc src/model/DeleteTopicRouteTableRequest.cc src/model/DeleteTopicRouteTableResult.cc + src/model/DetachDestinationRequest.cc + src/model/DetachDestinationResult.cc + src/model/DetachParserDataSourceRequest.cc + src/model/DetachParserDataSourceResult.cc src/model/DisableDeviceTunnelRequest.cc src/model/DisableDeviceTunnelResult.cc src/model/DisableDeviceTunnelShareRequest.cc @@ -988,6 +1060,8 @@ set(iot_src src/model/GenerateOTAUploadURLResult.cc src/model/GetDataAPIServiceDetailRequest.cc src/model/GetDataAPIServiceDetailResult.cc + src/model/GetDestinationRequest.cc + src/model/GetDestinationResult.cc src/model/GetDeviceShadowRequest.cc src/model/GetDeviceShadowResult.cc src/model/GetDeviceStatusRequest.cc @@ -1008,6 +1082,10 @@ set(iot_src src/model/GetGatewayBySubDeviceResult.cc src/model/GetLoraNodesTaskRequest.cc src/model/GetLoraNodesTaskResult.cc + src/model/GetParserRequest.cc + src/model/GetParserResult.cc + src/model/GetParserDataSourceRequest.cc + src/model/GetParserDataSourceResult.cc src/model/GetRuleRequest.cc src/model/GetRuleResult.cc src/model/GetRuleActionRequest.cc @@ -1052,6 +1130,8 @@ set(iot_src src/model/ListAnalyticsDataResult.cc src/model/ListDataSourceItemRequest.cc src/model/ListDataSourceItemResult.cc + src/model/ListDestinationRequest.cc + src/model/ListDestinationResult.cc src/model/ListDeviceDistributeJobRequest.cc src/model/ListDeviceDistributeJobResult.cc src/model/ListDistributedDeviceRequest.cc @@ -1074,6 +1154,12 @@ set(iot_src src/model/ListOTATaskByJobResult.cc src/model/ListOTAUnfinishedTaskByDeviceRequest.cc src/model/ListOTAUnfinishedTaskByDeviceResult.cc + src/model/ListParserRequest.cc + src/model/ListParserResult.cc + src/model/ListParserDataSourceRequest.cc + src/model/ListParserDataSourceResult.cc + src/model/ListParserDestinationRequest.cc + src/model/ListParserDestinationResult.cc src/model/ListProductByTagsRequest.cc src/model/ListProductByTagsResult.cc src/model/ListProductTagsRequest.cc @@ -1100,6 +1186,8 @@ set(iot_src src/model/PubResult.cc src/model/PubBroadcastRequest.cc src/model/PubBroadcastResult.cc + src/model/PublishScriptRequest.cc + src/model/PublishScriptResult.cc src/model/PublishStudioAppRequest.cc src/model/PublishStudioAppResult.cc src/model/PublishThingModelRequest.cc @@ -1320,6 +1408,8 @@ set(iot_src src/model/ReupgradeOTATaskResult.cc src/model/SaveDevicePropRequest.cc src/model/SaveDevicePropResult.cc + src/model/SaveScriptRequest.cc + src/model/SaveScriptResult.cc src/model/SetDeviceDesiredPropertyRequest.cc src/model/SetDeviceDesiredPropertyResult.cc src/model/SetDeviceGroupTagsRequest.cc @@ -1340,8 +1430,12 @@ set(iot_src src/model/SpeechByCombinationResult.cc src/model/SpeechBySynthesisRequest.cc src/model/SpeechBySynthesisResult.cc + src/model/StartParserRequest.cc + src/model/StartParserResult.cc src/model/StartRuleRequest.cc src/model/StartRuleResult.cc + src/model/StopParserRequest.cc + src/model/StopParserResult.cc src/model/StopRuleRequest.cc src/model/StopRuleResult.cc src/model/SubscribeTopicRequest.cc @@ -1366,6 +1460,8 @@ set(iot_src src/model/UnbindSceneRuleFromEdgeInstanceResult.cc src/model/UpdateConsumerGroupRequest.cc src/model/UpdateConsumerGroupResult.cc + src/model/UpdateDestinationRequest.cc + src/model/UpdateDestinationResult.cc src/model/UpdateDeviceGroupRequest.cc src/model/UpdateDeviceGroupResult.cc src/model/UpdateDeviceShadowRequest.cc @@ -1382,6 +1478,10 @@ set(iot_src src/model/UpdateJobResult.cc src/model/UpdateOTAModuleRequest.cc src/model/UpdateOTAModuleResult.cc + src/model/UpdateParserRequest.cc + src/model/UpdateParserResult.cc + src/model/UpdateParserDataSourceRequest.cc + src/model/UpdateParserDataSourceResult.cc src/model/UpdateProductRequest.cc src/model/UpdateProductResult.cc src/model/UpdateProductFilterConfigRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index f5835dde1..2d1b6d3cc 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -24,6 +24,10 @@ #include "IotExport.h" #include "model/AddDataForApiSourceRequest.h" #include "model/AddDataForApiSourceResult.h" +#include "model/AttachDestinationRequest.h" +#include "model/AttachDestinationResult.h" +#include "model/AttachParserDataSourceRequest.h" +#include "model/AttachParserDataSourceResult.h" #include "model/BatchAddDataForApiSourceRequest.h" #include "model/BatchAddDataForApiSourceResult.h" #include "model/BatchAddDeviceGroupRelationsRequest.h" @@ -132,6 +136,8 @@ #include "model/CreateDataAPIServiceResult.h" #include "model/CreateDataSourceItemRequest.h" #include "model/CreateDataSourceItemResult.h" +#include "model/CreateDestinationRequest.h" +#include "model/CreateDestinationResult.h" #include "model/CreateDeviceDistributeJobRequest.h" #include "model/CreateDeviceDistributeJobResult.h" #include "model/CreateDeviceDynamicGroupRequest.h" @@ -168,6 +174,10 @@ #include "model/CreateOTAStaticUpgradeJobResult.h" #include "model/CreateOTAVerifyJobRequest.h" #include "model/CreateOTAVerifyJobResult.h" +#include "model/CreateParserRequest.h" +#include "model/CreateParserResult.h" +#include "model/CreateParserDataSourceRequest.h" +#include "model/CreateParserDataSourceResult.h" #include "model/CreateProductRequest.h" #include "model/CreateProductResult.h" #include "model/CreateProductDistributeJobRequest.h" @@ -208,6 +218,10 @@ #include "model/DeleteConsumerGroupResult.h" #include "model/DeleteConsumerGroupSubscribeRelationRequest.h" #include "model/DeleteConsumerGroupSubscribeRelationResult.h" +#include "model/DeleteDataSourceItemRequest.h" +#include "model/DeleteDataSourceItemResult.h" +#include "model/DeleteDestinationRequest.h" +#include "model/DeleteDestinationResult.h" #include "model/DeleteDeviceRequest.h" #include "model/DeleteDeviceResult.h" #include "model/DeleteDeviceDistributeJobRequest.h" @@ -238,6 +252,10 @@ #include "model/DeleteOTAFirmwareResult.h" #include "model/DeleteOTAModuleRequest.h" #include "model/DeleteOTAModuleResult.h" +#include "model/DeleteParserRequest.h" +#include "model/DeleteParserResult.h" +#include "model/DeleteParserDataSourceRequest.h" +#include "model/DeleteParserDataSourceResult.h" #include "model/DeleteProductRequest.h" #include "model/DeleteProductResult.h" #include "model/DeleteProductTagsRequest.h" @@ -268,6 +286,10 @@ #include "model/DeleteThingModelResult.h" #include "model/DeleteTopicRouteTableRequest.h" #include "model/DeleteTopicRouteTableResult.h" +#include "model/DetachDestinationRequest.h" +#include "model/DetachDestinationResult.h" +#include "model/DetachParserDataSourceRequest.h" +#include "model/DetachParserDataSourceResult.h" #include "model/DisableDeviceTunnelRequest.h" #include "model/DisableDeviceTunnelResult.h" #include "model/DisableDeviceTunnelShareRequest.h" @@ -292,6 +314,8 @@ #include "model/GenerateOTAUploadURLResult.h" #include "model/GetDataAPIServiceDetailRequest.h" #include "model/GetDataAPIServiceDetailResult.h" +#include "model/GetDestinationRequest.h" +#include "model/GetDestinationResult.h" #include "model/GetDeviceShadowRequest.h" #include "model/GetDeviceShadowResult.h" #include "model/GetDeviceStatusRequest.h" @@ -312,6 +336,10 @@ #include "model/GetGatewayBySubDeviceResult.h" #include "model/GetLoraNodesTaskRequest.h" #include "model/GetLoraNodesTaskResult.h" +#include "model/GetParserRequest.h" +#include "model/GetParserResult.h" +#include "model/GetParserDataSourceRequest.h" +#include "model/GetParserDataSourceResult.h" #include "model/GetRuleRequest.h" #include "model/GetRuleResult.h" #include "model/GetRuleActionRequest.h" @@ -356,6 +384,8 @@ #include "model/ListAnalyticsDataResult.h" #include "model/ListDataSourceItemRequest.h" #include "model/ListDataSourceItemResult.h" +#include "model/ListDestinationRequest.h" +#include "model/ListDestinationResult.h" #include "model/ListDeviceDistributeJobRequest.h" #include "model/ListDeviceDistributeJobResult.h" #include "model/ListDistributedDeviceRequest.h" @@ -378,6 +408,12 @@ #include "model/ListOTATaskByJobResult.h" #include "model/ListOTAUnfinishedTaskByDeviceRequest.h" #include "model/ListOTAUnfinishedTaskByDeviceResult.h" +#include "model/ListParserRequest.h" +#include "model/ListParserResult.h" +#include "model/ListParserDataSourceRequest.h" +#include "model/ListParserDataSourceResult.h" +#include "model/ListParserDestinationRequest.h" +#include "model/ListParserDestinationResult.h" #include "model/ListProductByTagsRequest.h" #include "model/ListProductByTagsResult.h" #include "model/ListProductTagsRequest.h" @@ -404,6 +440,8 @@ #include "model/PubResult.h" #include "model/PubBroadcastRequest.h" #include "model/PubBroadcastResult.h" +#include "model/PublishScriptRequest.h" +#include "model/PublishScriptResult.h" #include "model/PublishStudioAppRequest.h" #include "model/PublishStudioAppResult.h" #include "model/PublishThingModelRequest.h" @@ -624,6 +662,8 @@ #include "model/ReupgradeOTATaskResult.h" #include "model/SaveDevicePropRequest.h" #include "model/SaveDevicePropResult.h" +#include "model/SaveScriptRequest.h" +#include "model/SaveScriptResult.h" #include "model/SetDeviceDesiredPropertyRequest.h" #include "model/SetDeviceDesiredPropertyResult.h" #include "model/SetDeviceGroupTagsRequest.h" @@ -644,8 +684,12 @@ #include "model/SpeechByCombinationResult.h" #include "model/SpeechBySynthesisRequest.h" #include "model/SpeechBySynthesisResult.h" +#include "model/StartParserRequest.h" +#include "model/StartParserResult.h" #include "model/StartRuleRequest.h" #include "model/StartRuleResult.h" +#include "model/StopParserRequest.h" +#include "model/StopParserResult.h" #include "model/StopRuleRequest.h" #include "model/StopRuleResult.h" #include "model/SubscribeTopicRequest.h" @@ -670,6 +714,8 @@ #include "model/UnbindSceneRuleFromEdgeInstanceResult.h" #include "model/UpdateConsumerGroupRequest.h" #include "model/UpdateConsumerGroupResult.h" +#include "model/UpdateDestinationRequest.h" +#include "model/UpdateDestinationResult.h" #include "model/UpdateDeviceGroupRequest.h" #include "model/UpdateDeviceGroupResult.h" #include "model/UpdateDeviceShadowRequest.h" @@ -686,6 +732,10 @@ #include "model/UpdateJobResult.h" #include "model/UpdateOTAModuleRequest.h" #include "model/UpdateOTAModuleResult.h" +#include "model/UpdateParserRequest.h" +#include "model/UpdateParserResult.h" +#include "model/UpdateParserDataSourceRequest.h" +#include "model/UpdateParserDataSourceResult.h" #include "model/UpdateProductRequest.h" #include "model/UpdateProductResult.h" #include "model/UpdateProductFilterConfigRequest.h" @@ -728,6 +778,12 @@ namespace AlibabaCloud typedef Outcome AddDataForApiSourceOutcome; typedef std::future AddDataForApiSourceOutcomeCallable; typedef std::function&)> AddDataForApiSourceAsyncHandler; + typedef Outcome AttachDestinationOutcome; + typedef std::future AttachDestinationOutcomeCallable; + typedef std::function&)> AttachDestinationAsyncHandler; + typedef Outcome AttachParserDataSourceOutcome; + typedef std::future AttachParserDataSourceOutcomeCallable; + typedef std::function&)> AttachParserDataSourceAsyncHandler; typedef Outcome BatchAddDataForApiSourceOutcome; typedef std::future BatchAddDataForApiSourceOutcomeCallable; typedef std::function&)> BatchAddDataForApiSourceAsyncHandler; @@ -890,6 +946,9 @@ namespace AlibabaCloud typedef Outcome CreateDataSourceItemOutcome; typedef std::future CreateDataSourceItemOutcomeCallable; typedef std::function&)> CreateDataSourceItemAsyncHandler; + typedef Outcome CreateDestinationOutcome; + typedef std::future CreateDestinationOutcomeCallable; + typedef std::function&)> CreateDestinationAsyncHandler; typedef Outcome CreateDeviceDistributeJobOutcome; typedef std::future CreateDeviceDistributeJobOutcomeCallable; typedef std::function&)> CreateDeviceDistributeJobAsyncHandler; @@ -944,6 +1003,12 @@ namespace AlibabaCloud typedef Outcome CreateOTAVerifyJobOutcome; typedef std::future CreateOTAVerifyJobOutcomeCallable; typedef std::function&)> CreateOTAVerifyJobAsyncHandler; + typedef Outcome CreateParserOutcome; + typedef std::future CreateParserOutcomeCallable; + typedef std::function&)> CreateParserAsyncHandler; + typedef Outcome CreateParserDataSourceOutcome; + typedef std::future CreateParserDataSourceOutcomeCallable; + typedef std::function&)> CreateParserDataSourceAsyncHandler; typedef Outcome CreateProductOutcome; typedef std::future CreateProductOutcomeCallable; typedef std::function&)> CreateProductAsyncHandler; @@ -1004,6 +1069,12 @@ namespace AlibabaCloud typedef Outcome DeleteConsumerGroupSubscribeRelationOutcome; typedef std::future DeleteConsumerGroupSubscribeRelationOutcomeCallable; typedef std::function&)> DeleteConsumerGroupSubscribeRelationAsyncHandler; + typedef Outcome DeleteDataSourceItemOutcome; + typedef std::future DeleteDataSourceItemOutcomeCallable; + typedef std::function&)> DeleteDataSourceItemAsyncHandler; + typedef Outcome DeleteDestinationOutcome; + typedef std::future DeleteDestinationOutcomeCallable; + typedef std::function&)> DeleteDestinationAsyncHandler; typedef Outcome DeleteDeviceOutcome; typedef std::future DeleteDeviceOutcomeCallable; typedef std::function&)> DeleteDeviceAsyncHandler; @@ -1049,6 +1120,12 @@ namespace AlibabaCloud typedef Outcome DeleteOTAModuleOutcome; typedef std::future DeleteOTAModuleOutcomeCallable; typedef std::function&)> DeleteOTAModuleAsyncHandler; + typedef Outcome DeleteParserOutcome; + typedef std::future DeleteParserOutcomeCallable; + typedef std::function&)> DeleteParserAsyncHandler; + typedef Outcome DeleteParserDataSourceOutcome; + typedef std::future DeleteParserDataSourceOutcomeCallable; + typedef std::function&)> DeleteParserDataSourceAsyncHandler; typedef Outcome DeleteProductOutcome; typedef std::future DeleteProductOutcomeCallable; typedef std::function&)> DeleteProductAsyncHandler; @@ -1094,6 +1171,12 @@ namespace AlibabaCloud typedef Outcome DeleteTopicRouteTableOutcome; typedef std::future DeleteTopicRouteTableOutcomeCallable; typedef std::function&)> DeleteTopicRouteTableAsyncHandler; + typedef Outcome DetachDestinationOutcome; + typedef std::future DetachDestinationOutcomeCallable; + typedef std::function&)> DetachDestinationAsyncHandler; + typedef Outcome DetachParserDataSourceOutcome; + typedef std::future DetachParserDataSourceOutcomeCallable; + typedef std::function&)> DetachParserDataSourceAsyncHandler; typedef Outcome DisableDeviceTunnelOutcome; typedef std::future DisableDeviceTunnelOutcomeCallable; typedef std::function&)> DisableDeviceTunnelAsyncHandler; @@ -1130,6 +1213,9 @@ namespace AlibabaCloud typedef Outcome GetDataAPIServiceDetailOutcome; typedef std::future GetDataAPIServiceDetailOutcomeCallable; typedef std::function&)> GetDataAPIServiceDetailAsyncHandler; + typedef Outcome GetDestinationOutcome; + typedef std::future GetDestinationOutcomeCallable; + typedef std::function&)> GetDestinationAsyncHandler; typedef Outcome GetDeviceShadowOutcome; typedef std::future GetDeviceShadowOutcomeCallable; typedef std::function&)> GetDeviceShadowAsyncHandler; @@ -1160,6 +1246,12 @@ namespace AlibabaCloud typedef Outcome GetLoraNodesTaskOutcome; typedef std::future GetLoraNodesTaskOutcomeCallable; typedef std::function&)> GetLoraNodesTaskAsyncHandler; + typedef Outcome GetParserOutcome; + typedef std::future GetParserOutcomeCallable; + typedef std::function&)> GetParserAsyncHandler; + typedef Outcome GetParserDataSourceOutcome; + typedef std::future GetParserDataSourceOutcomeCallable; + typedef std::function&)> GetParserDataSourceAsyncHandler; typedef Outcome GetRuleOutcome; typedef std::future GetRuleOutcomeCallable; typedef std::function&)> GetRuleAsyncHandler; @@ -1226,6 +1318,9 @@ namespace AlibabaCloud typedef Outcome ListDataSourceItemOutcome; typedef std::future ListDataSourceItemOutcomeCallable; typedef std::function&)> ListDataSourceItemAsyncHandler; + typedef Outcome ListDestinationOutcome; + typedef std::future ListDestinationOutcomeCallable; + typedef std::function&)> ListDestinationAsyncHandler; typedef Outcome ListDeviceDistributeJobOutcome; typedef std::future ListDeviceDistributeJobOutcomeCallable; typedef std::function&)> ListDeviceDistributeJobAsyncHandler; @@ -1259,6 +1354,15 @@ namespace AlibabaCloud typedef Outcome ListOTAUnfinishedTaskByDeviceOutcome; typedef std::future ListOTAUnfinishedTaskByDeviceOutcomeCallable; typedef std::function&)> ListOTAUnfinishedTaskByDeviceAsyncHandler; + typedef Outcome ListParserOutcome; + typedef std::future ListParserOutcomeCallable; + typedef std::function&)> ListParserAsyncHandler; + typedef Outcome ListParserDataSourceOutcome; + typedef std::future ListParserDataSourceOutcomeCallable; + typedef std::function&)> ListParserDataSourceAsyncHandler; + typedef Outcome ListParserDestinationOutcome; + typedef std::future ListParserDestinationOutcomeCallable; + typedef std::function&)> ListParserDestinationAsyncHandler; typedef Outcome ListProductByTagsOutcome; typedef std::future ListProductByTagsOutcomeCallable; typedef std::function&)> ListProductByTagsAsyncHandler; @@ -1298,6 +1402,9 @@ namespace AlibabaCloud typedef Outcome PubBroadcastOutcome; typedef std::future PubBroadcastOutcomeCallable; typedef std::function&)> PubBroadcastAsyncHandler; + typedef Outcome PublishScriptOutcome; + typedef std::future PublishScriptOutcomeCallable; + typedef std::function&)> PublishScriptAsyncHandler; typedef Outcome PublishStudioAppOutcome; typedef std::future PublishStudioAppOutcomeCallable; typedef std::function&)> PublishStudioAppAsyncHandler; @@ -1628,6 +1735,9 @@ namespace AlibabaCloud typedef Outcome SaveDevicePropOutcome; typedef std::future SaveDevicePropOutcomeCallable; typedef std::function&)> SaveDevicePropAsyncHandler; + typedef Outcome SaveScriptOutcome; + typedef std::future SaveScriptOutcomeCallable; + typedef std::function&)> SaveScriptAsyncHandler; typedef Outcome SetDeviceDesiredPropertyOutcome; typedef std::future SetDeviceDesiredPropertyOutcomeCallable; typedef std::function&)> SetDeviceDesiredPropertyAsyncHandler; @@ -1658,9 +1768,15 @@ namespace AlibabaCloud typedef Outcome SpeechBySynthesisOutcome; typedef std::future SpeechBySynthesisOutcomeCallable; typedef std::function&)> SpeechBySynthesisAsyncHandler; + typedef Outcome StartParserOutcome; + typedef std::future StartParserOutcomeCallable; + typedef std::function&)> StartParserAsyncHandler; typedef Outcome StartRuleOutcome; typedef std::future StartRuleOutcomeCallable; typedef std::function&)> StartRuleAsyncHandler; + typedef Outcome StopParserOutcome; + typedef std::future StopParserOutcomeCallable; + typedef std::function&)> StopParserAsyncHandler; typedef Outcome StopRuleOutcome; typedef std::future StopRuleOutcomeCallable; typedef std::function&)> StopRuleAsyncHandler; @@ -1697,6 +1813,9 @@ namespace AlibabaCloud typedef Outcome UpdateConsumerGroupOutcome; typedef std::future UpdateConsumerGroupOutcomeCallable; typedef std::function&)> UpdateConsumerGroupAsyncHandler; + typedef Outcome UpdateDestinationOutcome; + typedef std::future UpdateDestinationOutcomeCallable; + typedef std::function&)> UpdateDestinationAsyncHandler; typedef Outcome UpdateDeviceGroupOutcome; typedef std::future UpdateDeviceGroupOutcomeCallable; typedef std::function&)> UpdateDeviceGroupAsyncHandler; @@ -1721,6 +1840,12 @@ namespace AlibabaCloud typedef Outcome UpdateOTAModuleOutcome; typedef std::future UpdateOTAModuleOutcomeCallable; typedef std::function&)> UpdateOTAModuleAsyncHandler; + typedef Outcome UpdateParserOutcome; + typedef std::future UpdateParserOutcomeCallable; + typedef std::function&)> UpdateParserAsyncHandler; + typedef Outcome UpdateParserDataSourceOutcome; + typedef std::future UpdateParserDataSourceOutcomeCallable; + typedef std::function&)> UpdateParserDataSourceAsyncHandler; typedef Outcome UpdateProductOutcome; typedef std::future UpdateProductOutcomeCallable; typedef std::function&)> UpdateProductAsyncHandler; @@ -1774,6 +1899,12 @@ namespace AlibabaCloud AddDataForApiSourceOutcome addDataForApiSource(const Model::AddDataForApiSourceRequest &request)const; void addDataForApiSourceAsync(const Model::AddDataForApiSourceRequest& request, const AddDataForApiSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDataForApiSourceOutcomeCallable addDataForApiSourceCallable(const Model::AddDataForApiSourceRequest& request) const; + AttachDestinationOutcome attachDestination(const Model::AttachDestinationRequest &request)const; + void attachDestinationAsync(const Model::AttachDestinationRequest& request, const AttachDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachDestinationOutcomeCallable attachDestinationCallable(const Model::AttachDestinationRequest& request) const; + AttachParserDataSourceOutcome attachParserDataSource(const Model::AttachParserDataSourceRequest &request)const; + void attachParserDataSourceAsync(const Model::AttachParserDataSourceRequest& request, const AttachParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachParserDataSourceOutcomeCallable attachParserDataSourceCallable(const Model::AttachParserDataSourceRequest& request) const; BatchAddDataForApiSourceOutcome batchAddDataForApiSource(const Model::BatchAddDataForApiSourceRequest &request)const; void batchAddDataForApiSourceAsync(const Model::BatchAddDataForApiSourceRequest& request, const BatchAddDataForApiSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchAddDataForApiSourceOutcomeCallable batchAddDataForApiSourceCallable(const Model::BatchAddDataForApiSourceRequest& request) const; @@ -1936,6 +2067,9 @@ namespace AlibabaCloud CreateDataSourceItemOutcome createDataSourceItem(const Model::CreateDataSourceItemRequest &request)const; void createDataSourceItemAsync(const Model::CreateDataSourceItemRequest& request, const CreateDataSourceItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDataSourceItemOutcomeCallable createDataSourceItemCallable(const Model::CreateDataSourceItemRequest& request) const; + CreateDestinationOutcome createDestination(const Model::CreateDestinationRequest &request)const; + void createDestinationAsync(const Model::CreateDestinationRequest& request, const CreateDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDestinationOutcomeCallable createDestinationCallable(const Model::CreateDestinationRequest& request) const; CreateDeviceDistributeJobOutcome createDeviceDistributeJob(const Model::CreateDeviceDistributeJobRequest &request)const; void createDeviceDistributeJobAsync(const Model::CreateDeviceDistributeJobRequest& request, const CreateDeviceDistributeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDeviceDistributeJobOutcomeCallable createDeviceDistributeJobCallable(const Model::CreateDeviceDistributeJobRequest& request) const; @@ -1990,6 +2124,12 @@ namespace AlibabaCloud CreateOTAVerifyJobOutcome createOTAVerifyJob(const Model::CreateOTAVerifyJobRequest &request)const; void createOTAVerifyJobAsync(const Model::CreateOTAVerifyJobRequest& request, const CreateOTAVerifyJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOTAVerifyJobOutcomeCallable createOTAVerifyJobCallable(const Model::CreateOTAVerifyJobRequest& request) const; + CreateParserOutcome createParser(const Model::CreateParserRequest &request)const; + void createParserAsync(const Model::CreateParserRequest& request, const CreateParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateParserOutcomeCallable createParserCallable(const Model::CreateParserRequest& request) const; + CreateParserDataSourceOutcome createParserDataSource(const Model::CreateParserDataSourceRequest &request)const; + void createParserDataSourceAsync(const Model::CreateParserDataSourceRequest& request, const CreateParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateParserDataSourceOutcomeCallable createParserDataSourceCallable(const Model::CreateParserDataSourceRequest& request) const; CreateProductOutcome createProduct(const Model::CreateProductRequest &request)const; void createProductAsync(const Model::CreateProductRequest& request, const CreateProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateProductOutcomeCallable createProductCallable(const Model::CreateProductRequest& request) const; @@ -2050,6 +2190,12 @@ namespace AlibabaCloud DeleteConsumerGroupSubscribeRelationOutcome deleteConsumerGroupSubscribeRelation(const Model::DeleteConsumerGroupSubscribeRelationRequest &request)const; void deleteConsumerGroupSubscribeRelationAsync(const Model::DeleteConsumerGroupSubscribeRelationRequest& request, const DeleteConsumerGroupSubscribeRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConsumerGroupSubscribeRelationOutcomeCallable deleteConsumerGroupSubscribeRelationCallable(const Model::DeleteConsumerGroupSubscribeRelationRequest& request) const; + DeleteDataSourceItemOutcome deleteDataSourceItem(const Model::DeleteDataSourceItemRequest &request)const; + void deleteDataSourceItemAsync(const Model::DeleteDataSourceItemRequest& request, const DeleteDataSourceItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataSourceItemOutcomeCallable deleteDataSourceItemCallable(const Model::DeleteDataSourceItemRequest& request) const; + DeleteDestinationOutcome deleteDestination(const Model::DeleteDestinationRequest &request)const; + void deleteDestinationAsync(const Model::DeleteDestinationRequest& request, const DeleteDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDestinationOutcomeCallable deleteDestinationCallable(const Model::DeleteDestinationRequest& request) const; DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const; void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const; @@ -2095,6 +2241,12 @@ namespace AlibabaCloud DeleteOTAModuleOutcome deleteOTAModule(const Model::DeleteOTAModuleRequest &request)const; void deleteOTAModuleAsync(const Model::DeleteOTAModuleRequest& request, const DeleteOTAModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteOTAModuleOutcomeCallable deleteOTAModuleCallable(const Model::DeleteOTAModuleRequest& request) const; + DeleteParserOutcome deleteParser(const Model::DeleteParserRequest &request)const; + void deleteParserAsync(const Model::DeleteParserRequest& request, const DeleteParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteParserOutcomeCallable deleteParserCallable(const Model::DeleteParserRequest& request) const; + DeleteParserDataSourceOutcome deleteParserDataSource(const Model::DeleteParserDataSourceRequest &request)const; + void deleteParserDataSourceAsync(const Model::DeleteParserDataSourceRequest& request, const DeleteParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteParserDataSourceOutcomeCallable deleteParserDataSourceCallable(const Model::DeleteParserDataSourceRequest& request) const; DeleteProductOutcome deleteProduct(const Model::DeleteProductRequest &request)const; void deleteProductAsync(const Model::DeleteProductRequest& request, const DeleteProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteProductOutcomeCallable deleteProductCallable(const Model::DeleteProductRequest& request) const; @@ -2140,6 +2292,12 @@ namespace AlibabaCloud DeleteTopicRouteTableOutcome deleteTopicRouteTable(const Model::DeleteTopicRouteTableRequest &request)const; void deleteTopicRouteTableAsync(const Model::DeleteTopicRouteTableRequest& request, const DeleteTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTopicRouteTableOutcomeCallable deleteTopicRouteTableCallable(const Model::DeleteTopicRouteTableRequest& request) const; + DetachDestinationOutcome detachDestination(const Model::DetachDestinationRequest &request)const; + void detachDestinationAsync(const Model::DetachDestinationRequest& request, const DetachDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachDestinationOutcomeCallable detachDestinationCallable(const Model::DetachDestinationRequest& request) const; + DetachParserDataSourceOutcome detachParserDataSource(const Model::DetachParserDataSourceRequest &request)const; + void detachParserDataSourceAsync(const Model::DetachParserDataSourceRequest& request, const DetachParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachParserDataSourceOutcomeCallable detachParserDataSourceCallable(const Model::DetachParserDataSourceRequest& request) const; DisableDeviceTunnelOutcome disableDeviceTunnel(const Model::DisableDeviceTunnelRequest &request)const; void disableDeviceTunnelAsync(const Model::DisableDeviceTunnelRequest& request, const DisableDeviceTunnelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableDeviceTunnelOutcomeCallable disableDeviceTunnelCallable(const Model::DisableDeviceTunnelRequest& request) const; @@ -2176,6 +2334,9 @@ namespace AlibabaCloud GetDataAPIServiceDetailOutcome getDataAPIServiceDetail(const Model::GetDataAPIServiceDetailRequest &request)const; void getDataAPIServiceDetailAsync(const Model::GetDataAPIServiceDetailRequest& request, const GetDataAPIServiceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDataAPIServiceDetailOutcomeCallable getDataAPIServiceDetailCallable(const Model::GetDataAPIServiceDetailRequest& request) const; + GetDestinationOutcome getDestination(const Model::GetDestinationRequest &request)const; + void getDestinationAsync(const Model::GetDestinationRequest& request, const GetDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDestinationOutcomeCallable getDestinationCallable(const Model::GetDestinationRequest& request) const; GetDeviceShadowOutcome getDeviceShadow(const Model::GetDeviceShadowRequest &request)const; void getDeviceShadowAsync(const Model::GetDeviceShadowRequest& request, const GetDeviceShadowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDeviceShadowOutcomeCallable getDeviceShadowCallable(const Model::GetDeviceShadowRequest& request) const; @@ -2206,6 +2367,12 @@ namespace AlibabaCloud GetLoraNodesTaskOutcome getLoraNodesTask(const Model::GetLoraNodesTaskRequest &request)const; void getLoraNodesTaskAsync(const Model::GetLoraNodesTaskRequest& request, const GetLoraNodesTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetLoraNodesTaskOutcomeCallable getLoraNodesTaskCallable(const Model::GetLoraNodesTaskRequest& request) const; + GetParserOutcome getParser(const Model::GetParserRequest &request)const; + void getParserAsync(const Model::GetParserRequest& request, const GetParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetParserOutcomeCallable getParserCallable(const Model::GetParserRequest& request) const; + GetParserDataSourceOutcome getParserDataSource(const Model::GetParserDataSourceRequest &request)const; + void getParserDataSourceAsync(const Model::GetParserDataSourceRequest& request, const GetParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetParserDataSourceOutcomeCallable getParserDataSourceCallable(const Model::GetParserDataSourceRequest& request) const; GetRuleOutcome getRule(const Model::GetRuleRequest &request)const; void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const; @@ -2272,6 +2439,9 @@ namespace AlibabaCloud ListDataSourceItemOutcome listDataSourceItem(const Model::ListDataSourceItemRequest &request)const; void listDataSourceItemAsync(const Model::ListDataSourceItemRequest& request, const ListDataSourceItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDataSourceItemOutcomeCallable listDataSourceItemCallable(const Model::ListDataSourceItemRequest& request) const; + ListDestinationOutcome listDestination(const Model::ListDestinationRequest &request)const; + void listDestinationAsync(const Model::ListDestinationRequest& request, const ListDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDestinationOutcomeCallable listDestinationCallable(const Model::ListDestinationRequest& request) const; ListDeviceDistributeJobOutcome listDeviceDistributeJob(const Model::ListDeviceDistributeJobRequest &request)const; void listDeviceDistributeJobAsync(const Model::ListDeviceDistributeJobRequest& request, const ListDeviceDistributeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDeviceDistributeJobOutcomeCallable listDeviceDistributeJobCallable(const Model::ListDeviceDistributeJobRequest& request) const; @@ -2305,6 +2475,15 @@ namespace AlibabaCloud ListOTAUnfinishedTaskByDeviceOutcome listOTAUnfinishedTaskByDevice(const Model::ListOTAUnfinishedTaskByDeviceRequest &request)const; void listOTAUnfinishedTaskByDeviceAsync(const Model::ListOTAUnfinishedTaskByDeviceRequest& request, const ListOTAUnfinishedTaskByDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOTAUnfinishedTaskByDeviceOutcomeCallable listOTAUnfinishedTaskByDeviceCallable(const Model::ListOTAUnfinishedTaskByDeviceRequest& request) const; + ListParserOutcome listParser(const Model::ListParserRequest &request)const; + void listParserAsync(const Model::ListParserRequest& request, const ListParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListParserOutcomeCallable listParserCallable(const Model::ListParserRequest& request) const; + ListParserDataSourceOutcome listParserDataSource(const Model::ListParserDataSourceRequest &request)const; + void listParserDataSourceAsync(const Model::ListParserDataSourceRequest& request, const ListParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListParserDataSourceOutcomeCallable listParserDataSourceCallable(const Model::ListParserDataSourceRequest& request) const; + ListParserDestinationOutcome listParserDestination(const Model::ListParserDestinationRequest &request)const; + void listParserDestinationAsync(const Model::ListParserDestinationRequest& request, const ListParserDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListParserDestinationOutcomeCallable listParserDestinationCallable(const Model::ListParserDestinationRequest& request) const; ListProductByTagsOutcome listProductByTags(const Model::ListProductByTagsRequest &request)const; void listProductByTagsAsync(const Model::ListProductByTagsRequest& request, const ListProductByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListProductByTagsOutcomeCallable listProductByTagsCallable(const Model::ListProductByTagsRequest& request) const; @@ -2344,6 +2523,9 @@ namespace AlibabaCloud PubBroadcastOutcome pubBroadcast(const Model::PubBroadcastRequest &request)const; void pubBroadcastAsync(const Model::PubBroadcastRequest& request, const PubBroadcastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PubBroadcastOutcomeCallable pubBroadcastCallable(const Model::PubBroadcastRequest& request) const; + PublishScriptOutcome publishScript(const Model::PublishScriptRequest &request)const; + void publishScriptAsync(const Model::PublishScriptRequest& request, const PublishScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishScriptOutcomeCallable publishScriptCallable(const Model::PublishScriptRequest& request) const; PublishStudioAppOutcome publishStudioApp(const Model::PublishStudioAppRequest &request)const; void publishStudioAppAsync(const Model::PublishStudioAppRequest& request, const PublishStudioAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishStudioAppOutcomeCallable publishStudioAppCallable(const Model::PublishStudioAppRequest& request) const; @@ -2674,6 +2856,9 @@ namespace AlibabaCloud SaveDevicePropOutcome saveDeviceProp(const Model::SaveDevicePropRequest &request)const; void saveDevicePropAsync(const Model::SaveDevicePropRequest& request, const SaveDevicePropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveDevicePropOutcomeCallable saveDevicePropCallable(const Model::SaveDevicePropRequest& request) const; + SaveScriptOutcome saveScript(const Model::SaveScriptRequest &request)const; + void saveScriptAsync(const Model::SaveScriptRequest& request, const SaveScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveScriptOutcomeCallable saveScriptCallable(const Model::SaveScriptRequest& request) const; SetDeviceDesiredPropertyOutcome setDeviceDesiredProperty(const Model::SetDeviceDesiredPropertyRequest &request)const; void setDeviceDesiredPropertyAsync(const Model::SetDeviceDesiredPropertyRequest& request, const SetDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDeviceDesiredPropertyOutcomeCallable setDeviceDesiredPropertyCallable(const Model::SetDeviceDesiredPropertyRequest& request) const; @@ -2704,9 +2889,15 @@ namespace AlibabaCloud SpeechBySynthesisOutcome speechBySynthesis(const Model::SpeechBySynthesisRequest &request)const; void speechBySynthesisAsync(const Model::SpeechBySynthesisRequest& request, const SpeechBySynthesisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SpeechBySynthesisOutcomeCallable speechBySynthesisCallable(const Model::SpeechBySynthesisRequest& request) const; + StartParserOutcome startParser(const Model::StartParserRequest &request)const; + void startParserAsync(const Model::StartParserRequest& request, const StartParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartParserOutcomeCallable startParserCallable(const Model::StartParserRequest& request) const; StartRuleOutcome startRule(const Model::StartRuleRequest &request)const; void startRuleAsync(const Model::StartRuleRequest& request, const StartRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartRuleOutcomeCallable startRuleCallable(const Model::StartRuleRequest& request) const; + StopParserOutcome stopParser(const Model::StopParserRequest &request)const; + void stopParserAsync(const Model::StopParserRequest& request, const StopParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopParserOutcomeCallable stopParserCallable(const Model::StopParserRequest& request) const; StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const; void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const; @@ -2743,6 +2934,9 @@ namespace AlibabaCloud UpdateConsumerGroupOutcome updateConsumerGroup(const Model::UpdateConsumerGroupRequest &request)const; void updateConsumerGroupAsync(const Model::UpdateConsumerGroupRequest& request, const UpdateConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateConsumerGroupOutcomeCallable updateConsumerGroupCallable(const Model::UpdateConsumerGroupRequest& request) const; + UpdateDestinationOutcome updateDestination(const Model::UpdateDestinationRequest &request)const; + void updateDestinationAsync(const Model::UpdateDestinationRequest& request, const UpdateDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDestinationOutcomeCallable updateDestinationCallable(const Model::UpdateDestinationRequest& request) const; UpdateDeviceGroupOutcome updateDeviceGroup(const Model::UpdateDeviceGroupRequest &request)const; void updateDeviceGroupAsync(const Model::UpdateDeviceGroupRequest& request, const UpdateDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDeviceGroupOutcomeCallable updateDeviceGroupCallable(const Model::UpdateDeviceGroupRequest& request) const; @@ -2767,6 +2961,12 @@ namespace AlibabaCloud UpdateOTAModuleOutcome updateOTAModule(const Model::UpdateOTAModuleRequest &request)const; void updateOTAModuleAsync(const Model::UpdateOTAModuleRequest& request, const UpdateOTAModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateOTAModuleOutcomeCallable updateOTAModuleCallable(const Model::UpdateOTAModuleRequest& request) const; + UpdateParserOutcome updateParser(const Model::UpdateParserRequest &request)const; + void updateParserAsync(const Model::UpdateParserRequest& request, const UpdateParserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateParserOutcomeCallable updateParserCallable(const Model::UpdateParserRequest& request) const; + UpdateParserDataSourceOutcome updateParserDataSource(const Model::UpdateParserDataSourceRequest &request)const; + void updateParserDataSourceAsync(const Model::UpdateParserDataSourceRequest& request, const UpdateParserDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateParserDataSourceOutcomeCallable updateParserDataSourceCallable(const Model::UpdateParserDataSourceRequest& request) const; UpdateProductOutcome updateProduct(const Model::UpdateProductRequest &request)const; void updateProductAsync(const Model::UpdateProductRequest& request, const UpdateProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProductOutcomeCallable updateProductCallable(const Model::UpdateProductRequest& request) const; diff --git a/iot/include/alibabacloud/iot/model/AttachDestinationRequest.h b/iot/include/alibabacloud/iot/model/AttachDestinationRequest.h new file mode 100644 index 000000000..29c720714 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AttachDestinationRequest.h @@ -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_ATTACHDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AttachDestinationRequest : public RpcServiceRequest + { + + public: + AttachDestinationRequest(); + ~AttachDestinationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getDestinationId()const; + void setDestinationId(long destinationId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + bool getIsFailover()const; + void setIsFailover(bool isFailover); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long destinationId_; + long parserId_; + std::string apiProduct_; + bool isFailover_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/AttachDestinationResult.h b/iot/include/alibabacloud/iot/model/AttachDestinationResult.h new file mode 100644 index 000000000..67bbbb239 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AttachDestinationResult.h @@ -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_ATTACHDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_ATTACHDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AttachDestinationResult : public ServiceResult + { + public: + + + AttachDestinationResult(); + explicit AttachDestinationResult(const std::string &payload); + ~AttachDestinationResult(); + 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_ATTACHDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/AttachParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/AttachParserDataSourceRequest.h new file mode 100644 index 000000000..681f777a7 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AttachParserDataSourceRequest.h @@ -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_ATTACHPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AttachParserDataSourceRequest : public RpcServiceRequest + { + + public: + AttachParserDataSourceRequest(); + ~AttachParserDataSourceRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataSourceId()const; + void setDataSourceId(long dataSourceId); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + long dataSourceId_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/AttachParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/AttachParserDataSourceResult.h new file mode 100644 index 000000000..2c2d7505b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AttachParserDataSourceResult.h @@ -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_ATTACHPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_ATTACHPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AttachParserDataSourceResult : public ServiceResult + { + public: + + + AttachParserDataSourceResult(); + explicit AttachParserDataSourceResult(const std::string &payload); + ~AttachParserDataSourceResult(); + 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_ATTACHPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateDataSourceItemRequest.h b/iot/include/alibabacloud/iot/model/CreateDataSourceItemRequest.h index 6df322997..4f5426a75 100644 --- a/iot/include/alibabacloud/iot/model/CreateDataSourceItemRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateDataSourceItemRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud CreateDataSourceItemRequest(); ~CreateDataSourceItemRequest(); + std::string getScopeType()const; + void setScopeType(const std::string& scopeType); 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); long getDataSourceId()const; @@ -45,13 +49,18 @@ namespace AlibabaCloud void setTopic(const std::string& topic); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); private: + std::string scopeType_; std::string iotInstanceId_; + std::string productKey_; std::string apiProduct_; long dataSourceId_; std::string topic_; std::string apiRevision_; + std::string deviceName_; }; } diff --git a/iot/include/alibabacloud/iot/model/CreateDestinationRequest.h b/iot/include/alibabacloud/iot/model/CreateDestinationRequest.h new file mode 100644 index 000000000..bfb655c48 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateDestinationRequest.h @@ -0,0 +1,66 @@ +/* + * 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_CREATEDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateDestinationRequest : public RpcServiceRequest + { + + public: + CreateDestinationRequest(); + ~CreateDestinationRequest(); + + std::string getConfiguration()const; + void setConfiguration(const std::string& configuration); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string configuration_; + std::string description_; + std::string type_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateDestinationResult.h b/iot/include/alibabacloud/iot/model/CreateDestinationResult.h new file mode 100644 index 000000000..66e6e8ed3 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateDestinationResult.h @@ -0,0 +1,66 @@ +/* + * 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_CREATEDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateDestinationResult : public ServiceResult + { + public: + struct Destination + { + std::string type; + std::string configuration; + std::string utcCreated; + bool isFailover; + long destinationId; + std::string name; + }; + + + CreateDestinationResult(); + explicit CreateDestinationResult(const std::string &payload); + ~CreateDestinationResult(); + Destination getDestination()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Destination destination_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/CreateParserDataSourceRequest.h new file mode 100644 index 000000000..75581bd8f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateParserDataSourceRequest.h @@ -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_CREATEPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateParserDataSourceRequest : public RpcServiceRequest + { + + public: + CreateParserDataSourceRequest(); + ~CreateParserDataSourceRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/CreateParserDataSourceResult.h new file mode 100644 index 000000000..7dde0c7fe --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateParserDataSourceResult.h @@ -0,0 +1,64 @@ +/* + * 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_CREATEPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateParserDataSourceResult : public ServiceResult + { + public: + struct DataSource + { + std::string description; + std::string utcCreated; + long dataSourceId; + std::string name; + }; + + + CreateParserDataSourceResult(); + explicit CreateParserDataSourceResult(const std::string &payload); + ~CreateParserDataSourceResult(); + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + DataSource getDataSource()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + bool success_; + DataSource dataSource_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateParserRequest.h b/iot/include/alibabacloud/iot/model/CreateParserRequest.h new file mode 100644 index 000000000..6ce1b78c9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateParserRequest.h @@ -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_CREATEPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateParserRequest : public RpcServiceRequest + { + + public: + CreateParserRequest(); + ~CreateParserRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string resourceGroupId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateParserResult.h b/iot/include/alibabacloud/iot/model/CreateParserResult.h new file mode 100644 index 000000000..962007973 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateParserResult.h @@ -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_CREATEPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateParserResult : public ServiceResult + { + public: + + + CreateParserResult(); + explicit CreateParserResult(const std::string &payload); + ~CreateParserResult(); + std::string getErrorMessage()const; + std::string getCode()const; + long getParserId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + long parserId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteDataSourceItemRequest.h b/iot/include/alibabacloud/iot/model/DeleteDataSourceItemRequest.h new file mode 100644 index 000000000..a42575ad1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteDataSourceItemRequest.h @@ -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_DELETEDATASOURCEITEMREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEDATASOURCEITEMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteDataSourceItemRequest : public RpcServiceRequest + { + + public: + DeleteDataSourceItemRequest(); + ~DeleteDataSourceItemRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getDataSourceItemId()const; + void setDataSourceItemId(long dataSourceItemId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataSourceId()const; + void setDataSourceId(long dataSourceId); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long dataSourceItemId_; + std::string apiProduct_; + long dataSourceId_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEDATASOURCEITEMREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteDataSourceItemResult.h b/iot/include/alibabacloud/iot/model/DeleteDataSourceItemResult.h new file mode 100644 index 000000000..2d2e63115 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteDataSourceItemResult.h @@ -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_DELETEDATASOURCEITEMRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEDATASOURCEITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteDataSourceItemResult : public ServiceResult + { + public: + + + DeleteDataSourceItemResult(); + explicit DeleteDataSourceItemResult(const std::string &payload); + ~DeleteDataSourceItemResult(); + 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_DELETEDATASOURCEITEMRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteDestinationRequest.h b/iot/include/alibabacloud/iot/model/DeleteDestinationRequest.h new file mode 100644 index 000000000..55f4522fb --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteDestinationRequest.h @@ -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_DELETEDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteDestinationRequest : public RpcServiceRequest + { + + public: + DeleteDestinationRequest(); + ~DeleteDestinationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getDestinationId()const; + void setDestinationId(long destinationId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long destinationId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteDestinationResult.h b/iot/include/alibabacloud/iot/model/DeleteDestinationResult.h new file mode 100644 index 000000000..94be7d997 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteDestinationResult.h @@ -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_DELETEDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteDestinationResult : public ServiceResult + { + public: + + + DeleteDestinationResult(); + explicit DeleteDestinationResult(const std::string &payload); + ~DeleteDestinationResult(); + 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_DELETEDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/DeleteParserDataSourceRequest.h new file mode 100644 index 000000000..d59e3e757 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteParserDataSourceRequest.h @@ -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_DELETEPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteParserDataSourceRequest : public RpcServiceRequest + { + + public: + DeleteParserDataSourceRequest(); + ~DeleteParserDataSourceRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataSourceId()const; + void setDataSourceId(long dataSourceId); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::string apiProduct_; + long dataSourceId_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/DeleteParserDataSourceResult.h new file mode 100644 index 000000000..8bb2b9d73 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteParserDataSourceResult.h @@ -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_DELETEPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteParserDataSourceResult : public ServiceResult + { + public: + + + DeleteParserDataSourceResult(); + explicit DeleteParserDataSourceResult(const std::string &payload); + ~DeleteParserDataSourceResult(); + 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_DELETEPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteParserRequest.h b/iot/include/alibabacloud/iot/model/DeleteParserRequest.h new file mode 100644 index 000000000..9ee54e178 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteParserRequest.h @@ -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_DELETEPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteParserRequest : public RpcServiceRequest + { + + public: + DeleteParserRequest(); + ~DeleteParserRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteParserResult.h b/iot/include/alibabacloud/iot/model/DeleteParserResult.h new file mode 100644 index 000000000..9d6264042 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteParserResult.h @@ -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_DELETEPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteParserResult : public ServiceResult + { + public: + + + DeleteParserResult(); + explicit DeleteParserResult(const std::string &payload); + ~DeleteParserResult(); + 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_DELETEPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DetachDestinationRequest.h b/iot/include/alibabacloud/iot/model/DetachDestinationRequest.h new file mode 100644 index 000000000..e3dbd0a5a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DetachDestinationRequest.h @@ -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_DETACHDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DETACHDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DetachDestinationRequest : public RpcServiceRequest + { + + public: + DetachDestinationRequest(); + ~DetachDestinationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getDestinationId()const; + void setDestinationId(long destinationId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long destinationId_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DETACHDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DetachDestinationResult.h b/iot/include/alibabacloud/iot/model/DetachDestinationResult.h new file mode 100644 index 000000000..f75c3c29b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DetachDestinationResult.h @@ -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_DETACHDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DETACHDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DetachDestinationResult : public ServiceResult + { + public: + + + DetachDestinationResult(); + explicit DetachDestinationResult(const std::string &payload); + ~DetachDestinationResult(); + 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_DETACHDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DetachParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/DetachParserDataSourceRequest.h new file mode 100644 index 000000000..cc826fea0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DetachParserDataSourceRequest.h @@ -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_DETACHPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DETACHPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DetachParserDataSourceRequest : public RpcServiceRequest + { + + public: + DetachParserDataSourceRequest(); + ~DetachParserDataSourceRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataSourceId()const; + void setDataSourceId(long dataSourceId); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + long dataSourceId_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DETACHPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DetachParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/DetachParserDataSourceResult.h new file mode 100644 index 000000000..558774ff7 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DetachParserDataSourceResult.h @@ -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_DETACHPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DETACHPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DetachParserDataSourceResult : public ServiceResult + { + public: + + + DetachParserDataSourceResult(); + explicit DetachParserDataSourceResult(const std::string &payload); + ~DetachParserDataSourceResult(); + 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_DETACHPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetDestinationRequest.h b/iot/include/alibabacloud/iot/model/GetDestinationRequest.h new file mode 100644 index 000000000..68351f8e6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetDestinationRequest.h @@ -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_GETDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetDestinationRequest : public RpcServiceRequest + { + + public: + GetDestinationRequest(); + ~GetDestinationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getDestinationId()const; + void setDestinationId(long destinationId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long destinationId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetDestinationResult.h b/iot/include/alibabacloud/iot/model/GetDestinationResult.h new file mode 100644 index 000000000..4e17bcef1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetDestinationResult.h @@ -0,0 +1,66 @@ +/* + * 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_GETDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetDestinationResult : public ServiceResult + { + public: + struct Destination + { + std::string type; + std::string configuration; + std::string utcCreated; + bool isFailover; + std::string destinationId; + std::string name; + }; + + + GetDestinationResult(); + explicit GetDestinationResult(const std::string &payload); + ~GetDestinationResult(); + Destination getDestination()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Destination destination_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/GetParserDataSourceRequest.h new file mode 100644 index 000000000..ac10c320c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetParserDataSourceRequest.h @@ -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_GETPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetParserDataSourceRequest : public RpcServiceRequest + { + + public: + GetParserDataSourceRequest(); + ~GetParserDataSourceRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataSourceId()const; + void setDataSourceId(long dataSourceId); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::string apiProduct_; + long dataSourceId_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/GetParserDataSourceResult.h new file mode 100644 index 000000000..6cd58a043 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetParserDataSourceResult.h @@ -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_GETPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetParserDataSourceResult : public ServiceResult + { + public: + struct DataSource + { + std::string description; + std::string utcCreated; + long createUserId; + long dataSourceId; + std::string name; + }; + + + GetParserDataSourceResult(); + explicit GetParserDataSourceResult(const std::string &payload); + ~GetParserDataSourceResult(); + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + DataSource getDataSource()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + bool success_; + DataSource dataSource_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetParserRequest.h b/iot/include/alibabacloud/iot/model/GetParserRequest.h new file mode 100644 index 000000000..6b9fb8523 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetParserRequest.h @@ -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_GETPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetParserRequest : public RpcServiceRequest + { + + public: + GetParserRequest(); + ~GetParserRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetParserResult.h b/iot/include/alibabacloud/iot/model/GetParserResult.h new file mode 100644 index 000000000..7e857a2cb --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetParserResult.h @@ -0,0 +1,69 @@ +/* + * 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_GETPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetParserResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string script; + std::string description; + std::string utcCreated; + std::string scriptDraft; + std::string utcModified; + long parserId; + long dataSourceId; + std::string name; + }; + + + GetParserResult(); + explicit GetParserResult(const std::string &payload); + ~GetParserResult(); + 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_GETPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListDataSourceItemResult.h b/iot/include/alibabacloud/iot/model/ListDataSourceItemResult.h index f57203d3e..3c12fdee4 100644 --- a/iot/include/alibabacloud/iot/model/ListDataSourceItemResult.h +++ b/iot/include/alibabacloud/iot/model/ListDataSourceItemResult.h @@ -34,8 +34,11 @@ namespace AlibabaCloud public: struct DataSourceItem { + std::string scopeType; long dataSourceItemId; std::string topic; + std::string productKey; + std::string deviceName; }; diff --git a/iot/include/alibabacloud/iot/model/ListDestinationRequest.h b/iot/include/alibabacloud/iot/model/ListDestinationRequest.h new file mode 100644 index 000000000..7407f45db --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListDestinationRequest.h @@ -0,0 +1,66 @@ +/* + * 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_LISTDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListDestinationRequest : public RpcServiceRequest + { + + public: + ListDestinationRequest(); + ~ListDestinationRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::vector getTypes()const; + void setTypes(const std::vector& types); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getPage()const; + void setPage(int page); + + private: + std::string searchName_; + std::string iotInstanceId_; + int pageSize_; + std::vector types_; + std::string apiProduct_; + std::string apiRevision_; + int page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListDestinationResult.h b/iot/include/alibabacloud/iot/model/ListDestinationResult.h new file mode 100644 index 000000000..a64331493 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListDestinationResult.h @@ -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_LISTDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListDestinationResult : public ServiceResult + { + public: + struct DestinationsItem + { + std::string type; + std::string description; + std::string configuration; + std::string utcCreated; + bool isFailover; + long destinationId; + std::string name; + }; + + + ListDestinationResult(); + explicit ListDestinationResult(const std::string &payload); + ~ListDestinationResult(); + int getPageSize()const; + int getTotal()const; + std::vector getDestinations()const; + int getPage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int total_; + std::vector destinations_; + int page_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/ListParserDataSourceRequest.h new file mode 100644 index 000000000..5069270ea --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListParserDataSourceRequest.h @@ -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_LISTPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListParserDataSourceRequest : public RpcServiceRequest + { + + public: + ListParserDataSourceRequest(); + ~ListParserDataSourceRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getPage()const; + void setPage(int page); + + private: + std::string searchName_; + std::string iotInstanceId_; + int pageSize_; + std::string apiProduct_; + std::string apiRevision_; + int page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/ListParserDataSourceResult.h new file mode 100644 index 000000000..435e874cf --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListParserDataSourceResult.h @@ -0,0 +1,70 @@ +/* + * 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_LISTPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListParserDataSourceResult : public ServiceResult + { + public: + struct DataSource + { + std::string description; + std::string utcCreated; + long dataSourceId; + std::string name; + }; + + + ListParserDataSourceResult(); + explicit ListParserDataSourceResult(const std::string &payload); + ~ListParserDataSourceResult(); + int getPageSize()const; + int getTotal()const; + std::vector getData()const; + int getPage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int total_; + std::vector data_; + int page_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListParserDestinationRequest.h b/iot/include/alibabacloud/iot/model/ListParserDestinationRequest.h new file mode 100644 index 000000000..8cca239ca --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListParserDestinationRequest.h @@ -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_LISTPARSERDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPARSERDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListParserDestinationRequest : public RpcServiceRequest + { + + public: + ListParserDestinationRequest(); + ~ListParserDestinationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + bool getIsFailover()const; + void setIsFailover(bool isFailover); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + bool isFailover_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPARSERDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListParserDestinationResult.h b/iot/include/alibabacloud/iot/model/ListParserDestinationResult.h new file mode 100644 index 000000000..090bd8716 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListParserDestinationResult.h @@ -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_LISTPARSERDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPARSERDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListParserDestinationResult : public ServiceResult + { + public: + struct Destinations + { + std::string type; + std::string configuration; + std::string utcCreated; + std::string utcModified; + bool isFailover; + long destinationId; + std::string name; + }; + + + ListParserDestinationResult(); + explicit ListParserDestinationResult(const std::string &payload); + ~ListParserDestinationResult(); + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPARSERDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListParserRequest.h b/iot/include/alibabacloud/iot/model/ListParserRequest.h new file mode 100644 index 000000000..2e71f1978 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListParserRequest.h @@ -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_LISTPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListParserRequest : public RpcServiceRequest + { + + public: + ListParserRequest(); + ~ListParserRequest(); + + std::string getSearchName()const; + void setSearchName(const std::string& searchName); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string searchName_; + std::string iotInstanceId_; + int pageSize_; + int currentPage_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListParserResult.h b/iot/include/alibabacloud/iot/model/ListParserResult.h new file mode 100644 index 000000000..a0df0b267 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListParserResult.h @@ -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_LISTPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListParserResult : public ServiceResult + { + public: + struct ParserList + { + std::string status; + std::string description; + std::string utcCreated; + std::string utcModified; + long parserId; + std::string name; + }; + + + ListParserResult(); + explicit ListParserResult(const std::string &payload); + ~ListParserResult(); + int getTotal()const; + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int total_; + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishScriptRequest.h b/iot/include/alibabacloud/iot/model/PublishScriptRequest.h new file mode 100644 index 000000000..09ac0388b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishScriptRequest.h @@ -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_PUBLISHSCRIPTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishScriptRequest : public RpcServiceRequest + { + + public: + PublishScriptRequest(); + ~PublishScriptRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishScriptResult.h b/iot/include/alibabacloud/iot/model/PublishScriptResult.h new file mode 100644 index 000000000..0ef965f22 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishScriptResult.h @@ -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_PUBLISHSCRIPTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishScriptResult : public ServiceResult + { + public: + + + PublishScriptResult(); + explicit PublishScriptResult(const std::string &payload); + ~PublishScriptResult(); + std::string getSyntaxErrorMsg()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string syntaxErrorMsg_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHSCRIPTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SaveScriptRequest.h b/iot/include/alibabacloud/iot/model/SaveScriptRequest.h new file mode 100644 index 000000000..b085c646a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SaveScriptRequest.h @@ -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_SAVESCRIPTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SAVESCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SaveScriptRequest : public RpcServiceRequest + { + + public: + SaveScriptRequest(); + ~SaveScriptRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getScriptDraft()const; + void setScriptDraft(const std::string& scriptDraft); + long getParserId()const; + void setParserId(long parserId); + 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 scriptDraft_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SAVESCRIPTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SaveScriptResult.h b/iot/include/alibabacloud/iot/model/SaveScriptResult.h new file mode 100644 index 000000000..c5da2fcb1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SaveScriptResult.h @@ -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_SAVESCRIPTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SAVESCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SaveScriptResult : public ServiceResult + { + public: + + + SaveScriptResult(); + explicit SaveScriptResult(const std::string &payload); + ~SaveScriptResult(); + 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_SAVESCRIPTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/StartParserRequest.h b/iot/include/alibabacloud/iot/model/StartParserRequest.h new file mode 100644 index 000000000..a8cde54a1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/StartParserRequest.h @@ -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_STARTPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_STARTPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT StartParserRequest : public RpcServiceRequest + { + + public: + StartParserRequest(); + ~StartParserRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_STARTPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/StartParserResult.h b/iot/include/alibabacloud/iot/model/StartParserResult.h new file mode 100644 index 000000000..d3926a8cf --- /dev/null +++ b/iot/include/alibabacloud/iot/model/StartParserResult.h @@ -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_STARTPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_STARTPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT StartParserResult : public ServiceResult + { + public: + + + StartParserResult(); + explicit StartParserResult(const std::string &payload); + ~StartParserResult(); + 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_STARTPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/StopParserRequest.h b/iot/include/alibabacloud/iot/model/StopParserRequest.h new file mode 100644 index 000000000..857241472 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/StopParserRequest.h @@ -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_STOPPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_STOPPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT StopParserRequest : public RpcServiceRequest + { + + public: + StopParserRequest(); + ~StopParserRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_STOPPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/StopParserResult.h b/iot/include/alibabacloud/iot/model/StopParserResult.h new file mode 100644 index 000000000..7bb54be0b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/StopParserResult.h @@ -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_STOPPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_STOPPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT StopParserResult : public ServiceResult + { + public: + + + StopParserResult(); + explicit StopParserResult(const std::string &payload); + ~StopParserResult(); + 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_STOPPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateDestinationRequest.h b/iot/include/alibabacloud/iot/model/UpdateDestinationRequest.h new file mode 100644 index 000000000..bb476d64a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateDestinationRequest.h @@ -0,0 +1,69 @@ +/* + * 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_UPDATEDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEDESTINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateDestinationRequest : public RpcServiceRequest + { + + public: + UpdateDestinationRequest(); + ~UpdateDestinationRequest(); + + std::string getConfiguration()const; + void setConfiguration(const std::string& configuration); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getDestinationId()const; + void setDestinationId(long destinationId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string configuration_; + std::string description_; + std::string type_; + std::string iotInstanceId_; + long destinationId_; + std::string apiProduct_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEDESTINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateDestinationResult.h b/iot/include/alibabacloud/iot/model/UpdateDestinationResult.h new file mode 100644 index 000000000..b31c79214 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateDestinationResult.h @@ -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_UPDATEDESTINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateDestinationResult : public ServiceResult + { + public: + + + UpdateDestinationResult(); + explicit UpdateDestinationResult(const std::string &payload); + ~UpdateDestinationResult(); + 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_UPDATEDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateParserDataSourceRequest.h b/iot/include/alibabacloud/iot/model/UpdateParserDataSourceRequest.h new file mode 100644 index 000000000..78ef8a73c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateParserDataSourceRequest.h @@ -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_UPDATEPARSERDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEPARSERDATASOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateParserDataSourceRequest : public RpcServiceRequest + { + + public: + UpdateParserDataSourceRequest(); + ~UpdateParserDataSourceRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataSourceId()const; + void setDataSourceId(long dataSourceId); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string iotInstanceId_; + std::string apiProduct_; + long dataSourceId_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEPARSERDATASOURCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateParserDataSourceResult.h b/iot/include/alibabacloud/iot/model/UpdateParserDataSourceResult.h new file mode 100644 index 000000000..a60405b23 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateParserDataSourceResult.h @@ -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_UPDATEPARSERDATASOURCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEPARSERDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateParserDataSourceResult : public ServiceResult + { + public: + + + UpdateParserDataSourceResult(); + explicit UpdateParserDataSourceResult(const std::string &payload); + ~UpdateParserDataSourceResult(); + 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_UPDATEPARSERDATASOURCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateParserRequest.h b/iot/include/alibabacloud/iot/model/UpdateParserRequest.h new file mode 100644 index 000000000..1e3681206 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateParserRequest.h @@ -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_UPDATEPARSERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEPARSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateParserRequest : public RpcServiceRequest + { + + public: + UpdateParserRequest(); + ~UpdateParserRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + long getParserId()const; + void setParserId(long parserId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string iotInstanceId_; + long parserId_; + std::string apiProduct_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEPARSERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateParserResult.h b/iot/include/alibabacloud/iot/model/UpdateParserResult.h new file mode 100644 index 000000000..cf89e2564 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateParserResult.h @@ -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_UPDATEPARSERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEPARSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateParserResult : public ServiceResult + { + public: + + + UpdateParserResult(); + explicit UpdateParserResult(const std::string &payload); + ~UpdateParserResult(); + 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_UPDATEPARSERRESULT_H_ \ No newline at end of file diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index 0a36a2d07..3a1d18eee 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -87,6 +87,78 @@ IotClient::AddDataForApiSourceOutcomeCallable IotClient::addDataForApiSourceCall return task->get_future(); } +IotClient::AttachDestinationOutcome IotClient::attachDestination(const AttachDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachDestinationOutcome(AttachDestinationResult(outcome.result())); + else + return AttachDestinationOutcome(outcome.error()); +} + +void IotClient::attachDestinationAsync(const AttachDestinationRequest& request, const AttachDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::AttachDestinationOutcomeCallable IotClient::attachDestinationCallable(const AttachDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::AttachParserDataSourceOutcome IotClient::attachParserDataSource(const AttachParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachParserDataSourceOutcome(AttachParserDataSourceResult(outcome.result())); + else + return AttachParserDataSourceOutcome(outcome.error()); +} + +void IotClient::attachParserDataSourceAsync(const AttachParserDataSourceRequest& request, const AttachParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::AttachParserDataSourceOutcomeCallable IotClient::attachParserDataSourceCallable(const AttachParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BatchAddDataForApiSourceOutcome IotClient::batchAddDataForApiSource(const BatchAddDataForApiSourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2103,42 @@ IotClient::CreateDataSourceItemOutcomeCallable IotClient::createDataSourceItemCa return task->get_future(); } +IotClient::CreateDestinationOutcome IotClient::createDestination(const CreateDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDestinationOutcome(CreateDestinationResult(outcome.result())); + else + return CreateDestinationOutcome(outcome.error()); +} + +void IotClient::createDestinationAsync(const CreateDestinationRequest& request, const CreateDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateDestinationOutcomeCallable IotClient::createDestinationCallable(const CreateDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateDeviceDistributeJobOutcome IotClient::createDeviceDistributeJob(const CreateDeviceDistributeJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +2787,78 @@ IotClient::CreateOTAVerifyJobOutcomeCallable IotClient::createOTAVerifyJobCallab return task->get_future(); } +IotClient::CreateParserOutcome IotClient::createParser(const CreateParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateParserOutcome(CreateParserResult(outcome.result())); + else + return CreateParserOutcome(outcome.error()); +} + +void IotClient::createParserAsync(const CreateParserRequest& request, const CreateParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateParserOutcomeCallable IotClient::createParserCallable(const CreateParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::CreateParserDataSourceOutcome IotClient::createParserDataSource(const CreateParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateParserDataSourceOutcome(CreateParserDataSourceResult(outcome.result())); + else + return CreateParserDataSourceOutcome(outcome.error()); +} + +void IotClient::createParserDataSourceAsync(const CreateParserDataSourceRequest& request, const CreateParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateParserDataSourceOutcomeCallable IotClient::createParserDataSourceCallable(const CreateParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateProductOutcome IotClient::createProduct(const CreateProductRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3399,6 +3579,78 @@ IotClient::DeleteConsumerGroupSubscribeRelationOutcomeCallable IotClient::delete return task->get_future(); } +IotClient::DeleteDataSourceItemOutcome IotClient::deleteDataSourceItem(const DeleteDataSourceItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataSourceItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataSourceItemOutcome(DeleteDataSourceItemResult(outcome.result())); + else + return DeleteDataSourceItemOutcome(outcome.error()); +} + +void IotClient::deleteDataSourceItemAsync(const DeleteDataSourceItemRequest& request, const DeleteDataSourceItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataSourceItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteDataSourceItemOutcomeCallable IotClient::deleteDataSourceItemCallable(const DeleteDataSourceItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataSourceItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::DeleteDestinationOutcome IotClient::deleteDestination(const DeleteDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDestinationOutcome(DeleteDestinationResult(outcome.result())); + else + return DeleteDestinationOutcome(outcome.error()); +} + +void IotClient::deleteDestinationAsync(const DeleteDestinationRequest& request, const DeleteDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteDestinationOutcomeCallable IotClient::deleteDestinationCallable(const DeleteDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteDeviceOutcome IotClient::deleteDevice(const DeleteDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3939,6 +4191,78 @@ IotClient::DeleteOTAModuleOutcomeCallable IotClient::deleteOTAModuleCallable(con return task->get_future(); } +IotClient::DeleteParserOutcome IotClient::deleteParser(const DeleteParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteParserOutcome(DeleteParserResult(outcome.result())); + else + return DeleteParserOutcome(outcome.error()); +} + +void IotClient::deleteParserAsync(const DeleteParserRequest& request, const DeleteParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteParserOutcomeCallable IotClient::deleteParserCallable(const DeleteParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::DeleteParserDataSourceOutcome IotClient::deleteParserDataSource(const DeleteParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteParserDataSourceOutcome(DeleteParserDataSourceResult(outcome.result())); + else + return DeleteParserDataSourceOutcome(outcome.error()); +} + +void IotClient::deleteParserDataSourceAsync(const DeleteParserDataSourceRequest& request, const DeleteParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteParserDataSourceOutcomeCallable IotClient::deleteParserDataSourceCallable(const DeleteParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteProductOutcome IotClient::deleteProduct(const DeleteProductRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4479,6 +4803,78 @@ IotClient::DeleteTopicRouteTableOutcomeCallable IotClient::deleteTopicRouteTable return task->get_future(); } +IotClient::DetachDestinationOutcome IotClient::detachDestination(const DetachDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachDestinationOutcome(DetachDestinationResult(outcome.result())); + else + return DetachDestinationOutcome(outcome.error()); +} + +void IotClient::detachDestinationAsync(const DetachDestinationRequest& request, const DetachDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DetachDestinationOutcomeCallable IotClient::detachDestinationCallable(const DetachDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::DetachParserDataSourceOutcome IotClient::detachParserDataSource(const DetachParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachParserDataSourceOutcome(DetachParserDataSourceResult(outcome.result())); + else + return DetachParserDataSourceOutcome(outcome.error()); +} + +void IotClient::detachParserDataSourceAsync(const DetachParserDataSourceRequest& request, const DetachParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DetachParserDataSourceOutcomeCallable IotClient::detachParserDataSourceCallable(const DetachParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DisableDeviceTunnelOutcome IotClient::disableDeviceTunnel(const DisableDeviceTunnelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +5307,42 @@ IotClient::GetDataAPIServiceDetailOutcomeCallable IotClient::getDataAPIServiceDe return task->get_future(); } +IotClient::GetDestinationOutcome IotClient::getDestination(const GetDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDestinationOutcome(GetDestinationResult(outcome.result())); + else + return GetDestinationOutcome(outcome.error()); +} + +void IotClient::getDestinationAsync(const GetDestinationRequest& request, const GetDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetDestinationOutcomeCallable IotClient::getDestinationCallable(const GetDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetDeviceShadowOutcome IotClient::getDeviceShadow(const GetDeviceShadowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5271,6 +5703,78 @@ IotClient::GetLoraNodesTaskOutcomeCallable IotClient::getLoraNodesTaskCallable(c return task->get_future(); } +IotClient::GetParserOutcome IotClient::getParser(const GetParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetParserOutcome(GetParserResult(outcome.result())); + else + return GetParserOutcome(outcome.error()); +} + +void IotClient::getParserAsync(const GetParserRequest& request, const GetParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetParserOutcomeCallable IotClient::getParserCallable(const GetParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::GetParserDataSourceOutcome IotClient::getParserDataSource(const GetParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetParserDataSourceOutcome(GetParserDataSourceResult(outcome.result())); + else + return GetParserDataSourceOutcome(outcome.error()); +} + +void IotClient::getParserDataSourceAsync(const GetParserDataSourceRequest& request, const GetParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetParserDataSourceOutcomeCallable IotClient::getParserDataSourceCallable(const GetParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetRuleOutcome IotClient::getRule(const GetRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6063,6 +6567,42 @@ IotClient::ListDataSourceItemOutcomeCallable IotClient::listDataSourceItemCallab return task->get_future(); } +IotClient::ListDestinationOutcome IotClient::listDestination(const ListDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDestinationOutcome(ListDestinationResult(outcome.result())); + else + return ListDestinationOutcome(outcome.error()); +} + +void IotClient::listDestinationAsync(const ListDestinationRequest& request, const ListDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListDestinationOutcomeCallable IotClient::listDestinationCallable(const ListDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ListDeviceDistributeJobOutcome IotClient::listDeviceDistributeJob(const ListDeviceDistributeJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6459,6 +6999,114 @@ IotClient::ListOTAUnfinishedTaskByDeviceOutcomeCallable IotClient::listOTAUnfini return task->get_future(); } +IotClient::ListParserOutcome IotClient::listParser(const ListParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListParserOutcome(ListParserResult(outcome.result())); + else + return ListParserOutcome(outcome.error()); +} + +void IotClient::listParserAsync(const ListParserRequest& request, const ListParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListParserOutcomeCallable IotClient::listParserCallable(const ListParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::ListParserDataSourceOutcome IotClient::listParserDataSource(const ListParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListParserDataSourceOutcome(ListParserDataSourceResult(outcome.result())); + else + return ListParserDataSourceOutcome(outcome.error()); +} + +void IotClient::listParserDataSourceAsync(const ListParserDataSourceRequest& request, const ListParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListParserDataSourceOutcomeCallable IotClient::listParserDataSourceCallable(const ListParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::ListParserDestinationOutcome IotClient::listParserDestination(const ListParserDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListParserDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListParserDestinationOutcome(ListParserDestinationResult(outcome.result())); + else + return ListParserDestinationOutcome(outcome.error()); +} + +void IotClient::listParserDestinationAsync(const ListParserDestinationRequest& request, const ListParserDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listParserDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListParserDestinationOutcomeCallable IotClient::listParserDestinationCallable(const ListParserDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listParserDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ListProductByTagsOutcome IotClient::listProductByTags(const ListProductByTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6927,6 +7575,42 @@ IotClient::PubBroadcastOutcomeCallable IotClient::pubBroadcastCallable(const Pub return task->get_future(); } +IotClient::PublishScriptOutcome IotClient::publishScript(const PublishScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishScriptOutcome(PublishScriptResult(outcome.result())); + else + return PublishScriptOutcome(outcome.error()); +} + +void IotClient::publishScriptAsync(const PublishScriptRequest& request, const PublishScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::PublishScriptOutcomeCallable IotClient::publishScriptCallable(const PublishScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::PublishStudioAppOutcome IotClient::publishStudioApp(const PublishStudioAppRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10887,6 +11571,42 @@ IotClient::SaveDevicePropOutcomeCallable IotClient::saveDevicePropCallable(const return task->get_future(); } +IotClient::SaveScriptOutcome IotClient::saveScript(const SaveScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveScriptOutcome(SaveScriptResult(outcome.result())); + else + return SaveScriptOutcome(outcome.error()); +} + +void IotClient::saveScriptAsync(const SaveScriptRequest& request, const SaveScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::SaveScriptOutcomeCallable IotClient::saveScriptCallable(const SaveScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::SetDeviceDesiredPropertyOutcome IotClient::setDeviceDesiredProperty(const SetDeviceDesiredPropertyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11247,6 +11967,42 @@ IotClient::SpeechBySynthesisOutcomeCallable IotClient::speechBySynthesisCallable return task->get_future(); } +IotClient::StartParserOutcome IotClient::startParser(const StartParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartParserOutcome(StartParserResult(outcome.result())); + else + return StartParserOutcome(outcome.error()); +} + +void IotClient::startParserAsync(const StartParserRequest& request, const StartParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::StartParserOutcomeCallable IotClient::startParserCallable(const StartParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::StartRuleOutcome IotClient::startRule(const StartRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11283,6 +12039,42 @@ IotClient::StartRuleOutcomeCallable IotClient::startRuleCallable(const StartRule return task->get_future(); } +IotClient::StopParserOutcome IotClient::stopParser(const StopParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopParserOutcome(StopParserResult(outcome.result())); + else + return StopParserOutcome(outcome.error()); +} + +void IotClient::stopParserAsync(const StopParserRequest& request, const StopParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::StopParserOutcomeCallable IotClient::stopParserCallable(const StopParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::StopRuleOutcome IotClient::stopRule(const StopRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11715,6 +12507,42 @@ IotClient::UpdateConsumerGroupOutcomeCallable IotClient::updateConsumerGroupCall return task->get_future(); } +IotClient::UpdateDestinationOutcome IotClient::updateDestination(const UpdateDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDestinationOutcome(UpdateDestinationResult(outcome.result())); + else + return UpdateDestinationOutcome(outcome.error()); +} + +void IotClient::updateDestinationAsync(const UpdateDestinationRequest& request, const UpdateDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateDestinationOutcomeCallable IotClient::updateDestinationCallable(const UpdateDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateDeviceGroupOutcome IotClient::updateDeviceGroup(const UpdateDeviceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12003,6 +12831,78 @@ IotClient::UpdateOTAModuleOutcomeCallable IotClient::updateOTAModuleCallable(con return task->get_future(); } +IotClient::UpdateParserOutcome IotClient::updateParser(const UpdateParserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateParserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateParserOutcome(UpdateParserResult(outcome.result())); + else + return UpdateParserOutcome(outcome.error()); +} + +void IotClient::updateParserAsync(const UpdateParserRequest& request, const UpdateParserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateParser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateParserOutcomeCallable IotClient::updateParserCallable(const UpdateParserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateParser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::UpdateParserDataSourceOutcome IotClient::updateParserDataSource(const UpdateParserDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateParserDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateParserDataSourceOutcome(UpdateParserDataSourceResult(outcome.result())); + else + return UpdateParserDataSourceOutcome(outcome.error()); +} + +void IotClient::updateParserDataSourceAsync(const UpdateParserDataSourceRequest& request, const UpdateParserDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateParserDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateParserDataSourceOutcomeCallable IotClient::updateParserDataSourceCallable(const UpdateParserDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateParserDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateProductOutcome IotClient::updateProduct(const UpdateProductRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/iot/src/model/AttachDestinationRequest.cc b/iot/src/model/AttachDestinationRequest.cc new file mode 100644 index 000000000..e74971515 --- /dev/null +++ b/iot/src/model/AttachDestinationRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::AttachDestinationRequest; + +AttachDestinationRequest::AttachDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "AttachDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +AttachDestinationRequest::~AttachDestinationRequest() +{} + +std::string AttachDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void AttachDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long AttachDestinationRequest::getDestinationId()const +{ + return destinationId_; +} + +void AttachDestinationRequest::setDestinationId(long destinationId) +{ + destinationId_ = destinationId; + setParameter("DestinationId", std::to_string(destinationId)); +} + +long AttachDestinationRequest::getParserId()const +{ + return parserId_; +} + +void AttachDestinationRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string AttachDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void AttachDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +bool AttachDestinationRequest::getIsFailover()const +{ + return isFailover_; +} + +void AttachDestinationRequest::setIsFailover(bool isFailover) +{ + isFailover_ = isFailover; + setParameter("IsFailover", isFailover ? "true" : "false"); +} + +std::string AttachDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void AttachDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/AttachDestinationResult.cc b/iot/src/model/AttachDestinationResult.cc new file mode 100644 index 000000000..dbdb9f104 --- /dev/null +++ b/iot/src/model/AttachDestinationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +AttachDestinationResult::AttachDestinationResult() : + ServiceResult() +{} + +AttachDestinationResult::AttachDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachDestinationResult::~AttachDestinationResult() +{} + +void AttachDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string AttachDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AttachDestinationResult::getCode()const +{ + return code_; +} + +bool AttachDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/AttachParserDataSourceRequest.cc b/iot/src/model/AttachParserDataSourceRequest.cc new file mode 100644 index 000000000..37f4a8dc6 --- /dev/null +++ b/iot/src/model/AttachParserDataSourceRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::AttachParserDataSourceRequest; + +AttachParserDataSourceRequest::AttachParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "AttachParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +AttachParserDataSourceRequest::~AttachParserDataSourceRequest() +{} + +std::string AttachParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void AttachParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long AttachParserDataSourceRequest::getParserId()const +{ + return parserId_; +} + +void AttachParserDataSourceRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string AttachParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void AttachParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long AttachParserDataSourceRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void AttachParserDataSourceRequest::setDataSourceId(long dataSourceId) +{ + dataSourceId_ = dataSourceId; + setParameter("DataSourceId", std::to_string(dataSourceId)); +} + +std::string AttachParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void AttachParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/AttachParserDataSourceResult.cc b/iot/src/model/AttachParserDataSourceResult.cc new file mode 100644 index 000000000..dc9f8e702 --- /dev/null +++ b/iot/src/model/AttachParserDataSourceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +AttachParserDataSourceResult::AttachParserDataSourceResult() : + ServiceResult() +{} + +AttachParserDataSourceResult::AttachParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachParserDataSourceResult::~AttachParserDataSourceResult() +{} + +void AttachParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string AttachParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AttachParserDataSourceResult::getCode()const +{ + return code_; +} + +bool AttachParserDataSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CreateDataSourceItemRequest.cc b/iot/src/model/CreateDataSourceItemRequest.cc index 397283b4e..d024b3b4d 100644 --- a/iot/src/model/CreateDataSourceItemRequest.cc +++ b/iot/src/model/CreateDataSourceItemRequest.cc @@ -27,6 +27,17 @@ CreateDataSourceItemRequest::CreateDataSourceItemRequest() : CreateDataSourceItemRequest::~CreateDataSourceItemRequest() {} +std::string CreateDataSourceItemRequest::getScopeType()const +{ + return scopeType_; +} + +void CreateDataSourceItemRequest::setScopeType(const std::string& scopeType) +{ + scopeType_ = scopeType; + setParameter("ScopeType", scopeType); +} + std::string CreateDataSourceItemRequest::getIotInstanceId()const { return iotInstanceId_; @@ -38,6 +49,17 @@ void CreateDataSourceItemRequest::setIotInstanceId(const std::string& iotInstanc setParameter("IotInstanceId", iotInstanceId); } +std::string CreateDataSourceItemRequest::getProductKey()const +{ + return productKey_; +} + +void CreateDataSourceItemRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + std::string CreateDataSourceItemRequest::getApiProduct()const { return apiProduct_; @@ -82,3 +104,14 @@ void CreateDataSourceItemRequest::setApiRevision(const std::string& apiRevision) setBodyParameter("ApiRevision", apiRevision); } +std::string CreateDataSourceItemRequest::getDeviceName()const +{ + return deviceName_; +} + +void CreateDataSourceItemRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/CreateDestinationRequest.cc b/iot/src/model/CreateDestinationRequest.cc new file mode 100644 index 000000000..9a6c94ff7 --- /dev/null +++ b/iot/src/model/CreateDestinationRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::CreateDestinationRequest; + +CreateDestinationRequest::CreateDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDestinationRequest::~CreateDestinationRequest() +{} + +std::string CreateDestinationRequest::getConfiguration()const +{ + return configuration_; +} + +void CreateDestinationRequest::setConfiguration(const std::string& configuration) +{ + configuration_ = configuration; + setParameter("Configuration", configuration); +} + +std::string CreateDestinationRequest::getDescription()const +{ + return description_; +} + +void CreateDestinationRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateDestinationRequest::getType()const +{ + return type_; +} + +void CreateDestinationRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string CreateDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateDestinationRequest::getName()const +{ + return name_; +} + +void CreateDestinationRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CreateDestinationResult.cc b/iot/src/model/CreateDestinationResult.cc new file mode 100644 index 000000000..c8db3e503 --- /dev/null +++ b/iot/src/model/CreateDestinationResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +CreateDestinationResult::CreateDestinationResult() : + ServiceResult() +{} + +CreateDestinationResult::CreateDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDestinationResult::~CreateDestinationResult() +{} + +void CreateDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto destinationNode = value["Destination"]; + if(!destinationNode["DestinationId"].isNull()) + destination_.destinationId = std::stol(destinationNode["DestinationId"].asString()); + if(!destinationNode["Name"].isNull()) + destination_.name = destinationNode["Name"].asString(); + if(!destinationNode["Type"].isNull()) + destination_.type = destinationNode["Type"].asString(); + if(!destinationNode["Configuration"].isNull()) + destination_.configuration = destinationNode["Configuration"].asString(); + if(!destinationNode["IsFailover"].isNull()) + destination_.isFailover = destinationNode["IsFailover"].asString() == "true"; + if(!destinationNode["UtcCreated"].isNull()) + destination_.utcCreated = destinationNode["UtcCreated"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +CreateDestinationResult::Destination CreateDestinationResult::getDestination()const +{ + return destination_; +} + +std::string CreateDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateDestinationResult::getCode()const +{ + return code_; +} + +bool CreateDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CreateParserDataSourceRequest.cc b/iot/src/model/CreateParserDataSourceRequest.cc new file mode 100644 index 000000000..8d3126c72 --- /dev/null +++ b/iot/src/model/CreateParserDataSourceRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::CreateParserDataSourceRequest; + +CreateParserDataSourceRequest::CreateParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateParserDataSourceRequest::~CreateParserDataSourceRequest() +{} + +std::string CreateParserDataSourceRequest::getDescription()const +{ + return description_; +} + +void CreateParserDataSourceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateParserDataSourceRequest::getName()const +{ + return name_; +} + +void CreateParserDataSourceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CreateParserDataSourceResult.cc b/iot/src/model/CreateParserDataSourceResult.cc new file mode 100644 index 000000000..ac8a16893 --- /dev/null +++ b/iot/src/model/CreateParserDataSourceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +CreateParserDataSourceResult::CreateParserDataSourceResult() : + ServiceResult() +{} + +CreateParserDataSourceResult::CreateParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateParserDataSourceResult::~CreateParserDataSourceResult() +{} + +void CreateParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataSourceNode = value["DataSource"]; + if(!dataSourceNode["Name"].isNull()) + dataSource_.name = dataSourceNode["Name"].asString(); + if(!dataSourceNode["Description"].isNull()) + dataSource_.description = dataSourceNode["Description"].asString(); + if(!dataSourceNode["DataSourceId"].isNull()) + dataSource_.dataSourceId = std::stol(dataSourceNode["DataSourceId"].asString()); + if(!dataSourceNode["UtcCreated"].isNull()) + dataSource_.utcCreated = dataSourceNode["UtcCreated"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string CreateParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateParserDataSourceResult::getCode()const +{ + return code_; +} + +bool CreateParserDataSourceResult::getSuccess()const +{ + return success_; +} + +CreateParserDataSourceResult::DataSource CreateParserDataSourceResult::getDataSource()const +{ + return dataSource_; +} + diff --git a/iot/src/model/CreateParserRequest.cc b/iot/src/model/CreateParserRequest.cc new file mode 100644 index 000000000..4295221f5 --- /dev/null +++ b/iot/src/model/CreateParserRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::CreateParserRequest; + +CreateParserRequest::CreateParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateParser") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateParserRequest::~CreateParserRequest() +{} + +std::string CreateParserRequest::getDescription()const +{ + return description_; +} + +void CreateParserRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateParserRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateParserRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateParserRequest::getName()const +{ + return name_; +} + +void CreateParserRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CreateParserResult.cc b/iot/src/model/CreateParserResult.cc new file mode 100644 index 000000000..9dc90408a --- /dev/null +++ b/iot/src/model/CreateParserResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +CreateParserResult::CreateParserResult() : + ServiceResult() +{} + +CreateParserResult::CreateParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateParserResult::~CreateParserResult() +{} + +void CreateParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ParserId"].isNull()) + parserId_ = std::stol(value["ParserId"].asString()); + +} + +std::string CreateParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateParserResult::getCode()const +{ + return code_; +} + +long CreateParserResult::getParserId()const +{ + return parserId_; +} + +bool CreateParserResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteDataSourceItemRequest.cc b/iot/src/model/DeleteDataSourceItemRequest.cc new file mode 100644 index 000000000..53dc51022 --- /dev/null +++ b/iot/src/model/DeleteDataSourceItemRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteDataSourceItemRequest; + +DeleteDataSourceItemRequest::DeleteDataSourceItemRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteDataSourceItem") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDataSourceItemRequest::~DeleteDataSourceItemRequest() +{} + +std::string DeleteDataSourceItemRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteDataSourceItemRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long DeleteDataSourceItemRequest::getDataSourceItemId()const +{ + return dataSourceItemId_; +} + +void DeleteDataSourceItemRequest::setDataSourceItemId(long dataSourceItemId) +{ + dataSourceItemId_ = dataSourceItemId; + setParameter("DataSourceItemId", std::to_string(dataSourceItemId)); +} + +std::string DeleteDataSourceItemRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteDataSourceItemRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long DeleteDataSourceItemRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void DeleteDataSourceItemRequest::setDataSourceId(long dataSourceId) +{ + dataSourceId_ = dataSourceId; + setParameter("DataSourceId", std::to_string(dataSourceId)); +} + +std::string DeleteDataSourceItemRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteDataSourceItemRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteDataSourceItemResult.cc b/iot/src/model/DeleteDataSourceItemResult.cc new file mode 100644 index 000000000..a2513eb9f --- /dev/null +++ b/iot/src/model/DeleteDataSourceItemResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DeleteDataSourceItemResult::DeleteDataSourceItemResult() : + ServiceResult() +{} + +DeleteDataSourceItemResult::DeleteDataSourceItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataSourceItemResult::~DeleteDataSourceItemResult() +{} + +void DeleteDataSourceItemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DeleteDataSourceItemResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteDataSourceItemResult::getCode()const +{ + return code_; +} + +bool DeleteDataSourceItemResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteDestinationRequest.cc b/iot/src/model/DeleteDestinationRequest.cc new file mode 100644 index 000000000..026b567c0 --- /dev/null +++ b/iot/src/model/DeleteDestinationRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteDestinationRequest; + +DeleteDestinationRequest::DeleteDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDestinationRequest::~DeleteDestinationRequest() +{} + +std::string DeleteDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long DeleteDestinationRequest::getDestinationId()const +{ + return destinationId_; +} + +void DeleteDestinationRequest::setDestinationId(long destinationId) +{ + destinationId_ = destinationId; + setParameter("DestinationId", std::to_string(destinationId)); +} + +std::string DeleteDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteDestinationResult.cc b/iot/src/model/DeleteDestinationResult.cc new file mode 100644 index 000000000..2480f5377 --- /dev/null +++ b/iot/src/model/DeleteDestinationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DeleteDestinationResult::DeleteDestinationResult() : + ServiceResult() +{} + +DeleteDestinationResult::DeleteDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDestinationResult::~DeleteDestinationResult() +{} + +void DeleteDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DeleteDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteDestinationResult::getCode()const +{ + return code_; +} + +bool DeleteDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteParserDataSourceRequest.cc b/iot/src/model/DeleteParserDataSourceRequest.cc new file mode 100644 index 000000000..a80e75d77 --- /dev/null +++ b/iot/src/model/DeleteParserDataSourceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteParserDataSourceRequest; + +DeleteParserDataSourceRequest::DeleteParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteParserDataSourceRequest::~DeleteParserDataSourceRequest() +{} + +std::string DeleteParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long DeleteParserDataSourceRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void DeleteParserDataSourceRequest::setDataSourceId(long dataSourceId) +{ + dataSourceId_ = dataSourceId; + setParameter("DataSourceId", std::to_string(dataSourceId)); +} + +std::string DeleteParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteParserDataSourceResult.cc b/iot/src/model/DeleteParserDataSourceResult.cc new file mode 100644 index 000000000..ef136645b --- /dev/null +++ b/iot/src/model/DeleteParserDataSourceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DeleteParserDataSourceResult::DeleteParserDataSourceResult() : + ServiceResult() +{} + +DeleteParserDataSourceResult::DeleteParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteParserDataSourceResult::~DeleteParserDataSourceResult() +{} + +void DeleteParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DeleteParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteParserDataSourceResult::getCode()const +{ + return code_; +} + +bool DeleteParserDataSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteParserRequest.cc b/iot/src/model/DeleteParserRequest.cc new file mode 100644 index 000000000..c12195bec --- /dev/null +++ b/iot/src/model/DeleteParserRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteParserRequest; + +DeleteParserRequest::DeleteParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteParser") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteParserRequest::~DeleteParserRequest() +{} + +std::string DeleteParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long DeleteParserRequest::getParserId()const +{ + return parserId_; +} + +void DeleteParserRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string DeleteParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteParserResult.cc b/iot/src/model/DeleteParserResult.cc new file mode 100644 index 000000000..00b3eedf5 --- /dev/null +++ b/iot/src/model/DeleteParserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DeleteParserResult::DeleteParserResult() : + ServiceResult() +{} + +DeleteParserResult::DeleteParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteParserResult::~DeleteParserResult() +{} + +void DeleteParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DeleteParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteParserResult::getCode()const +{ + return code_; +} + +bool DeleteParserResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DetachDestinationRequest.cc b/iot/src/model/DetachDestinationRequest.cc new file mode 100644 index 000000000..c55ab7aa4 --- /dev/null +++ b/iot/src/model/DetachDestinationRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DetachDestinationRequest; + +DetachDestinationRequest::DetachDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "DetachDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +DetachDestinationRequest::~DetachDestinationRequest() +{} + +std::string DetachDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DetachDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long DetachDestinationRequest::getDestinationId()const +{ + return destinationId_; +} + +void DetachDestinationRequest::setDestinationId(long destinationId) +{ + destinationId_ = destinationId; + setParameter("DestinationId", std::to_string(destinationId)); +} + +long DetachDestinationRequest::getParserId()const +{ + return parserId_; +} + +void DetachDestinationRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string DetachDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DetachDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DetachDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DetachDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DetachDestinationResult.cc b/iot/src/model/DetachDestinationResult.cc new file mode 100644 index 000000000..04cb66152 --- /dev/null +++ b/iot/src/model/DetachDestinationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DetachDestinationResult::DetachDestinationResult() : + ServiceResult() +{} + +DetachDestinationResult::DetachDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachDestinationResult::~DetachDestinationResult() +{} + +void DetachDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DetachDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DetachDestinationResult::getCode()const +{ + return code_; +} + +bool DetachDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DetachParserDataSourceRequest.cc b/iot/src/model/DetachParserDataSourceRequest.cc new file mode 100644 index 000000000..2a56b301c --- /dev/null +++ b/iot/src/model/DetachParserDataSourceRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DetachParserDataSourceRequest; + +DetachParserDataSourceRequest::DetachParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "DetachParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +DetachParserDataSourceRequest::~DetachParserDataSourceRequest() +{} + +std::string DetachParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DetachParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long DetachParserDataSourceRequest::getParserId()const +{ + return parserId_; +} + +void DetachParserDataSourceRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string DetachParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DetachParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long DetachParserDataSourceRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void DetachParserDataSourceRequest::setDataSourceId(long dataSourceId) +{ + dataSourceId_ = dataSourceId; + setParameter("DataSourceId", std::to_string(dataSourceId)); +} + +std::string DetachParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DetachParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DetachParserDataSourceResult.cc b/iot/src/model/DetachParserDataSourceResult.cc new file mode 100644 index 000000000..1ee81484d --- /dev/null +++ b/iot/src/model/DetachParserDataSourceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DetachParserDataSourceResult::DetachParserDataSourceResult() : + ServiceResult() +{} + +DetachParserDataSourceResult::DetachParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachParserDataSourceResult::~DetachParserDataSourceResult() +{} + +void DetachParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DetachParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DetachParserDataSourceResult::getCode()const +{ + return code_; +} + +bool DetachParserDataSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetDestinationRequest.cc b/iot/src/model/GetDestinationRequest.cc new file mode 100644 index 000000000..a838248f0 --- /dev/null +++ b/iot/src/model/GetDestinationRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::GetDestinationRequest; + +GetDestinationRequest::GetDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDestinationRequest::~GetDestinationRequest() +{} + +std::string GetDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long GetDestinationRequest::getDestinationId()const +{ + return destinationId_; +} + +void GetDestinationRequest::setDestinationId(long destinationId) +{ + destinationId_ = destinationId; + setParameter("DestinationId", std::to_string(destinationId)); +} + +std::string GetDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetDestinationResult.cc b/iot/src/model/GetDestinationResult.cc new file mode 100644 index 000000000..d731555cb --- /dev/null +++ b/iot/src/model/GetDestinationResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetDestinationResult::GetDestinationResult() : + ServiceResult() +{} + +GetDestinationResult::GetDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDestinationResult::~GetDestinationResult() +{} + +void GetDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto destinationNode = value["Destination"]; + if(!destinationNode["DestinationId"].isNull()) + destination_.destinationId = destinationNode["DestinationId"].asString(); + if(!destinationNode["Name"].isNull()) + destination_.name = destinationNode["Name"].asString(); + if(!destinationNode["Type"].isNull()) + destination_.type = destinationNode["Type"].asString(); + if(!destinationNode["Configuration"].isNull()) + destination_.configuration = destinationNode["Configuration"].asString(); + if(!destinationNode["IsFailover"].isNull()) + destination_.isFailover = destinationNode["IsFailover"].asString() == "true"; + if(!destinationNode["UtcCreated"].isNull()) + destination_.utcCreated = destinationNode["UtcCreated"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetDestinationResult::Destination GetDestinationResult::getDestination()const +{ + return destination_; +} + +std::string GetDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetDestinationResult::getCode()const +{ + return code_; +} + +bool GetDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetParserDataSourceRequest.cc b/iot/src/model/GetParserDataSourceRequest.cc new file mode 100644 index 000000000..4cea83db3 --- /dev/null +++ b/iot/src/model/GetParserDataSourceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::GetParserDataSourceRequest; + +GetParserDataSourceRequest::GetParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +GetParserDataSourceRequest::~GetParserDataSourceRequest() +{} + +std::string GetParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string GetParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long GetParserDataSourceRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void GetParserDataSourceRequest::setDataSourceId(long dataSourceId) +{ + dataSourceId_ = dataSourceId; + setParameter("DataSourceId", std::to_string(dataSourceId)); +} + +std::string GetParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetParserDataSourceResult.cc b/iot/src/model/GetParserDataSourceResult.cc new file mode 100644 index 000000000..2af7a95ab --- /dev/null +++ b/iot/src/model/GetParserDataSourceResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetParserDataSourceResult::GetParserDataSourceResult() : + ServiceResult() +{} + +GetParserDataSourceResult::GetParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetParserDataSourceResult::~GetParserDataSourceResult() +{} + +void GetParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataSourceNode = value["DataSource"]; + if(!dataSourceNode["Name"].isNull()) + dataSource_.name = dataSourceNode["Name"].asString(); + if(!dataSourceNode["Description"].isNull()) + dataSource_.description = dataSourceNode["Description"].asString(); + if(!dataSourceNode["DataSourceId"].isNull()) + dataSource_.dataSourceId = std::stol(dataSourceNode["DataSourceId"].asString()); + if(!dataSourceNode["UtcCreated"].isNull()) + dataSource_.utcCreated = dataSourceNode["UtcCreated"].asString(); + if(!dataSourceNode["CreateUserId"].isNull()) + dataSource_.createUserId = std::stol(dataSourceNode["CreateUserId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string GetParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetParserDataSourceResult::getCode()const +{ + return code_; +} + +bool GetParserDataSourceResult::getSuccess()const +{ + return success_; +} + +GetParserDataSourceResult::DataSource GetParserDataSourceResult::getDataSource()const +{ + return dataSource_; +} + diff --git a/iot/src/model/GetParserRequest.cc b/iot/src/model/GetParserRequest.cc new file mode 100644 index 000000000..4d3eab7f3 --- /dev/null +++ b/iot/src/model/GetParserRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::GetParserRequest; + +GetParserRequest::GetParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetParser") +{ + setMethod(HttpRequest::Method::Post); +} + +GetParserRequest::~GetParserRequest() +{} + +std::string GetParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long GetParserRequest::getParserId()const +{ + return parserId_; +} + +void GetParserRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string GetParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetParserResult.cc b/iot/src/model/GetParserResult.cc new file mode 100644 index 000000000..b6d4627ee --- /dev/null +++ b/iot/src/model/GetParserResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetParserResult::GetParserResult() : + ServiceResult() +{} + +GetParserResult::GetParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetParserResult::~GetParserResult() +{} + +void GetParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ParserId"].isNull()) + data_.parserId = std::stol(dataNode["ParserId"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["DataSourceId"].isNull()) + data_.dataSourceId = std::stol(dataNode["DataSourceId"].asString()); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["UtcCreated"].isNull()) + data_.utcCreated = dataNode["UtcCreated"].asString(); + if(!dataNode["UtcModified"].isNull()) + data_.utcModified = dataNode["UtcModified"].asString(); + if(!dataNode["ScriptDraft"].isNull()) + data_.scriptDraft = dataNode["ScriptDraft"].asString(); + if(!dataNode["Script"].isNull()) + data_.script = dataNode["Script"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +GetParserResult::Data GetParserResult::getData()const +{ + return data_; +} + +std::string GetParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetParserResult::getCode()const +{ + return code_; +} + +bool GetParserResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListDataSourceItemResult.cc b/iot/src/model/ListDataSourceItemResult.cc index 53142ba74..17d0a9842 100644 --- a/iot/src/model/ListDataSourceItemResult.cc +++ b/iot/src/model/ListDataSourceItemResult.cc @@ -47,6 +47,12 @@ void ListDataSourceItemResult::parse(const std::string &payload) dataSourceItemsObject.dataSourceItemId = std::stol(valueDataSourceItemsdataSourceItem["DataSourceItemId"].asString()); if(!valueDataSourceItemsdataSourceItem["Topic"].isNull()) dataSourceItemsObject.topic = valueDataSourceItemsdataSourceItem["Topic"].asString(); + if(!valueDataSourceItemsdataSourceItem["ScopeType"].isNull()) + dataSourceItemsObject.scopeType = valueDataSourceItemsdataSourceItem["ScopeType"].asString(); + if(!valueDataSourceItemsdataSourceItem["ProductKey"].isNull()) + dataSourceItemsObject.productKey = valueDataSourceItemsdataSourceItem["ProductKey"].asString(); + if(!valueDataSourceItemsdataSourceItem["DeviceName"].isNull()) + dataSourceItemsObject.deviceName = valueDataSourceItemsdataSourceItem["DeviceName"].asString(); dataSourceItems_.push_back(dataSourceItemsObject); } if(!value["Success"].isNull()) diff --git a/iot/src/model/ListDestinationRequest.cc b/iot/src/model/ListDestinationRequest.cc new file mode 100644 index 000000000..9c316f2ce --- /dev/null +++ b/iot/src/model/ListDestinationRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::ListDestinationRequest; + +ListDestinationRequest::ListDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDestinationRequest::~ListDestinationRequest() +{} + +std::string ListDestinationRequest::getSearchName()const +{ + return searchName_; +} + +void ListDestinationRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +std::string ListDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListDestinationRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDestinationRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::vector ListDestinationRequest::getTypes()const +{ + return types_; +} + +void ListDestinationRequest::setTypes(const std::vector& types) +{ + types_ = types; + for(int dep1 = 0; dep1!= types.size(); dep1++) { + setParameter("Types."+ std::to_string(dep1), types.at(dep1)); + } +} + +std::string ListDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int ListDestinationRequest::getPage()const +{ + return page_; +} + +void ListDestinationRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + diff --git a/iot/src/model/ListDestinationResult.cc b/iot/src/model/ListDestinationResult.cc new file mode 100644 index 000000000..c3c41b2db --- /dev/null +++ b/iot/src/model/ListDestinationResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ListDestinationResult::ListDestinationResult() : + ServiceResult() +{} + +ListDestinationResult::ListDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDestinationResult::~ListDestinationResult() +{} + +void ListDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDestinationsNode = value["Destinations"]["destinationsItem"]; + for (auto valueDestinationsdestinationsItem : allDestinationsNode) + { + DestinationsItem destinationsObject; + if(!valueDestinationsdestinationsItem["DestinationId"].isNull()) + destinationsObject.destinationId = std::stol(valueDestinationsdestinationsItem["DestinationId"].asString()); + if(!valueDestinationsdestinationsItem["Name"].isNull()) + destinationsObject.name = valueDestinationsdestinationsItem["Name"].asString(); + if(!valueDestinationsdestinationsItem["Type"].isNull()) + destinationsObject.type = valueDestinationsdestinationsItem["Type"].asString(); + if(!valueDestinationsdestinationsItem["Configuration"].isNull()) + destinationsObject.configuration = valueDestinationsdestinationsItem["Configuration"].asString(); + if(!valueDestinationsdestinationsItem["IsFailover"].isNull()) + destinationsObject.isFailover = valueDestinationsdestinationsItem["IsFailover"].asString() == "true"; + if(!valueDestinationsdestinationsItem["UtcCreated"].isNull()) + destinationsObject.utcCreated = valueDestinationsdestinationsItem["UtcCreated"].asString(); + if(!valueDestinationsdestinationsItem["Description"].isNull()) + destinationsObject.description = valueDestinationsdestinationsItem["Description"].asString(); + destinations_.push_back(destinationsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int ListDestinationResult::getPageSize()const +{ + return pageSize_; +} + +int ListDestinationResult::getTotal()const +{ + return total_; +} + +std::vector ListDestinationResult::getDestinations()const +{ + return destinations_; +} + +int ListDestinationResult::getPage()const +{ + return page_; +} + +std::string ListDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListDestinationResult::getCode()const +{ + return code_; +} + +bool ListDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListParserDataSourceRequest.cc b/iot/src/model/ListParserDataSourceRequest.cc new file mode 100644 index 000000000..0df72cc8f --- /dev/null +++ b/iot/src/model/ListParserDataSourceRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::ListParserDataSourceRequest; + +ListParserDataSourceRequest::ListParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +ListParserDataSourceRequest::~ListParserDataSourceRequest() +{} + +std::string ListParserDataSourceRequest::getSearchName()const +{ + return searchName_; +} + +void ListParserDataSourceRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +std::string ListParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListParserDataSourceRequest::getPageSize()const +{ + return pageSize_; +} + +void ListParserDataSourceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int ListParserDataSourceRequest::getPage()const +{ + return page_; +} + +void ListParserDataSourceRequest::setPage(int page) +{ + page_ = page; + setParameter("Page", std::to_string(page)); +} + diff --git a/iot/src/model/ListParserDataSourceResult.cc b/iot/src/model/ListParserDataSourceResult.cc new file mode 100644 index 000000000..f1565caa5 --- /dev/null +++ b/iot/src/model/ListParserDataSourceResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ListParserDataSourceResult::ListParserDataSourceResult() : + ServiceResult() +{} + +ListParserDataSourceResult::ListParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListParserDataSourceResult::~ListParserDataSourceResult() +{} + +void ListParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataSource"]; + for (auto valueDataDataSource : allDataNode) + { + DataSource dataObject; + if(!valueDataDataSource["Name"].isNull()) + dataObject.name = valueDataDataSource["Name"].asString(); + if(!valueDataDataSource["Description"].isNull()) + dataObject.description = valueDataDataSource["Description"].asString(); + if(!valueDataDataSource["DataSourceId"].isNull()) + dataObject.dataSourceId = std::stol(valueDataDataSource["DataSourceId"].asString()); + if(!valueDataDataSource["UtcCreated"].isNull()) + dataObject.utcCreated = valueDataDataSource["UtcCreated"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int ListParserDataSourceResult::getPageSize()const +{ + return pageSize_; +} + +int ListParserDataSourceResult::getTotal()const +{ + return total_; +} + +std::vector ListParserDataSourceResult::getData()const +{ + return data_; +} + +int ListParserDataSourceResult::getPage()const +{ + return page_; +} + +std::string ListParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListParserDataSourceResult::getCode()const +{ + return code_; +} + +bool ListParserDataSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListParserDestinationRequest.cc b/iot/src/model/ListParserDestinationRequest.cc new file mode 100644 index 000000000..88fb1c640 --- /dev/null +++ b/iot/src/model/ListParserDestinationRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::ListParserDestinationRequest; + +ListParserDestinationRequest::ListParserDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListParserDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +ListParserDestinationRequest::~ListParserDestinationRequest() +{} + +std::string ListParserDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListParserDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long ListParserDestinationRequest::getParserId()const +{ + return parserId_; +} + +void ListParserDestinationRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string ListParserDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListParserDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +bool ListParserDestinationRequest::getIsFailover()const +{ + return isFailover_; +} + +void ListParserDestinationRequest::setIsFailover(bool isFailover) +{ + isFailover_ = isFailover; + setParameter("IsFailover", isFailover ? "true" : "false"); +} + +std::string ListParserDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListParserDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/ListParserDestinationResult.cc b/iot/src/model/ListParserDestinationResult.cc new file mode 100644 index 000000000..a1506504b --- /dev/null +++ b/iot/src/model/ListParserDestinationResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ListParserDestinationResult::ListParserDestinationResult() : + ServiceResult() +{} + +ListParserDestinationResult::ListParserDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListParserDestinationResult::~ListParserDestinationResult() +{} + +void ListParserDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["destinations"]; + for (auto valueDatadestinations : allDataNode) + { + Destinations dataObject; + if(!valueDatadestinations["DestinationId"].isNull()) + dataObject.destinationId = std::stol(valueDatadestinations["DestinationId"].asString()); + if(!valueDatadestinations["Name"].isNull()) + dataObject.name = valueDatadestinations["Name"].asString(); + if(!valueDatadestinations["Type"].isNull()) + dataObject.type = valueDatadestinations["Type"].asString(); + if(!valueDatadestinations["Configuration"].isNull()) + dataObject.configuration = valueDatadestinations["Configuration"].asString(); + if(!valueDatadestinations["IsFailover"].isNull()) + dataObject.isFailover = valueDatadestinations["IsFailover"].asString() == "true"; + if(!valueDatadestinations["UtcCreated"].isNull()) + dataObject.utcCreated = valueDatadestinations["UtcCreated"].asString(); + if(!valueDatadestinations["UtcModified"].isNull()) + dataObject.utcModified = valueDatadestinations["UtcModified"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector ListParserDestinationResult::getData()const +{ + return data_; +} + +std::string ListParserDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListParserDestinationResult::getCode()const +{ + return code_; +} + +bool ListParserDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListParserRequest.cc b/iot/src/model/ListParserRequest.cc new file mode 100644 index 000000000..6f1972f4c --- /dev/null +++ b/iot/src/model/ListParserRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::ListParserRequest; + +ListParserRequest::ListParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListParser") +{ + setMethod(HttpRequest::Method::Post); +} + +ListParserRequest::~ListParserRequest() +{} + +std::string ListParserRequest::getSearchName()const +{ + return searchName_; +} + +void ListParserRequest::setSearchName(const std::string& searchName) +{ + searchName_ = searchName; + setParameter("SearchName", searchName); +} + +std::string ListParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListParserRequest::getPageSize()const +{ + return pageSize_; +} + +void ListParserRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListParserRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListParserRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/ListParserResult.cc b/iot/src/model/ListParserResult.cc new file mode 100644 index 000000000..7646d8033 --- /dev/null +++ b/iot/src/model/ListParserResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ListParserResult::ListParserResult() : + ServiceResult() +{} + +ListParserResult::ListParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListParserResult::~ListParserResult() +{} + +void ListParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ParserList"]; + for (auto valueDataParserList : allDataNode) + { + ParserList dataObject; + if(!valueDataParserList["Name"].isNull()) + dataObject.name = valueDataParserList["Name"].asString(); + if(!valueDataParserList["ParserId"].isNull()) + dataObject.parserId = std::stol(valueDataParserList["ParserId"].asString()); + if(!valueDataParserList["Description"].isNull()) + dataObject.description = valueDataParserList["Description"].asString(); + if(!valueDataParserList["Status"].isNull()) + dataObject.status = valueDataParserList["Status"].asString(); + if(!valueDataParserList["UtcCreated"].isNull()) + dataObject.utcCreated = valueDataParserList["UtcCreated"].asString(); + if(!valueDataParserList["UtcModified"].isNull()) + dataObject.utcModified = valueDataParserList["UtcModified"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int ListParserResult::getTotal()const +{ + return total_; +} + +std::vector ListParserResult::getData()const +{ + return data_; +} + +std::string ListParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListParserResult::getCode()const +{ + return code_; +} + +bool ListParserResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/PublishScriptRequest.cc b/iot/src/model/PublishScriptRequest.cc new file mode 100644 index 000000000..015044349 --- /dev/null +++ b/iot/src/model/PublishScriptRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::PublishScriptRequest; + +PublishScriptRequest::PublishScriptRequest() : + RpcServiceRequest("iot", "2018-01-20", "PublishScript") +{ + setMethod(HttpRequest::Method::Post); +} + +PublishScriptRequest::~PublishScriptRequest() +{} + +std::string PublishScriptRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void PublishScriptRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long PublishScriptRequest::getParserId()const +{ + return parserId_; +} + +void PublishScriptRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string PublishScriptRequest::getApiProduct()const +{ + return apiProduct_; +} + +void PublishScriptRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string PublishScriptRequest::getApiRevision()const +{ + return apiRevision_; +} + +void PublishScriptRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/PublishScriptResult.cc b/iot/src/model/PublishScriptResult.cc new file mode 100644 index 000000000..bcb78525c --- /dev/null +++ b/iot/src/model/PublishScriptResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +PublishScriptResult::PublishScriptResult() : + ServiceResult() +{} + +PublishScriptResult::PublishScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishScriptResult::~PublishScriptResult() +{} + +void PublishScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["SyntaxErrorMsg"].isNull()) + syntaxErrorMsg_ = value["SyntaxErrorMsg"].asString(); + +} + +std::string PublishScriptResult::getSyntaxErrorMsg()const +{ + return syntaxErrorMsg_; +} + +std::string PublishScriptResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string PublishScriptResult::getCode()const +{ + return code_; +} + +bool PublishScriptResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/SaveScriptRequest.cc b/iot/src/model/SaveScriptRequest.cc new file mode 100644 index 000000000..2f66dd296 --- /dev/null +++ b/iot/src/model/SaveScriptRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::SaveScriptRequest; + +SaveScriptRequest::SaveScriptRequest() : + RpcServiceRequest("iot", "2018-01-20", "SaveScript") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveScriptRequest::~SaveScriptRequest() +{} + +std::string SaveScriptRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void SaveScriptRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string SaveScriptRequest::getScriptDraft()const +{ + return scriptDraft_; +} + +void SaveScriptRequest::setScriptDraft(const std::string& scriptDraft) +{ + scriptDraft_ = scriptDraft; + setParameter("ScriptDraft", scriptDraft); +} + +long SaveScriptRequest::getParserId()const +{ + return parserId_; +} + +void SaveScriptRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string SaveScriptRequest::getApiProduct()const +{ + return apiProduct_; +} + +void SaveScriptRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string SaveScriptRequest::getApiRevision()const +{ + return apiRevision_; +} + +void SaveScriptRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/SaveScriptResult.cc b/iot/src/model/SaveScriptResult.cc new file mode 100644 index 000000000..e167bd853 --- /dev/null +++ b/iot/src/model/SaveScriptResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +SaveScriptResult::SaveScriptResult() : + ServiceResult() +{} + +SaveScriptResult::SaveScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveScriptResult::~SaveScriptResult() +{} + +void SaveScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string SaveScriptResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string SaveScriptResult::getCode()const +{ + return code_; +} + +bool SaveScriptResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/StartParserRequest.cc b/iot/src/model/StartParserRequest.cc new file mode 100644 index 000000000..bef35f61e --- /dev/null +++ b/iot/src/model/StartParserRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::StartParserRequest; + +StartParserRequest::StartParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "StartParser") +{ + setMethod(HttpRequest::Method::Post); +} + +StartParserRequest::~StartParserRequest() +{} + +std::string StartParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void StartParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long StartParserRequest::getParserId()const +{ + return parserId_; +} + +void StartParserRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string StartParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void StartParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string StartParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void StartParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/StartParserResult.cc b/iot/src/model/StartParserResult.cc new file mode 100644 index 000000000..98f3eb3a2 --- /dev/null +++ b/iot/src/model/StartParserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +StartParserResult::StartParserResult() : + ServiceResult() +{} + +StartParserResult::StartParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartParserResult::~StartParserResult() +{} + +void StartParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string StartParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string StartParserResult::getCode()const +{ + return code_; +} + +bool StartParserResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/StopParserRequest.cc b/iot/src/model/StopParserRequest.cc new file mode 100644 index 000000000..1211a51df --- /dev/null +++ b/iot/src/model/StopParserRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::StopParserRequest; + +StopParserRequest::StopParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "StopParser") +{ + setMethod(HttpRequest::Method::Post); +} + +StopParserRequest::~StopParserRequest() +{} + +std::string StopParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void StopParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long StopParserRequest::getParserId()const +{ + return parserId_; +} + +void StopParserRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string StopParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void StopParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string StopParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void StopParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/StopParserResult.cc b/iot/src/model/StopParserResult.cc new file mode 100644 index 000000000..4f6fed5ed --- /dev/null +++ b/iot/src/model/StopParserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +StopParserResult::StopParserResult() : + ServiceResult() +{} + +StopParserResult::StopParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopParserResult::~StopParserResult() +{} + +void StopParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string StopParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string StopParserResult::getCode()const +{ + return code_; +} + +bool StopParserResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateDestinationRequest.cc b/iot/src/model/UpdateDestinationRequest.cc new file mode 100644 index 000000000..a104d130d --- /dev/null +++ b/iot/src/model/UpdateDestinationRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::UpdateDestinationRequest; + +UpdateDestinationRequest::UpdateDestinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateDestination") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateDestinationRequest::~UpdateDestinationRequest() +{} + +std::string UpdateDestinationRequest::getConfiguration()const +{ + return configuration_; +} + +void UpdateDestinationRequest::setConfiguration(const std::string& configuration) +{ + configuration_ = configuration; + setParameter("Configuration", configuration); +} + +std::string UpdateDestinationRequest::getDescription()const +{ + return description_; +} + +void UpdateDestinationRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateDestinationRequest::getType()const +{ + return type_; +} + +void UpdateDestinationRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string UpdateDestinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateDestinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long UpdateDestinationRequest::getDestinationId()const +{ + return destinationId_; +} + +void UpdateDestinationRequest::setDestinationId(long destinationId) +{ + destinationId_ = destinationId; + setParameter("DestinationId", std::to_string(destinationId)); +} + +std::string UpdateDestinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateDestinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateDestinationRequest::getName()const +{ + return name_; +} + +void UpdateDestinationRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateDestinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateDestinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/UpdateDestinationResult.cc b/iot/src/model/UpdateDestinationResult.cc new file mode 100644 index 000000000..e94790601 --- /dev/null +++ b/iot/src/model/UpdateDestinationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +UpdateDestinationResult::UpdateDestinationResult() : + ServiceResult() +{} + +UpdateDestinationResult::UpdateDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDestinationResult::~UpdateDestinationResult() +{} + +void UpdateDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string UpdateDestinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateDestinationResult::getCode()const +{ + return code_; +} + +bool UpdateDestinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateParserDataSourceRequest.cc b/iot/src/model/UpdateParserDataSourceRequest.cc new file mode 100644 index 000000000..71bfe2a72 --- /dev/null +++ b/iot/src/model/UpdateParserDataSourceRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::UpdateParserDataSourceRequest; + +UpdateParserDataSourceRequest::UpdateParserDataSourceRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateParserDataSource") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateParserDataSourceRequest::~UpdateParserDataSourceRequest() +{} + +std::string UpdateParserDataSourceRequest::getDescription()const +{ + return description_; +} + +void UpdateParserDataSourceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateParserDataSourceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string UpdateParserDataSourceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateParserDataSourceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long UpdateParserDataSourceRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void UpdateParserDataSourceRequest::setDataSourceId(long dataSourceId) +{ + dataSourceId_ = dataSourceId; + setParameter("DataSourceId", std::to_string(dataSourceId)); +} + +std::string UpdateParserDataSourceRequest::getName()const +{ + return name_; +} + +void UpdateParserDataSourceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateParserDataSourceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateParserDataSourceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/UpdateParserDataSourceResult.cc b/iot/src/model/UpdateParserDataSourceResult.cc new file mode 100644 index 000000000..b493237c0 --- /dev/null +++ b/iot/src/model/UpdateParserDataSourceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +UpdateParserDataSourceResult::UpdateParserDataSourceResult() : + ServiceResult() +{} + +UpdateParserDataSourceResult::UpdateParserDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateParserDataSourceResult::~UpdateParserDataSourceResult() +{} + +void UpdateParserDataSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string UpdateParserDataSourceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateParserDataSourceResult::getCode()const +{ + return code_; +} + +bool UpdateParserDataSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateParserRequest.cc b/iot/src/model/UpdateParserRequest.cc new file mode 100644 index 000000000..0e80a35cd --- /dev/null +++ b/iot/src/model/UpdateParserRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::UpdateParserRequest; + +UpdateParserRequest::UpdateParserRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateParser") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateParserRequest::~UpdateParserRequest() +{} + +std::string UpdateParserRequest::getDescription()const +{ + return description_; +} + +void UpdateParserRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateParserRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateParserRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +long UpdateParserRequest::getParserId()const +{ + return parserId_; +} + +void UpdateParserRequest::setParserId(long parserId) +{ + parserId_ = parserId; + setParameter("ParserId", std::to_string(parserId)); +} + +std::string UpdateParserRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateParserRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateParserRequest::getName()const +{ + return name_; +} + +void UpdateParserRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateParserRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateParserRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/UpdateParserResult.cc b/iot/src/model/UpdateParserResult.cc new file mode 100644 index 000000000..f9b15ce48 --- /dev/null +++ b/iot/src/model/UpdateParserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +UpdateParserResult::UpdateParserResult() : + ServiceResult() +{} + +UpdateParserResult::UpdateParserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateParserResult::~UpdateParserResult() +{} + +void UpdateParserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string UpdateParserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateParserResult::getCode()const +{ + return code_; +} + +bool UpdateParserResult::getSuccess()const +{ + return success_; +} +