From 977bef47bfeabac3f90a34406d6ce2894833e85f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 15 Jan 2024 09:49:38 +0000 Subject: [PATCH] BatchPub Support MQTT5. --- VERSION | 2 +- iot/CMakeLists.txt | 48 ++ iot/include/alibabacloud/iot/IotClient.h | 96 ++++ .../iot/model/AddPowerStationRequest.h | 66 +++ .../iot/model/AddPowerStationResult.h | 57 +++ .../iot/model/BatchAddThingTopoRequest.h | 6 + .../model/BatchCheckVehicleDeviceRequest.h | 1 + .../iot/model/BatchGetDeviceStateResult.h | 1 + .../model/BatchImportVehicleDeviceRequest.h | 1 + .../alibabacloud/iot/model/BatchPubRequest.h | 30 ++ .../iot/model/CopyThingModelAsyncRequest.h | 72 +++ .../iot/model/CopyThingModelAsyncResult.h | 55 +++ .../iot/model/DeletePowerStationRequest.h | 60 +++ .../iot/model/DeletePowerStationResult.h | 57 +++ ...teUserDefineTableDataByPrimaryKeyRequest.h | 60 +++ ...eteUserDefineTableDataByPrimaryKeyResult.h | 55 +++ .../model/GetThingModelStatusInnerRequest.h | 60 +++ .../model/GetThingModelStatusInnerResult.h | 67 +++ .../ListOTAUnfinishedTaskByDeviceRequest.h | 3 + .../iot/model/ListPowerStationRequest.h | 66 +++ .../iot/model/ListPowerStationResult.h | 72 +++ .../iot/model/ModifyPowerStationRequest.h | 69 +++ .../iot/model/ModifyPowerStationResult.h | 57 +++ .../PublishThingModelAsyncInnerRequest.h | 60 +++ .../model/PublishThingModelAsyncInnerResult.h | 55 +++ .../iot/model/PublishThingModelAsyncRequest.h | 63 +++ .../iot/model/PublishThingModelAsyncResult.h | 55 +++ .../QueryCustomTimelineTableStatusRequest.h | 57 +++ .../QueryCustomTimelineTableStatusResult.h | 65 +++ .../iot/model/QueryMessageInfoResult.h | 8 + .../iot/model/StartPTDetectionRequest.h | 75 +++ .../iot/model/StartPTDetectionResult.h | 65 +++ .../iot/model/UpdateOTAJobRequest.h | 102 ++++ .../iot/model/UpdateOTAJobResult.h | 55 +++ iot/src/IotClient.cc | 438 +++++++++++++++++- iot/src/model/AddPowerStationRequest.cc | 106 +++++ iot/src/model/AddPowerStationResult.cc | 72 +++ iot/src/model/BatchAddThingTopoRequest.cc | 22 + .../model/BatchCheckVehicleDeviceRequest.cc | 1 + iot/src/model/BatchGetDeviceStateResult.cc | 2 + .../model/BatchImportVehicleDeviceRequest.cc | 1 + iot/src/model/BatchPubRequest.cc | 93 ++++ iot/src/model/CopyThingModelAsyncRequest.cc | 128 +++++ iot/src/model/CopyThingModelAsyncResult.cc | 65 +++ iot/src/model/DeletePowerStationRequest.cc | 84 ++++ iot/src/model/DeletePowerStationResult.cc | 72 +++ ...eUserDefineTableDataByPrimaryKeyRequest.cc | 84 ++++ ...teUserDefineTableDataByPrimaryKeyResult.cc | 65 +++ .../model/GetThingModelStatusInnerRequest.cc | 84 ++++ .../model/GetThingModelStatusInnerResult.cc | 85 ++++ .../ListOTAUnfinishedTaskByDeviceRequest.cc | 13 + iot/src/model/ListPowerStationRequest.cc | 106 +++++ iot/src/model/ListPowerStationResult.cc | 93 ++++ iot/src/model/ModifyPowerStationRequest.cc | 117 +++++ iot/src/model/ModifyPowerStationResult.cc | 72 +++ .../PublishThingModelAsyncInnerRequest.cc | 84 ++++ .../PublishThingModelAsyncInnerResult.cc | 65 +++ .../model/PublishThingModelAsyncRequest.cc | 95 ++++ iot/src/model/PublishThingModelAsyncResult.cc | 65 +++ .../QueryCustomTimelineTableStatusRequest.cc | 73 +++ .../QueryCustomTimelineTableStatusResult.cc | 81 ++++ iot/src/model/QueryMessageInfoResult.cc | 14 + iot/src/model/StartPTDetectionRequest.cc | 139 ++++++ iot/src/model/StartPTDetectionResult.cc | 81 ++++ iot/src/model/UpdateOTAJobRequest.cc | 223 +++++++++ iot/src/model/UpdateOTAJobResult.cc | 65 +++ 66 files changed, 4505 insertions(+), 4 deletions(-) create mode 100644 iot/include/alibabacloud/iot/model/AddPowerStationRequest.h create mode 100644 iot/include/alibabacloud/iot/model/AddPowerStationResult.h create mode 100644 iot/include/alibabacloud/iot/model/CopyThingModelAsyncRequest.h create mode 100644 iot/include/alibabacloud/iot/model/CopyThingModelAsyncResult.h create mode 100644 iot/include/alibabacloud/iot/model/DeletePowerStationRequest.h create mode 100644 iot/include/alibabacloud/iot/model/DeletePowerStationResult.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyRequest.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyResult.h create mode 100644 iot/include/alibabacloud/iot/model/GetThingModelStatusInnerRequest.h create mode 100644 iot/include/alibabacloud/iot/model/GetThingModelStatusInnerResult.h create mode 100644 iot/include/alibabacloud/iot/model/ListPowerStationRequest.h create mode 100644 iot/include/alibabacloud/iot/model/ListPowerStationResult.h create mode 100644 iot/include/alibabacloud/iot/model/ModifyPowerStationRequest.h create mode 100644 iot/include/alibabacloud/iot/model/ModifyPowerStationResult.h create mode 100644 iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerRequest.h create mode 100644 iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerResult.h create mode 100644 iot/include/alibabacloud/iot/model/PublishThingModelAsyncRequest.h create mode 100644 iot/include/alibabacloud/iot/model/PublishThingModelAsyncResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusResult.h create mode 100644 iot/include/alibabacloud/iot/model/StartPTDetectionRequest.h create mode 100644 iot/include/alibabacloud/iot/model/StartPTDetectionResult.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateOTAJobRequest.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateOTAJobResult.h create mode 100644 iot/src/model/AddPowerStationRequest.cc create mode 100644 iot/src/model/AddPowerStationResult.cc create mode 100644 iot/src/model/CopyThingModelAsyncRequest.cc create mode 100644 iot/src/model/CopyThingModelAsyncResult.cc create mode 100644 iot/src/model/DeletePowerStationRequest.cc create mode 100644 iot/src/model/DeletePowerStationResult.cc create mode 100644 iot/src/model/DeleteUserDefineTableDataByPrimaryKeyRequest.cc create mode 100644 iot/src/model/DeleteUserDefineTableDataByPrimaryKeyResult.cc create mode 100644 iot/src/model/GetThingModelStatusInnerRequest.cc create mode 100644 iot/src/model/GetThingModelStatusInnerResult.cc create mode 100644 iot/src/model/ListPowerStationRequest.cc create mode 100644 iot/src/model/ListPowerStationResult.cc create mode 100644 iot/src/model/ModifyPowerStationRequest.cc create mode 100644 iot/src/model/ModifyPowerStationResult.cc create mode 100644 iot/src/model/PublishThingModelAsyncInnerRequest.cc create mode 100644 iot/src/model/PublishThingModelAsyncInnerResult.cc create mode 100644 iot/src/model/PublishThingModelAsyncRequest.cc create mode 100644 iot/src/model/PublishThingModelAsyncResult.cc create mode 100644 iot/src/model/QueryCustomTimelineTableStatusRequest.cc create mode 100644 iot/src/model/QueryCustomTimelineTableStatusResult.cc create mode 100644 iot/src/model/StartPTDetectionRequest.cc create mode 100644 iot/src/model/StartPTDetectionResult.cc create mode 100644 iot/src/model/UpdateOTAJobRequest.cc create mode 100644 iot/src/model/UpdateOTAJobResult.cc diff --git a/VERSION b/VERSION index 67e636059..7947bc749 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1848 \ No newline at end of file +1.36.1849 \ No newline at end of file diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index 720c6ecc4..b32186496 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -25,6 +25,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/AddDataForApiSourceResult.h include/alibabacloud/iot/model/AddDeviceToSharePromotionRequest.h include/alibabacloud/iot/model/AddDeviceToSharePromotionResult.h + include/alibabacloud/iot/model/AddPowerStationRequest.h + include/alibabacloud/iot/model/AddPowerStationResult.h include/alibabacloud/iot/model/AddShareTaskDeviceRequest.h include/alibabacloud/iot/model/AddShareTaskDeviceResult.h include/alibabacloud/iot/model/AsyncRRpcRequest.h @@ -141,6 +143,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/ConfirmOTATaskResult.h include/alibabacloud/iot/model/CopyThingModelRequest.h include/alibabacloud/iot/model/CopyThingModelResult.h + include/alibabacloud/iot/model/CopyThingModelAsyncRequest.h + include/alibabacloud/iot/model/CopyThingModelAsyncResult.h include/alibabacloud/iot/model/CountSpeechBroadcastHourRequest.h include/alibabacloud/iot/model/CountSpeechBroadcastHourResult.h include/alibabacloud/iot/model/CreateConsumerGroupRequest.h @@ -279,6 +283,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteParserResult.h include/alibabacloud/iot/model/DeleteParserDataSourceRequest.h include/alibabacloud/iot/model/DeleteParserDataSourceResult.h + include/alibabacloud/iot/model/DeletePowerStationRequest.h + include/alibabacloud/iot/model/DeletePowerStationResult.h include/alibabacloud/iot/model/DeleteProductRequest.h include/alibabacloud/iot/model/DeleteProductResult.h include/alibabacloud/iot/model/DeleteProductTagsRequest.h @@ -313,6 +319,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteTopicConfigResult.h include/alibabacloud/iot/model/DeleteTopicRouteTableRequest.h include/alibabacloud/iot/model/DeleteTopicRouteTableResult.h + include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyRequest.h + include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyResult.h include/alibabacloud/iot/model/DetachDestinationRequest.h include/alibabacloud/iot/model/DetachDestinationResult.h include/alibabacloud/iot/model/DetachParserDataSourceRequest.h @@ -391,6 +399,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/GetSpeechVoiceResult.h include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h include/alibabacloud/iot/model/GetStudioAppTokenOpenResult.h + include/alibabacloud/iot/model/GetThingModelStatusInnerRequest.h + include/alibabacloud/iot/model/GetThingModelStatusInnerResult.h include/alibabacloud/iot/model/GetThingModelTslRequest.h include/alibabacloud/iot/model/GetThingModelTslResult.h include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h @@ -451,6 +461,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListParserDataSourceResult.h include/alibabacloud/iot/model/ListParserDestinationRequest.h include/alibabacloud/iot/model/ListParserDestinationResult.h + include/alibabacloud/iot/model/ListPowerStationRequest.h + include/alibabacloud/iot/model/ListPowerStationResult.h include/alibabacloud/iot/model/ListProductByTagsRequest.h include/alibabacloud/iot/model/ListProductByTagsResult.h include/alibabacloud/iot/model/ListProductTagsRequest.h @@ -467,6 +479,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListThingTemplatesResult.h include/alibabacloud/iot/model/ModifyOTAFirmwareRequest.h include/alibabacloud/iot/model/ModifyOTAFirmwareResult.h + include/alibabacloud/iot/model/ModifyPowerStationRequest.h + include/alibabacloud/iot/model/ModifyPowerStationResult.h include/alibabacloud/iot/model/NotifyAddThingTopoRequest.h include/alibabacloud/iot/model/NotifyAddThingTopoResult.h include/alibabacloud/iot/model/OpenIotServiceRequest.h @@ -489,6 +503,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/PublishStudioAppResult.h include/alibabacloud/iot/model/PublishThingModelRequest.h include/alibabacloud/iot/model/PublishThingModelResult.h + include/alibabacloud/iot/model/PublishThingModelAsyncRequest.h + include/alibabacloud/iot/model/PublishThingModelAsyncResult.h + include/alibabacloud/iot/model/PublishThingModelAsyncInnerRequest.h + include/alibabacloud/iot/model/PublishThingModelAsyncInnerResult.h include/alibabacloud/iot/model/PushSpeechRequest.h include/alibabacloud/iot/model/PushSpeechResult.h include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusRequest.h @@ -503,6 +521,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryConsumerGroupListResult.h include/alibabacloud/iot/model/QueryConsumerGroupStatusRequest.h include/alibabacloud/iot/model/QueryConsumerGroupStatusResult.h + include/alibabacloud/iot/model/QueryCustomTimelineTableStatusRequest.h + include/alibabacloud/iot/model/QueryCustomTimelineTableStatusResult.h include/alibabacloud/iot/model/QueryDetailSceneRuleLogRequest.h include/alibabacloud/iot/model/QueryDetailSceneRuleLogResult.h include/alibabacloud/iot/model/QueryDeviceRequest.h @@ -757,6 +777,8 @@ 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/StartPTDetectionRequest.h + include/alibabacloud/iot/model/StartPTDetectionResult.h include/alibabacloud/iot/model/StartParserRequest.h include/alibabacloud/iot/model/StartParserResult.h include/alibabacloud/iot/model/StartRuleRequest.h @@ -805,6 +827,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/UpdateEdgeInstanceMessageRoutingResult.h include/alibabacloud/iot/model/UpdateJobRequest.h include/alibabacloud/iot/model/UpdateJobResult.h + include/alibabacloud/iot/model/UpdateOTAJobRequest.h + include/alibabacloud/iot/model/UpdateOTAJobResult.h include/alibabacloud/iot/model/UpdateOTAModuleRequest.h include/alibabacloud/iot/model/UpdateOTAModuleResult.h include/alibabacloud/iot/model/UpdateParserRequest.h @@ -852,6 +876,8 @@ set(iot_src src/model/AddDataForApiSourceResult.cc src/model/AddDeviceToSharePromotionRequest.cc src/model/AddDeviceToSharePromotionResult.cc + src/model/AddPowerStationRequest.cc + src/model/AddPowerStationResult.cc src/model/AddShareTaskDeviceRequest.cc src/model/AddShareTaskDeviceResult.cc src/model/AsyncRRpcRequest.cc @@ -968,6 +994,8 @@ set(iot_src src/model/ConfirmOTATaskResult.cc src/model/CopyThingModelRequest.cc src/model/CopyThingModelResult.cc + src/model/CopyThingModelAsyncRequest.cc + src/model/CopyThingModelAsyncResult.cc src/model/CountSpeechBroadcastHourRequest.cc src/model/CountSpeechBroadcastHourResult.cc src/model/CreateConsumerGroupRequest.cc @@ -1106,6 +1134,8 @@ set(iot_src src/model/DeleteParserResult.cc src/model/DeleteParserDataSourceRequest.cc src/model/DeleteParserDataSourceResult.cc + src/model/DeletePowerStationRequest.cc + src/model/DeletePowerStationResult.cc src/model/DeleteProductRequest.cc src/model/DeleteProductResult.cc src/model/DeleteProductTagsRequest.cc @@ -1140,6 +1170,8 @@ set(iot_src src/model/DeleteTopicConfigResult.cc src/model/DeleteTopicRouteTableRequest.cc src/model/DeleteTopicRouteTableResult.cc + src/model/DeleteUserDefineTableDataByPrimaryKeyRequest.cc + src/model/DeleteUserDefineTableDataByPrimaryKeyResult.cc src/model/DetachDestinationRequest.cc src/model/DetachDestinationResult.cc src/model/DetachParserDataSourceRequest.cc @@ -1218,6 +1250,8 @@ set(iot_src src/model/GetSpeechVoiceResult.cc src/model/GetStudioAppTokenOpenRequest.cc src/model/GetStudioAppTokenOpenResult.cc + src/model/GetThingModelStatusInnerRequest.cc + src/model/GetThingModelStatusInnerResult.cc src/model/GetThingModelTslRequest.cc src/model/GetThingModelTslResult.cc src/model/GetThingModelTslPublishedRequest.cc @@ -1278,6 +1312,8 @@ set(iot_src src/model/ListParserDataSourceResult.cc src/model/ListParserDestinationRequest.cc src/model/ListParserDestinationResult.cc + src/model/ListPowerStationRequest.cc + src/model/ListPowerStationResult.cc src/model/ListProductByTagsRequest.cc src/model/ListProductByTagsResult.cc src/model/ListProductTagsRequest.cc @@ -1294,6 +1330,8 @@ set(iot_src src/model/ListThingTemplatesResult.cc src/model/ModifyOTAFirmwareRequest.cc src/model/ModifyOTAFirmwareResult.cc + src/model/ModifyPowerStationRequest.cc + src/model/ModifyPowerStationResult.cc src/model/NotifyAddThingTopoRequest.cc src/model/NotifyAddThingTopoResult.cc src/model/OpenIotServiceRequest.cc @@ -1316,6 +1354,10 @@ set(iot_src src/model/PublishStudioAppResult.cc src/model/PublishThingModelRequest.cc src/model/PublishThingModelResult.cc + src/model/PublishThingModelAsyncRequest.cc + src/model/PublishThingModelAsyncResult.cc + src/model/PublishThingModelAsyncInnerRequest.cc + src/model/PublishThingModelAsyncInnerResult.cc src/model/PushSpeechRequest.cc src/model/PushSpeechResult.cc src/model/QueryBatchRegisterDeviceStatusRequest.cc @@ -1330,6 +1372,8 @@ set(iot_src src/model/QueryConsumerGroupListResult.cc src/model/QueryConsumerGroupStatusRequest.cc src/model/QueryConsumerGroupStatusResult.cc + src/model/QueryCustomTimelineTableStatusRequest.cc + src/model/QueryCustomTimelineTableStatusResult.cc src/model/QueryDetailSceneRuleLogRequest.cc src/model/QueryDetailSceneRuleLogResult.cc src/model/QueryDeviceRequest.cc @@ -1584,6 +1628,8 @@ set(iot_src src/model/SpeechByCombinationResult.cc src/model/SpeechBySynthesisRequest.cc src/model/SpeechBySynthesisResult.cc + src/model/StartPTDetectionRequest.cc + src/model/StartPTDetectionResult.cc src/model/StartParserRequest.cc src/model/StartParserResult.cc src/model/StartRuleRequest.cc @@ -1632,6 +1678,8 @@ set(iot_src src/model/UpdateEdgeInstanceMessageRoutingResult.cc src/model/UpdateJobRequest.cc src/model/UpdateJobResult.cc + src/model/UpdateOTAJobRequest.cc + src/model/UpdateOTAJobResult.cc src/model/UpdateOTAModuleRequest.cc src/model/UpdateOTAModuleResult.cc src/model/UpdateParserRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index 3380a170b..9825419d9 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -26,6 +26,8 @@ #include "model/AddDataForApiSourceResult.h" #include "model/AddDeviceToSharePromotionRequest.h" #include "model/AddDeviceToSharePromotionResult.h" +#include "model/AddPowerStationRequest.h" +#include "model/AddPowerStationResult.h" #include "model/AddShareTaskDeviceRequest.h" #include "model/AddShareTaskDeviceResult.h" #include "model/AsyncRRpcRequest.h" @@ -142,6 +144,8 @@ #include "model/ConfirmOTATaskResult.h" #include "model/CopyThingModelRequest.h" #include "model/CopyThingModelResult.h" +#include "model/CopyThingModelAsyncRequest.h" +#include "model/CopyThingModelAsyncResult.h" #include "model/CountSpeechBroadcastHourRequest.h" #include "model/CountSpeechBroadcastHourResult.h" #include "model/CreateConsumerGroupRequest.h" @@ -280,6 +284,8 @@ #include "model/DeleteParserResult.h" #include "model/DeleteParserDataSourceRequest.h" #include "model/DeleteParserDataSourceResult.h" +#include "model/DeletePowerStationRequest.h" +#include "model/DeletePowerStationResult.h" #include "model/DeleteProductRequest.h" #include "model/DeleteProductResult.h" #include "model/DeleteProductTagsRequest.h" @@ -314,6 +320,8 @@ #include "model/DeleteTopicConfigResult.h" #include "model/DeleteTopicRouteTableRequest.h" #include "model/DeleteTopicRouteTableResult.h" +#include "model/DeleteUserDefineTableDataByPrimaryKeyRequest.h" +#include "model/DeleteUserDefineTableDataByPrimaryKeyResult.h" #include "model/DetachDestinationRequest.h" #include "model/DetachDestinationResult.h" #include "model/DetachParserDataSourceRequest.h" @@ -392,6 +400,8 @@ #include "model/GetSpeechVoiceResult.h" #include "model/GetStudioAppTokenOpenRequest.h" #include "model/GetStudioAppTokenOpenResult.h" +#include "model/GetThingModelStatusInnerRequest.h" +#include "model/GetThingModelStatusInnerResult.h" #include "model/GetThingModelTslRequest.h" #include "model/GetThingModelTslResult.h" #include "model/GetThingModelTslPublishedRequest.h" @@ -452,6 +462,8 @@ #include "model/ListParserDataSourceResult.h" #include "model/ListParserDestinationRequest.h" #include "model/ListParserDestinationResult.h" +#include "model/ListPowerStationRequest.h" +#include "model/ListPowerStationResult.h" #include "model/ListProductByTagsRequest.h" #include "model/ListProductByTagsResult.h" #include "model/ListProductTagsRequest.h" @@ -468,6 +480,8 @@ #include "model/ListThingTemplatesResult.h" #include "model/ModifyOTAFirmwareRequest.h" #include "model/ModifyOTAFirmwareResult.h" +#include "model/ModifyPowerStationRequest.h" +#include "model/ModifyPowerStationResult.h" #include "model/NotifyAddThingTopoRequest.h" #include "model/NotifyAddThingTopoResult.h" #include "model/OpenIotServiceRequest.h" @@ -490,6 +504,10 @@ #include "model/PublishStudioAppResult.h" #include "model/PublishThingModelRequest.h" #include "model/PublishThingModelResult.h" +#include "model/PublishThingModelAsyncRequest.h" +#include "model/PublishThingModelAsyncResult.h" +#include "model/PublishThingModelAsyncInnerRequest.h" +#include "model/PublishThingModelAsyncInnerResult.h" #include "model/PushSpeechRequest.h" #include "model/PushSpeechResult.h" #include "model/QueryBatchRegisterDeviceStatusRequest.h" @@ -504,6 +522,8 @@ #include "model/QueryConsumerGroupListResult.h" #include "model/QueryConsumerGroupStatusRequest.h" #include "model/QueryConsumerGroupStatusResult.h" +#include "model/QueryCustomTimelineTableStatusRequest.h" +#include "model/QueryCustomTimelineTableStatusResult.h" #include "model/QueryDetailSceneRuleLogRequest.h" #include "model/QueryDetailSceneRuleLogResult.h" #include "model/QueryDeviceRequest.h" @@ -758,6 +778,8 @@ #include "model/SpeechByCombinationResult.h" #include "model/SpeechBySynthesisRequest.h" #include "model/SpeechBySynthesisResult.h" +#include "model/StartPTDetectionRequest.h" +#include "model/StartPTDetectionResult.h" #include "model/StartParserRequest.h" #include "model/StartParserResult.h" #include "model/StartRuleRequest.h" @@ -806,6 +828,8 @@ #include "model/UpdateEdgeInstanceMessageRoutingResult.h" #include "model/UpdateJobRequest.h" #include "model/UpdateJobResult.h" +#include "model/UpdateOTAJobRequest.h" +#include "model/UpdateOTAJobResult.h" #include "model/UpdateOTAModuleRequest.h" #include "model/UpdateOTAModuleResult.h" #include "model/UpdateParserRequest.h" @@ -861,6 +885,9 @@ namespace AlibabaCloud typedef Outcome AddDeviceToSharePromotionOutcome; typedef std::future AddDeviceToSharePromotionOutcomeCallable; typedef std::function&)> AddDeviceToSharePromotionAsyncHandler; + typedef Outcome AddPowerStationOutcome; + typedef std::future AddPowerStationOutcomeCallable; + typedef std::function&)> AddPowerStationAsyncHandler; typedef Outcome AddShareTaskDeviceOutcome; typedef std::future AddShareTaskDeviceOutcomeCallable; typedef std::function&)> AddShareTaskDeviceAsyncHandler; @@ -1035,6 +1062,9 @@ namespace AlibabaCloud typedef Outcome CopyThingModelOutcome; typedef std::future CopyThingModelOutcomeCallable; typedef std::function&)> CopyThingModelAsyncHandler; + typedef Outcome CopyThingModelAsyncOutcome; + typedef std::future CopyThingModelAsyncOutcomeCallable; + typedef std::function&)> CopyThingModelAsyncAsyncHandler; typedef Outcome CountSpeechBroadcastHourOutcome; typedef std::future CountSpeechBroadcastHourOutcomeCallable; typedef std::function&)> CountSpeechBroadcastHourAsyncHandler; @@ -1242,6 +1272,9 @@ namespace AlibabaCloud typedef Outcome DeleteParserDataSourceOutcome; typedef std::future DeleteParserDataSourceOutcomeCallable; typedef std::function&)> DeleteParserDataSourceAsyncHandler; + typedef Outcome DeletePowerStationOutcome; + typedef std::future DeletePowerStationOutcomeCallable; + typedef std::function&)> DeletePowerStationAsyncHandler; typedef Outcome DeleteProductOutcome; typedef std::future DeleteProductOutcomeCallable; typedef std::function&)> DeleteProductAsyncHandler; @@ -1293,6 +1326,9 @@ namespace AlibabaCloud typedef Outcome DeleteTopicRouteTableOutcome; typedef std::future DeleteTopicRouteTableOutcomeCallable; typedef std::function&)> DeleteTopicRouteTableAsyncHandler; + typedef Outcome DeleteUserDefineTableDataByPrimaryKeyOutcome; + typedef std::future DeleteUserDefineTableDataByPrimaryKeyOutcomeCallable; + typedef std::function&)> DeleteUserDefineTableDataByPrimaryKeyAsyncHandler; typedef Outcome DetachDestinationOutcome; typedef std::future DetachDestinationOutcomeCallable; typedef std::function&)> DetachDestinationAsyncHandler; @@ -1410,6 +1446,9 @@ namespace AlibabaCloud typedef Outcome GetStudioAppTokenOpenOutcome; typedef std::future GetStudioAppTokenOpenOutcomeCallable; typedef std::function&)> GetStudioAppTokenOpenAsyncHandler; + typedef Outcome GetThingModelStatusInnerOutcome; + typedef std::future GetThingModelStatusInnerOutcomeCallable; + typedef std::function&)> GetThingModelStatusInnerAsyncHandler; typedef Outcome GetThingModelTslOutcome; typedef std::future GetThingModelTslOutcomeCallable; typedef std::function&)> GetThingModelTslAsyncHandler; @@ -1500,6 +1539,9 @@ namespace AlibabaCloud typedef Outcome ListParserDestinationOutcome; typedef std::future ListParserDestinationOutcomeCallable; typedef std::function&)> ListParserDestinationAsyncHandler; + typedef Outcome ListPowerStationOutcome; + typedef std::future ListPowerStationOutcomeCallable; + typedef std::function&)> ListPowerStationAsyncHandler; typedef Outcome ListProductByTagsOutcome; typedef std::future ListProductByTagsOutcomeCallable; typedef std::function&)> ListProductByTagsAsyncHandler; @@ -1524,6 +1566,9 @@ namespace AlibabaCloud typedef Outcome ModifyOTAFirmwareOutcome; typedef std::future ModifyOTAFirmwareOutcomeCallable; typedef std::function&)> ModifyOTAFirmwareAsyncHandler; + typedef Outcome ModifyPowerStationOutcome; + typedef std::future ModifyPowerStationOutcomeCallable; + typedef std::function&)> ModifyPowerStationAsyncHandler; typedef Outcome NotifyAddThingTopoOutcome; typedef std::future NotifyAddThingTopoOutcomeCallable; typedef std::function&)> NotifyAddThingTopoAsyncHandler; @@ -1557,6 +1602,12 @@ namespace AlibabaCloud typedef Outcome PublishThingModelOutcome; typedef std::future PublishThingModelOutcomeCallable; typedef std::function&)> PublishThingModelAsyncHandler; + typedef Outcome PublishThingModelAsyncOutcome; + typedef std::future PublishThingModelAsyncOutcomeCallable; + typedef std::function&)> PublishThingModelAsyncAsyncHandler; + typedef Outcome PublishThingModelAsyncInnerOutcome; + typedef std::future PublishThingModelAsyncInnerOutcomeCallable; + typedef std::function&)> PublishThingModelAsyncInnerAsyncHandler; typedef Outcome PushSpeechOutcome; typedef std::future PushSpeechOutcomeCallable; typedef std::function&)> PushSpeechAsyncHandler; @@ -1578,6 +1629,9 @@ namespace AlibabaCloud typedef Outcome QueryConsumerGroupStatusOutcome; typedef std::future QueryConsumerGroupStatusOutcomeCallable; typedef std::function&)> QueryConsumerGroupStatusAsyncHandler; + typedef Outcome QueryCustomTimelineTableStatusOutcome; + typedef std::future QueryCustomTimelineTableStatusOutcomeCallable; + typedef std::function&)> QueryCustomTimelineTableStatusAsyncHandler; typedef Outcome QueryDetailSceneRuleLogOutcome; typedef std::future QueryDetailSceneRuleLogOutcomeCallable; typedef std::function&)> QueryDetailSceneRuleLogAsyncHandler; @@ -1959,6 +2013,9 @@ namespace AlibabaCloud typedef Outcome SpeechBySynthesisOutcome; typedef std::future SpeechBySynthesisOutcomeCallable; typedef std::function&)> SpeechBySynthesisAsyncHandler; + typedef Outcome StartPTDetectionOutcome; + typedef std::future StartPTDetectionOutcomeCallable; + typedef std::function&)> StartPTDetectionAsyncHandler; typedef Outcome StartParserOutcome; typedef std::future StartParserOutcomeCallable; typedef std::function&)> StartParserAsyncHandler; @@ -2031,6 +2088,9 @@ namespace AlibabaCloud typedef Outcome UpdateJobOutcome; typedef std::future UpdateJobOutcomeCallable; typedef std::function&)> UpdateJobAsyncHandler; + typedef Outcome UpdateOTAJobOutcome; + typedef std::future UpdateOTAJobOutcomeCallable; + typedef std::function&)> UpdateOTAJobAsyncHandler; typedef Outcome UpdateOTAModuleOutcome; typedef std::future UpdateOTAModuleOutcomeCallable; typedef std::function&)> UpdateOTAModuleAsyncHandler; @@ -2102,6 +2162,9 @@ namespace AlibabaCloud AddDeviceToSharePromotionOutcome addDeviceToSharePromotion(const Model::AddDeviceToSharePromotionRequest &request)const; void addDeviceToSharePromotionAsync(const Model::AddDeviceToSharePromotionRequest& request, const AddDeviceToSharePromotionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDeviceToSharePromotionOutcomeCallable addDeviceToSharePromotionCallable(const Model::AddDeviceToSharePromotionRequest& request) const; + AddPowerStationOutcome addPowerStation(const Model::AddPowerStationRequest &request)const; + void addPowerStationAsync(const Model::AddPowerStationRequest& request, const AddPowerStationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPowerStationOutcomeCallable addPowerStationCallable(const Model::AddPowerStationRequest& request) const; AddShareTaskDeviceOutcome addShareTaskDevice(const Model::AddShareTaskDeviceRequest &request)const; void addShareTaskDeviceAsync(const Model::AddShareTaskDeviceRequest& request, const AddShareTaskDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddShareTaskDeviceOutcomeCallable addShareTaskDeviceCallable(const Model::AddShareTaskDeviceRequest& request) const; @@ -2276,6 +2339,9 @@ namespace AlibabaCloud CopyThingModelOutcome copyThingModel(const Model::CopyThingModelRequest &request)const; void copyThingModelAsync(const Model::CopyThingModelRequest& request, const CopyThingModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CopyThingModelOutcomeCallable copyThingModelCallable(const Model::CopyThingModelRequest& request) const; + CopyThingModelAsyncOutcome copyThingModelAsync(const Model::CopyThingModelAsyncRequest &request)const; + void copyThingModelAsyncAsync(const Model::CopyThingModelAsyncRequest& request, const CopyThingModelAsyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyThingModelAsyncOutcomeCallable copyThingModelAsyncCallable(const Model::CopyThingModelAsyncRequest& request) const; CountSpeechBroadcastHourOutcome countSpeechBroadcastHour(const Model::CountSpeechBroadcastHourRequest &request)const; void countSpeechBroadcastHourAsync(const Model::CountSpeechBroadcastHourRequest& request, const CountSpeechBroadcastHourAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CountSpeechBroadcastHourOutcomeCallable countSpeechBroadcastHourCallable(const Model::CountSpeechBroadcastHourRequest& request) const; @@ -2483,6 +2549,9 @@ namespace AlibabaCloud 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; + DeletePowerStationOutcome deletePowerStation(const Model::DeletePowerStationRequest &request)const; + void deletePowerStationAsync(const Model::DeletePowerStationRequest& request, const DeletePowerStationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePowerStationOutcomeCallable deletePowerStationCallable(const Model::DeletePowerStationRequest& 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; @@ -2534,6 +2603,9 @@ 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; + DeleteUserDefineTableDataByPrimaryKeyOutcome deleteUserDefineTableDataByPrimaryKey(const Model::DeleteUserDefineTableDataByPrimaryKeyRequest &request)const; + void deleteUserDefineTableDataByPrimaryKeyAsync(const Model::DeleteUserDefineTableDataByPrimaryKeyRequest& request, const DeleteUserDefineTableDataByPrimaryKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserDefineTableDataByPrimaryKeyOutcomeCallable deleteUserDefineTableDataByPrimaryKeyCallable(const Model::DeleteUserDefineTableDataByPrimaryKeyRequest& 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; @@ -2651,6 +2723,9 @@ namespace AlibabaCloud GetStudioAppTokenOpenOutcome getStudioAppTokenOpen(const Model::GetStudioAppTokenOpenRequest &request)const; void getStudioAppTokenOpenAsync(const Model::GetStudioAppTokenOpenRequest& request, const GetStudioAppTokenOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStudioAppTokenOpenOutcomeCallable getStudioAppTokenOpenCallable(const Model::GetStudioAppTokenOpenRequest& request) const; + GetThingModelStatusInnerOutcome getThingModelStatusInner(const Model::GetThingModelStatusInnerRequest &request)const; + void getThingModelStatusInnerAsync(const Model::GetThingModelStatusInnerRequest& request, const GetThingModelStatusInnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetThingModelStatusInnerOutcomeCallable getThingModelStatusInnerCallable(const Model::GetThingModelStatusInnerRequest& request) const; GetThingModelTslOutcome getThingModelTsl(const Model::GetThingModelTslRequest &request)const; void getThingModelTslAsync(const Model::GetThingModelTslRequest& request, const GetThingModelTslAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetThingModelTslOutcomeCallable getThingModelTslCallable(const Model::GetThingModelTslRequest& request) const; @@ -2741,6 +2816,9 @@ namespace AlibabaCloud 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; + ListPowerStationOutcome listPowerStation(const Model::ListPowerStationRequest &request)const; + void listPowerStationAsync(const Model::ListPowerStationRequest& request, const ListPowerStationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPowerStationOutcomeCallable listPowerStationCallable(const Model::ListPowerStationRequest& 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; @@ -2765,6 +2843,9 @@ namespace AlibabaCloud ModifyOTAFirmwareOutcome modifyOTAFirmware(const Model::ModifyOTAFirmwareRequest &request)const; void modifyOTAFirmwareAsync(const Model::ModifyOTAFirmwareRequest& request, const ModifyOTAFirmwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyOTAFirmwareOutcomeCallable modifyOTAFirmwareCallable(const Model::ModifyOTAFirmwareRequest& request) const; + ModifyPowerStationOutcome modifyPowerStation(const Model::ModifyPowerStationRequest &request)const; + void modifyPowerStationAsync(const Model::ModifyPowerStationRequest& request, const ModifyPowerStationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPowerStationOutcomeCallable modifyPowerStationCallable(const Model::ModifyPowerStationRequest& request) const; NotifyAddThingTopoOutcome notifyAddThingTopo(const Model::NotifyAddThingTopoRequest &request)const; void notifyAddThingTopoAsync(const Model::NotifyAddThingTopoRequest& request, const NotifyAddThingTopoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; NotifyAddThingTopoOutcomeCallable notifyAddThingTopoCallable(const Model::NotifyAddThingTopoRequest& request) const; @@ -2798,6 +2879,12 @@ namespace AlibabaCloud PublishThingModelOutcome publishThingModel(const Model::PublishThingModelRequest &request)const; void publishThingModelAsync(const Model::PublishThingModelRequest& request, const PublishThingModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishThingModelOutcomeCallable publishThingModelCallable(const Model::PublishThingModelRequest& request) const; + PublishThingModelAsyncOutcome publishThingModelAsync(const Model::PublishThingModelAsyncRequest &request)const; + void publishThingModelAsyncAsync(const Model::PublishThingModelAsyncRequest& request, const PublishThingModelAsyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishThingModelAsyncOutcomeCallable publishThingModelAsyncCallable(const Model::PublishThingModelAsyncRequest& request) const; + PublishThingModelAsyncInnerOutcome publishThingModelAsyncInner(const Model::PublishThingModelAsyncInnerRequest &request)const; + void publishThingModelAsyncInnerAsync(const Model::PublishThingModelAsyncInnerRequest& request, const PublishThingModelAsyncInnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishThingModelAsyncInnerOutcomeCallable publishThingModelAsyncInnerCallable(const Model::PublishThingModelAsyncInnerRequest& request) const; PushSpeechOutcome pushSpeech(const Model::PushSpeechRequest &request)const; void pushSpeechAsync(const Model::PushSpeechRequest& request, const PushSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PushSpeechOutcomeCallable pushSpeechCallable(const Model::PushSpeechRequest& request) const; @@ -2819,6 +2906,9 @@ namespace AlibabaCloud QueryConsumerGroupStatusOutcome queryConsumerGroupStatus(const Model::QueryConsumerGroupStatusRequest &request)const; void queryConsumerGroupStatusAsync(const Model::QueryConsumerGroupStatusRequest& request, const QueryConsumerGroupStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryConsumerGroupStatusOutcomeCallable queryConsumerGroupStatusCallable(const Model::QueryConsumerGroupStatusRequest& request) const; + QueryCustomTimelineTableStatusOutcome queryCustomTimelineTableStatus(const Model::QueryCustomTimelineTableStatusRequest &request)const; + void queryCustomTimelineTableStatusAsync(const Model::QueryCustomTimelineTableStatusRequest& request, const QueryCustomTimelineTableStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCustomTimelineTableStatusOutcomeCallable queryCustomTimelineTableStatusCallable(const Model::QueryCustomTimelineTableStatusRequest& request) const; QueryDetailSceneRuleLogOutcome queryDetailSceneRuleLog(const Model::QueryDetailSceneRuleLogRequest &request)const; void queryDetailSceneRuleLogAsync(const Model::QueryDetailSceneRuleLogRequest& request, const QueryDetailSceneRuleLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDetailSceneRuleLogOutcomeCallable queryDetailSceneRuleLogCallable(const Model::QueryDetailSceneRuleLogRequest& request) const; @@ -3200,6 +3290,9 @@ 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; + StartPTDetectionOutcome startPTDetection(const Model::StartPTDetectionRequest &request)const; + void startPTDetectionAsync(const Model::StartPTDetectionRequest& request, const StartPTDetectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartPTDetectionOutcomeCallable startPTDetectionCallable(const Model::StartPTDetectionRequest& 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; @@ -3272,6 +3365,9 @@ namespace AlibabaCloud UpdateJobOutcome updateJob(const Model::UpdateJobRequest &request)const; void updateJobAsync(const Model::UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateJobOutcomeCallable updateJobCallable(const Model::UpdateJobRequest& request) const; + UpdateOTAJobOutcome updateOTAJob(const Model::UpdateOTAJobRequest &request)const; + void updateOTAJobAsync(const Model::UpdateOTAJobRequest& request, const UpdateOTAJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateOTAJobOutcomeCallable updateOTAJobCallable(const Model::UpdateOTAJobRequest& request) const; 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; diff --git a/iot/include/alibabacloud/iot/model/AddPowerStationRequest.h b/iot/include/alibabacloud/iot/model/AddPowerStationRequest.h new file mode 100644 index 000000000..2ebefc4d7 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AddPowerStationRequest.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_ADDPOWERSTATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_ADDPOWERSTATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AddPowerStationRequest : public RpcServiceRequest + { + + public: + AddPowerStationRequest(); + ~AddPowerStationRequest(); + + int getRatedPower()const; + void setRatedPower(int ratedPower); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getAlgorithmInstanceUid()const; + void setAlgorithmInstanceUid(const std::string& algorithmInstanceUid); + std::string getPowerStationName()const; + void setPowerStationName(const std::string& powerStationName); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + int ratedPower_; + std::string description_; + std::string iotInstanceId_; + std::string algorithmInstanceUid_; + std::string powerStationName_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_ADDPOWERSTATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/AddPowerStationResult.h b/iot/include/alibabacloud/iot/model/AddPowerStationResult.h new file mode 100644 index 000000000..1f52121ca --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AddPowerStationResult.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_ADDPOWERSTATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_ADDPOWERSTATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AddPowerStationResult : public ServiceResult + { + public: + + + AddPowerStationResult(); + explicit AddPowerStationResult(const std::string &payload); + ~AddPowerStationResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_ADDPOWERSTATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BatchAddThingTopoRequest.h b/iot/include/alibabacloud/iot/model/BatchAddThingTopoRequest.h index a871475ca..11e81850f 100644 --- a/iot/include/alibabacloud/iot/model/BatchAddThingTopoRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchAddThingTopoRequest.h @@ -47,8 +47,12 @@ namespace AlibabaCloud std::string getGwProductKey()const; void setGwProductKey(const std::string& gwProductKey); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getExt()const; @@ -64,7 +68,9 @@ namespace AlibabaCloud private: std::string gwProductKey_; + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string ext_; std::vector topoAddItem_; diff --git a/iot/include/alibabacloud/iot/model/BatchCheckVehicleDeviceRequest.h b/iot/include/alibabacloud/iot/model/BatchCheckVehicleDeviceRequest.h index f2cb96647..ab9ac41e0 100644 --- a/iot/include/alibabacloud/iot/model/BatchCheckVehicleDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchCheckVehicleDeviceRequest.h @@ -33,6 +33,7 @@ namespace AlibabaCloud public: struct DeviceList { + std::string deviceSecret; std::string deviceName; std::string deviceId; std::string manufacturer; diff --git a/iot/include/alibabacloud/iot/model/BatchGetDeviceStateResult.h b/iot/include/alibabacloud/iot/model/BatchGetDeviceStateResult.h index a2c430bf6..a2ebd81c1 100644 --- a/iot/include/alibabacloud/iot/model/BatchGetDeviceStateResult.h +++ b/iot/include/alibabacloud/iot/model/BatchGetDeviceStateResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string iotId; std::string asAddress; std::string deviceId; + long timestamp; std::string deviceName; }; diff --git a/iot/include/alibabacloud/iot/model/BatchImportVehicleDeviceRequest.h b/iot/include/alibabacloud/iot/model/BatchImportVehicleDeviceRequest.h index 68929fe9a..6e9e74545 100644 --- a/iot/include/alibabacloud/iot/model/BatchImportVehicleDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchImportVehicleDeviceRequest.h @@ -33,6 +33,7 @@ namespace AlibabaCloud public: struct DeviceList { + std::string deviceSecret; std::string deviceName; std::string deviceId; std::string manufacturer; diff --git a/iot/include/alibabacloud/iot/model/BatchPubRequest.h b/iot/include/alibabacloud/iot/model/BatchPubRequest.h index dd6a5a343..0c84cc222 100644 --- a/iot/include/alibabacloud/iot/model/BatchPubRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchPubRequest.h @@ -30,21 +30,43 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT BatchPubRequest : public RpcServiceRequest { + public: + struct UserProp + { + std::string value; + std::string key; + }; public: BatchPubRequest(); ~BatchPubRequest(); + std::vector getUserProp()const; + void setUserProp(const std::vector& userProp); + std::string getResponseTopicTemplateName()const; + void setResponseTopicTemplateName(const std::string& responseTopicTemplateName); std::string getMessageContent()const; void setMessageContent(const std::string& messageContent); + std::string getTopicTemplateName()const; + void setTopicTemplateName(const std::string& topicTemplateName); int getQos()const; void setQos(int qos); + std::string getCorrelationData()const; + void setCorrelationData(const std::string& correlationData); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + long getMessageExpiryInterval()const; + void setMessageExpiryInterval(long messageExpiryInterval); std::string getTopicShortName()const; void setTopicShortName(const std::string& topicShortName); + int getPayloadFormatIndicator()const; + void setPayloadFormatIndicator(int payloadFormatIndicator); std::string getProductKey()const; void setProductKey(const std::string& productKey); + std::string getContentType()const; + void setContentType(const std::string& contentType); + bool getRetained()const; + void setRetained(bool retained); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; @@ -53,11 +75,19 @@ namespace AlibabaCloud void setDeviceName(const std::vector& deviceName); private: + std::vector userProp_; + std::string responseTopicTemplateName_; std::string messageContent_; + std::string topicTemplateName_; int qos_; + std::string correlationData_; std::string iotInstanceId_; + long messageExpiryInterval_; std::string topicShortName_; + int payloadFormatIndicator_; std::string productKey_; + std::string contentType_; + bool retained_; std::string apiProduct_; std::string apiRevision_; std::vector deviceName_; diff --git a/iot/include/alibabacloud/iot/model/CopyThingModelAsyncRequest.h b/iot/include/alibabacloud/iot/model/CopyThingModelAsyncRequest.h new file mode 100644 index 000000000..8196d3a4c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CopyThingModelAsyncRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_COPYTHINGMODELASYNCREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_COPYTHINGMODELASYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CopyThingModelAsyncRequest : public RpcServiceRequest + { + + public: + CopyThingModelAsyncRequest(); + ~CopyThingModelAsyncRequest(); + + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + std::string getTargetProductKey()const; + void setTargetProductKey(const std::string& targetProductKey); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getSourceModelVersion()const; + void setSourceModelVersion(const std::string& sourceModelVersion); + std::string getSourceProductKey()const; + void setSourceProductKey(const std::string& sourceProductKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string realTenantId_; + std::string targetProductKey_; + std::string accessKeyId_; + std::string realTripartiteKey_; + std::string iotInstanceId_; + std::string sourceModelVersion_; + std::string sourceProductKey_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_COPYTHINGMODELASYNCREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CopyThingModelAsyncResult.h b/iot/include/alibabacloud/iot/model/CopyThingModelAsyncResult.h new file mode 100644 index 000000000..0eeb56360 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CopyThingModelAsyncResult.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_COPYTHINGMODELASYNCRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_COPYTHINGMODELASYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CopyThingModelAsyncResult : public ServiceResult + { + public: + + + CopyThingModelAsyncResult(); + explicit CopyThingModelAsyncResult(const std::string &payload); + ~CopyThingModelAsyncResult(); + 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_COPYTHINGMODELASYNCRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeletePowerStationRequest.h b/iot/include/alibabacloud/iot/model/DeletePowerStationRequest.h new file mode 100644 index 000000000..44859358e --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeletePowerStationRequest.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_DELETEPOWERSTATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEPOWERSTATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeletePowerStationRequest : public RpcServiceRequest + { + + public: + DeletePowerStationRequest(); + ~DeletePowerStationRequest(); + + std::string getPowerStationUid()const; + void setPowerStationUid(const std::string& powerStationUid); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getAlgorithmInstanceUid()const; + void setAlgorithmInstanceUid(const std::string& algorithmInstanceUid); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string powerStationUid_; + std::string iotInstanceId_; + std::string algorithmInstanceUid_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEPOWERSTATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeletePowerStationResult.h b/iot/include/alibabacloud/iot/model/DeletePowerStationResult.h new file mode 100644 index 000000000..973a59fdf --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeletePowerStationResult.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_DELETEPOWERSTATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEPOWERSTATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeletePowerStationResult : public ServiceResult + { + public: + + + DeletePowerStationResult(); + explicit DeletePowerStationResult(const std::string &payload); + ~DeletePowerStationResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEPOWERSTATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyRequest.h b/iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyRequest.h new file mode 100644 index 000000000..a3fd528c1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyRequest.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_DELETEUSERDEFINETABLEDATABYPRIMARYKEYREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEUSERDEFINETABLEDATABYPRIMARYKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteUserDefineTableDataByPrimaryKeyRequest : public RpcServiceRequest + { + + public: + DeleteUserDefineTableDataByPrimaryKeyRequest(); + ~DeleteUserDefineTableDataByPrimaryKeyRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getTableIdentifier()const; + void setTableIdentifier(const std::string& tableIdentifier); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getConditions()const; + void setConditions(const std::string& conditions); + + private: + std::string iotInstanceId_; + std::string tableIdentifier_; + std::string apiProduct_; + std::string apiRevision_; + std::string conditions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEUSERDEFINETABLEDATABYPRIMARYKEYREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyResult.h b/iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyResult.h new file mode 100644 index 000000000..bc20c823a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteUserDefineTableDataByPrimaryKeyResult.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_DELETEUSERDEFINETABLEDATABYPRIMARYKEYRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEUSERDEFINETABLEDATABYPRIMARYKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteUserDefineTableDataByPrimaryKeyResult : public ServiceResult + { + public: + + + DeleteUserDefineTableDataByPrimaryKeyResult(); + explicit DeleteUserDefineTableDataByPrimaryKeyResult(const std::string &payload); + ~DeleteUserDefineTableDataByPrimaryKeyResult(); + 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_DELETEUSERDEFINETABLEDATABYPRIMARYKEYRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetThingModelStatusInnerRequest.h b/iot/include/alibabacloud/iot/model/GetThingModelStatusInnerRequest.h new file mode 100644 index 000000000..1ceeb7461 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetThingModelStatusInnerRequest.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_GETTHINGMODELSTATUSINNERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETTHINGMODELSTATUSINNERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetThingModelStatusInnerRequest : public RpcServiceRequest + { + + public: + GetThingModelStatusInnerRequest(); + ~GetThingModelStatusInnerRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getInsId()const; + void setInsId(const std::string& insId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::string productKey_; + std::string insId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETTHINGMODELSTATUSINNERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetThingModelStatusInnerResult.h b/iot/include/alibabacloud/iot/model/GetThingModelStatusInnerResult.h new file mode 100644 index 000000000..8483b9748 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetThingModelStatusInnerResult.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_GETTHINGMODELSTATUSINNERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETTHINGMODELSTATUSINNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetThingModelStatusInnerResult : public ServiceResult + { + public: + struct Data + { + int status; + std::string rbacTenantId; + long modifiedTime; + std::string instanceId; + long outTime; + std::string info; + std::string productKey; + }; + + + GetThingModelStatusInnerResult(); + explicit GetThingModelStatusInnerResult(const std::string &payload); + ~GetThingModelStatusInnerResult(); + std::string getLocalizedMsg()const; + std::string getMessage()const; + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string localizedMsg_; + std::string message_; + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETTHINGMODELSTATUSINNERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceRequest.h b/iot/include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceRequest.h index 35dddab37..71edcb38b 100644 --- a/iot/include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/ListOTAUnfinishedTaskByDeviceRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud ListOTAUnfinishedTaskByDeviceRequest(); ~ListOTAUnfinishedTaskByDeviceRequest(); + std::vector getTaskStatusList()const; + void setTaskStatusList(const std::vector& taskStatusList); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); std::string getTaskStatus()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::vector taskStatusList_; std::string accessKeyId_; std::string taskStatus_; std::string iotId_; diff --git a/iot/include/alibabacloud/iot/model/ListPowerStationRequest.h b/iot/include/alibabacloud/iot/model/ListPowerStationRequest.h new file mode 100644 index 000000000..82c670c5d --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListPowerStationRequest.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_LISTPOWERSTATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPOWERSTATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListPowerStationRequest : public RpcServiceRequest + { + + public: + ListPowerStationRequest(); + ~ListPowerStationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getAlgorithmInstanceUid()const; + void setAlgorithmInstanceUid(const std::string& algorithmInstanceUid); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getPowerStationName()const; + void setPowerStationName(const std::string& powerStationName); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + int pageSize_; + std::string algorithmInstanceUid_; + int pageNo_; + std::string powerStationName_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTPOWERSTATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListPowerStationResult.h b/iot/include/alibabacloud/iot/model/ListPowerStationResult.h new file mode 100644 index 000000000..a5075c430 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListPowerStationResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_LISTPOWERSTATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTPOWERSTATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListPowerStationResult : public ServiceResult + { + public: + struct Data + { + struct DataListItem + { + std::string description; + int ratedPower; + std::string powerStationUid; + std::string algoInstanceUid; + std::string name; + }; + std::vector dataList; + int pageSize; + long total; + int pageNo; + }; + + + ListPowerStationResult(); + explicit ListPowerStationResult(const std::string &payload); + ~ListPowerStationResult(); + 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_LISTPOWERSTATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ModifyPowerStationRequest.h b/iot/include/alibabacloud/iot/model/ModifyPowerStationRequest.h new file mode 100644 index 000000000..fc19daa34 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ModifyPowerStationRequest.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_MODIFYPOWERSTATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_MODIFYPOWERSTATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ModifyPowerStationRequest : public RpcServiceRequest + { + + public: + ModifyPowerStationRequest(); + ~ModifyPowerStationRequest(); + + std::string getPowerStationUid()const; + void setPowerStationUid(const std::string& powerStationUid); + int getRatedPower()const; + void setRatedPower(int ratedPower); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getAlgorithmInstanceUid()const; + void setAlgorithmInstanceUid(const std::string& algorithmInstanceUid); + std::string getPowerStationName()const; + void setPowerStationName(const std::string& powerStationName); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string powerStationUid_; + int ratedPower_; + std::string description_; + std::string iotInstanceId_; + std::string algorithmInstanceUid_; + std::string powerStationName_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_MODIFYPOWERSTATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ModifyPowerStationResult.h b/iot/include/alibabacloud/iot/model/ModifyPowerStationResult.h new file mode 100644 index 000000000..ed3bfcdb0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ModifyPowerStationResult.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_MODIFYPOWERSTATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_MODIFYPOWERSTATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ModifyPowerStationResult : public ServiceResult + { + public: + + + ModifyPowerStationResult(); + explicit ModifyPowerStationResult(const std::string &payload); + ~ModifyPowerStationResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_MODIFYPOWERSTATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerRequest.h b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerRequest.h new file mode 100644 index 000000000..c8dacd8fa --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerRequest.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_PUBLISHTHINGMODELASYNCINNERREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCINNERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishThingModelAsyncInnerRequest : public RpcServiceRequest + { + + public: + PublishThingModelAsyncInnerRequest(); + ~PublishThingModelAsyncInnerRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getInsId()const; + void setInsId(const std::string& insId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::string productKey_; + std::string insId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCINNERREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerResult.h b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerResult.h new file mode 100644 index 000000000..ca7b7c009 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncInnerResult.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_PUBLISHTHINGMODELASYNCINNERRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCINNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishThingModelAsyncInnerResult : public ServiceResult + { + public: + + + PublishThingModelAsyncInnerResult(); + explicit PublishThingModelAsyncInnerResult(const std::string &payload); + ~PublishThingModelAsyncInnerResult(); + std::string getLocalizedMsg()const; + std::string getMessage()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string localizedMsg_; + std::string message_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCINNERRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishThingModelAsyncRequest.h b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncRequest.h new file mode 100644 index 000000000..b1419aeb5 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncRequest.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_PUBLISHTHINGMODELASYNCREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishThingModelAsyncRequest : public RpcServiceRequest + { + + public: + PublishThingModelAsyncRequest(); + ~PublishThingModelAsyncRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getThingModelVersion()const; + void setThingModelVersion(const std::string& thingModelVersion); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string thingModelVersion_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishThingModelAsyncResult.h b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncResult.h new file mode 100644 index 000000000..4631cd9b6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishThingModelAsyncResult.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_PUBLISHTHINGMODELASYNCRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishThingModelAsyncResult : public ServiceResult + { + public: + + + PublishThingModelAsyncResult(); + explicit PublishThingModelAsyncResult(const std::string &payload); + ~PublishThingModelAsyncResult(); + std::string getErrorMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHTHINGMODELASYNCRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusRequest.h b/iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusRequest.h new file mode 100644 index 000000000..66881eef6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusRequest.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_QUERYCUSTOMTIMELINETABLESTATUSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYCUSTOMTIMELINETABLESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryCustomTimelineTableStatusRequest : public RpcServiceRequest + { + + public: + QueryCustomTimelineTableStatusRequest(); + ~QueryCustomTimelineTableStatusRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getTableName()const; + void setTableName(const std::string& tableName); + 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 tableName_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCUSTOMTIMELINETABLESTATUSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusResult.h b/iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusResult.h new file mode 100644 index 000000000..d5e8b9aef --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryCustomTimelineTableStatusResult.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_QUERYCUSTOMTIMELINETABLESTATUSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYCUSTOMTIMELINETABLESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryCustomTimelineTableStatusResult : public ServiceResult + { + public: + struct Data + { + std::string resultJson; + int pageNum; + int pageSize; + long count; + bool hasNext; + }; + + + QueryCustomTimelineTableStatusResult(); + explicit QueryCustomTimelineTableStatusResult(const std::string &payload); + ~QueryCustomTimelineTableStatusResult(); + 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_QUERYCUSTOMTIMELINETABLESTATUSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.h b/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.h index 948bd6e20..9d58c5aa0 100644 --- a/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.h +++ b/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.h @@ -39,10 +39,18 @@ namespace AlibabaCloud std::string value; std::string key; }; + struct MqttProperty + { + std::string value; + std::string key; + }; std::string messageContent; std::vector userProperties; + std::string transformedMessageContent; long generateTime; + std::vector mqttProperties; std::string uniMsgId; + std::string transformedTopicFullName; std::string topicFullName; }; diff --git a/iot/include/alibabacloud/iot/model/StartPTDetectionRequest.h b/iot/include/alibabacloud/iot/model/StartPTDetectionRequest.h new file mode 100644 index 000000000..0f67c0e36 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/StartPTDetectionRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_STARTPTDETECTIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_STARTPTDETECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT StartPTDetectionRequest : public RpcServiceRequest + { + + public: + StartPTDetectionRequest(); + ~StartPTDetectionRequest(); + + std::string getPowerStationUid()const; + void setPowerStationUid(const std::string& powerStationUid); + std::string getData()const; + void setData(const std::string& data); + int getPowerPlantsNumber()const; + void setPowerPlantsNumber(int powerPlantsNumber); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getAlgorithmInstanceUid()const; + void setAlgorithmInstanceUid(const std::string& algorithmInstanceUid); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + long getDataCollectionTime()const; + void setDataCollectionTime(long dataCollectionTime); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getSensitivity()const; + void setSensitivity(int sensitivity); + + private: + std::string powerStationUid_; + std::string data_; + int powerPlantsNumber_; + std::string iotInstanceId_; + std::string algorithmInstanceUid_; + std::string fileName_; + std::string apiProduct_; + long dataCollectionTime_; + std::string apiRevision_; + int sensitivity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_STARTPTDETECTIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/StartPTDetectionResult.h b/iot/include/alibabacloud/iot/model/StartPTDetectionResult.h new file mode 100644 index 000000000..4c84ff3b1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/StartPTDetectionResult.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_STARTPTDETECTIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_STARTPTDETECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT StartPTDetectionResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string errMsg; + std::string data; + std::string inputData; + bool success; + }; + + + StartPTDetectionResult(); + explicit StartPTDetectionResult(const std::string &payload); + ~StartPTDetectionResult(); + 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_STARTPTDETECTIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateOTAJobRequest.h b/iot/include/alibabacloud/iot/model/UpdateOTAJobRequest.h new file mode 100644 index 000000000..d8cf1884d --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateOTAJobRequest.h @@ -0,0 +1,102 @@ +/* + * 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_UPDATEOTAJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEOTAJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateOTAJobRequest : public RpcServiceRequest + { + public: + struct Tags + { + std::string value; + std::string key; + }; + + public: + UpdateOTAJobRequest(); + ~UpdateOTAJobRequest(); + + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + std::string getIncrementFactor()const; + void setIncrementFactor(const std::string& incrementFactor); + int getBaseRatePerMinute()const; + void setBaseRatePerMinute(int baseRatePerMinute); + std::string getUpgradeType()const; + void setUpgradeType(const std::string& upgradeType); + int getTimeoutInMinutes()const; + void setTimeoutInMinutes(int timeoutInMinutes); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); + std::string getJobId()const; + void setJobId(const std::string& jobId); + int getNumberOfSucceedDevices()const; + void setNumberOfSucceedDevices(int numberOfSucceedDevices); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::vector getSrcVersionList()const; + void setSrcVersionList(const std::vector& srcVersionList); + std::string getTargetSelection()const; + void setTargetSelection(const std::string& targetSelection); + std::vector getTags()const; + void setTags(const std::vector& tags); + int getNumberOfNotifiedDevices()const; + void setNumberOfNotifiedDevices(int numberOfNotifiedDevices); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getMaximumPerMinute()const; + void setMaximumPerMinute(int maximumPerMinute); + + private: + std::string realTenantId_; + std::string incrementFactor_; + int baseRatePerMinute_; + std::string upgradeType_; + int timeoutInMinutes_; + std::string accessKeyId_; + std::string realTripartiteKey_; + std::string jobId_; + int numberOfSucceedDevices_; + std::string iotInstanceId_; + std::vector srcVersionList_; + std::string targetSelection_; + std::vector tags_; + int numberOfNotifiedDevices_; + std::string apiProduct_; + std::string apiRevision_; + int maximumPerMinute_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEOTAJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateOTAJobResult.h b/iot/include/alibabacloud/iot/model/UpdateOTAJobResult.h new file mode 100644 index 000000000..d2d658d9b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateOTAJobResult.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_UPDATEOTAJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEOTAJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateOTAJobResult : public ServiceResult + { + public: + + + UpdateOTAJobResult(); + explicit UpdateOTAJobResult(const std::string &payload); + ~UpdateOTAJobResult(); + 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_UPDATEOTAJOBRESULT_H_ \ No newline at end of file diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index 59958f1cc..aff830a66 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -31,21 +31,21 @@ IotClient::IotClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::IotClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::IotClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::~IotClient() @@ -123,6 +123,42 @@ IotClient::AddDeviceToSharePromotionOutcomeCallable IotClient::addDeviceToShareP return task->get_future(); } +IotClient::AddPowerStationOutcome IotClient::addPowerStation(const AddPowerStationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPowerStationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPowerStationOutcome(AddPowerStationResult(outcome.result())); + else + return AddPowerStationOutcome(outcome.error()); +} + +void IotClient::addPowerStationAsync(const AddPowerStationRequest& request, const AddPowerStationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPowerStation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::AddPowerStationOutcomeCallable IotClient::addPowerStationCallable(const AddPowerStationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPowerStation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::AddShareTaskDeviceOutcome IotClient::addShareTaskDevice(const AddShareTaskDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2211,6 +2247,42 @@ IotClient::CopyThingModelOutcomeCallable IotClient::copyThingModelCallable(const return task->get_future(); } +IotClient::CopyThingModelAsyncOutcome IotClient::copyThingModelAsync(const CopyThingModelAsyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CopyThingModelAsyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyThingModelAsyncOutcome(CopyThingModelAsyncResult(outcome.result())); + else + return CopyThingModelAsyncOutcome(outcome.error()); +} + +void IotClient::copyThingModelAsyncAsync(const CopyThingModelAsyncRequest& request, const CopyThingModelAsyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyThingModelAsync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CopyThingModelAsyncOutcomeCallable IotClient::copyThingModelAsyncCallable(const CopyThingModelAsyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyThingModelAsync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CountSpeechBroadcastHourOutcome IotClient::countSpeechBroadcastHour(const CountSpeechBroadcastHourRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4695,6 +4767,42 @@ IotClient::DeleteParserDataSourceOutcomeCallable IotClient::deleteParserDataSour return task->get_future(); } +IotClient::DeletePowerStationOutcome IotClient::deletePowerStation(const DeletePowerStationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePowerStationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePowerStationOutcome(DeletePowerStationResult(outcome.result())); + else + return DeletePowerStationOutcome(outcome.error()); +} + +void IotClient::deletePowerStationAsync(const DeletePowerStationRequest& request, const DeletePowerStationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePowerStation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeletePowerStationOutcomeCallable IotClient::deletePowerStationCallable(const DeletePowerStationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePowerStation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteProductOutcome IotClient::deleteProduct(const DeleteProductRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,6 +5415,42 @@ IotClient::DeleteTopicRouteTableOutcomeCallable IotClient::deleteTopicRouteTable return task->get_future(); } +IotClient::DeleteUserDefineTableDataByPrimaryKeyOutcome IotClient::deleteUserDefineTableDataByPrimaryKey(const DeleteUserDefineTableDataByPrimaryKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserDefineTableDataByPrimaryKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserDefineTableDataByPrimaryKeyOutcome(DeleteUserDefineTableDataByPrimaryKeyResult(outcome.result())); + else + return DeleteUserDefineTableDataByPrimaryKeyOutcome(outcome.error()); +} + +void IotClient::deleteUserDefineTableDataByPrimaryKeyAsync(const DeleteUserDefineTableDataByPrimaryKeyRequest& request, const DeleteUserDefineTableDataByPrimaryKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserDefineTableDataByPrimaryKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteUserDefineTableDataByPrimaryKeyOutcomeCallable IotClient::deleteUserDefineTableDataByPrimaryKeyCallable(const DeleteUserDefineTableDataByPrimaryKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserDefineTableDataByPrimaryKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DetachDestinationOutcome IotClient::detachDestination(const DetachDestinationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6711,6 +6855,42 @@ IotClient::GetStudioAppTokenOpenOutcomeCallable IotClient::getStudioAppTokenOpen return task->get_future(); } +IotClient::GetThingModelStatusInnerOutcome IotClient::getThingModelStatusInner(const GetThingModelStatusInnerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetThingModelStatusInnerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetThingModelStatusInnerOutcome(GetThingModelStatusInnerResult(outcome.result())); + else + return GetThingModelStatusInnerOutcome(outcome.error()); +} + +void IotClient::getThingModelStatusInnerAsync(const GetThingModelStatusInnerRequest& request, const GetThingModelStatusInnerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getThingModelStatusInner(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetThingModelStatusInnerOutcomeCallable IotClient::getThingModelStatusInnerCallable(const GetThingModelStatusInnerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getThingModelStatusInner(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetThingModelTslOutcome IotClient::getThingModelTsl(const GetThingModelTslRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7791,6 +7971,42 @@ IotClient::ListParserDestinationOutcomeCallable IotClient::listParserDestination return task->get_future(); } +IotClient::ListPowerStationOutcome IotClient::listPowerStation(const ListPowerStationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPowerStationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPowerStationOutcome(ListPowerStationResult(outcome.result())); + else + return ListPowerStationOutcome(outcome.error()); +} + +void IotClient::listPowerStationAsync(const ListPowerStationRequest& request, const ListPowerStationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPowerStation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListPowerStationOutcomeCallable IotClient::listPowerStationCallable(const ListPowerStationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPowerStation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ListProductByTagsOutcome IotClient::listProductByTags(const ListProductByTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8079,6 +8295,42 @@ IotClient::ModifyOTAFirmwareOutcomeCallable IotClient::modifyOTAFirmwareCallable return task->get_future(); } +IotClient::ModifyPowerStationOutcome IotClient::modifyPowerStation(const ModifyPowerStationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPowerStationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPowerStationOutcome(ModifyPowerStationResult(outcome.result())); + else + return ModifyPowerStationOutcome(outcome.error()); +} + +void IotClient::modifyPowerStationAsync(const ModifyPowerStationRequest& request, const ModifyPowerStationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPowerStation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ModifyPowerStationOutcomeCallable IotClient::modifyPowerStationCallable(const ModifyPowerStationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPowerStation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::NotifyAddThingTopoOutcome IotClient::notifyAddThingTopo(const NotifyAddThingTopoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8475,6 +8727,78 @@ IotClient::PublishThingModelOutcomeCallable IotClient::publishThingModelCallable return task->get_future(); } +IotClient::PublishThingModelAsyncOutcome IotClient::publishThingModelAsync(const PublishThingModelAsyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishThingModelAsyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishThingModelAsyncOutcome(PublishThingModelAsyncResult(outcome.result())); + else + return PublishThingModelAsyncOutcome(outcome.error()); +} + +void IotClient::publishThingModelAsyncAsync(const PublishThingModelAsyncRequest& request, const PublishThingModelAsyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishThingModelAsync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::PublishThingModelAsyncOutcomeCallable IotClient::publishThingModelAsyncCallable(const PublishThingModelAsyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishThingModelAsync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::PublishThingModelAsyncInnerOutcome IotClient::publishThingModelAsyncInner(const PublishThingModelAsyncInnerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishThingModelAsyncInnerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishThingModelAsyncInnerOutcome(PublishThingModelAsyncInnerResult(outcome.result())); + else + return PublishThingModelAsyncInnerOutcome(outcome.error()); +} + +void IotClient::publishThingModelAsyncInnerAsync(const PublishThingModelAsyncInnerRequest& request, const PublishThingModelAsyncInnerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishThingModelAsyncInner(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::PublishThingModelAsyncInnerOutcomeCallable IotClient::publishThingModelAsyncInnerCallable(const PublishThingModelAsyncInnerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishThingModelAsyncInner(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::PushSpeechOutcome IotClient::pushSpeech(const PushSpeechRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8727,6 +9051,42 @@ IotClient::QueryConsumerGroupStatusOutcomeCallable IotClient::queryConsumerGroup return task->get_future(); } +IotClient::QueryCustomTimelineTableStatusOutcome IotClient::queryCustomTimelineTableStatus(const QueryCustomTimelineTableStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCustomTimelineTableStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCustomTimelineTableStatusOutcome(QueryCustomTimelineTableStatusResult(outcome.result())); + else + return QueryCustomTimelineTableStatusOutcome(outcome.error()); +} + +void IotClient::queryCustomTimelineTableStatusAsync(const QueryCustomTimelineTableStatusRequest& request, const QueryCustomTimelineTableStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCustomTimelineTableStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryCustomTimelineTableStatusOutcomeCallable IotClient::queryCustomTimelineTableStatusCallable(const QueryCustomTimelineTableStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCustomTimelineTableStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDetailSceneRuleLogOutcome IotClient::queryDetailSceneRuleLog(const QueryDetailSceneRuleLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -13299,6 +13659,42 @@ IotClient::SpeechBySynthesisOutcomeCallable IotClient::speechBySynthesisCallable return task->get_future(); } +IotClient::StartPTDetectionOutcome IotClient::startPTDetection(const StartPTDetectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartPTDetectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartPTDetectionOutcome(StartPTDetectionResult(outcome.result())); + else + return StartPTDetectionOutcome(outcome.error()); +} + +void IotClient::startPTDetectionAsync(const StartPTDetectionRequest& request, const StartPTDetectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startPTDetection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::StartPTDetectionOutcomeCallable IotClient::startPTDetectionCallable(const StartPTDetectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startPTDetection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::StartParserOutcome IotClient::startParser(const StartParserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -14163,6 +14559,42 @@ IotClient::UpdateJobOutcomeCallable IotClient::updateJobCallable(const UpdateJob return task->get_future(); } +IotClient::UpdateOTAJobOutcome IotClient::updateOTAJob(const UpdateOTAJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOTAJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOTAJobOutcome(UpdateOTAJobResult(outcome.result())); + else + return UpdateOTAJobOutcome(outcome.error()); +} + +void IotClient::updateOTAJobAsync(const UpdateOTAJobRequest& request, const UpdateOTAJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateOTAJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateOTAJobOutcomeCallable IotClient::updateOTAJobCallable(const UpdateOTAJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateOTAJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateOTAModuleOutcome IotClient::updateOTAModule(const UpdateOTAModuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/iot/src/model/AddPowerStationRequest.cc b/iot/src/model/AddPowerStationRequest.cc new file mode 100644 index 000000000..88d330b3c --- /dev/null +++ b/iot/src/model/AddPowerStationRequest.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::AddPowerStationRequest; + +AddPowerStationRequest::AddPowerStationRequest() : + RpcServiceRequest("iot", "2018-01-20", "AddPowerStation") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPowerStationRequest::~AddPowerStationRequest() +{} + +int AddPowerStationRequest::getRatedPower()const +{ + return ratedPower_; +} + +void AddPowerStationRequest::setRatedPower(int ratedPower) +{ + ratedPower_ = ratedPower; + setParameter("RatedPower", std::to_string(ratedPower)); +} + +std::string AddPowerStationRequest::getDescription()const +{ + return description_; +} + +void AddPowerStationRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string AddPowerStationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void AddPowerStationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string AddPowerStationRequest::getAlgorithmInstanceUid()const +{ + return algorithmInstanceUid_; +} + +void AddPowerStationRequest::setAlgorithmInstanceUid(const std::string& algorithmInstanceUid) +{ + algorithmInstanceUid_ = algorithmInstanceUid; + setParameter("AlgorithmInstanceUid", algorithmInstanceUid); +} + +std::string AddPowerStationRequest::getPowerStationName()const +{ + return powerStationName_; +} + +void AddPowerStationRequest::setPowerStationName(const std::string& powerStationName) +{ + powerStationName_ = powerStationName; + setParameter("PowerStationName", powerStationName); +} + +std::string AddPowerStationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void AddPowerStationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string AddPowerStationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void AddPowerStationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/AddPowerStationResult.cc b/iot/src/model/AddPowerStationResult.cc new file mode 100644 index 000000000..aed4749d2 --- /dev/null +++ b/iot/src/model/AddPowerStationResult.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; + +AddPowerStationResult::AddPowerStationResult() : + ServiceResult() +{} + +AddPowerStationResult::AddPowerStationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPowerStationResult::~AddPowerStationResult() +{} + +void AddPowerStationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string AddPowerStationResult::getData()const +{ + return data_; +} + +std::string AddPowerStationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AddPowerStationResult::getCode()const +{ + return code_; +} + +bool AddPowerStationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/BatchAddThingTopoRequest.cc b/iot/src/model/BatchAddThingTopoRequest.cc index 214478177..c4fe44bac 100644 --- a/iot/src/model/BatchAddThingTopoRequest.cc +++ b/iot/src/model/BatchAddThingTopoRequest.cc @@ -38,6 +38,17 @@ void BatchAddThingTopoRequest::setGwProductKey(const std::string& gwProductKey) setParameter("GwProductKey", gwProductKey); } +std::string BatchAddThingTopoRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchAddThingTopoRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchAddThingTopoRequest::getAccessKeyId()const { return accessKeyId_; @@ -49,6 +60,17 @@ void BatchAddThingTopoRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string BatchAddThingTopoRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchAddThingTopoRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchAddThingTopoRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchCheckVehicleDeviceRequest.cc b/iot/src/model/BatchCheckVehicleDeviceRequest.cc index 83ca579d7..9731af7cf 100644 --- a/iot/src/model/BatchCheckVehicleDeviceRequest.cc +++ b/iot/src/model/BatchCheckVehicleDeviceRequest.cc @@ -60,6 +60,7 @@ void BatchCheckVehicleDeviceRequest::setDeviceList(const std::vector for(int dep1 = 0; dep1!= deviceList.size(); dep1++) { auto deviceListObj = deviceList.at(dep1); std::string deviceListObjStr = "DeviceList." + std::to_string(dep1 + 1); + setParameter(deviceListObjStr + ".DeviceSecret", deviceListObj.deviceSecret); setParameter(deviceListObjStr + ".DeviceName", deviceListObj.deviceName); setParameter(deviceListObjStr + ".DeviceId", deviceListObj.deviceId); setParameter(deviceListObjStr + ".Manufacturer", deviceListObj.manufacturer); diff --git a/iot/src/model/BatchGetDeviceStateResult.cc b/iot/src/model/BatchGetDeviceStateResult.cc index b68e46865..57ae257f9 100644 --- a/iot/src/model/BatchGetDeviceStateResult.cc +++ b/iot/src/model/BatchGetDeviceStateResult.cc @@ -55,6 +55,8 @@ void BatchGetDeviceStateResult::parse(const std::string &payload) deviceStatusListObject.lastOnlineTime = valueDeviceStatusListDeviceStatus["LastOnlineTime"].asString(); if(!valueDeviceStatusListDeviceStatus["IotId"].isNull()) deviceStatusListObject.iotId = valueDeviceStatusListDeviceStatus["IotId"].asString(); + if(!valueDeviceStatusListDeviceStatus["Timestamp"].isNull()) + deviceStatusListObject.timestamp = std::stol(valueDeviceStatusListDeviceStatus["Timestamp"].asString()); deviceStatusList_.push_back(deviceStatusListObject); } if(!value["Success"].isNull()) diff --git a/iot/src/model/BatchImportVehicleDeviceRequest.cc b/iot/src/model/BatchImportVehicleDeviceRequest.cc index 8806ccb1b..b155f3893 100644 --- a/iot/src/model/BatchImportVehicleDeviceRequest.cc +++ b/iot/src/model/BatchImportVehicleDeviceRequest.cc @@ -60,6 +60,7 @@ void BatchImportVehicleDeviceRequest::setDeviceList(const std::vector BatchPubRequest::getUserProp()const +{ + return userProp_; +} + +void BatchPubRequest::setUserProp(const std::vector& userProp) +{ + userProp_ = userProp; + for(int dep1 = 0; dep1!= userProp.size(); dep1++) { + auto userPropObj = userProp.at(dep1); + std::string userPropObjStr = "UserProp." + std::to_string(dep1 + 1); + setParameter(userPropObjStr + ".Value", userPropObj.value); + setParameter(userPropObjStr + ".Key", userPropObj.key); + } +} + +std::string BatchPubRequest::getResponseTopicTemplateName()const +{ + return responseTopicTemplateName_; +} + +void BatchPubRequest::setResponseTopicTemplateName(const std::string& responseTopicTemplateName) +{ + responseTopicTemplateName_ = responseTopicTemplateName; + setParameter("ResponseTopicTemplateName", responseTopicTemplateName); +} + std::string BatchPubRequest::getMessageContent()const { return messageContent_; @@ -38,6 +65,17 @@ void BatchPubRequest::setMessageContent(const std::string& messageContent) setParameter("MessageContent", messageContent); } +std::string BatchPubRequest::getTopicTemplateName()const +{ + return topicTemplateName_; +} + +void BatchPubRequest::setTopicTemplateName(const std::string& topicTemplateName) +{ + topicTemplateName_ = topicTemplateName; + setParameter("TopicTemplateName", topicTemplateName); +} + int BatchPubRequest::getQos()const { return qos_; @@ -49,6 +87,17 @@ void BatchPubRequest::setQos(int qos) setParameter("Qos", std::to_string(qos)); } +std::string BatchPubRequest::getCorrelationData()const +{ + return correlationData_; +} + +void BatchPubRequest::setCorrelationData(const std::string& correlationData) +{ + correlationData_ = correlationData; + setParameter("CorrelationData", correlationData); +} + std::string BatchPubRequest::getIotInstanceId()const { return iotInstanceId_; @@ -60,6 +109,17 @@ void BatchPubRequest::setIotInstanceId(const std::string& iotInstanceId) setParameter("IotInstanceId", iotInstanceId); } +long BatchPubRequest::getMessageExpiryInterval()const +{ + return messageExpiryInterval_; +} + +void BatchPubRequest::setMessageExpiryInterval(long messageExpiryInterval) +{ + messageExpiryInterval_ = messageExpiryInterval; + setParameter("MessageExpiryInterval", std::to_string(messageExpiryInterval)); +} + std::string BatchPubRequest::getTopicShortName()const { return topicShortName_; @@ -71,6 +131,17 @@ void BatchPubRequest::setTopicShortName(const std::string& topicShortName) setParameter("TopicShortName", topicShortName); } +int BatchPubRequest::getPayloadFormatIndicator()const +{ + return payloadFormatIndicator_; +} + +void BatchPubRequest::setPayloadFormatIndicator(int payloadFormatIndicator) +{ + payloadFormatIndicator_ = payloadFormatIndicator; + setParameter("PayloadFormatIndicator", std::to_string(payloadFormatIndicator)); +} + std::string BatchPubRequest::getProductKey()const { return productKey_; @@ -82,6 +153,28 @@ void BatchPubRequest::setProductKey(const std::string& productKey) setParameter("ProductKey", productKey); } +std::string BatchPubRequest::getContentType()const +{ + return contentType_; +} + +void BatchPubRequest::setContentType(const std::string& contentType) +{ + contentType_ = contentType; + setParameter("ContentType", contentType); +} + +bool BatchPubRequest::getRetained()const +{ + return retained_; +} + +void BatchPubRequest::setRetained(bool retained) +{ + retained_ = retained; + setParameter("Retained", retained ? "true" : "false"); +} + std::string BatchPubRequest::getApiProduct()const { return apiProduct_; diff --git a/iot/src/model/CopyThingModelAsyncRequest.cc b/iot/src/model/CopyThingModelAsyncRequest.cc new file mode 100644 index 000000000..579811270 --- /dev/null +++ b/iot/src/model/CopyThingModelAsyncRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::CopyThingModelAsyncRequest; + +CopyThingModelAsyncRequest::CopyThingModelAsyncRequest() : + RpcServiceRequest("iot", "2018-01-20", "CopyThingModelAsync") +{ + setMethod(HttpRequest::Method::Post); +} + +CopyThingModelAsyncRequest::~CopyThingModelAsyncRequest() +{} + +std::string CopyThingModelAsyncRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void CopyThingModelAsyncRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string CopyThingModelAsyncRequest::getTargetProductKey()const +{ + return targetProductKey_; +} + +void CopyThingModelAsyncRequest::setTargetProductKey(const std::string& targetProductKey) +{ + targetProductKey_ = targetProductKey; + setParameter("TargetProductKey", targetProductKey); +} + +std::string CopyThingModelAsyncRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CopyThingModelAsyncRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CopyThingModelAsyncRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void CopyThingModelAsyncRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + +std::string CopyThingModelAsyncRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CopyThingModelAsyncRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CopyThingModelAsyncRequest::getSourceModelVersion()const +{ + return sourceModelVersion_; +} + +void CopyThingModelAsyncRequest::setSourceModelVersion(const std::string& sourceModelVersion) +{ + sourceModelVersion_ = sourceModelVersion; + setParameter("SourceModelVersion", sourceModelVersion); +} + +std::string CopyThingModelAsyncRequest::getSourceProductKey()const +{ + return sourceProductKey_; +} + +void CopyThingModelAsyncRequest::setSourceProductKey(const std::string& sourceProductKey) +{ + sourceProductKey_ = sourceProductKey; + setParameter("SourceProductKey", sourceProductKey); +} + +std::string CopyThingModelAsyncRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CopyThingModelAsyncRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CopyThingModelAsyncRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CopyThingModelAsyncRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CopyThingModelAsyncResult.cc b/iot/src/model/CopyThingModelAsyncResult.cc new file mode 100644 index 000000000..b53db028e --- /dev/null +++ b/iot/src/model/CopyThingModelAsyncResult.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; + +CopyThingModelAsyncResult::CopyThingModelAsyncResult() : + ServiceResult() +{} + +CopyThingModelAsyncResult::CopyThingModelAsyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyThingModelAsyncResult::~CopyThingModelAsyncResult() +{} + +void CopyThingModelAsyncResult::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 CopyThingModelAsyncResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CopyThingModelAsyncResult::getCode()const +{ + return code_; +} + +bool CopyThingModelAsyncResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeletePowerStationRequest.cc b/iot/src/model/DeletePowerStationRequest.cc new file mode 100644 index 000000000..71020ef50 --- /dev/null +++ b/iot/src/model/DeletePowerStationRequest.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::DeletePowerStationRequest; + +DeletePowerStationRequest::DeletePowerStationRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeletePowerStation") +{ + setMethod(HttpRequest::Method::Post); +} + +DeletePowerStationRequest::~DeletePowerStationRequest() +{} + +std::string DeletePowerStationRequest::getPowerStationUid()const +{ + return powerStationUid_; +} + +void DeletePowerStationRequest::setPowerStationUid(const std::string& powerStationUid) +{ + powerStationUid_ = powerStationUid; + setParameter("PowerStationUid", powerStationUid); +} + +std::string DeletePowerStationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeletePowerStationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeletePowerStationRequest::getAlgorithmInstanceUid()const +{ + return algorithmInstanceUid_; +} + +void DeletePowerStationRequest::setAlgorithmInstanceUid(const std::string& algorithmInstanceUid) +{ + algorithmInstanceUid_ = algorithmInstanceUid; + setParameter("AlgorithmInstanceUid", algorithmInstanceUid); +} + +std::string DeletePowerStationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeletePowerStationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeletePowerStationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeletePowerStationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeletePowerStationResult.cc b/iot/src/model/DeletePowerStationResult.cc new file mode 100644 index 000000000..e901b8d51 --- /dev/null +++ b/iot/src/model/DeletePowerStationResult.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; + +DeletePowerStationResult::DeletePowerStationResult() : + ServiceResult() +{} + +DeletePowerStationResult::DeletePowerStationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePowerStationResult::~DeletePowerStationResult() +{} + +void DeletePowerStationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeletePowerStationResult::getData()const +{ + return data_; +} + +std::string DeletePowerStationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeletePowerStationResult::getCode()const +{ + return code_; +} + +bool DeletePowerStationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteUserDefineTableDataByPrimaryKeyRequest.cc b/iot/src/model/DeleteUserDefineTableDataByPrimaryKeyRequest.cc new file mode 100644 index 000000000..1a262dcef --- /dev/null +++ b/iot/src/model/DeleteUserDefineTableDataByPrimaryKeyRequest.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::DeleteUserDefineTableDataByPrimaryKeyRequest; + +DeleteUserDefineTableDataByPrimaryKeyRequest::DeleteUserDefineTableDataByPrimaryKeyRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteUserDefineTableDataByPrimaryKey") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteUserDefineTableDataByPrimaryKeyRequest::~DeleteUserDefineTableDataByPrimaryKeyRequest() +{} + +std::string DeleteUserDefineTableDataByPrimaryKeyRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteUserDefineTableDataByPrimaryKeyRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteUserDefineTableDataByPrimaryKeyRequest::getTableIdentifier()const +{ + return tableIdentifier_; +} + +void DeleteUserDefineTableDataByPrimaryKeyRequest::setTableIdentifier(const std::string& tableIdentifier) +{ + tableIdentifier_ = tableIdentifier; + setParameter("TableIdentifier", tableIdentifier); +} + +std::string DeleteUserDefineTableDataByPrimaryKeyRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteUserDefineTableDataByPrimaryKeyRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteUserDefineTableDataByPrimaryKeyRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteUserDefineTableDataByPrimaryKeyRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string DeleteUserDefineTableDataByPrimaryKeyRequest::getConditions()const +{ + return conditions_; +} + +void DeleteUserDefineTableDataByPrimaryKeyRequest::setConditions(const std::string& conditions) +{ + conditions_ = conditions; + setParameter("Conditions", conditions); +} + diff --git a/iot/src/model/DeleteUserDefineTableDataByPrimaryKeyResult.cc b/iot/src/model/DeleteUserDefineTableDataByPrimaryKeyResult.cc new file mode 100644 index 000000000..7af37cc1b --- /dev/null +++ b/iot/src/model/DeleteUserDefineTableDataByPrimaryKeyResult.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; + +DeleteUserDefineTableDataByPrimaryKeyResult::DeleteUserDefineTableDataByPrimaryKeyResult() : + ServiceResult() +{} + +DeleteUserDefineTableDataByPrimaryKeyResult::DeleteUserDefineTableDataByPrimaryKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserDefineTableDataByPrimaryKeyResult::~DeleteUserDefineTableDataByPrimaryKeyResult() +{} + +void DeleteUserDefineTableDataByPrimaryKeyResult::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 DeleteUserDefineTableDataByPrimaryKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteUserDefineTableDataByPrimaryKeyResult::getCode()const +{ + return code_; +} + +bool DeleteUserDefineTableDataByPrimaryKeyResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetThingModelStatusInnerRequest.cc b/iot/src/model/GetThingModelStatusInnerRequest.cc new file mode 100644 index 000000000..805bf76c3 --- /dev/null +++ b/iot/src/model/GetThingModelStatusInnerRequest.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::GetThingModelStatusInnerRequest; + +GetThingModelStatusInnerRequest::GetThingModelStatusInnerRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetThingModelStatusInner") +{ + setMethod(HttpRequest::Method::Post); +} + +GetThingModelStatusInnerRequest::~GetThingModelStatusInnerRequest() +{} + +std::string GetThingModelStatusInnerRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetThingModelStatusInnerRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string GetThingModelStatusInnerRequest::getProductKey()const +{ + return productKey_; +} + +void GetThingModelStatusInnerRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string GetThingModelStatusInnerRequest::getInsId()const +{ + return insId_; +} + +void GetThingModelStatusInnerRequest::setInsId(const std::string& insId) +{ + insId_ = insId; + setParameter("InsId", insId); +} + +std::string GetThingModelStatusInnerRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetThingModelStatusInnerRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetThingModelStatusInnerRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetThingModelStatusInnerRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetThingModelStatusInnerResult.cc b/iot/src/model/GetThingModelStatusInnerResult.cc new file mode 100644 index 000000000..1f7e9a76d --- /dev/null +++ b/iot/src/model/GetThingModelStatusInnerResult.cc @@ -0,0 +1,85 @@ +/* + * 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; + +GetThingModelStatusInnerResult::GetThingModelStatusInnerResult() : + ServiceResult() +{} + +GetThingModelStatusInnerResult::GetThingModelStatusInnerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetThingModelStatusInnerResult::~GetThingModelStatusInnerResult() +{} + +void GetThingModelStatusInnerResult::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["ModifiedTime"].isNull()) + data_.modifiedTime = std::stol(dataNode["ModifiedTime"].asString()); + if(!dataNode["ProductKey"].isNull()) + data_.productKey = dataNode["ProductKey"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["RbacTenantId"].isNull()) + data_.rbacTenantId = dataNode["RbacTenantId"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["Info"].isNull()) + data_.info = dataNode["Info"].asString(); + if(!dataNode["OutTime"].isNull()) + data_.outTime = std::stol(dataNode["OutTime"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["LocalizedMsg"].isNull()) + localizedMsg_ = value["LocalizedMsg"].asString(); + +} + +std::string GetThingModelStatusInnerResult::getLocalizedMsg()const +{ + return localizedMsg_; +} + +std::string GetThingModelStatusInnerResult::getMessage()const +{ + return message_; +} + +GetThingModelStatusInnerResult::Data GetThingModelStatusInnerResult::getData()const +{ + return data_; +} + +int GetThingModelStatusInnerResult::getCode()const +{ + return code_; +} + diff --git a/iot/src/model/ListOTAUnfinishedTaskByDeviceRequest.cc b/iot/src/model/ListOTAUnfinishedTaskByDeviceRequest.cc index 4b4153476..bc2b73251 100644 --- a/iot/src/model/ListOTAUnfinishedTaskByDeviceRequest.cc +++ b/iot/src/model/ListOTAUnfinishedTaskByDeviceRequest.cc @@ -27,6 +27,19 @@ ListOTAUnfinishedTaskByDeviceRequest::ListOTAUnfinishedTaskByDeviceRequest() : ListOTAUnfinishedTaskByDeviceRequest::~ListOTAUnfinishedTaskByDeviceRequest() {} +std::vector ListOTAUnfinishedTaskByDeviceRequest::getTaskStatusList()const +{ + return taskStatusList_; +} + +void ListOTAUnfinishedTaskByDeviceRequest::setTaskStatusList(const std::vector& taskStatusList) +{ + taskStatusList_ = taskStatusList; + for(int dep1 = 0; dep1!= taskStatusList.size(); dep1++) { + setParameter("TaskStatusList."+ std::to_string(dep1), taskStatusList.at(dep1)); + } +} + std::string ListOTAUnfinishedTaskByDeviceRequest::getAccessKeyId()const { return accessKeyId_; diff --git a/iot/src/model/ListPowerStationRequest.cc b/iot/src/model/ListPowerStationRequest.cc new file mode 100644 index 000000000..4790b5a06 --- /dev/null +++ b/iot/src/model/ListPowerStationRequest.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::ListPowerStationRequest; + +ListPowerStationRequest::ListPowerStationRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListPowerStation") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPowerStationRequest::~ListPowerStationRequest() +{} + +std::string ListPowerStationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListPowerStationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListPowerStationRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPowerStationRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListPowerStationRequest::getAlgorithmInstanceUid()const +{ + return algorithmInstanceUid_; +} + +void ListPowerStationRequest::setAlgorithmInstanceUid(const std::string& algorithmInstanceUid) +{ + algorithmInstanceUid_ = algorithmInstanceUid; + setParameter("AlgorithmInstanceUid", algorithmInstanceUid); +} + +int ListPowerStationRequest::getPageNo()const +{ + return pageNo_; +} + +void ListPowerStationRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +std::string ListPowerStationRequest::getPowerStationName()const +{ + return powerStationName_; +} + +void ListPowerStationRequest::setPowerStationName(const std::string& powerStationName) +{ + powerStationName_ = powerStationName; + setParameter("PowerStationName", powerStationName); +} + +std::string ListPowerStationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListPowerStationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListPowerStationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListPowerStationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/ListPowerStationResult.cc b/iot/src/model/ListPowerStationResult.cc new file mode 100644 index 000000000..39205bb83 --- /dev/null +++ b/iot/src/model/ListPowerStationResult.cc @@ -0,0 +1,93 @@ +/* + * 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; + +ListPowerStationResult::ListPowerStationResult() : + ServiceResult() +{} + +ListPowerStationResult::ListPowerStationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPowerStationResult::~ListPowerStationResult() +{} + +void ListPowerStationResult::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["PageNo"].isNull()) + data_.pageNo = std::stoi(dataNode["PageNo"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allDataListNode = dataNode["DataList"]["dataListItem"]; + for (auto dataNodeDataListdataListItem : allDataListNode) + { + Data::DataListItem dataListItemObject; + if(!dataNodeDataListdataListItem["PowerStationUid"].isNull()) + dataListItemObject.powerStationUid = dataNodeDataListdataListItem["PowerStationUid"].asString(); + if(!dataNodeDataListdataListItem["AlgoInstanceUid"].isNull()) + dataListItemObject.algoInstanceUid = dataNodeDataListdataListItem["AlgoInstanceUid"].asString(); + if(!dataNodeDataListdataListItem["Name"].isNull()) + dataListItemObject.name = dataNodeDataListdataListItem["Name"].asString(); + if(!dataNodeDataListdataListItem["Description"].isNull()) + dataListItemObject.description = dataNodeDataListdataListItem["Description"].asString(); + if(!dataNodeDataListdataListItem["RatedPower"].isNull()) + dataListItemObject.ratedPower = std::stoi(dataNodeDataListdataListItem["RatedPower"].asString()); + data_.dataList.push_back(dataListItemObject); + } + 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(); + +} + +ListPowerStationResult::Data ListPowerStationResult::getData()const +{ + return data_; +} + +std::string ListPowerStationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListPowerStationResult::getCode()const +{ + return code_; +} + +bool ListPowerStationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ModifyPowerStationRequest.cc b/iot/src/model/ModifyPowerStationRequest.cc new file mode 100644 index 000000000..6e703c748 --- /dev/null +++ b/iot/src/model/ModifyPowerStationRequest.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::ModifyPowerStationRequest; + +ModifyPowerStationRequest::ModifyPowerStationRequest() : + RpcServiceRequest("iot", "2018-01-20", "ModifyPowerStation") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyPowerStationRequest::~ModifyPowerStationRequest() +{} + +std::string ModifyPowerStationRequest::getPowerStationUid()const +{ + return powerStationUid_; +} + +void ModifyPowerStationRequest::setPowerStationUid(const std::string& powerStationUid) +{ + powerStationUid_ = powerStationUid; + setParameter("PowerStationUid", powerStationUid); +} + +int ModifyPowerStationRequest::getRatedPower()const +{ + return ratedPower_; +} + +void ModifyPowerStationRequest::setRatedPower(int ratedPower) +{ + ratedPower_ = ratedPower; + setParameter("RatedPower", std::to_string(ratedPower)); +} + +std::string ModifyPowerStationRequest::getDescription()const +{ + return description_; +} + +void ModifyPowerStationRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyPowerStationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ModifyPowerStationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string ModifyPowerStationRequest::getAlgorithmInstanceUid()const +{ + return algorithmInstanceUid_; +} + +void ModifyPowerStationRequest::setAlgorithmInstanceUid(const std::string& algorithmInstanceUid) +{ + algorithmInstanceUid_ = algorithmInstanceUid; + setParameter("AlgorithmInstanceUid", algorithmInstanceUid); +} + +std::string ModifyPowerStationRequest::getPowerStationName()const +{ + return powerStationName_; +} + +void ModifyPowerStationRequest::setPowerStationName(const std::string& powerStationName) +{ + powerStationName_ = powerStationName; + setParameter("PowerStationName", powerStationName); +} + +std::string ModifyPowerStationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ModifyPowerStationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ModifyPowerStationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ModifyPowerStationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/ModifyPowerStationResult.cc b/iot/src/model/ModifyPowerStationResult.cc new file mode 100644 index 000000000..42d3f1842 --- /dev/null +++ b/iot/src/model/ModifyPowerStationResult.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; + +ModifyPowerStationResult::ModifyPowerStationResult() : + ServiceResult() +{} + +ModifyPowerStationResult::ModifyPowerStationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPowerStationResult::~ModifyPowerStationResult() +{} + +void ModifyPowerStationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ModifyPowerStationResult::getData()const +{ + return data_; +} + +std::string ModifyPowerStationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ModifyPowerStationResult::getCode()const +{ + return code_; +} + +bool ModifyPowerStationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/PublishThingModelAsyncInnerRequest.cc b/iot/src/model/PublishThingModelAsyncInnerRequest.cc new file mode 100644 index 000000000..8414d6c4b --- /dev/null +++ b/iot/src/model/PublishThingModelAsyncInnerRequest.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::PublishThingModelAsyncInnerRequest; + +PublishThingModelAsyncInnerRequest::PublishThingModelAsyncInnerRequest() : + RpcServiceRequest("iot", "2018-01-20", "PublishThingModelAsyncInner") +{ + setMethod(HttpRequest::Method::Post); +} + +PublishThingModelAsyncInnerRequest::~PublishThingModelAsyncInnerRequest() +{} + +std::string PublishThingModelAsyncInnerRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void PublishThingModelAsyncInnerRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string PublishThingModelAsyncInnerRequest::getProductKey()const +{ + return productKey_; +} + +void PublishThingModelAsyncInnerRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string PublishThingModelAsyncInnerRequest::getInsId()const +{ + return insId_; +} + +void PublishThingModelAsyncInnerRequest::setInsId(const std::string& insId) +{ + insId_ = insId; + setParameter("InsId", insId); +} + +std::string PublishThingModelAsyncInnerRequest::getApiProduct()const +{ + return apiProduct_; +} + +void PublishThingModelAsyncInnerRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string PublishThingModelAsyncInnerRequest::getApiRevision()const +{ + return apiRevision_; +} + +void PublishThingModelAsyncInnerRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/PublishThingModelAsyncInnerResult.cc b/iot/src/model/PublishThingModelAsyncInnerResult.cc new file mode 100644 index 000000000..38de0ff50 --- /dev/null +++ b/iot/src/model/PublishThingModelAsyncInnerResult.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; + +PublishThingModelAsyncInnerResult::PublishThingModelAsyncInnerResult() : + ServiceResult() +{} + +PublishThingModelAsyncInnerResult::PublishThingModelAsyncInnerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishThingModelAsyncInnerResult::~PublishThingModelAsyncInnerResult() +{} + +void PublishThingModelAsyncInnerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["LocalizedMsg"].isNull()) + localizedMsg_ = value["LocalizedMsg"].asString(); + +} + +std::string PublishThingModelAsyncInnerResult::getLocalizedMsg()const +{ + return localizedMsg_; +} + +std::string PublishThingModelAsyncInnerResult::getMessage()const +{ + return message_; +} + +int PublishThingModelAsyncInnerResult::getCode()const +{ + return code_; +} + diff --git a/iot/src/model/PublishThingModelAsyncRequest.cc b/iot/src/model/PublishThingModelAsyncRequest.cc new file mode 100644 index 000000000..f031a7e74 --- /dev/null +++ b/iot/src/model/PublishThingModelAsyncRequest.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::PublishThingModelAsyncRequest; + +PublishThingModelAsyncRequest::PublishThingModelAsyncRequest() : + RpcServiceRequest("iot", "2018-01-20", "PublishThingModelAsync") +{ + setMethod(HttpRequest::Method::Post); +} + +PublishThingModelAsyncRequest::~PublishThingModelAsyncRequest() +{} + +std::string PublishThingModelAsyncRequest::getDescription()const +{ + return description_; +} + +void PublishThingModelAsyncRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string PublishThingModelAsyncRequest::getThingModelVersion()const +{ + return thingModelVersion_; +} + +void PublishThingModelAsyncRequest::setThingModelVersion(const std::string& thingModelVersion) +{ + thingModelVersion_ = thingModelVersion; + setParameter("ThingModelVersion", thingModelVersion); +} + +std::string PublishThingModelAsyncRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void PublishThingModelAsyncRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string PublishThingModelAsyncRequest::getProductKey()const +{ + return productKey_; +} + +void PublishThingModelAsyncRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string PublishThingModelAsyncRequest::getApiProduct()const +{ + return apiProduct_; +} + +void PublishThingModelAsyncRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string PublishThingModelAsyncRequest::getApiRevision()const +{ + return apiRevision_; +} + +void PublishThingModelAsyncRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/PublishThingModelAsyncResult.cc b/iot/src/model/PublishThingModelAsyncResult.cc new file mode 100644 index 000000000..f88aa91d0 --- /dev/null +++ b/iot/src/model/PublishThingModelAsyncResult.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; + +PublishThingModelAsyncResult::PublishThingModelAsyncResult() : + ServiceResult() +{} + +PublishThingModelAsyncResult::PublishThingModelAsyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishThingModelAsyncResult::~PublishThingModelAsyncResult() +{} + +void PublishThingModelAsyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string PublishThingModelAsyncResult::getErrorMessage()const +{ + return errorMessage_; +} + +int PublishThingModelAsyncResult::getCode()const +{ + return code_; +} + +bool PublishThingModelAsyncResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryCustomTimelineTableStatusRequest.cc b/iot/src/model/QueryCustomTimelineTableStatusRequest.cc new file mode 100644 index 000000000..70fce27c2 --- /dev/null +++ b/iot/src/model/QueryCustomTimelineTableStatusRequest.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::QueryCustomTimelineTableStatusRequest; + +QueryCustomTimelineTableStatusRequest::QueryCustomTimelineTableStatusRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryCustomTimelineTableStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryCustomTimelineTableStatusRequest::~QueryCustomTimelineTableStatusRequest() +{} + +std::string QueryCustomTimelineTableStatusRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryCustomTimelineTableStatusRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryCustomTimelineTableStatusRequest::getTableName()const +{ + return tableName_; +} + +void QueryCustomTimelineTableStatusRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + +std::string QueryCustomTimelineTableStatusRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryCustomTimelineTableStatusRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryCustomTimelineTableStatusRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryCustomTimelineTableStatusRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryCustomTimelineTableStatusResult.cc b/iot/src/model/QueryCustomTimelineTableStatusResult.cc new file mode 100644 index 000000000..e479244a1 --- /dev/null +++ b/iot/src/model/QueryCustomTimelineTableStatusResult.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; + +QueryCustomTimelineTableStatusResult::QueryCustomTimelineTableStatusResult() : + ServiceResult() +{} + +QueryCustomTimelineTableStatusResult::QueryCustomTimelineTableStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCustomTimelineTableStatusResult::~QueryCustomTimelineTableStatusResult() +{} + +void QueryCustomTimelineTableStatusResult::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["HasNext"].isNull()) + data_.hasNext = dataNode["HasNext"].asString() == "true"; + if(!dataNode["ResultJson"].isNull()) + data_.resultJson = dataNode["ResultJson"].asString(); + if(!dataNode["Count"].isNull()) + data_.count = std::stol(dataNode["Count"].asString()); + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].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(); + +} + +QueryCustomTimelineTableStatusResult::Data QueryCustomTimelineTableStatusResult::getData()const +{ + return data_; +} + +std::string QueryCustomTimelineTableStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryCustomTimelineTableStatusResult::getCode()const +{ + return code_; +} + +bool QueryCustomTimelineTableStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryMessageInfoResult.cc b/iot/src/model/QueryMessageInfoResult.cc index 5f3ba4a51..78795a2bd 100644 --- a/iot/src/model/QueryMessageInfoResult.cc +++ b/iot/src/model/QueryMessageInfoResult.cc @@ -48,6 +48,10 @@ void QueryMessageInfoResult::parse(const std::string &payload) message_.messageContent = messageNode["MessageContent"].asString(); if(!messageNode["GenerateTime"].isNull()) message_.generateTime = std::stol(messageNode["GenerateTime"].asString()); + if(!messageNode["TransformedMessageContent"].isNull()) + message_.transformedMessageContent = messageNode["TransformedMessageContent"].asString(); + if(!messageNode["TransformedTopicFullName"].isNull()) + message_.transformedTopicFullName = messageNode["TransformedTopicFullName"].asString(); auto allUserPropertiesNode = messageNode["UserProperties"]["UserProperty"]; for (auto messageNodeUserPropertiesUserProperty : allUserPropertiesNode) { @@ -58,6 +62,16 @@ void QueryMessageInfoResult::parse(const std::string &payload) userPropertyObject.value = messageNodeUserPropertiesUserProperty["Value"].asString(); message_.userProperties.push_back(userPropertyObject); } + auto allMqttPropertiesNode = messageNode["MqttProperties"]["MqttProperty"]; + for (auto messageNodeMqttPropertiesMqttProperty : allMqttPropertiesNode) + { + Message::MqttProperty mqttPropertyObject; + if(!messageNodeMqttPropertiesMqttProperty["Key"].isNull()) + mqttPropertyObject.key = messageNodeMqttPropertiesMqttProperty["Key"].asString(); + if(!messageNodeMqttPropertiesMqttProperty["Value"].isNull()) + mqttPropertyObject.value = messageNodeMqttPropertiesMqttProperty["Value"].asString(); + message_.mqttProperties.push_back(mqttPropertyObject); + } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["ErrorMessage"].isNull()) diff --git a/iot/src/model/StartPTDetectionRequest.cc b/iot/src/model/StartPTDetectionRequest.cc new file mode 100644 index 000000000..d4ec23108 --- /dev/null +++ b/iot/src/model/StartPTDetectionRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::StartPTDetectionRequest; + +StartPTDetectionRequest::StartPTDetectionRequest() : + RpcServiceRequest("iot", "2018-01-20", "StartPTDetection") +{ + setMethod(HttpRequest::Method::Post); +} + +StartPTDetectionRequest::~StartPTDetectionRequest() +{} + +std::string StartPTDetectionRequest::getPowerStationUid()const +{ + return powerStationUid_; +} + +void StartPTDetectionRequest::setPowerStationUid(const std::string& powerStationUid) +{ + powerStationUid_ = powerStationUid; + setParameter("PowerStationUid", powerStationUid); +} + +std::string StartPTDetectionRequest::getData()const +{ + return data_; +} + +void StartPTDetectionRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +int StartPTDetectionRequest::getPowerPlantsNumber()const +{ + return powerPlantsNumber_; +} + +void StartPTDetectionRequest::setPowerPlantsNumber(int powerPlantsNumber) +{ + powerPlantsNumber_ = powerPlantsNumber; + setParameter("PowerPlantsNumber", std::to_string(powerPlantsNumber)); +} + +std::string StartPTDetectionRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void StartPTDetectionRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string StartPTDetectionRequest::getAlgorithmInstanceUid()const +{ + return algorithmInstanceUid_; +} + +void StartPTDetectionRequest::setAlgorithmInstanceUid(const std::string& algorithmInstanceUid) +{ + algorithmInstanceUid_ = algorithmInstanceUid; + setParameter("AlgorithmInstanceUid", algorithmInstanceUid); +} + +std::string StartPTDetectionRequest::getFileName()const +{ + return fileName_; +} + +void StartPTDetectionRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string StartPTDetectionRequest::getApiProduct()const +{ + return apiProduct_; +} + +void StartPTDetectionRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +long StartPTDetectionRequest::getDataCollectionTime()const +{ + return dataCollectionTime_; +} + +void StartPTDetectionRequest::setDataCollectionTime(long dataCollectionTime) +{ + dataCollectionTime_ = dataCollectionTime; + setParameter("DataCollectionTime", std::to_string(dataCollectionTime)); +} + +std::string StartPTDetectionRequest::getApiRevision()const +{ + return apiRevision_; +} + +void StartPTDetectionRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int StartPTDetectionRequest::getSensitivity()const +{ + return sensitivity_; +} + +void StartPTDetectionRequest::setSensitivity(int sensitivity) +{ + sensitivity_ = sensitivity; + setParameter("Sensitivity", std::to_string(sensitivity)); +} + diff --git a/iot/src/model/StartPTDetectionResult.cc b/iot/src/model/StartPTDetectionResult.cc new file mode 100644 index 000000000..c7b98a093 --- /dev/null +++ b/iot/src/model/StartPTDetectionResult.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; + +StartPTDetectionResult::StartPTDetectionResult() : + ServiceResult() +{} + +StartPTDetectionResult::StartPTDetectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartPTDetectionResult::~StartPTDetectionResult() +{} + +void StartPTDetectionResult::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["Data"].isNull()) + data_.data = dataNode["Data"].asString(); + if(!dataNode["InputData"].isNull()) + data_.inputData = dataNode["InputData"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + if(!dataNode["ErrMsg"].isNull()) + data_.errMsg = dataNode["ErrMsg"].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(); + +} + +StartPTDetectionResult::Data StartPTDetectionResult::getData()const +{ + return data_; +} + +std::string StartPTDetectionResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string StartPTDetectionResult::getCode()const +{ + return code_; +} + +bool StartPTDetectionResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateOTAJobRequest.cc b/iot/src/model/UpdateOTAJobRequest.cc new file mode 100644 index 000000000..66c043660 --- /dev/null +++ b/iot/src/model/UpdateOTAJobRequest.cc @@ -0,0 +1,223 @@ +/* + * 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::UpdateOTAJobRequest; + +UpdateOTAJobRequest::UpdateOTAJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateOTAJob") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateOTAJobRequest::~UpdateOTAJobRequest() +{} + +std::string UpdateOTAJobRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void UpdateOTAJobRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string UpdateOTAJobRequest::getIncrementFactor()const +{ + return incrementFactor_; +} + +void UpdateOTAJobRequest::setIncrementFactor(const std::string& incrementFactor) +{ + incrementFactor_ = incrementFactor; + setParameter("IncrementFactor", incrementFactor); +} + +int UpdateOTAJobRequest::getBaseRatePerMinute()const +{ + return baseRatePerMinute_; +} + +void UpdateOTAJobRequest::setBaseRatePerMinute(int baseRatePerMinute) +{ + baseRatePerMinute_ = baseRatePerMinute; + setParameter("BaseRatePerMinute", std::to_string(baseRatePerMinute)); +} + +std::string UpdateOTAJobRequest::getUpgradeType()const +{ + return upgradeType_; +} + +void UpdateOTAJobRequest::setUpgradeType(const std::string& upgradeType) +{ + upgradeType_ = upgradeType; + setParameter("UpgradeType", upgradeType); +} + +int UpdateOTAJobRequest::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + +void UpdateOTAJobRequest::setTimeoutInMinutes(int timeoutInMinutes) +{ + timeoutInMinutes_ = timeoutInMinutes; + setParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes)); +} + +std::string UpdateOTAJobRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateOTAJobRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateOTAJobRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void UpdateOTAJobRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + +std::string UpdateOTAJobRequest::getJobId()const +{ + return jobId_; +} + +void UpdateOTAJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +int UpdateOTAJobRequest::getNumberOfSucceedDevices()const +{ + return numberOfSucceedDevices_; +} + +void UpdateOTAJobRequest::setNumberOfSucceedDevices(int numberOfSucceedDevices) +{ + numberOfSucceedDevices_ = numberOfSucceedDevices; + setParameter("NumberOfSucceedDevices", std::to_string(numberOfSucceedDevices)); +} + +std::string UpdateOTAJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateOTAJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::vector UpdateOTAJobRequest::getSrcVersionList()const +{ + return srcVersionList_; +} + +void UpdateOTAJobRequest::setSrcVersionList(const std::vector& srcVersionList) +{ + srcVersionList_ = srcVersionList; + for(int dep1 = 0; dep1!= srcVersionList.size(); dep1++) { + setParameter("SrcVersionList."+ std::to_string(dep1), srcVersionList.at(dep1)); + } +} + +std::string UpdateOTAJobRequest::getTargetSelection()const +{ + return targetSelection_; +} + +void UpdateOTAJobRequest::setTargetSelection(const std::string& targetSelection) +{ + targetSelection_ = targetSelection; + setParameter("TargetSelection", targetSelection); +} + +std::vector UpdateOTAJobRequest::getTags()const +{ + return tags_; +} + +void UpdateOTAJobRequest::setTags(const std::vector& tags) +{ + tags_ = tags; + for(int dep1 = 0; dep1!= tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = "Tags." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + +int UpdateOTAJobRequest::getNumberOfNotifiedDevices()const +{ + return numberOfNotifiedDevices_; +} + +void UpdateOTAJobRequest::setNumberOfNotifiedDevices(int numberOfNotifiedDevices) +{ + numberOfNotifiedDevices_ = numberOfNotifiedDevices; + setParameter("NumberOfNotifiedDevices", std::to_string(numberOfNotifiedDevices)); +} + +std::string UpdateOTAJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateOTAJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateOTAJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateOTAJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int UpdateOTAJobRequest::getMaximumPerMinute()const +{ + return maximumPerMinute_; +} + +void UpdateOTAJobRequest::setMaximumPerMinute(int maximumPerMinute) +{ + maximumPerMinute_ = maximumPerMinute; + setParameter("MaximumPerMinute", std::to_string(maximumPerMinute)); +} + diff --git a/iot/src/model/UpdateOTAJobResult.cc b/iot/src/model/UpdateOTAJobResult.cc new file mode 100644 index 000000000..76d838762 --- /dev/null +++ b/iot/src/model/UpdateOTAJobResult.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; + +UpdateOTAJobResult::UpdateOTAJobResult() : + ServiceResult() +{} + +UpdateOTAJobResult::UpdateOTAJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateOTAJobResult::~UpdateOTAJobResult() +{} + +void UpdateOTAJobResult::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 UpdateOTAJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateOTAJobResult::getCode()const +{ + return code_; +} + +bool UpdateOTAJobResult::getSuccess()const +{ + return success_; +} +