From 7da7f672b5bc57d9756deae361d44c3989007f2a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 31 Dec 2020 11:37:42 +0000 Subject: [PATCH] Add support for thing model function block features, including thing model APIs like CreateThingModel,UpdateThingModel,SetDeviceProperty,InvokeThingService etc. --- CHANGELOG | 3 + iot/CMakeLists.txt | 108 +- iot/include/alibabacloud/iot/IotClient.h | 208 ++++ .../iot/model/BatchCheckDeviceNamesRequest.h | 9 + .../iot/model/BatchCheckDeviceNamesResult.h | 1 + .../alibabacloud/iot/model/BatchPubRequest.h | 69 ++ .../alibabacloud/iot/model/BatchPubResult.h | 55 + .../iot/model/BindRoleToEdgeInstanceRequest.h | 66 ++ .../iot/model/BindRoleToEdgeInstanceResult.h | 55 + .../iot/model/CopyThingModelRequest.h | 6 + .../model/CreateOTADynamicUpgradeJobRequest.h | 15 + .../iot/model/CreateOTAFirmwareRequest.h | 3 + .../iot/model/CreateOTAModuleRequest.h | 66 ++ .../iot/model/CreateOTAModuleResult.h | 55 + .../model/CreateOTAStaticUpgradeJobRequest.h | 18 + .../iot/model/CreateProductRequest.h | 9 + .../model/CreateSubscribeRelationRequest.h | 9 + .../iot/model/CreateThingModelRequest.h | 12 + .../iot/model/CreateThingScriptRequest.h | 63 ++ .../iot/model/CreateThingScriptResult.h | 55 + .../iot/model/DeleteClientIdsRequest.h | 60 ++ .../iot/model/DeleteClientIdsResult.h | 55 + .../iot/model/DeleteOTAModuleRequest.h | 63 ++ .../iot/model/DeleteOTAModuleResult.h | 55 + .../iot/model/DeleteThingModelRequest.h | 12 + .../model/GenerateDeviceNameListURLRequest.h | 54 + .../model/GenerateDeviceNameListURLResult.h | 68 ++ .../iot/model/GenerateOTAUploadURLRequest.h | 3 + .../iot/model/GenerateOTAUploadURLResult.h | 2 + .../model/GetThingModelTslPublishedRequest.h | 78 ++ .../model/GetThingModelTslPublishedResult.h | 62 ++ .../iot/model/GetThingModelTslRequest.h | 9 + .../iot/model/GetThingScriptRequest.h | 57 ++ .../iot/model/GetThingScriptResult.h | 62 ++ .../iot/model/ImportThingModelTslRequest.h | 12 + .../iot/model/ListOTAJobByDeviceResult.h | 6 + .../iot/model/ListOTAJobByFirmwareResult.h | 6 + .../iot/model/ListOTAModuleByProductRequest.h | 60 ++ .../iot/model/ListOTAModuleByProductResult.h | 66 ++ .../ListOTAModuleVersionsByDeviceRequest.h | 69 ++ .../ListOTAModuleVersionsByDeviceResult.h | 73 ++ .../iot/model/ListOTATaskByJobRequest.h | 3 + .../alibabacloud/iot/model/PubRequest.h | 15 + .../iot/model/PublishThingModelRequest.h | 6 + .../iot/model/QueryAppDeviceListRequest.h | 18 +- .../iot/model/QueryClientIdsRequest.h | 60 ++ .../iot/model/QueryClientIdsResult.h | 67 ++ .../iot/model/QueryDeviceBySQLRequest.h | 57 ++ .../iot/model/QueryDeviceBySQLResult.h | 87 ++ .../model/QueryDeviceDesiredPropertyRequest.h | 3 + .../QueryDeviceOriginalEventDataRequest.h | 81 ++ .../QueryDeviceOriginalEventDataResult.h | 71 ++ .../QueryDeviceOriginalPropertyDataRequest.h | 81 ++ .../QueryDeviceOriginalPropertyDataResult.h | 68 ++ ...QueryDeviceOriginalPropertyStatusRequest.h | 75 ++ .../QueryDeviceOriginalPropertyStatusResult.h | 69 ++ .../QueryDeviceOriginalServiceDataRequest.h | 81 ++ .../QueryDeviceOriginalServiceDataResult.h | 71 ++ .../model/QueryDevicePropertyDataRequest.h | 6 + .../model/QueryDevicePropertyStatusRequest.h | 9 + .../iot/model/QueryOTAJobResult.h | 25 +- .../iot/model/QuerySubscribeRelationResult.h | 6 + ...ryThingModelExtendConfigPublishedRequest.h | 69 ++ ...eryThingModelExtendConfigPublishedResult.h | 61 ++ .../QueryThingModelExtendConfigRequest.h | 72 ++ .../model/QueryThingModelExtendConfigResult.h | 61 ++ .../model/QueryThingModelPublishedRequest.h | 75 ++ .../model/QueryThingModelPublishedResult.h | 63 ++ .../iot/model/QueryThingModelRequest.h | 9 + .../alibabacloud/iot/model/RRpcResult.h | 2 +- .../iot/model/RegisterDeviceRequest.h | 9 + .../model/SetDeviceDesiredPropertyResult.h | 2 + .../iot/model/SpeechByCombinationRequest.h | 63 ++ .../iot/model/SpeechByCombinationResult.h | 55 + .../iot/model/TransformClientIdRequest.h | 63 ++ .../iot/model/TransformClientIdResult.h | 55 + .../model/UnbindRoleFromEdgeInstanceRequest.h | 60 ++ .../model/UnbindRoleFromEdgeInstanceResult.h | 55 + .../iot/model/UpdateDeviceShadowRequest.h | 3 + .../iot/model/UpdateOTAModuleRequest.h | 66 ++ .../iot/model/UpdateOTAModuleResult.h | 55 + .../model/UpdateSubscribeRelationRequest.h | 9 + .../iot/model/UpdateThingModelRequest.h | 12 + .../UpdateThingModelValidationConfigRequest.h | 60 ++ .../UpdateThingModelValidationConfigResult.h | 55 + .../iot/model/UpdateThingScriptRequest.h | 63 ++ .../iot/model/UpdateThingScriptResult.h | 55 + iot/src/IotClient.cc | 936 ++++++++++++++++++ iot/src/model/BatchCheckDeviceNamesRequest.cc | 16 + iot/src/model/BatchCheckDeviceNamesResult.cc | 3 + .../BatchGetEdgeInstanceChannelResult.cc | 20 +- ...BatchGetEdgeInstanceDriverConfigsResult.cc | 20 +- iot/src/model/BatchPubRequest.cc | 119 +++ iot/src/model/BatchPubResult.cc | 65 ++ .../model/BindRoleToEdgeInstanceRequest.cc | 106 ++ iot/src/model/BindRoleToEdgeInstanceResult.cc | 65 ++ iot/src/model/CopyThingModelRequest.cc | 22 + .../CreateOTADynamicUpgradeJobRequest.cc | 38 + iot/src/model/CreateOTAFirmwareRequest.cc | 11 + iot/src/model/CreateOTAModuleRequest.cc | 106 ++ iot/src/model/CreateOTAModuleResult.cc | 65 ++ .../model/CreateOTAStaticUpgradeJobRequest.cc | 49 + iot/src/model/CreateProductRequest.cc | 33 + .../model/CreateSubscribeRelationRequest.cc | 33 + iot/src/model/CreateThingModelRequest.cc | 44 + iot/src/model/CreateThingScriptRequest.cc | 95 ++ iot/src/model/CreateThingScriptResult.cc | 65 ++ iot/src/model/DeleteClientIdsRequest.cc | 84 ++ iot/src/model/DeleteClientIdsResult.cc | 65 ++ iot/src/model/DeleteOTAModuleRequest.cc | 95 ++ iot/src/model/DeleteOTAModuleResult.cc | 65 ++ iot/src/model/DeleteThingModelRequest.cc | 44 + .../model/GenerateDeviceNameListURLRequest.cc | 62 ++ .../model/GenerateDeviceNameListURLResult.cc | 87 ++ iot/src/model/GenerateOTAUploadURLRequest.cc | 11 + iot/src/model/GenerateOTAUploadURLResult.cc | 4 + .../model/GetEdgeInstanceDeploymentResult.cc | 60 +- .../model/GetThingModelTslPublishedRequest.cc | 150 +++ .../model/GetThingModelTslPublishedResult.cc | 75 ++ iot/src/model/GetThingModelTslRequest.cc | 33 + iot/src/model/GetThingScriptRequest.cc | 73 ++ iot/src/model/GetThingScriptResult.cc | 75 ++ iot/src/model/ImportThingModelTslRequest.cc | 44 + iot/src/model/ListOTAJobByDeviceResult.cc | 10 + iot/src/model/ListOTAJobByFirmwareResult.cc | 10 + .../model/ListOTAModuleByProductRequest.cc | 84 ++ iot/src/model/ListOTAModuleByProductResult.cc | 88 ++ .../ListOTAModuleVersionsByDeviceRequest.cc | 117 +++ .../ListOTAModuleVersionsByDeviceResult.cc | 114 +++ iot/src/model/ListOTATaskByJobRequest.cc | 13 + iot/src/model/PubRequest.cc | 38 + iot/src/model/PublishThingModelRequest.cc | 22 + iot/src/model/QueryAppDeviceListRequest.cc | 70 +- iot/src/model/QueryClientIdsRequest.cc | 84 ++ iot/src/model/QueryClientIdsResult.cc | 83 ++ iot/src/model/QueryDeviceBySQLRequest.cc | 73 ++ iot/src/model/QueryDeviceBySQLResult.cc | 127 +++ .../QueryDeviceDesiredPropertyRequest.cc | 11 + .../QueryDeviceOriginalEventDataRequest.cc | 161 +++ .../QueryDeviceOriginalEventDataResult.cc | 91 ++ .../QueryDeviceOriginalPropertyDataRequest.cc | 161 +++ .../QueryDeviceOriginalPropertyDataResult.cc | 85 ++ ...ueryDeviceOriginalPropertyStatusRequest.cc | 139 +++ ...QueryDeviceOriginalPropertyStatusResult.cc | 87 ++ .../QueryDeviceOriginalServiceDataRequest.cc | 161 +++ .../QueryDeviceOriginalServiceDataResult.cc | 91 ++ .../model/QueryDevicePropertiesDataResult.cc | 12 +- .../model/QueryDevicePropertyDataRequest.cc | 22 + .../model/QueryDevicePropertyStatusRequest.cc | 33 + .../model/QueryEdgeInstanceChannelResult.cc | 20 +- iot/src/model/QueryOTAJobResult.cc | 16 + iot/src/model/QuerySubscribeRelationResult.cc | 21 + ...yThingModelExtendConfigPublishedRequest.cc | 117 +++ ...ryThingModelExtendConfigPublishedResult.cc | 73 ++ .../QueryThingModelExtendConfigRequest.cc | 128 +++ .../QueryThingModelExtendConfigResult.cc | 73 ++ .../model/QueryThingModelPublishedRequest.cc | 139 +++ .../model/QueryThingModelPublishedResult.cc | 80 ++ iot/src/model/QueryThingModelRequest.cc | 33 + iot/src/model/RRpcResult.cc | 2 +- iot/src/model/RegisterDeviceRequest.cc | 33 + .../model/SetDeviceDesiredPropertyResult.cc | 7 + iot/src/model/SpeechByCombinationRequest.cc | 97 ++ iot/src/model/SpeechByCombinationResult.cc | 65 ++ iot/src/model/TransformClientIdRequest.cc | 95 ++ iot/src/model/TransformClientIdResult.cc | 65 ++ .../UnbindRoleFromEdgeInstanceRequest.cc | 84 ++ .../model/UnbindRoleFromEdgeInstanceResult.cc | 65 ++ iot/src/model/UpdateDeviceShadowRequest.cc | 11 + iot/src/model/UpdateOTAModuleRequest.cc | 106 ++ iot/src/model/UpdateOTAModuleResult.cc | 65 ++ .../model/UpdateSubscribeRelationRequest.cc | 33 + iot/src/model/UpdateThingModelRequest.cc | 44 + ...UpdateThingModelValidationConfigRequest.cc | 84 ++ .../UpdateThingModelValidationConfigResult.cc | 65 ++ iot/src/model/UpdateThingScriptRequest.cc | 95 ++ iot/src/model/UpdateThingScriptResult.cc | 65 ++ 177 files changed, 10526 insertions(+), 108 deletions(-) create mode 100644 iot/include/alibabacloud/iot/model/BatchPubRequest.h create mode 100644 iot/include/alibabacloud/iot/model/BatchPubResult.h create mode 100644 iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceRequest.h create mode 100644 iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceResult.h create mode 100644 iot/include/alibabacloud/iot/model/CreateOTAModuleRequest.h create mode 100644 iot/include/alibabacloud/iot/model/CreateOTAModuleResult.h create mode 100644 iot/include/alibabacloud/iot/model/CreateThingScriptRequest.h create mode 100644 iot/include/alibabacloud/iot/model/CreateThingScriptResult.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteOTAModuleRequest.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteOTAModuleResult.h create mode 100644 iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLRequest.h create mode 100644 iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLResult.h create mode 100644 iot/include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h create mode 100644 iot/include/alibabacloud/iot/model/GetThingModelTslPublishedResult.h create mode 100644 iot/include/alibabacloud/iot/model/GetThingScriptRequest.h create mode 100644 iot/include/alibabacloud/iot/model/GetThingScriptResult.h create mode 100644 iot/include/alibabacloud/iot/model/ListOTAModuleByProductRequest.h create mode 100644 iot/include/alibabacloud/iot/model/ListOTAModuleByProductResult.h create mode 100644 iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceRequest.h create mode 100644 iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryClientIdsResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceBySQLRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceBySQLResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryThingModelPublishedRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryThingModelPublishedResult.h create mode 100644 iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h create mode 100644 iot/include/alibabacloud/iot/model/SpeechByCombinationResult.h create mode 100644 iot/include/alibabacloud/iot/model/TransformClientIdRequest.h create mode 100644 iot/include/alibabacloud/iot/model/TransformClientIdResult.h create mode 100644 iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceRequest.h create mode 100644 iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceResult.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateOTAModuleRequest.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateOTAModuleResult.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigRequest.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigResult.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateThingScriptRequest.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateThingScriptResult.h create mode 100644 iot/src/model/BatchPubRequest.cc create mode 100644 iot/src/model/BatchPubResult.cc create mode 100644 iot/src/model/BindRoleToEdgeInstanceRequest.cc create mode 100644 iot/src/model/BindRoleToEdgeInstanceResult.cc create mode 100644 iot/src/model/CreateOTAModuleRequest.cc create mode 100644 iot/src/model/CreateOTAModuleResult.cc create mode 100644 iot/src/model/CreateThingScriptRequest.cc create mode 100644 iot/src/model/CreateThingScriptResult.cc create mode 100644 iot/src/model/DeleteClientIdsRequest.cc create mode 100644 iot/src/model/DeleteClientIdsResult.cc create mode 100644 iot/src/model/DeleteOTAModuleRequest.cc create mode 100644 iot/src/model/DeleteOTAModuleResult.cc create mode 100644 iot/src/model/GenerateDeviceNameListURLRequest.cc create mode 100644 iot/src/model/GenerateDeviceNameListURLResult.cc create mode 100644 iot/src/model/GetThingModelTslPublishedRequest.cc create mode 100644 iot/src/model/GetThingModelTslPublishedResult.cc create mode 100644 iot/src/model/GetThingScriptRequest.cc create mode 100644 iot/src/model/GetThingScriptResult.cc create mode 100644 iot/src/model/ListOTAModuleByProductRequest.cc create mode 100644 iot/src/model/ListOTAModuleByProductResult.cc create mode 100644 iot/src/model/ListOTAModuleVersionsByDeviceRequest.cc create mode 100644 iot/src/model/ListOTAModuleVersionsByDeviceResult.cc create mode 100644 iot/src/model/QueryClientIdsRequest.cc create mode 100644 iot/src/model/QueryClientIdsResult.cc create mode 100644 iot/src/model/QueryDeviceBySQLRequest.cc create mode 100644 iot/src/model/QueryDeviceBySQLResult.cc create mode 100644 iot/src/model/QueryDeviceOriginalEventDataRequest.cc create mode 100644 iot/src/model/QueryDeviceOriginalEventDataResult.cc create mode 100644 iot/src/model/QueryDeviceOriginalPropertyDataRequest.cc create mode 100644 iot/src/model/QueryDeviceOriginalPropertyDataResult.cc create mode 100644 iot/src/model/QueryDeviceOriginalPropertyStatusRequest.cc create mode 100644 iot/src/model/QueryDeviceOriginalPropertyStatusResult.cc create mode 100644 iot/src/model/QueryDeviceOriginalServiceDataRequest.cc create mode 100644 iot/src/model/QueryDeviceOriginalServiceDataResult.cc create mode 100644 iot/src/model/QueryThingModelExtendConfigPublishedRequest.cc create mode 100644 iot/src/model/QueryThingModelExtendConfigPublishedResult.cc create mode 100644 iot/src/model/QueryThingModelExtendConfigRequest.cc create mode 100644 iot/src/model/QueryThingModelExtendConfigResult.cc create mode 100644 iot/src/model/QueryThingModelPublishedRequest.cc create mode 100644 iot/src/model/QueryThingModelPublishedResult.cc create mode 100644 iot/src/model/SpeechByCombinationRequest.cc create mode 100644 iot/src/model/SpeechByCombinationResult.cc create mode 100644 iot/src/model/TransformClientIdRequest.cc create mode 100644 iot/src/model/TransformClientIdResult.cc create mode 100644 iot/src/model/UnbindRoleFromEdgeInstanceRequest.cc create mode 100644 iot/src/model/UnbindRoleFromEdgeInstanceResult.cc create mode 100644 iot/src/model/UpdateOTAModuleRequest.cc create mode 100644 iot/src/model/UpdateOTAModuleResult.cc create mode 100644 iot/src/model/UpdateThingModelValidationConfigRequest.cc create mode 100644 iot/src/model/UpdateThingModelValidationConfigResult.cc create mode 100644 iot/src/model/UpdateThingScriptRequest.cc create mode 100644 iot/src/model/UpdateThingScriptResult.cc diff --git a/CHANGELOG b/CHANGELOG index c4ea3e0ff..980878de5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-12-31 Version: patch +- Add support for thing model function block features, including thing model APIs like CreateThingModel,UpdateThingModel,SetDeviceProperty,InvokeThingService etc. + 2020-12-31 Version: patch - Update Open API. diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index 3eeb51282..f875a52bb 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -51,6 +51,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/BatchGetEdgeInstanceDeviceDriverResult.h include/alibabacloud/iot/model/BatchGetEdgeInstanceDriverConfigsRequest.h include/alibabacloud/iot/model/BatchGetEdgeInstanceDriverConfigsResult.h + include/alibabacloud/iot/model/BatchPubRequest.h + include/alibabacloud/iot/model/BatchPubResult.h include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h include/alibabacloud/iot/model/BatchQueryDeviceDetailResult.h include/alibabacloud/iot/model/BatchRegisterDeviceRequest.h @@ -71,6 +73,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/BindDriverToEdgeInstanceResult.h include/alibabacloud/iot/model/BindGatewayToEdgeInstanceRequest.h include/alibabacloud/iot/model/BindGatewayToEdgeInstanceResult.h + include/alibabacloud/iot/model/BindRoleToEdgeInstanceRequest.h + include/alibabacloud/iot/model/BindRoleToEdgeInstanceResult.h include/alibabacloud/iot/model/BindSceneRuleToEdgeInstanceRequest.h include/alibabacloud/iot/model/BindSceneRuleToEdgeInstanceResult.h include/alibabacloud/iot/model/CancelOTAStrategyByJobRequest.h @@ -111,6 +115,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateOTADynamicUpgradeJobResult.h include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h include/alibabacloud/iot/model/CreateOTAFirmwareResult.h + include/alibabacloud/iot/model/CreateOTAModuleRequest.h + include/alibabacloud/iot/model/CreateOTAModuleResult.h include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobRequest.h include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobResult.h include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h @@ -131,8 +137,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateSubscribeRelationResult.h include/alibabacloud/iot/model/CreateThingModelRequest.h include/alibabacloud/iot/model/CreateThingModelResult.h + include/alibabacloud/iot/model/CreateThingScriptRequest.h + include/alibabacloud/iot/model/CreateThingScriptResult.h include/alibabacloud/iot/model/CreateTopicRouteTableRequest.h include/alibabacloud/iot/model/CreateTopicRouteTableResult.h + include/alibabacloud/iot/model/DeleteClientIdsRequest.h + include/alibabacloud/iot/model/DeleteClientIdsResult.h include/alibabacloud/iot/model/DeleteConsumerGroupRequest.h include/alibabacloud/iot/model/DeleteConsumerGroupResult.h include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationRequest.h @@ -153,6 +163,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteEdgeInstanceResult.h include/alibabacloud/iot/model/DeleteOTAFirmwareRequest.h include/alibabacloud/iot/model/DeleteOTAFirmwareResult.h + include/alibabacloud/iot/model/DeleteOTAModuleRequest.h + include/alibabacloud/iot/model/DeleteOTAModuleResult.h include/alibabacloud/iot/model/DeleteProductRequest.h include/alibabacloud/iot/model/DeleteProductResult.h include/alibabacloud/iot/model/DeleteProductTagsRequest.h @@ -179,6 +191,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/EnableSceneRuleResult.h include/alibabacloud/iot/model/EnableThingRequest.h include/alibabacloud/iot/model/EnableThingResult.h + include/alibabacloud/iot/model/GenerateDeviceNameListURLRequest.h + include/alibabacloud/iot/model/GenerateDeviceNameListURLResult.h include/alibabacloud/iot/model/GenerateOTAUploadURLRequest.h include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h include/alibabacloud/iot/model/GetDataAPIServiceDetailRequest.h @@ -207,6 +221,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/GetSceneRuleResult.h include/alibabacloud/iot/model/GetThingModelTslRequest.h include/alibabacloud/iot/model/GetThingModelTslResult.h + include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h + include/alibabacloud/iot/model/GetThingModelTslPublishedResult.h + include/alibabacloud/iot/model/GetThingScriptRequest.h + include/alibabacloud/iot/model/GetThingScriptResult.h include/alibabacloud/iot/model/GetThingTemplateRequest.h include/alibabacloud/iot/model/GetThingTemplateResult.h include/alibabacloud/iot/model/GetThingTopoRequest.h @@ -225,6 +243,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListOTAJobByDeviceResult.h include/alibabacloud/iot/model/ListOTAJobByFirmwareRequest.h include/alibabacloud/iot/model/ListOTAJobByFirmwareResult.h + include/alibabacloud/iot/model/ListOTAModuleByProductRequest.h + include/alibabacloud/iot/model/ListOTAModuleByProductResult.h + include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceRequest.h + include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceResult.h include/alibabacloud/iot/model/ListOTATaskByJobRequest.h include/alibabacloud/iot/model/ListOTATaskByJobResult.h include/alibabacloud/iot/model/ListProductByTagsRequest.h @@ -253,6 +275,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusResult.h include/alibabacloud/iot/model/QueryCertUrlByApplyIdRequest.h include/alibabacloud/iot/model/QueryCertUrlByApplyIdResult.h + include/alibabacloud/iot/model/QueryClientIdsRequest.h + include/alibabacloud/iot/model/QueryClientIdsResult.h include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdRequest.h include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdResult.h include/alibabacloud/iot/model/QueryConsumerGroupListRequest.h @@ -263,6 +287,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryDetailSceneRuleLogResult.h include/alibabacloud/iot/model/QueryDeviceRequest.h include/alibabacloud/iot/model/QueryDeviceResult.h + include/alibabacloud/iot/model/QueryDeviceBySQLRequest.h + include/alibabacloud/iot/model/QueryDeviceBySQLResult.h include/alibabacloud/iot/model/QueryDeviceByStatusRequest.h include/alibabacloud/iot/model/QueryDeviceByStatusResult.h include/alibabacloud/iot/model/QueryDeviceByTagsRequest.h @@ -291,6 +317,14 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryDeviceGroupTagListResult.h include/alibabacloud/iot/model/QueryDeviceListByDeviceGroupRequest.h include/alibabacloud/iot/model/QueryDeviceListByDeviceGroupResult.h + include/alibabacloud/iot/model/QueryDeviceOriginalEventDataRequest.h + include/alibabacloud/iot/model/QueryDeviceOriginalEventDataResult.h + include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataRequest.h + include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataResult.h + include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusRequest.h + include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusResult.h + include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataRequest.h + include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataResult.h include/alibabacloud/iot/model/QueryDevicePropRequest.h include/alibabacloud/iot/model/QueryDevicePropResult.h include/alibabacloud/iot/model/QueryDevicePropertiesDataRequest.h @@ -349,6 +383,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/QuerySuperDeviceGroupResult.h include/alibabacloud/iot/model/QueryThingModelRequest.h include/alibabacloud/iot/model/QueryThingModelResult.h + include/alibabacloud/iot/model/QueryThingModelExtendConfigRequest.h + include/alibabacloud/iot/model/QueryThingModelExtendConfigResult.h + include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedRequest.h + include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedResult.h + include/alibabacloud/iot/model/QueryThingModelPublishedRequest.h + include/alibabacloud/iot/model/QueryThingModelPublishedResult.h include/alibabacloud/iot/model/QueryTopicReverseRouteTableRequest.h include/alibabacloud/iot/model/QueryTopicReverseRouteTableResult.h include/alibabacloud/iot/model/QueryTopicRouteTableRequest.h @@ -381,16 +421,22 @@ set(iot_public_header_model include/alibabacloud/iot/model/SetEdgeInstanceDriverConfigsResult.h include/alibabacloud/iot/model/SetProductCertInfoRequest.h include/alibabacloud/iot/model/SetProductCertInfoResult.h + include/alibabacloud/iot/model/SpeechByCombinationRequest.h + include/alibabacloud/iot/model/SpeechByCombinationResult.h include/alibabacloud/iot/model/StartRuleRequest.h include/alibabacloud/iot/model/StartRuleResult.h include/alibabacloud/iot/model/StopRuleRequest.h include/alibabacloud/iot/model/StopRuleResult.h + include/alibabacloud/iot/model/TransformClientIdRequest.h + include/alibabacloud/iot/model/TransformClientIdResult.h include/alibabacloud/iot/model/TriggerSceneRuleRequest.h include/alibabacloud/iot/model/TriggerSceneRuleResult.h include/alibabacloud/iot/model/UnbindApplicationFromEdgeInstanceRequest.h include/alibabacloud/iot/model/UnbindApplicationFromEdgeInstanceResult.h include/alibabacloud/iot/model/UnbindDriverFromEdgeInstanceRequest.h include/alibabacloud/iot/model/UnbindDriverFromEdgeInstanceResult.h + include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceRequest.h + include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceResult.h include/alibabacloud/iot/model/UnbindSceneRuleFromEdgeInstanceRequest.h include/alibabacloud/iot/model/UnbindSceneRuleFromEdgeInstanceResult.h include/alibabacloud/iot/model/UpdateConsumerGroupRequest.h @@ -405,6 +451,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/UpdateEdgeInstanceResult.h include/alibabacloud/iot/model/UpdateEdgeInstanceChannelRequest.h include/alibabacloud/iot/model/UpdateEdgeInstanceChannelResult.h + include/alibabacloud/iot/model/UpdateOTAModuleRequest.h + include/alibabacloud/iot/model/UpdateOTAModuleResult.h include/alibabacloud/iot/model/UpdateProductRequest.h include/alibabacloud/iot/model/UpdateProductResult.h include/alibabacloud/iot/model/UpdateProductFilterConfigRequest.h @@ -422,7 +470,11 @@ set(iot_public_header_model include/alibabacloud/iot/model/UpdateSubscribeRelationRequest.h include/alibabacloud/iot/model/UpdateSubscribeRelationResult.h include/alibabacloud/iot/model/UpdateThingModelRequest.h - include/alibabacloud/iot/model/UpdateThingModelResult.h ) + include/alibabacloud/iot/model/UpdateThingModelResult.h + include/alibabacloud/iot/model/UpdateThingModelValidationConfigRequest.h + include/alibabacloud/iot/model/UpdateThingModelValidationConfigResult.h + include/alibabacloud/iot/model/UpdateThingScriptRequest.h + include/alibabacloud/iot/model/UpdateThingScriptResult.h ) set(iot_src src/IotClient.cc @@ -456,6 +508,8 @@ set(iot_src src/model/BatchGetEdgeInstanceDeviceDriverResult.cc src/model/BatchGetEdgeInstanceDriverConfigsRequest.cc src/model/BatchGetEdgeInstanceDriverConfigsResult.cc + src/model/BatchPubRequest.cc + src/model/BatchPubResult.cc src/model/BatchQueryDeviceDetailRequest.cc src/model/BatchQueryDeviceDetailResult.cc src/model/BatchRegisterDeviceRequest.cc @@ -476,6 +530,8 @@ set(iot_src src/model/BindDriverToEdgeInstanceResult.cc src/model/BindGatewayToEdgeInstanceRequest.cc src/model/BindGatewayToEdgeInstanceResult.cc + src/model/BindRoleToEdgeInstanceRequest.cc + src/model/BindRoleToEdgeInstanceResult.cc src/model/BindSceneRuleToEdgeInstanceRequest.cc src/model/BindSceneRuleToEdgeInstanceResult.cc src/model/CancelOTAStrategyByJobRequest.cc @@ -516,6 +572,8 @@ set(iot_src src/model/CreateOTADynamicUpgradeJobResult.cc src/model/CreateOTAFirmwareRequest.cc src/model/CreateOTAFirmwareResult.cc + src/model/CreateOTAModuleRequest.cc + src/model/CreateOTAModuleResult.cc src/model/CreateOTAStaticUpgradeJobRequest.cc src/model/CreateOTAStaticUpgradeJobResult.cc src/model/CreateOTAVerifyJobRequest.cc @@ -536,8 +594,12 @@ set(iot_src src/model/CreateSubscribeRelationResult.cc src/model/CreateThingModelRequest.cc src/model/CreateThingModelResult.cc + src/model/CreateThingScriptRequest.cc + src/model/CreateThingScriptResult.cc src/model/CreateTopicRouteTableRequest.cc src/model/CreateTopicRouteTableResult.cc + src/model/DeleteClientIdsRequest.cc + src/model/DeleteClientIdsResult.cc src/model/DeleteConsumerGroupRequest.cc src/model/DeleteConsumerGroupResult.cc src/model/DeleteConsumerGroupSubscribeRelationRequest.cc @@ -558,6 +620,8 @@ set(iot_src src/model/DeleteEdgeInstanceResult.cc src/model/DeleteOTAFirmwareRequest.cc src/model/DeleteOTAFirmwareResult.cc + src/model/DeleteOTAModuleRequest.cc + src/model/DeleteOTAModuleResult.cc src/model/DeleteProductRequest.cc src/model/DeleteProductResult.cc src/model/DeleteProductTagsRequest.cc @@ -584,6 +648,8 @@ set(iot_src src/model/EnableSceneRuleResult.cc src/model/EnableThingRequest.cc src/model/EnableThingResult.cc + src/model/GenerateDeviceNameListURLRequest.cc + src/model/GenerateDeviceNameListURLResult.cc src/model/GenerateOTAUploadURLRequest.cc src/model/GenerateOTAUploadURLResult.cc src/model/GetDataAPIServiceDetailRequest.cc @@ -612,6 +678,10 @@ set(iot_src src/model/GetSceneRuleResult.cc src/model/GetThingModelTslRequest.cc src/model/GetThingModelTslResult.cc + src/model/GetThingModelTslPublishedRequest.cc + src/model/GetThingModelTslPublishedResult.cc + src/model/GetThingScriptRequest.cc + src/model/GetThingScriptResult.cc src/model/GetThingTemplateRequest.cc src/model/GetThingTemplateResult.cc src/model/GetThingTopoRequest.cc @@ -630,6 +700,10 @@ set(iot_src src/model/ListOTAJobByDeviceResult.cc src/model/ListOTAJobByFirmwareRequest.cc src/model/ListOTAJobByFirmwareResult.cc + src/model/ListOTAModuleByProductRequest.cc + src/model/ListOTAModuleByProductResult.cc + src/model/ListOTAModuleVersionsByDeviceRequest.cc + src/model/ListOTAModuleVersionsByDeviceResult.cc src/model/ListOTATaskByJobRequest.cc src/model/ListOTATaskByJobResult.cc src/model/ListProductByTagsRequest.cc @@ -658,6 +732,8 @@ set(iot_src src/model/QueryBatchRegisterDeviceStatusResult.cc src/model/QueryCertUrlByApplyIdRequest.cc src/model/QueryCertUrlByApplyIdResult.cc + src/model/QueryClientIdsRequest.cc + src/model/QueryClientIdsResult.cc src/model/QueryConsumerGroupByGroupIdRequest.cc src/model/QueryConsumerGroupByGroupIdResult.cc src/model/QueryConsumerGroupListRequest.cc @@ -668,6 +744,8 @@ set(iot_src src/model/QueryDetailSceneRuleLogResult.cc src/model/QueryDeviceRequest.cc src/model/QueryDeviceResult.cc + src/model/QueryDeviceBySQLRequest.cc + src/model/QueryDeviceBySQLResult.cc src/model/QueryDeviceByStatusRequest.cc src/model/QueryDeviceByStatusResult.cc src/model/QueryDeviceByTagsRequest.cc @@ -696,6 +774,14 @@ set(iot_src src/model/QueryDeviceGroupTagListResult.cc src/model/QueryDeviceListByDeviceGroupRequest.cc src/model/QueryDeviceListByDeviceGroupResult.cc + src/model/QueryDeviceOriginalEventDataRequest.cc + src/model/QueryDeviceOriginalEventDataResult.cc + src/model/QueryDeviceOriginalPropertyDataRequest.cc + src/model/QueryDeviceOriginalPropertyDataResult.cc + src/model/QueryDeviceOriginalPropertyStatusRequest.cc + src/model/QueryDeviceOriginalPropertyStatusResult.cc + src/model/QueryDeviceOriginalServiceDataRequest.cc + src/model/QueryDeviceOriginalServiceDataResult.cc src/model/QueryDevicePropRequest.cc src/model/QueryDevicePropResult.cc src/model/QueryDevicePropertiesDataRequest.cc @@ -754,6 +840,12 @@ set(iot_src src/model/QuerySuperDeviceGroupResult.cc src/model/QueryThingModelRequest.cc src/model/QueryThingModelResult.cc + src/model/QueryThingModelExtendConfigRequest.cc + src/model/QueryThingModelExtendConfigResult.cc + src/model/QueryThingModelExtendConfigPublishedRequest.cc + src/model/QueryThingModelExtendConfigPublishedResult.cc + src/model/QueryThingModelPublishedRequest.cc + src/model/QueryThingModelPublishedResult.cc src/model/QueryTopicReverseRouteTableRequest.cc src/model/QueryTopicReverseRouteTableResult.cc src/model/QueryTopicRouteTableRequest.cc @@ -786,16 +878,22 @@ set(iot_src src/model/SetEdgeInstanceDriverConfigsResult.cc src/model/SetProductCertInfoRequest.cc src/model/SetProductCertInfoResult.cc + src/model/SpeechByCombinationRequest.cc + src/model/SpeechByCombinationResult.cc src/model/StartRuleRequest.cc src/model/StartRuleResult.cc src/model/StopRuleRequest.cc src/model/StopRuleResult.cc + src/model/TransformClientIdRequest.cc + src/model/TransformClientIdResult.cc src/model/TriggerSceneRuleRequest.cc src/model/TriggerSceneRuleResult.cc src/model/UnbindApplicationFromEdgeInstanceRequest.cc src/model/UnbindApplicationFromEdgeInstanceResult.cc src/model/UnbindDriverFromEdgeInstanceRequest.cc src/model/UnbindDriverFromEdgeInstanceResult.cc + src/model/UnbindRoleFromEdgeInstanceRequest.cc + src/model/UnbindRoleFromEdgeInstanceResult.cc src/model/UnbindSceneRuleFromEdgeInstanceRequest.cc src/model/UnbindSceneRuleFromEdgeInstanceResult.cc src/model/UpdateConsumerGroupRequest.cc @@ -810,6 +908,8 @@ set(iot_src src/model/UpdateEdgeInstanceResult.cc src/model/UpdateEdgeInstanceChannelRequest.cc src/model/UpdateEdgeInstanceChannelResult.cc + src/model/UpdateOTAModuleRequest.cc + src/model/UpdateOTAModuleResult.cc src/model/UpdateProductRequest.cc src/model/UpdateProductResult.cc src/model/UpdateProductFilterConfigRequest.cc @@ -827,7 +927,11 @@ set(iot_src src/model/UpdateSubscribeRelationRequest.cc src/model/UpdateSubscribeRelationResult.cc src/model/UpdateThingModelRequest.cc - src/model/UpdateThingModelResult.cc ) + src/model/UpdateThingModelResult.cc + src/model/UpdateThingModelValidationConfigRequest.cc + src/model/UpdateThingModelValidationConfigResult.cc + src/model/UpdateThingScriptRequest.cc + src/model/UpdateThingScriptResult.cc ) add_library(iot ${LIB_TYPE} ${iot_public_header} diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index d3a2700a7..64323d468 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -52,6 +52,8 @@ #include "model/BatchGetEdgeInstanceDeviceDriverResult.h" #include "model/BatchGetEdgeInstanceDriverConfigsRequest.h" #include "model/BatchGetEdgeInstanceDriverConfigsResult.h" +#include "model/BatchPubRequest.h" +#include "model/BatchPubResult.h" #include "model/BatchQueryDeviceDetailRequest.h" #include "model/BatchQueryDeviceDetailResult.h" #include "model/BatchRegisterDeviceRequest.h" @@ -72,6 +74,8 @@ #include "model/BindDriverToEdgeInstanceResult.h" #include "model/BindGatewayToEdgeInstanceRequest.h" #include "model/BindGatewayToEdgeInstanceResult.h" +#include "model/BindRoleToEdgeInstanceRequest.h" +#include "model/BindRoleToEdgeInstanceResult.h" #include "model/BindSceneRuleToEdgeInstanceRequest.h" #include "model/BindSceneRuleToEdgeInstanceResult.h" #include "model/CancelOTAStrategyByJobRequest.h" @@ -112,6 +116,8 @@ #include "model/CreateOTADynamicUpgradeJobResult.h" #include "model/CreateOTAFirmwareRequest.h" #include "model/CreateOTAFirmwareResult.h" +#include "model/CreateOTAModuleRequest.h" +#include "model/CreateOTAModuleResult.h" #include "model/CreateOTAStaticUpgradeJobRequest.h" #include "model/CreateOTAStaticUpgradeJobResult.h" #include "model/CreateOTAVerifyJobRequest.h" @@ -132,8 +138,12 @@ #include "model/CreateSubscribeRelationResult.h" #include "model/CreateThingModelRequest.h" #include "model/CreateThingModelResult.h" +#include "model/CreateThingScriptRequest.h" +#include "model/CreateThingScriptResult.h" #include "model/CreateTopicRouteTableRequest.h" #include "model/CreateTopicRouteTableResult.h" +#include "model/DeleteClientIdsRequest.h" +#include "model/DeleteClientIdsResult.h" #include "model/DeleteConsumerGroupRequest.h" #include "model/DeleteConsumerGroupResult.h" #include "model/DeleteConsumerGroupSubscribeRelationRequest.h" @@ -154,6 +164,8 @@ #include "model/DeleteEdgeInstanceResult.h" #include "model/DeleteOTAFirmwareRequest.h" #include "model/DeleteOTAFirmwareResult.h" +#include "model/DeleteOTAModuleRequest.h" +#include "model/DeleteOTAModuleResult.h" #include "model/DeleteProductRequest.h" #include "model/DeleteProductResult.h" #include "model/DeleteProductTagsRequest.h" @@ -180,6 +192,8 @@ #include "model/EnableSceneRuleResult.h" #include "model/EnableThingRequest.h" #include "model/EnableThingResult.h" +#include "model/GenerateDeviceNameListURLRequest.h" +#include "model/GenerateDeviceNameListURLResult.h" #include "model/GenerateOTAUploadURLRequest.h" #include "model/GenerateOTAUploadURLResult.h" #include "model/GetDataAPIServiceDetailRequest.h" @@ -208,6 +222,10 @@ #include "model/GetSceneRuleResult.h" #include "model/GetThingModelTslRequest.h" #include "model/GetThingModelTslResult.h" +#include "model/GetThingModelTslPublishedRequest.h" +#include "model/GetThingModelTslPublishedResult.h" +#include "model/GetThingScriptRequest.h" +#include "model/GetThingScriptResult.h" #include "model/GetThingTemplateRequest.h" #include "model/GetThingTemplateResult.h" #include "model/GetThingTopoRequest.h" @@ -226,6 +244,10 @@ #include "model/ListOTAJobByDeviceResult.h" #include "model/ListOTAJobByFirmwareRequest.h" #include "model/ListOTAJobByFirmwareResult.h" +#include "model/ListOTAModuleByProductRequest.h" +#include "model/ListOTAModuleByProductResult.h" +#include "model/ListOTAModuleVersionsByDeviceRequest.h" +#include "model/ListOTAModuleVersionsByDeviceResult.h" #include "model/ListOTATaskByJobRequest.h" #include "model/ListOTATaskByJobResult.h" #include "model/ListProductByTagsRequest.h" @@ -254,6 +276,8 @@ #include "model/QueryBatchRegisterDeviceStatusResult.h" #include "model/QueryCertUrlByApplyIdRequest.h" #include "model/QueryCertUrlByApplyIdResult.h" +#include "model/QueryClientIdsRequest.h" +#include "model/QueryClientIdsResult.h" #include "model/QueryConsumerGroupByGroupIdRequest.h" #include "model/QueryConsumerGroupByGroupIdResult.h" #include "model/QueryConsumerGroupListRequest.h" @@ -264,6 +288,8 @@ #include "model/QueryDetailSceneRuleLogResult.h" #include "model/QueryDeviceRequest.h" #include "model/QueryDeviceResult.h" +#include "model/QueryDeviceBySQLRequest.h" +#include "model/QueryDeviceBySQLResult.h" #include "model/QueryDeviceByStatusRequest.h" #include "model/QueryDeviceByStatusResult.h" #include "model/QueryDeviceByTagsRequest.h" @@ -292,6 +318,14 @@ #include "model/QueryDeviceGroupTagListResult.h" #include "model/QueryDeviceListByDeviceGroupRequest.h" #include "model/QueryDeviceListByDeviceGroupResult.h" +#include "model/QueryDeviceOriginalEventDataRequest.h" +#include "model/QueryDeviceOriginalEventDataResult.h" +#include "model/QueryDeviceOriginalPropertyDataRequest.h" +#include "model/QueryDeviceOriginalPropertyDataResult.h" +#include "model/QueryDeviceOriginalPropertyStatusRequest.h" +#include "model/QueryDeviceOriginalPropertyStatusResult.h" +#include "model/QueryDeviceOriginalServiceDataRequest.h" +#include "model/QueryDeviceOriginalServiceDataResult.h" #include "model/QueryDevicePropRequest.h" #include "model/QueryDevicePropResult.h" #include "model/QueryDevicePropertiesDataRequest.h" @@ -350,6 +384,12 @@ #include "model/QuerySuperDeviceGroupResult.h" #include "model/QueryThingModelRequest.h" #include "model/QueryThingModelResult.h" +#include "model/QueryThingModelExtendConfigRequest.h" +#include "model/QueryThingModelExtendConfigResult.h" +#include "model/QueryThingModelExtendConfigPublishedRequest.h" +#include "model/QueryThingModelExtendConfigPublishedResult.h" +#include "model/QueryThingModelPublishedRequest.h" +#include "model/QueryThingModelPublishedResult.h" #include "model/QueryTopicReverseRouteTableRequest.h" #include "model/QueryTopicReverseRouteTableResult.h" #include "model/QueryTopicRouteTableRequest.h" @@ -382,16 +422,22 @@ #include "model/SetEdgeInstanceDriverConfigsResult.h" #include "model/SetProductCertInfoRequest.h" #include "model/SetProductCertInfoResult.h" +#include "model/SpeechByCombinationRequest.h" +#include "model/SpeechByCombinationResult.h" #include "model/StartRuleRequest.h" #include "model/StartRuleResult.h" #include "model/StopRuleRequest.h" #include "model/StopRuleResult.h" +#include "model/TransformClientIdRequest.h" +#include "model/TransformClientIdResult.h" #include "model/TriggerSceneRuleRequest.h" #include "model/TriggerSceneRuleResult.h" #include "model/UnbindApplicationFromEdgeInstanceRequest.h" #include "model/UnbindApplicationFromEdgeInstanceResult.h" #include "model/UnbindDriverFromEdgeInstanceRequest.h" #include "model/UnbindDriverFromEdgeInstanceResult.h" +#include "model/UnbindRoleFromEdgeInstanceRequest.h" +#include "model/UnbindRoleFromEdgeInstanceResult.h" #include "model/UnbindSceneRuleFromEdgeInstanceRequest.h" #include "model/UnbindSceneRuleFromEdgeInstanceResult.h" #include "model/UpdateConsumerGroupRequest.h" @@ -406,6 +452,8 @@ #include "model/UpdateEdgeInstanceResult.h" #include "model/UpdateEdgeInstanceChannelRequest.h" #include "model/UpdateEdgeInstanceChannelResult.h" +#include "model/UpdateOTAModuleRequest.h" +#include "model/UpdateOTAModuleResult.h" #include "model/UpdateProductRequest.h" #include "model/UpdateProductResult.h" #include "model/UpdateProductFilterConfigRequest.h" @@ -424,6 +472,10 @@ #include "model/UpdateSubscribeRelationResult.h" #include "model/UpdateThingModelRequest.h" #include "model/UpdateThingModelResult.h" +#include "model/UpdateThingModelValidationConfigRequest.h" +#include "model/UpdateThingModelValidationConfigResult.h" +#include "model/UpdateThingScriptRequest.h" +#include "model/UpdateThingScriptResult.h" namespace AlibabaCloud @@ -478,6 +530,9 @@ namespace AlibabaCloud typedef Outcome BatchGetEdgeInstanceDriverConfigsOutcome; typedef std::future BatchGetEdgeInstanceDriverConfigsOutcomeCallable; typedef std::function&)> BatchGetEdgeInstanceDriverConfigsAsyncHandler; + typedef Outcome BatchPubOutcome; + typedef std::future BatchPubOutcomeCallable; + typedef std::function&)> BatchPubAsyncHandler; typedef Outcome BatchQueryDeviceDetailOutcome; typedef std::future BatchQueryDeviceDetailOutcomeCallable; typedef std::function&)> BatchQueryDeviceDetailAsyncHandler; @@ -508,6 +563,9 @@ namespace AlibabaCloud typedef Outcome BindGatewayToEdgeInstanceOutcome; typedef std::future BindGatewayToEdgeInstanceOutcomeCallable; typedef std::function&)> BindGatewayToEdgeInstanceAsyncHandler; + typedef Outcome BindRoleToEdgeInstanceOutcome; + typedef std::future BindRoleToEdgeInstanceOutcomeCallable; + typedef std::function&)> BindRoleToEdgeInstanceAsyncHandler; typedef Outcome BindSceneRuleToEdgeInstanceOutcome; typedef std::future BindSceneRuleToEdgeInstanceOutcomeCallable; typedef std::function&)> BindSceneRuleToEdgeInstanceAsyncHandler; @@ -568,6 +626,9 @@ namespace AlibabaCloud typedef Outcome CreateOTAFirmwareOutcome; typedef std::future CreateOTAFirmwareOutcomeCallable; typedef std::function&)> CreateOTAFirmwareAsyncHandler; + typedef Outcome CreateOTAModuleOutcome; + typedef std::future CreateOTAModuleOutcomeCallable; + typedef std::function&)> CreateOTAModuleAsyncHandler; typedef Outcome CreateOTAStaticUpgradeJobOutcome; typedef std::future CreateOTAStaticUpgradeJobOutcomeCallable; typedef std::function&)> CreateOTAStaticUpgradeJobAsyncHandler; @@ -598,9 +659,15 @@ namespace AlibabaCloud typedef Outcome CreateThingModelOutcome; typedef std::future CreateThingModelOutcomeCallable; typedef std::function&)> CreateThingModelAsyncHandler; + typedef Outcome CreateThingScriptOutcome; + typedef std::future CreateThingScriptOutcomeCallable; + typedef std::function&)> CreateThingScriptAsyncHandler; typedef Outcome CreateTopicRouteTableOutcome; typedef std::future CreateTopicRouteTableOutcomeCallable; typedef std::function&)> CreateTopicRouteTableAsyncHandler; + typedef Outcome DeleteClientIdsOutcome; + typedef std::future DeleteClientIdsOutcomeCallable; + typedef std::function&)> DeleteClientIdsAsyncHandler; typedef Outcome DeleteConsumerGroupOutcome; typedef std::future DeleteConsumerGroupOutcomeCallable; typedef std::function&)> DeleteConsumerGroupAsyncHandler; @@ -631,6 +698,9 @@ namespace AlibabaCloud typedef Outcome DeleteOTAFirmwareOutcome; typedef std::future DeleteOTAFirmwareOutcomeCallable; typedef std::function&)> DeleteOTAFirmwareAsyncHandler; + typedef Outcome DeleteOTAModuleOutcome; + typedef std::future DeleteOTAModuleOutcomeCallable; + typedef std::function&)> DeleteOTAModuleAsyncHandler; typedef Outcome DeleteProductOutcome; typedef std::future DeleteProductOutcomeCallable; typedef std::function&)> DeleteProductAsyncHandler; @@ -670,6 +740,9 @@ namespace AlibabaCloud typedef Outcome EnableThingOutcome; typedef std::future EnableThingOutcomeCallable; typedef std::function&)> EnableThingAsyncHandler; + typedef Outcome GenerateDeviceNameListURLOutcome; + typedef std::future GenerateDeviceNameListURLOutcomeCallable; + typedef std::function&)> GenerateDeviceNameListURLAsyncHandler; typedef Outcome GenerateOTAUploadURLOutcome; typedef std::future GenerateOTAUploadURLOutcomeCallable; typedef std::function&)> GenerateOTAUploadURLAsyncHandler; @@ -712,6 +785,12 @@ namespace AlibabaCloud typedef Outcome GetThingModelTslOutcome; typedef std::future GetThingModelTslOutcomeCallable; typedef std::function&)> GetThingModelTslAsyncHandler; + typedef Outcome GetThingModelTslPublishedOutcome; + typedef std::future GetThingModelTslPublishedOutcomeCallable; + typedef std::function&)> GetThingModelTslPublishedAsyncHandler; + typedef Outcome GetThingScriptOutcome; + typedef std::future GetThingScriptOutcomeCallable; + typedef std::function&)> GetThingScriptAsyncHandler; typedef Outcome GetThingTemplateOutcome; typedef std::future GetThingTemplateOutcomeCallable; typedef std::function&)> GetThingTemplateAsyncHandler; @@ -739,6 +818,12 @@ namespace AlibabaCloud typedef Outcome ListOTAJobByFirmwareOutcome; typedef std::future ListOTAJobByFirmwareOutcomeCallable; typedef std::function&)> ListOTAJobByFirmwareAsyncHandler; + typedef Outcome ListOTAModuleByProductOutcome; + typedef std::future ListOTAModuleByProductOutcomeCallable; + typedef std::function&)> ListOTAModuleByProductAsyncHandler; + typedef Outcome ListOTAModuleVersionsByDeviceOutcome; + typedef std::future ListOTAModuleVersionsByDeviceOutcomeCallable; + typedef std::function&)> ListOTAModuleVersionsByDeviceAsyncHandler; typedef Outcome ListOTATaskByJobOutcome; typedef std::future ListOTATaskByJobOutcomeCallable; typedef std::function&)> ListOTATaskByJobAsyncHandler; @@ -781,6 +866,9 @@ namespace AlibabaCloud typedef Outcome QueryCertUrlByApplyIdOutcome; typedef std::future QueryCertUrlByApplyIdOutcomeCallable; typedef std::function&)> QueryCertUrlByApplyIdAsyncHandler; + typedef Outcome QueryClientIdsOutcome; + typedef std::future QueryClientIdsOutcomeCallable; + typedef std::function&)> QueryClientIdsAsyncHandler; typedef Outcome QueryConsumerGroupByGroupIdOutcome; typedef std::future QueryConsumerGroupByGroupIdOutcomeCallable; typedef std::function&)> QueryConsumerGroupByGroupIdAsyncHandler; @@ -796,6 +884,9 @@ namespace AlibabaCloud typedef Outcome QueryDeviceOutcome; typedef std::future QueryDeviceOutcomeCallable; typedef std::function&)> QueryDeviceAsyncHandler; + typedef Outcome QueryDeviceBySQLOutcome; + typedef std::future QueryDeviceBySQLOutcomeCallable; + typedef std::function&)> QueryDeviceBySQLAsyncHandler; typedef Outcome QueryDeviceByStatusOutcome; typedef std::future QueryDeviceByStatusOutcomeCallable; typedef std::function&)> QueryDeviceByStatusAsyncHandler; @@ -838,6 +929,18 @@ namespace AlibabaCloud typedef Outcome QueryDeviceListByDeviceGroupOutcome; typedef std::future QueryDeviceListByDeviceGroupOutcomeCallable; typedef std::function&)> QueryDeviceListByDeviceGroupAsyncHandler; + typedef Outcome QueryDeviceOriginalEventDataOutcome; + typedef std::future QueryDeviceOriginalEventDataOutcomeCallable; + typedef std::function&)> QueryDeviceOriginalEventDataAsyncHandler; + typedef Outcome QueryDeviceOriginalPropertyDataOutcome; + typedef std::future QueryDeviceOriginalPropertyDataOutcomeCallable; + typedef std::function&)> QueryDeviceOriginalPropertyDataAsyncHandler; + typedef Outcome QueryDeviceOriginalPropertyStatusOutcome; + typedef std::future QueryDeviceOriginalPropertyStatusOutcomeCallable; + typedef std::function&)> QueryDeviceOriginalPropertyStatusAsyncHandler; + typedef Outcome QueryDeviceOriginalServiceDataOutcome; + typedef std::future QueryDeviceOriginalServiceDataOutcomeCallable; + typedef std::function&)> QueryDeviceOriginalServiceDataAsyncHandler; typedef Outcome QueryDevicePropOutcome; typedef std::future QueryDevicePropOutcomeCallable; typedef std::function&)> QueryDevicePropAsyncHandler; @@ -925,6 +1028,15 @@ namespace AlibabaCloud typedef Outcome QueryThingModelOutcome; typedef std::future QueryThingModelOutcomeCallable; typedef std::function&)> QueryThingModelAsyncHandler; + typedef Outcome QueryThingModelExtendConfigOutcome; + typedef std::future QueryThingModelExtendConfigOutcomeCallable; + typedef std::function&)> QueryThingModelExtendConfigAsyncHandler; + typedef Outcome QueryThingModelExtendConfigPublishedOutcome; + typedef std::future QueryThingModelExtendConfigPublishedOutcomeCallable; + typedef std::function&)> QueryThingModelExtendConfigPublishedAsyncHandler; + typedef Outcome QueryThingModelPublishedOutcome; + typedef std::future QueryThingModelPublishedOutcomeCallable; + typedef std::function&)> QueryThingModelPublishedAsyncHandler; typedef Outcome QueryTopicReverseRouteTableOutcome; typedef std::future QueryTopicReverseRouteTableOutcomeCallable; typedef std::function&)> QueryTopicReverseRouteTableAsyncHandler; @@ -973,12 +1085,18 @@ namespace AlibabaCloud typedef Outcome SetProductCertInfoOutcome; typedef std::future SetProductCertInfoOutcomeCallable; typedef std::function&)> SetProductCertInfoAsyncHandler; + typedef Outcome SpeechByCombinationOutcome; + typedef std::future SpeechByCombinationOutcomeCallable; + typedef std::function&)> SpeechByCombinationAsyncHandler; typedef Outcome StartRuleOutcome; typedef std::future StartRuleOutcomeCallable; typedef std::function&)> StartRuleAsyncHandler; typedef Outcome StopRuleOutcome; typedef std::future StopRuleOutcomeCallable; typedef std::function&)> StopRuleAsyncHandler; + typedef Outcome TransformClientIdOutcome; + typedef std::future TransformClientIdOutcomeCallable; + typedef std::function&)> TransformClientIdAsyncHandler; typedef Outcome TriggerSceneRuleOutcome; typedef std::future TriggerSceneRuleOutcomeCallable; typedef std::function&)> TriggerSceneRuleAsyncHandler; @@ -988,6 +1106,9 @@ namespace AlibabaCloud typedef Outcome UnbindDriverFromEdgeInstanceOutcome; typedef std::future UnbindDriverFromEdgeInstanceOutcomeCallable; typedef std::function&)> UnbindDriverFromEdgeInstanceAsyncHandler; + typedef Outcome UnbindRoleFromEdgeInstanceOutcome; + typedef std::future UnbindRoleFromEdgeInstanceOutcomeCallable; + typedef std::function&)> UnbindRoleFromEdgeInstanceAsyncHandler; typedef Outcome UnbindSceneRuleFromEdgeInstanceOutcome; typedef std::future UnbindSceneRuleFromEdgeInstanceOutcomeCallable; typedef std::function&)> UnbindSceneRuleFromEdgeInstanceAsyncHandler; @@ -1009,6 +1130,9 @@ namespace AlibabaCloud typedef Outcome UpdateEdgeInstanceChannelOutcome; typedef std::future UpdateEdgeInstanceChannelOutcomeCallable; typedef std::function&)> UpdateEdgeInstanceChannelAsyncHandler; + typedef Outcome UpdateOTAModuleOutcome; + typedef std::future UpdateOTAModuleOutcomeCallable; + typedef std::function&)> UpdateOTAModuleAsyncHandler; typedef Outcome UpdateProductOutcome; typedef std::future UpdateProductOutcomeCallable; typedef std::function&)> UpdateProductAsyncHandler; @@ -1036,6 +1160,12 @@ namespace AlibabaCloud typedef Outcome UpdateThingModelOutcome; typedef std::future UpdateThingModelOutcomeCallable; typedef std::function&)> UpdateThingModelAsyncHandler; + typedef Outcome UpdateThingModelValidationConfigOutcome; + typedef std::future UpdateThingModelValidationConfigOutcomeCallable; + typedef std::function&)> UpdateThingModelValidationConfigAsyncHandler; + typedef Outcome UpdateThingScriptOutcome; + typedef std::future UpdateThingScriptOutcomeCallable; + typedef std::function&)> UpdateThingScriptAsyncHandler; IotClient(const Credentials &credentials, const ClientConfiguration &configuration); IotClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -1086,6 +1216,9 @@ namespace AlibabaCloud BatchGetEdgeInstanceDriverConfigsOutcome batchGetEdgeInstanceDriverConfigs(const Model::BatchGetEdgeInstanceDriverConfigsRequest &request)const; void batchGetEdgeInstanceDriverConfigsAsync(const Model::BatchGetEdgeInstanceDriverConfigsRequest& request, const BatchGetEdgeInstanceDriverConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchGetEdgeInstanceDriverConfigsOutcomeCallable batchGetEdgeInstanceDriverConfigsCallable(const Model::BatchGetEdgeInstanceDriverConfigsRequest& request) const; + BatchPubOutcome batchPub(const Model::BatchPubRequest &request)const; + void batchPubAsync(const Model::BatchPubRequest& request, const BatchPubAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchPubOutcomeCallable batchPubCallable(const Model::BatchPubRequest& request) const; BatchQueryDeviceDetailOutcome batchQueryDeviceDetail(const Model::BatchQueryDeviceDetailRequest &request)const; void batchQueryDeviceDetailAsync(const Model::BatchQueryDeviceDetailRequest& request, const BatchQueryDeviceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchQueryDeviceDetailOutcomeCallable batchQueryDeviceDetailCallable(const Model::BatchQueryDeviceDetailRequest& request) const; @@ -1116,6 +1249,9 @@ namespace AlibabaCloud BindGatewayToEdgeInstanceOutcome bindGatewayToEdgeInstance(const Model::BindGatewayToEdgeInstanceRequest &request)const; void bindGatewayToEdgeInstanceAsync(const Model::BindGatewayToEdgeInstanceRequest& request, const BindGatewayToEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindGatewayToEdgeInstanceOutcomeCallable bindGatewayToEdgeInstanceCallable(const Model::BindGatewayToEdgeInstanceRequest& request) const; + BindRoleToEdgeInstanceOutcome bindRoleToEdgeInstance(const Model::BindRoleToEdgeInstanceRequest &request)const; + void bindRoleToEdgeInstanceAsync(const Model::BindRoleToEdgeInstanceRequest& request, const BindRoleToEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindRoleToEdgeInstanceOutcomeCallable bindRoleToEdgeInstanceCallable(const Model::BindRoleToEdgeInstanceRequest& request) const; BindSceneRuleToEdgeInstanceOutcome bindSceneRuleToEdgeInstance(const Model::BindSceneRuleToEdgeInstanceRequest &request)const; void bindSceneRuleToEdgeInstanceAsync(const Model::BindSceneRuleToEdgeInstanceRequest& request, const BindSceneRuleToEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindSceneRuleToEdgeInstanceOutcomeCallable bindSceneRuleToEdgeInstanceCallable(const Model::BindSceneRuleToEdgeInstanceRequest& request) const; @@ -1176,6 +1312,9 @@ namespace AlibabaCloud CreateOTAFirmwareOutcome createOTAFirmware(const Model::CreateOTAFirmwareRequest &request)const; void createOTAFirmwareAsync(const Model::CreateOTAFirmwareRequest& request, const CreateOTAFirmwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOTAFirmwareOutcomeCallable createOTAFirmwareCallable(const Model::CreateOTAFirmwareRequest& request) const; + CreateOTAModuleOutcome createOTAModule(const Model::CreateOTAModuleRequest &request)const; + void createOTAModuleAsync(const Model::CreateOTAModuleRequest& request, const CreateOTAModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOTAModuleOutcomeCallable createOTAModuleCallable(const Model::CreateOTAModuleRequest& request) const; CreateOTAStaticUpgradeJobOutcome createOTAStaticUpgradeJob(const Model::CreateOTAStaticUpgradeJobRequest &request)const; void createOTAStaticUpgradeJobAsync(const Model::CreateOTAStaticUpgradeJobRequest& request, const CreateOTAStaticUpgradeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOTAStaticUpgradeJobOutcomeCallable createOTAStaticUpgradeJobCallable(const Model::CreateOTAStaticUpgradeJobRequest& request) const; @@ -1206,9 +1345,15 @@ namespace AlibabaCloud CreateThingModelOutcome createThingModel(const Model::CreateThingModelRequest &request)const; void createThingModelAsync(const Model::CreateThingModelRequest& request, const CreateThingModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateThingModelOutcomeCallable createThingModelCallable(const Model::CreateThingModelRequest& request) const; + CreateThingScriptOutcome createThingScript(const Model::CreateThingScriptRequest &request)const; + void createThingScriptAsync(const Model::CreateThingScriptRequest& request, const CreateThingScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateThingScriptOutcomeCallable createThingScriptCallable(const Model::CreateThingScriptRequest& request) const; CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const; void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const; + DeleteClientIdsOutcome deleteClientIds(const Model::DeleteClientIdsRequest &request)const; + void deleteClientIdsAsync(const Model::DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClientIdsOutcomeCallable deleteClientIdsCallable(const Model::DeleteClientIdsRequest& request) const; DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const; void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const; @@ -1239,6 +1384,9 @@ namespace AlibabaCloud DeleteOTAFirmwareOutcome deleteOTAFirmware(const Model::DeleteOTAFirmwareRequest &request)const; void deleteOTAFirmwareAsync(const Model::DeleteOTAFirmwareRequest& request, const DeleteOTAFirmwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteOTAFirmwareOutcomeCallable deleteOTAFirmwareCallable(const Model::DeleteOTAFirmwareRequest& request) const; + DeleteOTAModuleOutcome deleteOTAModule(const Model::DeleteOTAModuleRequest &request)const; + void deleteOTAModuleAsync(const Model::DeleteOTAModuleRequest& request, const DeleteOTAModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOTAModuleOutcomeCallable deleteOTAModuleCallable(const Model::DeleteOTAModuleRequest& request) const; 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; @@ -1278,6 +1426,9 @@ namespace AlibabaCloud EnableThingOutcome enableThing(const Model::EnableThingRequest &request)const; void enableThingAsync(const Model::EnableThingRequest& request, const EnableThingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableThingOutcomeCallable enableThingCallable(const Model::EnableThingRequest& request) const; + GenerateDeviceNameListURLOutcome generateDeviceNameListURL(const Model::GenerateDeviceNameListURLRequest &request)const; + void generateDeviceNameListURLAsync(const Model::GenerateDeviceNameListURLRequest& request, const GenerateDeviceNameListURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateDeviceNameListURLOutcomeCallable generateDeviceNameListURLCallable(const Model::GenerateDeviceNameListURLRequest& request) const; GenerateOTAUploadURLOutcome generateOTAUploadURL(const Model::GenerateOTAUploadURLRequest &request)const; void generateOTAUploadURLAsync(const Model::GenerateOTAUploadURLRequest& request, const GenerateOTAUploadURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GenerateOTAUploadURLOutcomeCallable generateOTAUploadURLCallable(const Model::GenerateOTAUploadURLRequest& request) const; @@ -1320,6 +1471,12 @@ namespace AlibabaCloud 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; + GetThingModelTslPublishedOutcome getThingModelTslPublished(const Model::GetThingModelTslPublishedRequest &request)const; + void getThingModelTslPublishedAsync(const Model::GetThingModelTslPublishedRequest& request, const GetThingModelTslPublishedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetThingModelTslPublishedOutcomeCallable getThingModelTslPublishedCallable(const Model::GetThingModelTslPublishedRequest& request) const; + GetThingScriptOutcome getThingScript(const Model::GetThingScriptRequest &request)const; + void getThingScriptAsync(const Model::GetThingScriptRequest& request, const GetThingScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetThingScriptOutcomeCallable getThingScriptCallable(const Model::GetThingScriptRequest& request) const; GetThingTemplateOutcome getThingTemplate(const Model::GetThingTemplateRequest &request)const; void getThingTemplateAsync(const Model::GetThingTemplateRequest& request, const GetThingTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetThingTemplateOutcomeCallable getThingTemplateCallable(const Model::GetThingTemplateRequest& request) const; @@ -1347,6 +1504,12 @@ namespace AlibabaCloud ListOTAJobByFirmwareOutcome listOTAJobByFirmware(const Model::ListOTAJobByFirmwareRequest &request)const; void listOTAJobByFirmwareAsync(const Model::ListOTAJobByFirmwareRequest& request, const ListOTAJobByFirmwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOTAJobByFirmwareOutcomeCallable listOTAJobByFirmwareCallable(const Model::ListOTAJobByFirmwareRequest& request) const; + ListOTAModuleByProductOutcome listOTAModuleByProduct(const Model::ListOTAModuleByProductRequest &request)const; + void listOTAModuleByProductAsync(const Model::ListOTAModuleByProductRequest& request, const ListOTAModuleByProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOTAModuleByProductOutcomeCallable listOTAModuleByProductCallable(const Model::ListOTAModuleByProductRequest& request) const; + ListOTAModuleVersionsByDeviceOutcome listOTAModuleVersionsByDevice(const Model::ListOTAModuleVersionsByDeviceRequest &request)const; + void listOTAModuleVersionsByDeviceAsync(const Model::ListOTAModuleVersionsByDeviceRequest& request, const ListOTAModuleVersionsByDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOTAModuleVersionsByDeviceOutcomeCallable listOTAModuleVersionsByDeviceCallable(const Model::ListOTAModuleVersionsByDeviceRequest& request) const; ListOTATaskByJobOutcome listOTATaskByJob(const Model::ListOTATaskByJobRequest &request)const; void listOTATaskByJobAsync(const Model::ListOTATaskByJobRequest& request, const ListOTATaskByJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOTATaskByJobOutcomeCallable listOTATaskByJobCallable(const Model::ListOTATaskByJobRequest& request) const; @@ -1389,6 +1552,9 @@ namespace AlibabaCloud QueryCertUrlByApplyIdOutcome queryCertUrlByApplyId(const Model::QueryCertUrlByApplyIdRequest &request)const; void queryCertUrlByApplyIdAsync(const Model::QueryCertUrlByApplyIdRequest& request, const QueryCertUrlByApplyIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCertUrlByApplyIdOutcomeCallable queryCertUrlByApplyIdCallable(const Model::QueryCertUrlByApplyIdRequest& request) const; + QueryClientIdsOutcome queryClientIds(const Model::QueryClientIdsRequest &request)const; + void queryClientIdsAsync(const Model::QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryClientIdsOutcomeCallable queryClientIdsCallable(const Model::QueryClientIdsRequest& request) const; QueryConsumerGroupByGroupIdOutcome queryConsumerGroupByGroupId(const Model::QueryConsumerGroupByGroupIdRequest &request)const; void queryConsumerGroupByGroupIdAsync(const Model::QueryConsumerGroupByGroupIdRequest& request, const QueryConsumerGroupByGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryConsumerGroupByGroupIdOutcomeCallable queryConsumerGroupByGroupIdCallable(const Model::QueryConsumerGroupByGroupIdRequest& request) const; @@ -1404,6 +1570,9 @@ namespace AlibabaCloud QueryDeviceOutcome queryDevice(const Model::QueryDeviceRequest &request)const; void queryDeviceAsync(const Model::QueryDeviceRequest& request, const QueryDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceOutcomeCallable queryDeviceCallable(const Model::QueryDeviceRequest& request) const; + QueryDeviceBySQLOutcome queryDeviceBySQL(const Model::QueryDeviceBySQLRequest &request)const; + void queryDeviceBySQLAsync(const Model::QueryDeviceBySQLRequest& request, const QueryDeviceBySQLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceBySQLOutcomeCallable queryDeviceBySQLCallable(const Model::QueryDeviceBySQLRequest& request) const; QueryDeviceByStatusOutcome queryDeviceByStatus(const Model::QueryDeviceByStatusRequest &request)const; void queryDeviceByStatusAsync(const Model::QueryDeviceByStatusRequest& request, const QueryDeviceByStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceByStatusOutcomeCallable queryDeviceByStatusCallable(const Model::QueryDeviceByStatusRequest& request) const; @@ -1446,6 +1615,18 @@ namespace AlibabaCloud QueryDeviceListByDeviceGroupOutcome queryDeviceListByDeviceGroup(const Model::QueryDeviceListByDeviceGroupRequest &request)const; void queryDeviceListByDeviceGroupAsync(const Model::QueryDeviceListByDeviceGroupRequest& request, const QueryDeviceListByDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceListByDeviceGroupOutcomeCallable queryDeviceListByDeviceGroupCallable(const Model::QueryDeviceListByDeviceGroupRequest& request) const; + QueryDeviceOriginalEventDataOutcome queryDeviceOriginalEventData(const Model::QueryDeviceOriginalEventDataRequest &request)const; + void queryDeviceOriginalEventDataAsync(const Model::QueryDeviceOriginalEventDataRequest& request, const QueryDeviceOriginalEventDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceOriginalEventDataOutcomeCallable queryDeviceOriginalEventDataCallable(const Model::QueryDeviceOriginalEventDataRequest& request) const; + QueryDeviceOriginalPropertyDataOutcome queryDeviceOriginalPropertyData(const Model::QueryDeviceOriginalPropertyDataRequest &request)const; + void queryDeviceOriginalPropertyDataAsync(const Model::QueryDeviceOriginalPropertyDataRequest& request, const QueryDeviceOriginalPropertyDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceOriginalPropertyDataOutcomeCallable queryDeviceOriginalPropertyDataCallable(const Model::QueryDeviceOriginalPropertyDataRequest& request) const; + QueryDeviceOriginalPropertyStatusOutcome queryDeviceOriginalPropertyStatus(const Model::QueryDeviceOriginalPropertyStatusRequest &request)const; + void queryDeviceOriginalPropertyStatusAsync(const Model::QueryDeviceOriginalPropertyStatusRequest& request, const QueryDeviceOriginalPropertyStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceOriginalPropertyStatusOutcomeCallable queryDeviceOriginalPropertyStatusCallable(const Model::QueryDeviceOriginalPropertyStatusRequest& request) const; + QueryDeviceOriginalServiceDataOutcome queryDeviceOriginalServiceData(const Model::QueryDeviceOriginalServiceDataRequest &request)const; + void queryDeviceOriginalServiceDataAsync(const Model::QueryDeviceOriginalServiceDataRequest& request, const QueryDeviceOriginalServiceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceOriginalServiceDataOutcomeCallable queryDeviceOriginalServiceDataCallable(const Model::QueryDeviceOriginalServiceDataRequest& request) const; QueryDevicePropOutcome queryDeviceProp(const Model::QueryDevicePropRequest &request)const; void queryDevicePropAsync(const Model::QueryDevicePropRequest& request, const QueryDevicePropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDevicePropOutcomeCallable queryDevicePropCallable(const Model::QueryDevicePropRequest& request) const; @@ -1533,6 +1714,15 @@ namespace AlibabaCloud QueryThingModelOutcome queryThingModel(const Model::QueryThingModelRequest &request)const; void queryThingModelAsync(const Model::QueryThingModelRequest& request, const QueryThingModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryThingModelOutcomeCallable queryThingModelCallable(const Model::QueryThingModelRequest& request) const; + QueryThingModelExtendConfigOutcome queryThingModelExtendConfig(const Model::QueryThingModelExtendConfigRequest &request)const; + void queryThingModelExtendConfigAsync(const Model::QueryThingModelExtendConfigRequest& request, const QueryThingModelExtendConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryThingModelExtendConfigOutcomeCallable queryThingModelExtendConfigCallable(const Model::QueryThingModelExtendConfigRequest& request) const; + QueryThingModelExtendConfigPublishedOutcome queryThingModelExtendConfigPublished(const Model::QueryThingModelExtendConfigPublishedRequest &request)const; + void queryThingModelExtendConfigPublishedAsync(const Model::QueryThingModelExtendConfigPublishedRequest& request, const QueryThingModelExtendConfigPublishedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryThingModelExtendConfigPublishedOutcomeCallable queryThingModelExtendConfigPublishedCallable(const Model::QueryThingModelExtendConfigPublishedRequest& request) const; + QueryThingModelPublishedOutcome queryThingModelPublished(const Model::QueryThingModelPublishedRequest &request)const; + void queryThingModelPublishedAsync(const Model::QueryThingModelPublishedRequest& request, const QueryThingModelPublishedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryThingModelPublishedOutcomeCallable queryThingModelPublishedCallable(const Model::QueryThingModelPublishedRequest& request) const; QueryTopicReverseRouteTableOutcome queryTopicReverseRouteTable(const Model::QueryTopicReverseRouteTableRequest &request)const; void queryTopicReverseRouteTableAsync(const Model::QueryTopicReverseRouteTableRequest& request, const QueryTopicReverseRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryTopicReverseRouteTableOutcomeCallable queryTopicReverseRouteTableCallable(const Model::QueryTopicReverseRouteTableRequest& request) const; @@ -1581,12 +1771,18 @@ namespace AlibabaCloud SetProductCertInfoOutcome setProductCertInfo(const Model::SetProductCertInfoRequest &request)const; void setProductCertInfoAsync(const Model::SetProductCertInfoRequest& request, const SetProductCertInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetProductCertInfoOutcomeCallable setProductCertInfoCallable(const Model::SetProductCertInfoRequest& request) const; + SpeechByCombinationOutcome speechByCombination(const Model::SpeechByCombinationRequest &request)const; + void speechByCombinationAsync(const Model::SpeechByCombinationRequest& request, const SpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SpeechByCombinationOutcomeCallable speechByCombinationCallable(const Model::SpeechByCombinationRequest& request) const; StartRuleOutcome startRule(const Model::StartRuleRequest &request)const; void startRuleAsync(const Model::StartRuleRequest& request, const StartRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartRuleOutcomeCallable startRuleCallable(const Model::StartRuleRequest& request) const; StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const; void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const; + TransformClientIdOutcome transformClientId(const Model::TransformClientIdRequest &request)const; + void transformClientIdAsync(const Model::TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransformClientIdOutcomeCallable transformClientIdCallable(const Model::TransformClientIdRequest& request) const; TriggerSceneRuleOutcome triggerSceneRule(const Model::TriggerSceneRuleRequest &request)const; void triggerSceneRuleAsync(const Model::TriggerSceneRuleRequest& request, const TriggerSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TriggerSceneRuleOutcomeCallable triggerSceneRuleCallable(const Model::TriggerSceneRuleRequest& request) const; @@ -1596,6 +1792,9 @@ namespace AlibabaCloud UnbindDriverFromEdgeInstanceOutcome unbindDriverFromEdgeInstance(const Model::UnbindDriverFromEdgeInstanceRequest &request)const; void unbindDriverFromEdgeInstanceAsync(const Model::UnbindDriverFromEdgeInstanceRequest& request, const UnbindDriverFromEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindDriverFromEdgeInstanceOutcomeCallable unbindDriverFromEdgeInstanceCallable(const Model::UnbindDriverFromEdgeInstanceRequest& request) const; + UnbindRoleFromEdgeInstanceOutcome unbindRoleFromEdgeInstance(const Model::UnbindRoleFromEdgeInstanceRequest &request)const; + void unbindRoleFromEdgeInstanceAsync(const Model::UnbindRoleFromEdgeInstanceRequest& request, const UnbindRoleFromEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindRoleFromEdgeInstanceOutcomeCallable unbindRoleFromEdgeInstanceCallable(const Model::UnbindRoleFromEdgeInstanceRequest& request) const; UnbindSceneRuleFromEdgeInstanceOutcome unbindSceneRuleFromEdgeInstance(const Model::UnbindSceneRuleFromEdgeInstanceRequest &request)const; void unbindSceneRuleFromEdgeInstanceAsync(const Model::UnbindSceneRuleFromEdgeInstanceRequest& request, const UnbindSceneRuleFromEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindSceneRuleFromEdgeInstanceOutcomeCallable unbindSceneRuleFromEdgeInstanceCallable(const Model::UnbindSceneRuleFromEdgeInstanceRequest& request) const; @@ -1617,6 +1816,9 @@ namespace AlibabaCloud UpdateEdgeInstanceChannelOutcome updateEdgeInstanceChannel(const Model::UpdateEdgeInstanceChannelRequest &request)const; void updateEdgeInstanceChannelAsync(const Model::UpdateEdgeInstanceChannelRequest& request, const UpdateEdgeInstanceChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateEdgeInstanceChannelOutcomeCallable updateEdgeInstanceChannelCallable(const Model::UpdateEdgeInstanceChannelRequest& 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; UpdateProductOutcome updateProduct(const Model::UpdateProductRequest &request)const; void updateProductAsync(const Model::UpdateProductRequest& request, const UpdateProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProductOutcomeCallable updateProductCallable(const Model::UpdateProductRequest& request) const; @@ -1644,6 +1846,12 @@ namespace AlibabaCloud UpdateThingModelOutcome updateThingModel(const Model::UpdateThingModelRequest &request)const; void updateThingModelAsync(const Model::UpdateThingModelRequest& request, const UpdateThingModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateThingModelOutcomeCallable updateThingModelCallable(const Model::UpdateThingModelRequest& request) const; + UpdateThingModelValidationConfigOutcome updateThingModelValidationConfig(const Model::UpdateThingModelValidationConfigRequest &request)const; + void updateThingModelValidationConfigAsync(const Model::UpdateThingModelValidationConfigRequest& request, const UpdateThingModelValidationConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateThingModelValidationConfigOutcomeCallable updateThingModelValidationConfigCallable(const Model::UpdateThingModelValidationConfigRequest& request) const; + UpdateThingScriptOutcome updateThingScript(const Model::UpdateThingScriptRequest &request)const; + void updateThingScriptAsync(const Model::UpdateThingScriptRequest& request, const UpdateThingScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateThingScriptOutcomeCallable updateThingScriptCallable(const Model::UpdateThingScriptRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h b/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h index f0299801e..18b5816b1 100644 --- a/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT BatchCheckDeviceNamesRequest : public RpcServiceRequest { + public: + struct DeviceNameList + { + std::string deviceNickname; + std::string deviceName; + }; public: BatchCheckDeviceNamesRequest(); @@ -37,6 +43,8 @@ namespace AlibabaCloud std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::vector getDeviceNameList()const; + void setDeviceNameList(const std::vector& deviceNameList); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -50,6 +58,7 @@ namespace AlibabaCloud private: std::string accessKeyId_; + std::vector deviceNameList_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h b/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h index f64bf0132..7cf0d4b6e 100644 --- a/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h +++ b/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::vector invalidDeviceNameList; long applyId; + std::vector invalidDeviceNicknameList; }; diff --git a/iot/include/alibabacloud/iot/model/BatchPubRequest.h b/iot/include/alibabacloud/iot/model/BatchPubRequest.h new file mode 100644 index 000000000..dd6a5a343 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchPubRequest.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_BATCHPUBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHPUBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchPubRequest : public RpcServiceRequest + { + + public: + BatchPubRequest(); + ~BatchPubRequest(); + + std::string getMessageContent()const; + void setMessageContent(const std::string& messageContent); + int getQos()const; + void setQos(int qos); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getTopicShortName()const; + void setTopicShortName(const std::string& topicShortName); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::vector getDeviceName()const; + void setDeviceName(const std::vector& deviceName); + + private: + std::string messageContent_; + int qos_; + std::string iotInstanceId_; + std::string topicShortName_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::vector deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHPUBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BatchPubResult.h b/iot/include/alibabacloud/iot/model/BatchPubResult.h new file mode 100644 index 000000000..1a78df710 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchPubResult.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_BATCHPUBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHPUBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchPubResult : public ServiceResult + { + public: + + + BatchPubResult(); + explicit BatchPubResult(const std::string &payload); + ~BatchPubResult(); + 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_BATCHPUBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceRequest.h b/iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceRequest.h new file mode 100644 index 000000000..ec495be4c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceRequest.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_BINDROLETOEDGEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_BINDROLETOEDGEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BindRoleToEdgeInstanceRequest : public RpcServiceRequest + { + + public: + BindRoleToEdgeInstanceRequest(); + ~BindRoleToEdgeInstanceRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRoleArn()const; + void setRoleArn(const std::string& roleArn); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string accessKeyId_; + std::string iotInstanceId_; + std::string roleName_; + std::string instanceId_; + std::string roleArn_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BINDROLETOEDGEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceResult.h b/iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceResult.h new file mode 100644 index 000000000..34abb82c9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BindRoleToEdgeInstanceResult.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_BINDROLETOEDGEINSTANCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_BINDROLETOEDGEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BindRoleToEdgeInstanceResult : public ServiceResult + { + public: + + + BindRoleToEdgeInstanceResult(); + explicit BindRoleToEdgeInstanceResult(const std::string &payload); + ~BindRoleToEdgeInstanceResult(); + 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_BINDROLETOEDGEINSTANCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CopyThingModelRequest.h b/iot/include/alibabacloud/iot/model/CopyThingModelRequest.h index 6a6fc17c6..572f2fcd7 100644 --- a/iot/include/alibabacloud/iot/model/CopyThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/CopyThingModelRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud CopyThingModelRequest(); ~CopyThingModelRequest(); + 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 getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getIotInstanceId()const; @@ -53,8 +57,10 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string targetProductKey_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::string iotInstanceId_; std::string sourceModelVersion_; diff --git a/iot/include/alibabacloud/iot/model/CreateOTADynamicUpgradeJobRequest.h b/iot/include/alibabacloud/iot/model/CreateOTADynamicUpgradeJobRequest.h index 6d7632ffb..1482eda5a 100644 --- a/iot/include/alibabacloud/iot/model/CreateOTADynamicUpgradeJobRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateOTADynamicUpgradeJobRequest.h @@ -30,11 +30,19 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT CreateOTADynamicUpgradeJobRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: CreateOTADynamicUpgradeJobRequest(); ~CreateOTADynamicUpgradeJobRequest(); + int getDynamicMode()const; + void setDynamicMode(int dynamicMode); int getRetryCount()const; void setRetryCount(int retryCount); int getTimeoutInMinutes()const; @@ -43,6 +51,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getFirmwareId()const; void setFirmwareId(const std::string& firmwareId); std::string getProductKey()const; @@ -51,6 +61,8 @@ namespace AlibabaCloud void setRetryInterval(int retryInterval); std::vector getSrcVersion()const; void setSrcVersion(const std::vector& srcVersion); + int getOverwriteMode()const; + void setOverwriteMode(int overwriteMode); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; @@ -59,14 +71,17 @@ namespace AlibabaCloud void setMaximumPerMinute(int maximumPerMinute); private: + int dynamicMode_; int retryCount_; int timeoutInMinutes_; std::string accessKeyId_; std::string iotInstanceId_; + std::vector tag_; std::string firmwareId_; std::string productKey_; int retryInterval_; std::vector srcVersion_; + int overwriteMode_; std::string apiProduct_; std::string apiRevision_; int maximumPerMinute_; diff --git a/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h b/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h index 17a2145e6..009751b76 100644 --- a/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getSignMethod()const; void setSignMethod(const std::string& signMethod); + bool getNeedToVerify()const; + void setNeedToVerify(bool needToVerify); int getType()const; void setType(int type); std::string getFirmwareUrl()const; @@ -68,6 +70,7 @@ namespace AlibabaCloud private: std::string signMethod_; + bool needToVerify_; int type_; std::string firmwareUrl_; std::string accessKeyId_; diff --git a/iot/include/alibabacloud/iot/model/CreateOTAModuleRequest.h b/iot/include/alibabacloud/iot/model/CreateOTAModuleRequest.h new file mode 100644 index 000000000..257dfb434 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateOTAModuleRequest.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_CREATEOTAMODULEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEOTAMODULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateOTAModuleRequest : public RpcServiceRequest + { + + public: + CreateOTAModuleRequest(); + ~CreateOTAModuleRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getModuleName()const; + void setModuleName(const std::string& moduleName); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getAliasName()const; + void setAliasName(const std::string& aliasName); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDesc()const; + void setDesc(const std::string& desc); + + private: + std::string iotInstanceId_; + std::string moduleName_; + std::string productKey_; + std::string aliasName_; + std::string apiProduct_; + std::string apiRevision_; + std::string desc_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEOTAMODULEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateOTAModuleResult.h b/iot/include/alibabacloud/iot/model/CreateOTAModuleResult.h new file mode 100644 index 000000000..92af447b9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateOTAModuleResult.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_CREATEOTAMODULERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEOTAMODULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateOTAModuleResult : public ServiceResult + { + public: + + + CreateOTAModuleResult(); + explicit CreateOTAModuleResult(const std::string &payload); + ~CreateOTAModuleResult(); + 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_CREATEOTAMODULERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobRequest.h b/iot/include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobRequest.h index 261274900..a399ddb70 100644 --- a/iot/include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateOTAStaticUpgradeJobRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT CreateOTAStaticUpgradeJobRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: CreateOTAStaticUpgradeJobRequest(); @@ -45,8 +51,14 @@ namespace AlibabaCloud void setIotInstanceId(const std::string& iotInstanceId); std::string getTargetSelection()const; void setTargetSelection(const std::string& targetSelection); + long getScheduleFinishTime()const; + void setScheduleFinishTime(long scheduleFinishTime); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getGrayPercent()const; void setGrayPercent(const std::string& grayPercent); + std::string getDnListFileUrl()const; + void setDnListFileUrl(const std::string& dnListFileUrl); std::string getFirmwareId()const; void setFirmwareId(const std::string& firmwareId); std::string getProductKey()const; @@ -57,6 +69,8 @@ namespace AlibabaCloud void setSrcVersion(const std::vector& srcVersion); long getScheduleTime()const; void setScheduleTime(long scheduleTime); + int getOverwriteMode()const; + void setOverwriteMode(int overwriteMode); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; @@ -72,12 +86,16 @@ namespace AlibabaCloud std::string accessKeyId_; std::string iotInstanceId_; std::string targetSelection_; + long scheduleFinishTime_; + std::vector tag_; std::string grayPercent_; + std::string dnListFileUrl_; std::string firmwareId_; std::string productKey_; int retryInterval_; std::vector srcVersion_; long scheduleTime_; + int overwriteMode_; std::string apiProduct_; std::string apiRevision_; int maximumPerMinute_; diff --git a/iot/include/alibabacloud/iot/model/CreateProductRequest.h b/iot/include/alibabacloud/iot/model/CreateProductRequest.h index 1f6071556..d752926d9 100644 --- a/iot/include/alibabacloud/iot/model/CreateProductRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateProductRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud int getNodeType()const; void setNodeType(int nodeType); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getDescription()const; void setDescription(const std::string& description); std::string getCategoryKey()const; @@ -47,8 +49,12 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getAuthType()const; void setAuthType(const std::string& authType); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); + int getValidateType()const; + void setValidateType(int validateType); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductName()const; @@ -74,12 +80,15 @@ namespace AlibabaCloud private: int nodeType_; + std::string realTenantId_; std::string description_; std::string categoryKey_; std::string joinPermissionId_; std::string accessKeyId_; std::string authType_; + std::string realTripartiteKey_; std::string resourceGroupId_; + int validateType_; std::string iotInstanceId_; std::string productName_; std::string aliyunCommodityCode_; diff --git a/iot/include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h b/iot/include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h index ac5a8bc1f..b6232a0cc 100644 --- a/iot/include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h @@ -47,6 +47,10 @@ namespace AlibabaCloud void setIotInstanceId(const std::string& iotInstanceId); bool getDeviceStatusChangeFlag()const; void setDeviceStatusChangeFlag(bool deviceStatusChangeFlag); + bool getOtaVersionFlag()const; + void setOtaVersionFlag(bool otaVersionFlag); + bool getDeviceTagFlag()const; + void setDeviceTagFlag(bool deviceTagFlag); std::vector getConsumerGroupIds()const; void setConsumerGroupIds(const std::vector& consumerGroupIds); std::string getProductKey()const; @@ -55,6 +59,8 @@ namespace AlibabaCloud void setThingHistoryFlag(bool thingHistoryFlag); bool getFoundDeviceListFlag()const; void setFoundDeviceListFlag(bool foundDeviceListFlag); + bool getOtaJobFlag()const; + void setOtaJobFlag(bool otaJobFlag); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); bool getDeviceDataFlag()const; @@ -71,10 +77,13 @@ namespace AlibabaCloud std::string type_; std::string iotInstanceId_; bool deviceStatusChangeFlag_; + bool otaVersionFlag_; + bool deviceTagFlag_; std::vector consumerGroupIds_; std::string productKey_; bool thingHistoryFlag_; bool foundDeviceListFlag_; + bool otaJobFlag_; std::string apiProduct_; bool deviceDataFlag_; std::string apiRevision_; diff --git a/iot/include/alibabacloud/iot/model/CreateThingModelRequest.h b/iot/include/alibabacloud/iot/model/CreateThingModelRequest.h index 67bd3fe1c..b3295b5f9 100644 --- a/iot/include/alibabacloud/iot/model/CreateThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateThingModelRequest.h @@ -35,8 +35,14 @@ namespace AlibabaCloud CreateThingModelRequest(); ~CreateThingModelRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::string getFunctionBlockName()const; + void setFunctionBlockName(const std::string& functionBlockName); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -45,13 +51,19 @@ namespace AlibabaCloud void setThingModelJson(const std::string& thingModelJson); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; + std::string realTripartiteKey_; std::string iotInstanceId_; + std::string functionBlockName_; std::string productKey_; std::string apiProduct_; std::string thingModelJson_; std::string apiRevision_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/CreateThingScriptRequest.h b/iot/include/alibabacloud/iot/model/CreateThingScriptRequest.h new file mode 100644 index 000000000..66c901c00 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateThingScriptRequest.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_CREATETHINGSCRIPTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATETHINGSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateThingScriptRequest : public RpcServiceRequest + { + + public: + CreateThingScriptRequest(); + ~CreateThingScriptRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getScriptType()const; + void setScriptType(const std::string& scriptType); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getScriptContent()const; + void setScriptContent(const std::string& scriptContent); + + private: + std::string iotInstanceId_; + std::string scriptType_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string scriptContent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATETHINGSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateThingScriptResult.h b/iot/include/alibabacloud/iot/model/CreateThingScriptResult.h new file mode 100644 index 000000000..5cc323411 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateThingScriptResult.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_CREATETHINGSCRIPTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATETHINGSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateThingScriptResult : public ServiceResult + { + public: + + + CreateThingScriptResult(); + explicit CreateThingScriptResult(const std::string &payload); + ~CreateThingScriptResult(); + 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_CREATETHINGSCRIPTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h b/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h new file mode 100644 index 000000000..216442488 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.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_DELETECLIENTIDSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsRequest : public RpcServiceRequest + { + + public: + DeleteClientIdsRequest(); + ~DeleteClientIdsRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h b/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h new file mode 100644 index 000000000..07debde20 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.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_DELETECLIENTIDSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsResult : public ServiceResult + { + public: + + + DeleteClientIdsResult(); + explicit DeleteClientIdsResult(const std::string &payload); + ~DeleteClientIdsResult(); + 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_DELETECLIENTIDSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteOTAModuleRequest.h b/iot/include/alibabacloud/iot/model/DeleteOTAModuleRequest.h new file mode 100644 index 000000000..294fbdd0c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteOTAModuleRequest.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_DELETEOTAMODULEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEOTAMODULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteOTAModuleRequest : public RpcServiceRequest + { + + public: + DeleteOTAModuleRequest(); + ~DeleteOTAModuleRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getModuleName()const; + void setModuleName(const std::string& moduleName); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string iotInstanceId_; + std::string moduleName_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEOTAMODULEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteOTAModuleResult.h b/iot/include/alibabacloud/iot/model/DeleteOTAModuleResult.h new file mode 100644 index 000000000..f233f93e2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteOTAModuleResult.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_DELETEOTAMODULERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEOTAMODULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteOTAModuleResult : public ServiceResult + { + public: + + + DeleteOTAModuleResult(); + explicit DeleteOTAModuleResult(const std::string &payload); + ~DeleteOTAModuleResult(); + 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_DELETEOTAMODULERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h b/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h index 7a775d820..d1f032e9f 100644 --- a/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h @@ -35,8 +35,14 @@ namespace AlibabaCloud DeleteThingModelRequest(); ~DeleteThingModelRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + bool getIsClearAllFunction()const; + void setIsClearAllFunction(bool isClearAllFunction); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::vector getPropertyIdentifier()const; @@ -53,9 +59,14 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); std::vector getEventIdentifier()const; void setEventIdentifier(const std::vector& eventIdentifier); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; + bool isClearAllFunction_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::vector propertyIdentifier_; std::string iotInstanceId_; @@ -64,6 +75,7 @@ namespace AlibabaCloud std::string apiProduct_; std::string apiRevision_; std::vector eventIdentifier_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLRequest.h b/iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLRequest.h new file mode 100644 index 000000000..f3ea37a13 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GENERATEDEVICENAMELISTURLREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GENERATEDEVICENAMELISTURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GenerateDeviceNameListURLRequest : public RpcServiceRequest + { + + public: + GenerateDeviceNameListURLRequest(); + ~GenerateDeviceNameListURLRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + 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 apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GENERATEDEVICENAMELISTURLREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLResult.h b/iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLResult.h new file mode 100644 index 000000000..df87d0ff2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GenerateDeviceNameListURLResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_GENERATEDEVICENAMELISTURLRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GENERATEDEVICENAMELISTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GenerateDeviceNameListURLResult : public ServiceResult + { + public: + struct Data + { + std::string policy; + std::string fileUrl; + std::string utcCreate; + std::string accessKeyId; + std::string signature; + std::string objectStorage; + std::string host; + std::string key; + }; + + + GenerateDeviceNameListURLResult(); + explicit GenerateDeviceNameListURLResult(const std::string &payload); + ~GenerateDeviceNameListURLResult(); + 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_GENERATEDEVICENAMELISTURLRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLRequest.h b/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLRequest.h index 942f69266..235a49e65 100644 --- a/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLRequest.h +++ b/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud GenerateOTAUploadURLRequest(); ~GenerateOTAUploadURLRequest(); + std::string getFileSuffix()const; + void setFileSuffix(const std::string& fileSuffix); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); std::string getIotInstanceId()const; @@ -45,6 +47,7 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string fileSuffix_; std::string accessKeyId_; std::string iotInstanceId_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h b/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h index 43855347c..6585d0f03 100644 --- a/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h +++ b/iot/include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h @@ -36,8 +36,10 @@ namespace AlibabaCloud { std::string policy; std::string oSSAccessKeyId; + std::string utcCreate; std::string signature; std::string firmwareUrl; + std::string objectStorage; std::string host; std::string key; }; diff --git a/iot/include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h b/iot/include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h new file mode 100644 index 000000000..c3e47bfb1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h @@ -0,0 +1,78 @@ +/* + * 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_GETTHINGMODELTSLPUBLISHEDREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETTHINGMODELTSLPUBLISHEDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetThingModelTslPublishedRequest : public RpcServiceRequest + { + + public: + GetThingModelTslPublishedRequest(); + ~GetThingModelTslPublishedRequest(); + + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + bool getSimple()const; + void setSimple(bool simple); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); + + private: + std::string realTenantId_; + bool simple_; + std::string accessKeyId_; + std::string realTripartiteKey_; + std::string resourceGroupId_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string modelVersion_; + std::string functionBlockId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETTHINGMODELTSLPUBLISHEDREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetThingModelTslPublishedResult.h b/iot/include/alibabacloud/iot/model/GetThingModelTslPublishedResult.h new file mode 100644 index 000000000..ad262149d --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetThingModelTslPublishedResult.h @@ -0,0 +1,62 @@ +/* + * 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_GETTHINGMODELTSLPUBLISHEDRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETTHINGMODELTSLPUBLISHEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetThingModelTslPublishedResult : public ServiceResult + { + public: + struct Data + { + std::string tslUri; + std::string tslStr; + }; + + + GetThingModelTslPublishedResult(); + explicit GetThingModelTslPublishedResult(const std::string &payload); + ~GetThingModelTslPublishedResult(); + 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_GETTHINGMODELTSLPUBLISHEDRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h b/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h index 8b2777d14..238fc2264 100644 --- a/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h +++ b/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud GetThingModelTslRequest(); ~GetThingModelTslRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); bool getSimple()const; void setSimple(bool simple); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getIotInstanceId()const; @@ -51,16 +55,21 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); std::string getModelVersion()const; void setModelVersion(const std::string& modelVersion); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; bool simple_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; std::string modelVersion_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/GetThingScriptRequest.h b/iot/include/alibabacloud/iot/model/GetThingScriptRequest.h new file mode 100644 index 000000000..2e72fbf26 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetThingScriptRequest.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_GETTHINGSCRIPTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETTHINGSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetThingScriptRequest : public RpcServiceRequest + { + + public: + GetThingScriptRequest(); + ~GetThingScriptRequest(); + + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string productKey_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETTHINGSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetThingScriptResult.h b/iot/include/alibabacloud/iot/model/GetThingScriptResult.h new file mode 100644 index 000000000..ee871de51 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetThingScriptResult.h @@ -0,0 +1,62 @@ +/* + * 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_GETTHINGSCRIPTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETTHINGSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetThingScriptResult : public ServiceResult + { + public: + struct Data + { + std::string scriptType; + std::string scriptUrl; + }; + + + GetThingScriptResult(); + explicit GetThingScriptResult(const std::string &payload); + ~GetThingScriptResult(); + 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_GETTHINGSCRIPTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ImportThingModelTslRequest.h b/iot/include/alibabacloud/iot/model/ImportThingModelTslRequest.h index 4e52b3882..0c5ebf9ce 100644 --- a/iot/include/alibabacloud/iot/model/ImportThingModelTslRequest.h +++ b/iot/include/alibabacloud/iot/model/ImportThingModelTslRequest.h @@ -35,12 +35,18 @@ namespace AlibabaCloud ImportThingModelTslRequest(); ~ImportThingModelTslRequest(); + 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 getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::string getFunctionBlockName()const; + void setFunctionBlockName(const std::string& functionBlockName); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -51,16 +57,22 @@ namespace AlibabaCloud void setTslUrl(const std::string& tslUrl); std::string getTslStr()const; void setTslStr(const std::string& tslStr); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::string iotInstanceId_; + std::string functionBlockName_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; std::string tslUrl_; std::string tslStr_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/ListOTAJobByDeviceResult.h b/iot/include/alibabacloud/iot/model/ListOTAJobByDeviceResult.h index 78518b222..0326cfbb3 100644 --- a/iot/include/alibabacloud/iot/model/ListOTAJobByDeviceResult.h +++ b/iot/include/alibabacloud/iot/model/ListOTAJobByDeviceResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct SimpleOTAJobInfo { + struct OtaTagDTO + { + std::string value; + std::string key; + }; std::string utcStartTime; std::string jobStatus; std::string utcEndTime; @@ -43,6 +48,7 @@ namespace AlibabaCloud std::string firmwareId; std::string utcModified; std::string targetSelection; + std::vector tags; std::string jobId; std::string productKey; }; diff --git a/iot/include/alibabacloud/iot/model/ListOTAJobByFirmwareResult.h b/iot/include/alibabacloud/iot/model/ListOTAJobByFirmwareResult.h index 62051e8ef..7aa882ff3 100644 --- a/iot/include/alibabacloud/iot/model/ListOTAJobByFirmwareResult.h +++ b/iot/include/alibabacloud/iot/model/ListOTAJobByFirmwareResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct SimpleOTAJobInfo { + struct OtaTagDTO + { + std::string value; + std::string key; + }; std::string utcStartTime; std::string jobStatus; std::string utcEndTime; @@ -43,6 +48,7 @@ namespace AlibabaCloud std::string firmwareId; std::string utcModified; std::string targetSelection; + std::vector tags; std::string jobId; std::string productKey; }; diff --git a/iot/include/alibabacloud/iot/model/ListOTAModuleByProductRequest.h b/iot/include/alibabacloud/iot/model/ListOTAModuleByProductRequest.h new file mode 100644 index 000000000..5b7791007 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListOTAModuleByProductRequest.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_LISTOTAMODULEBYPRODUCTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEBYPRODUCTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListOTAModuleByProductRequest : public RpcServiceRequest + { + + public: + ListOTAModuleByProductRequest(); + ~ListOTAModuleByProductRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + 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 authConfig_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEBYPRODUCTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListOTAModuleByProductResult.h b/iot/include/alibabacloud/iot/model/ListOTAModuleByProductResult.h new file mode 100644 index 000000000..84a0a5da7 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListOTAModuleByProductResult.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_LISTOTAMODULEBYPRODUCTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEBYPRODUCTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListOTAModuleByProductResult : public ServiceResult + { + public: + struct OtaModuleDTO + { + std::string desc; + std::string gmtCreate; + std::string moduleName; + std::string aliasName; + std::string gmtModified; + std::string productKey; + }; + + + ListOTAModuleByProductResult(); + explicit ListOTAModuleByProductResult(const std::string &payload); + ~ListOTAModuleByProductResult(); + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEBYPRODUCTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceRequest.h b/iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceRequest.h new file mode 100644 index 000000000..e371a04aa --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceRequest.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_LISTOTAMODULEVERSIONSBYDEVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEVERSIONSBYDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListOTAModuleVersionsByDeviceRequest : public RpcServiceRequest + { + + public: + ListOTAModuleVersionsByDeviceRequest(); + ~ListOTAModuleVersionsByDeviceRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + int currentPage_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEVERSIONSBYDEVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceResult.h b/iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceResult.h new file mode 100644 index 000000000..cb9d7dcfb --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListOTAModuleVersionsByDeviceResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEVERSIONSBYDEVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEVERSIONSBYDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListOTAModuleVersionsByDeviceResult : public ServiceResult + { + public: + struct SimpleOTAModuleInfo + { + std::string iotId; + std::string moduleVersion; + std::string moduleName; + std::string productKey; + std::string deviceName; + }; + + + ListOTAModuleVersionsByDeviceResult(); + explicit ListOTAModuleVersionsByDeviceResult(const std::string &payload); + ~ListOTAModuleVersionsByDeviceResult(); + int getPageSize()const; + int getPageCount()const; + int getCurrentPage()const; + int getTotal()const; + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageCount_; + int currentPage_; + int total_; + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTOTAMODULEVERSIONSBYDEVICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListOTATaskByJobRequest.h b/iot/include/alibabacloud/iot/model/ListOTATaskByJobRequest.h index 318a33b90..72b6d0f18 100644 --- a/iot/include/alibabacloud/iot/model/ListOTATaskByJobRequest.h +++ b/iot/include/alibabacloud/iot/model/ListOTATaskByJobRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setIotInstanceId(const std::string& iotInstanceId); int getPageSize()const; void setPageSize(int pageSize); + std::vector getDeviceNames()const; + void setDeviceNames(const std::vector& deviceNames); int getCurrentPage()const; void setCurrentPage(int currentPage); std::string getApiProduct()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud std::string taskStatus_; std::string iotInstanceId_; int pageSize_; + std::vector deviceNames_; int currentPage_; std::string apiProduct_; std::string apiRevision_; diff --git a/iot/include/alibabacloud/iot/model/PubRequest.h b/iot/include/alibabacloud/iot/model/PubRequest.h index b4a988456..3a500f547 100644 --- a/iot/include/alibabacloud/iot/model/PubRequest.h +++ b/iot/include/alibabacloud/iot/model/PubRequest.h @@ -30,19 +30,31 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT PubRequest : public RpcServiceRequest { + public: + struct UserProp + { + std::string value; + std::string key; + }; public: PubRequest(); ~PubRequest(); + std::vector getUserProp()const; + void setUserProp(const std::vector& userProp); std::string getMessageContent()const; void setMessageContent(const std::string& messageContent); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); 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); + std::string getResponseTopic()const; + void setResponseTopic(const std::string& responseTopic); std::string getTopicFullName()const; void setTopicFullName(const std::string& topicFullName); std::string getProductKey()const; @@ -53,10 +65,13 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::vector userProp_; std::string messageContent_; std::string accessKeyId_; int qos_; + std::string correlationData_; std::string iotInstanceId_; + std::string responseTopic_; std::string topicFullName_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/PublishThingModelRequest.h b/iot/include/alibabacloud/iot/model/PublishThingModelRequest.h index bf09e9cb6..75e71f62c 100644 --- a/iot/include/alibabacloud/iot/model/PublishThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/PublishThingModelRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud PublishThingModelRequest(); ~PublishThingModelRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getDescription()const; void setDescription(const std::string& description); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getIotInstanceId()const; @@ -53,8 +57,10 @@ namespace AlibabaCloud void setModelVersion(const std::string& modelVersion); private: + std::string realTenantId_; std::string description_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/QueryAppDeviceListRequest.h b/iot/include/alibabacloud/iot/model/QueryAppDeviceListRequest.h index b8ac7ab3a..54626f013 100644 --- a/iot/include/alibabacloud/iot/model/QueryAppDeviceListRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryAppDeviceListRequest.h @@ -41,28 +41,34 @@ namespace AlibabaCloud QueryAppDeviceListRequest(); ~QueryAppDeviceListRequest(); - int getCurrentPage()const; - void setCurrentPage(int currentPage); std::vector getTagList()const; void setTagList(const std::vector& tagList); std::vector getProductKeyList()const; void setProductKeyList(const std::vector& productKeyList); - std::vector getCategoryKeyList()const; - void setCategoryKeyList(const std::vector& categoryKeyList); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); int getPageSize()const; void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::vector getCategoryKeyList()const; + void setCategoryKeyList(const std::vector& categoryKeyList); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); std::string getAppKey()const; void setAppKey(const std::string& appKey); private: - int currentPage_; std::vector tagList_; std::vector productKeyList_; - std::vector categoryKeyList_; std::string iotInstanceId_; int pageSize_; + int currentPage_; + std::vector categoryKeyList_; + std::string apiProduct_; + std::string apiRevision_; std::string appKey_; }; diff --git a/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h b/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h new file mode 100644 index 000000000..ff564debd --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.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_QUERYCLIENTIDSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryClientIdsRequest : public RpcServiceRequest + { + + public: + QueryClientIdsRequest(); + ~QueryClientIdsRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h b/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h new file mode 100644 index 000000000..0965edb4f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryClientIdsResult.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_QUERYCLIENTIDSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryClientIdsResult : public ServiceResult + { + public: + struct Data + { + struct DynamicRegClientId + { + long createTime; + std::string clientId; + }; + std::vector dynamicRegClientIds; + std::string iotId; + }; + + + QueryClientIdsResult(); + explicit QueryClientIdsResult(const std::string &payload); + ~QueryClientIdsResult(); + 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_QUERYCLIENTIDSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceBySQLRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceBySQLRequest.h new file mode 100644 index 000000000..af1581483 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceBySQLRequest.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_QUERYDEVICEBYSQLREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYSQLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceBySQLRequest : public RpcServiceRequest + { + + public: + QueryDeviceBySQLRequest(); + ~QueryDeviceBySQLRequest(); + + std::string getSQL()const; + void setSQL(const std::string& sQL); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string sQL_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYSQLREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceBySQLResult.h b/iot/include/alibabacloud/iot/model/QueryDeviceBySQLResult.h new file mode 100644 index 000000000..6e407104b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceBySQLResult.h @@ -0,0 +1,87 @@ +/* + * 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_QUERYDEVICEBYSQLRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYSQLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceBySQLResult : public ServiceResult + { + public: + struct SimpleDeviceSearchInfo + { + struct SimpleDeviceGroupInfo + { + std::string groupId; + }; + struct TagInfo + { + std::string tagName; + std::string tagValue; + }; + struct OTAModuleInfo + { + std::string moduleName; + std::string firmwareVersion; + }; + std::string status; + std::string iotId; + std::string gmtCreate; + std::string activeTime; + std::vector groups; + std::vector oTAModules; + std::string gmtModified; + std::vector tags; + std::string productKey; + std::string deviceName; + std::string nickname; + }; + + + QueryDeviceBySQLResult(); + explicit QueryDeviceBySQLResult(const std::string &payload); + ~QueryDeviceBySQLResult(); + long getTotalCount()const; + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEBYSQLRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h index 187bf940b..b2435b1d4 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); std::string getDeviceName()const; void setDeviceName(const std::string& deviceName); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: std::string accessKeyId_; @@ -61,6 +63,7 @@ namespace AlibabaCloud std::string apiProduct_; std::string apiRevision_; std::string deviceName_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataRequest.h new file mode 100644 index 000000000..68562db4a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALEVENTDATAREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALEVENTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalEventDataRequest : public RpcServiceRequest + { + + public: + QueryDeviceOriginalEventDataRequest(); + ~QueryDeviceOriginalEventDataRequest(); + + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getStartTime()const; + void setStartTime(long startTime); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getIdentifier()const; + void setIdentifier(const std::string& identifier); + long getEndTime()const; + void setEndTime(long endTime); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + int getAsc()const; + void setAsc(int asc); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string nextPageToken_; + long startTime_; + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + std::string identifier_; + long endTime_; + std::string productKey_; + int asc_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALEVENTDATAREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataResult.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataResult.h new file mode 100644 index 000000000..b16db2eeb --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalEventDataResult.h @@ -0,0 +1,71 @@ +/* + * 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_QUERYDEVICEORIGINALEVENTDATARESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALEVENTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalEventDataResult : public ServiceResult + { + public: + struct Data + { + struct EventInfo + { + std::string identifier; + std::string eventType; + std::string outputData; + std::string time; + std::string name; + }; + bool nextValid; + std::string nextPageToken; + std::vector list; + }; + + + QueryDeviceOriginalEventDataResult(); + explicit QueryDeviceOriginalEventDataResult(const std::string &payload); + ~QueryDeviceOriginalEventDataResult(); + 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_QUERYDEVICEORIGINALEVENTDATARESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataRequest.h new file mode 100644 index 000000000..2346892d9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYDATAREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalPropertyDataRequest : public RpcServiceRequest + { + + public: + QueryDeviceOriginalPropertyDataRequest(); + ~QueryDeviceOriginalPropertyDataRequest(); + + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getStartTime()const; + void setStartTime(long startTime); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getIdentifier()const; + void setIdentifier(const std::string& identifier); + long getEndTime()const; + void setEndTime(long endTime); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + int getAsc()const; + void setAsc(int asc); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string nextPageToken_; + long startTime_; + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + std::string identifier_; + long endTime_; + std::string productKey_; + int asc_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYDATAREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataResult.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataResult.h new file mode 100644 index 000000000..a66454948 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyDataResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYDATARESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalPropertyDataResult : public ServiceResult + { + public: + struct Data + { + struct PropertyInfo + { + std::string value; + std::string time; + }; + bool nextValid; + std::string nextPageToken; + std::vector list; + }; + + + QueryDeviceOriginalPropertyDataResult(); + explicit QueryDeviceOriginalPropertyDataResult(const std::string &payload); + ~QueryDeviceOriginalPropertyDataResult(); + 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_QUERYDEVICEORIGINALPROPERTYDATARESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusRequest.h new file mode 100644 index 000000000..89c23c00e --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusRequest.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_QUERYDEVICEORIGINALPROPERTYSTATUSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalPropertyStatusRequest : public RpcServiceRequest + { + + public: + QueryDeviceOriginalPropertyStatusRequest(); + ~QueryDeviceOriginalPropertyStatusRequest(); + + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + int getAsc()const; + void setAsc(int asc); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string nextPageToken_; + std::string accessKeyId_; + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + std::string productKey_; + int asc_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYSTATUSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusResult.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusResult.h new file mode 100644 index 000000000..33ee68bb9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalPropertyStatusResult.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_QUERYDEVICEORIGINALPROPERTYSTATUSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALPROPERTYSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalPropertyStatusResult : public ServiceResult + { + public: + struct Data + { + struct PropertyStatusDataInfo + { + std::string identifier; + std::string value; + long time; + }; + bool nextValid; + std::string nextPageToken; + std::vector list; + }; + + + QueryDeviceOriginalPropertyStatusResult(); + explicit QueryDeviceOriginalPropertyStatusResult(const std::string &payload); + ~QueryDeviceOriginalPropertyStatusResult(); + 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_QUERYDEVICEORIGINALPROPERTYSTATUSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataRequest.h new file mode 100644 index 000000000..1349721a0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALSERVICEDATAREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALSERVICEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalServiceDataRequest : public RpcServiceRequest + { + + public: + QueryDeviceOriginalServiceDataRequest(); + ~QueryDeviceOriginalServiceDataRequest(); + + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getStartTime()const; + void setStartTime(long startTime); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getIdentifier()const; + void setIdentifier(const std::string& identifier); + long getEndTime()const; + void setEndTime(long endTime); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + int getAsc()const; + void setAsc(int asc); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string nextPageToken_; + long startTime_; + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + std::string identifier_; + long endTime_; + std::string productKey_; + int asc_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALSERVICEDATAREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataResult.h b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataResult.h new file mode 100644 index 000000000..16691501a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceOriginalServiceDataResult.h @@ -0,0 +1,71 @@ +/* + * 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_QUERYDEVICEORIGINALSERVICEDATARESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEORIGINALSERVICEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceOriginalServiceDataResult : public ServiceResult + { + public: + struct Data + { + struct ServiceInfo + { + std::string identifier; + std::string outputData; + std::string time; + std::string inputData; + std::string name; + }; + bool nextValid; + std::string nextPageToken; + std::vector list; + }; + + + QueryDeviceOriginalServiceDataResult(); + explicit QueryDeviceOriginalServiceDataResult(const std::string &payload); + ~QueryDeviceOriginalServiceDataResult(); + 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_QUERYDEVICEORIGINALSERVICEDATARESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDevicePropertyDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDevicePropertyDataRequest.h index 9330d5330..468108359 100644 --- a/iot/include/alibabacloud/iot/model/QueryDevicePropertyDataRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDevicePropertyDataRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud QueryDevicePropertyDataRequest(); ~QueryDevicePropertyDataRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); long getStartTime()const; void setStartTime(long startTime); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotId()const; void setIotId(const std::string& iotId); std::string getIotInstanceId()const; @@ -61,8 +65,10 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; long startTime_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; int pageSize_; diff --git a/iot/include/alibabacloud/iot/model/QueryDevicePropertyStatusRequest.h b/iot/include/alibabacloud/iot/model/QueryDevicePropertyStatusRequest.h index dd1d36c47..259ceedbc 100644 --- a/iot/include/alibabacloud/iot/model/QueryDevicePropertyStatusRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDevicePropertyStatusRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDevicePropertyStatusRequest(); ~QueryDevicePropertyStatusRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotId()const; void setIotId(const std::string& iotId); std::string getIotInstanceId()const; @@ -49,15 +53,20 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); std::string getDeviceName()const; void setDeviceName(const std::string& deviceName); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; std::string deviceName_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/QueryOTAJobResult.h b/iot/include/alibabacloud/iot/model/QueryOTAJobResult.h index 61b533b30..8908ed0bc 100644 --- a/iot/include/alibabacloud/iot/model/QueryOTAJobResult.h +++ b/iot/include/alibabacloud/iot/model/QueryOTAJobResult.h @@ -34,26 +34,35 @@ namespace AlibabaCloud public: struct Data { - std::string utcStartTime; + struct OtaTagDTO + { + std::string value; + std::string key; + }; std::string utcEndTime; - std::vector srcVersions; + int overwriteMode; std::string firmwareId; std::string name; std::string jobStatus; + int retryCount; + std::string selectionType; + int dynamicMode; + std::string destVersion; + std::string targetSelection; + std::vector tags; + std::string jobId; + std::string productKey; + std::string utcStartTime; + std::string utcScheduleFinishTime; + std::vector srcVersions; std::string jobDesc; std::string jobType; std::string utcCreate; - int retryCount; int maximumPerMinute; - std::string selectionType; std::string utcModified; int retryInterval; - std::string destVersion; - std::string targetSelection; std::string utcScheduleTime; std::string grayPercent; - std::string jobId; - std::string productKey; int timeoutInMinutes; }; diff --git a/iot/include/alibabacloud/iot/model/QuerySubscribeRelationResult.h b/iot/include/alibabacloud/iot/model/QuerySubscribeRelationResult.h index 996c2efab..afc88b6db 100644 --- a/iot/include/alibabacloud/iot/model/QuerySubscribeRelationResult.h +++ b/iot/include/alibabacloud/iot/model/QuerySubscribeRelationResult.h @@ -41,14 +41,17 @@ namespace AlibabaCloud bool getDeviceDataFlag()const; bool getDeviceTopoLifeCycleFlag()const; bool getDeviceStatusChangeFlag()const; + bool getDeviceTagFlag()const; std::vector getConsumerGroupIds()const; std::string getCode()const; bool getSuccess()const; bool getThingHistoryFlag()const; std::string getType()const; bool getFoundDeviceListFlag()const; + bool getOtaJobFlag()const; bool getOtaEventFlag()const; std::string getErrorMessage()const; + bool getOtaVersionFlag()const; std::string getProductKey()const; std::string getMnsConfiguration()const; @@ -59,14 +62,17 @@ namespace AlibabaCloud bool deviceDataFlag_; bool deviceTopoLifeCycleFlag_; bool deviceStatusChangeFlag_; + bool deviceTagFlag_; std::vector consumerGroupIds_; std::string code_; bool success_; bool thingHistoryFlag_; std::string type_; bool foundDeviceListFlag_; + bool otaJobFlag_; bool otaEventFlag_; std::string errorMessage_; + bool otaVersionFlag_; std::string productKey_; std::string mnsConfiguration_; diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedRequest.h b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedRequest.h new file mode 100644 index 000000000..c92853c87 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedRequest.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_QUERYTHINGMODELEXTENDCONFIGPUBLISHEDREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELEXTENDCONFIGPUBLISHEDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryThingModelExtendConfigPublishedRequest : public RpcServiceRequest + { + + public: + QueryThingModelExtendConfigPublishedRequest(); + ~QueryThingModelExtendConfigPublishedRequest(); + + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); + + private: + std::string realTenantId_; + std::string realTripartiteKey_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string modelVersion_; + std::string functionBlockId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELEXTENDCONFIGPUBLISHEDREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedResult.h b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedResult.h new file mode 100644 index 000000000..798c5087d --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigPublishedResult.h @@ -0,0 +1,61 @@ +/* + * 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_QUERYTHINGMODELEXTENDCONFIGPUBLISHEDRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELEXTENDCONFIGPUBLISHEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryThingModelExtendConfigPublishedResult : public ServiceResult + { + public: + struct Data + { + std::string configuration; + }; + + + QueryThingModelExtendConfigPublishedResult(); + explicit QueryThingModelExtendConfigPublishedResult(const std::string &payload); + ~QueryThingModelExtendConfigPublishedResult(); + 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_QUERYTHINGMODELEXTENDCONFIGPUBLISHEDRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigRequest.h b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigRequest.h new file mode 100644 index 000000000..c7387541c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigRequest.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_QUERYTHINGMODELEXTENDCONFIGREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELEXTENDCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryThingModelExtendConfigRequest : public RpcServiceRequest + { + + public: + QueryThingModelExtendConfigRequest(); + ~QueryThingModelExtendConfigRequest(); + + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); + + private: + std::string realTenantId_; + std::string realTripartiteKey_; + std::string resourceGroupId_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string modelVersion_; + std::string functionBlockId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELEXTENDCONFIGREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigResult.h b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigResult.h new file mode 100644 index 000000000..df8c856d6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryThingModelExtendConfigResult.h @@ -0,0 +1,61 @@ +/* + * 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_QUERYTHINGMODELEXTENDCONFIGRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELEXTENDCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryThingModelExtendConfigResult : public ServiceResult + { + public: + struct Data + { + std::string configuration; + }; + + + QueryThingModelExtendConfigResult(); + explicit QueryThingModelExtendConfigResult(const std::string &payload); + ~QueryThingModelExtendConfigResult(); + 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_QUERYTHINGMODELEXTENDCONFIGRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelPublishedRequest.h b/iot/include/alibabacloud/iot/model/QueryThingModelPublishedRequest.h new file mode 100644 index 000000000..c20a80305 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryThingModelPublishedRequest.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_QUERYTHINGMODELPUBLISHEDREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELPUBLISHEDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryThingModelPublishedRequest : public RpcServiceRequest + { + + public: + QueryThingModelPublishedRequest(); + ~QueryThingModelPublishedRequest(); + + 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 getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getModelVersion()const; + void setModelVersion(const std::string& modelVersion); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); + + private: + std::string realTenantId_; + std::string accessKeyId_; + std::string realTripartiteKey_; + std::string resourceGroupId_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string modelVersion_; + std::string functionBlockId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELPUBLISHEDREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelPublishedResult.h b/iot/include/alibabacloud/iot/model/QueryThingModelPublishedResult.h new file mode 100644 index 000000000..67a062517 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryThingModelPublishedResult.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_QUERYTHINGMODELPUBLISHEDRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELPUBLISHEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryThingModelPublishedResult : public ServiceResult + { + public: + struct Data + { + std::string thingModelJson; + }; + + + QueryThingModelPublishedResult(); + explicit QueryThingModelPublishedResult(const std::string &payload); + ~QueryThingModelPublishedResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getProductKey()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + std::string productKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTHINGMODELPUBLISHEDRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h b/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h index f04a1c228..85c579eca 100644 --- a/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryThingModelRequest(); ~QueryThingModelRequest(); + 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 getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getIotInstanceId()const; @@ -49,15 +53,20 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); std::string getModelVersion()const; void setModelVersion(const std::string& modelVersion); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; std::string modelVersion_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/RRpcResult.h b/iot/include/alibabacloud/iot/model/RRpcResult.h index 5874a5104..5775b10d8 100644 --- a/iot/include/alibabacloud/iot/model/RRpcResult.h +++ b/iot/include/alibabacloud/iot/model/RRpcResult.h @@ -52,7 +52,7 @@ namespace AlibabaCloud std::string errorMessage_; std::string code_; bool success_; - unsigned long long messageId_; + long messageId_; }; } diff --git a/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h b/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h index 3d67f59b4..fb5f28ccb 100644 --- a/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getLoraNodeType()const; + void setLoraNodeType(const std::string& loraNodeType); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getNickname()const; @@ -47,23 +49,30 @@ namespace AlibabaCloud void setProductKey(const std::string& productKey); std::string getDevEui()const; void setDevEui(const std::string& devEui); + std::string getJoinEui()const; + void setJoinEui(const std::string& joinEui); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); std::string getDeviceName()const; void setDeviceName(const std::string& deviceName); + std::string getAppKey()const; + void setAppKey(const std::string& appKey); private: std::string accessKeyId_; + std::string loraNodeType_; std::string iotInstanceId_; std::string nickname_; std::string pinCode_; std::string productKey_; std::string devEui_; + std::string joinEui_; std::string apiProduct_; std::string apiRevision_; std::string deviceName_; + std::string appKey_; }; } diff --git a/iot/include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h b/iot/include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h index ad8ef7152..751c6ca80 100644 --- a/iot/include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h +++ b/iot/include/alibabacloud/iot/model/SetDeviceDesiredPropertyResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud SetDeviceDesiredPropertyResult(); explicit SetDeviceDesiredPropertyResult(const std::string &payload); ~SetDeviceDesiredPropertyResult(); + std::string getMessageArguments()const; Data getData()const; std::string getErrorMessage()const; std::string getCode()const; @@ -50,6 +51,7 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::string messageArguments_; Data data_; std::string errorMessage_; std::string code_; diff --git a/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h new file mode 100644 index 000000000..7018064ce --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.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_SPEECHBYCOMBINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SPEECHBYCOMBINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SpeechByCombinationRequest : public RpcServiceRequest + { + + public: + SpeechByCombinationRequest(); + ~SpeechByCombinationRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::vector getCombinationList()const; + void setCombinationList(const std::vector& combinationList); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string iotId_; + std::vector combinationList_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SPEECHBYCOMBINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SpeechByCombinationResult.h b/iot/include/alibabacloud/iot/model/SpeechByCombinationResult.h new file mode 100644 index 000000000..febd79b01 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SpeechByCombinationResult.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_SPEECHBYCOMBINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SPEECHBYCOMBINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SpeechByCombinationResult : public ServiceResult + { + public: + + + SpeechByCombinationResult(); + explicit SpeechByCombinationResult(const std::string &payload); + ~SpeechByCombinationResult(); + 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_SPEECHBYCOMBINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h b/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h new file mode 100644 index 000000000..22058c76a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/TransformClientIdRequest.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_TRANSFORMCLIENTIDREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT TransformClientIdRequest : public RpcServiceRequest + { + + public: + TransformClientIdRequest(); + ~TransformClientIdRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getClientId()const; + void setClientId(const std::string& clientId); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string clientId_; + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TransformClientIdResult.h b/iot/include/alibabacloud/iot/model/TransformClientIdResult.h new file mode 100644 index 000000000..adfc7091b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/TransformClientIdResult.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_TRANSFORMCLIENTIDRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT TransformClientIdResult : public ServiceResult + { + public: + + + TransformClientIdResult(); + explicit TransformClientIdResult(const std::string &payload); + ~TransformClientIdResult(); + 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_TRANSFORMCLIENTIDRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceRequest.h b/iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceRequest.h new file mode 100644 index 000000000..00900928f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceRequest.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_UNBINDROLEFROMEDGEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UNBINDROLEFROMEDGEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UnbindRoleFromEdgeInstanceRequest : public RpcServiceRequest + { + + public: + UnbindRoleFromEdgeInstanceRequest(); + ~UnbindRoleFromEdgeInstanceRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string accessKeyId_; + std::string iotInstanceId_; + std::string instanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UNBINDROLEFROMEDGEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceResult.h b/iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceResult.h new file mode 100644 index 000000000..261b47930 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UnbindRoleFromEdgeInstanceResult.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_UNBINDROLEFROMEDGEINSTANCERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UNBINDROLEFROMEDGEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UnbindRoleFromEdgeInstanceResult : public ServiceResult + { + public: + + + UnbindRoleFromEdgeInstanceResult(); + explicit UnbindRoleFromEdgeInstanceResult(const std::string &payload); + ~UnbindRoleFromEdgeInstanceResult(); + 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_UNBINDROLEFROMEDGEINSTANCERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateDeviceShadowRequest.h b/iot/include/alibabacloud/iot/model/UpdateDeviceShadowRequest.h index 2b73c6380..37c177224 100644 --- a/iot/include/alibabacloud/iot/model/UpdateDeviceShadowRequest.h +++ b/iot/include/alibabacloud/iot/model/UpdateDeviceShadowRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; void setProductKey(const std::string& productKey); + bool getDeltaUpdate()const; + void setDeltaUpdate(bool deltaUpdate); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud std::string accessKeyId_; std::string iotInstanceId_; std::string productKey_; + bool deltaUpdate_; std::string apiProduct_; std::string apiRevision_; std::string deviceName_; diff --git a/iot/include/alibabacloud/iot/model/UpdateOTAModuleRequest.h b/iot/include/alibabacloud/iot/model/UpdateOTAModuleRequest.h new file mode 100644 index 000000000..eba7a9500 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateOTAModuleRequest.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_UPDATEOTAMODULEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEOTAMODULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateOTAModuleRequest : public RpcServiceRequest + { + + public: + UpdateOTAModuleRequest(); + ~UpdateOTAModuleRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getModuleName()const; + void setModuleName(const std::string& moduleName); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getAliasName()const; + void setAliasName(const std::string& aliasName); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDesc()const; + void setDesc(const std::string& desc); + + private: + std::string iotInstanceId_; + std::string moduleName_; + std::string productKey_; + std::string aliasName_; + std::string apiProduct_; + std::string apiRevision_; + std::string desc_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEOTAMODULEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateOTAModuleResult.h b/iot/include/alibabacloud/iot/model/UpdateOTAModuleResult.h new file mode 100644 index 000000000..9fc5779c3 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateOTAModuleResult.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_UPDATEOTAMODULERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEOTAMODULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateOTAModuleResult : public ServiceResult + { + public: + + + UpdateOTAModuleResult(); + explicit UpdateOTAModuleResult(const std::string &payload); + ~UpdateOTAModuleResult(); + 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_UPDATEOTAMODULERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateSubscribeRelationRequest.h b/iot/include/alibabacloud/iot/model/UpdateSubscribeRelationRequest.h index d43768eef..795c3dc43 100644 --- a/iot/include/alibabacloud/iot/model/UpdateSubscribeRelationRequest.h +++ b/iot/include/alibabacloud/iot/model/UpdateSubscribeRelationRequest.h @@ -47,6 +47,10 @@ namespace AlibabaCloud void setIotInstanceId(const std::string& iotInstanceId); bool getDeviceStatusChangeFlag()const; void setDeviceStatusChangeFlag(bool deviceStatusChangeFlag); + bool getOtaVersionFlag()const; + void setOtaVersionFlag(bool otaVersionFlag); + bool getDeviceTagFlag()const; + void setDeviceTagFlag(bool deviceTagFlag); std::vector getConsumerGroupIds()const; void setConsumerGroupIds(const std::vector& consumerGroupIds); std::string getProductKey()const; @@ -55,6 +59,8 @@ namespace AlibabaCloud void setThingHistoryFlag(bool thingHistoryFlag); bool getFoundDeviceListFlag()const; void setFoundDeviceListFlag(bool foundDeviceListFlag); + bool getOtaJobFlag()const; + void setOtaJobFlag(bool otaJobFlag); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); bool getDeviceDataFlag()const; @@ -71,10 +77,13 @@ namespace AlibabaCloud bool deviceLifeCycleFlag_; std::string iotInstanceId_; bool deviceStatusChangeFlag_; + bool otaVersionFlag_; + bool deviceTagFlag_; std::vector consumerGroupIds_; std::string productKey_; bool thingHistoryFlag_; bool foundDeviceListFlag_; + bool otaJobFlag_; std::string apiProduct_; bool deviceDataFlag_; std::string apiRevision_; diff --git a/iot/include/alibabacloud/iot/model/UpdateThingModelRequest.h b/iot/include/alibabacloud/iot/model/UpdateThingModelRequest.h index 8b3a1786a..4752d4464 100644 --- a/iot/include/alibabacloud/iot/model/UpdateThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/UpdateThingModelRequest.h @@ -35,10 +35,16 @@ namespace AlibabaCloud UpdateThingModelRequest(); ~UpdateThingModelRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getIdentifier()const; void setIdentifier(const std::string& identifier); + std::string getFunctionBlockName()const; + void setFunctionBlockName(const std::string& functionBlockName); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -47,14 +53,20 @@ namespace AlibabaCloud void setThingModelJson(const std::string& thingModelJson); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); + std::string getFunctionBlockId()const; + void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string identifier_; + std::string functionBlockName_; std::string productKey_; std::string apiProduct_; std::string thingModelJson_; std::string apiRevision_; + std::string functionBlockId_; }; } diff --git a/iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigRequest.h b/iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigRequest.h new file mode 100644 index 000000000..4984f4d69 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigRequest.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_UPDATETHINGMODELVALIDATIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATETHINGMODELVALIDATIONCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateThingModelValidationConfigRequest : public RpcServiceRequest + { + + public: + UpdateThingModelValidationConfigRequest(); + ~UpdateThingModelValidationConfigRequest(); + + int getValidateType()const; + void setValidateType(int validateType); + 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: + int validateType_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATETHINGMODELVALIDATIONCONFIGREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigResult.h b/iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigResult.h new file mode 100644 index 000000000..b5260f3e4 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateThingModelValidationConfigResult.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_UPDATETHINGMODELVALIDATIONCONFIGRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATETHINGMODELVALIDATIONCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateThingModelValidationConfigResult : public ServiceResult + { + public: + + + UpdateThingModelValidationConfigResult(); + explicit UpdateThingModelValidationConfigResult(const std::string &payload); + ~UpdateThingModelValidationConfigResult(); + 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_UPDATETHINGMODELVALIDATIONCONFIGRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateThingScriptRequest.h b/iot/include/alibabacloud/iot/model/UpdateThingScriptRequest.h new file mode 100644 index 000000000..4464f2dfe --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateThingScriptRequest.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_UPDATETHINGSCRIPTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATETHINGSCRIPTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateThingScriptRequest : public RpcServiceRequest + { + + public: + UpdateThingScriptRequest(); + ~UpdateThingScriptRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getScriptType()const; + void setScriptType(const std::string& scriptType); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getScriptContent()const; + void setScriptContent(const std::string& scriptContent); + + private: + std::string iotInstanceId_; + std::string scriptType_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string scriptContent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATETHINGSCRIPTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateThingScriptResult.h b/iot/include/alibabacloud/iot/model/UpdateThingScriptResult.h new file mode 100644 index 000000000..356d08c3f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateThingScriptResult.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_UPDATETHINGSCRIPTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATETHINGSCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateThingScriptResult : public ServiceResult + { + public: + + + UpdateThingScriptResult(); + explicit UpdateThingScriptResult(const std::string &payload); + ~UpdateThingScriptResult(); + 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_UPDATETHINGSCRIPTRESULT_H_ \ No newline at end of file diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index 46bccbd05..30a852b29 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -591,6 +591,42 @@ IotClient::BatchGetEdgeInstanceDriverConfigsOutcomeCallable IotClient::batchGetE return task->get_future(); } +IotClient::BatchPubOutcome IotClient::batchPub(const BatchPubRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchPubOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchPubOutcome(BatchPubResult(outcome.result())); + else + return BatchPubOutcome(outcome.error()); +} + +void IotClient::batchPubAsync(const BatchPubRequest& request, const BatchPubAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchPub(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchPubOutcomeCallable IotClient::batchPubCallable(const BatchPubRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchPub(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BatchQueryDeviceDetailOutcome IotClient::batchQueryDeviceDetail(const BatchQueryDeviceDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +987,42 @@ IotClient::BindGatewayToEdgeInstanceOutcomeCallable IotClient::bindGatewayToEdge return task->get_future(); } +IotClient::BindRoleToEdgeInstanceOutcome IotClient::bindRoleToEdgeInstance(const BindRoleToEdgeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindRoleToEdgeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindRoleToEdgeInstanceOutcome(BindRoleToEdgeInstanceResult(outcome.result())); + else + return BindRoleToEdgeInstanceOutcome(outcome.error()); +} + +void IotClient::bindRoleToEdgeInstanceAsync(const BindRoleToEdgeInstanceRequest& request, const BindRoleToEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindRoleToEdgeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BindRoleToEdgeInstanceOutcomeCallable IotClient::bindRoleToEdgeInstanceCallable(const BindRoleToEdgeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindRoleToEdgeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BindSceneRuleToEdgeInstanceOutcome IotClient::bindSceneRuleToEdgeInstance(const BindSceneRuleToEdgeInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +1743,42 @@ IotClient::CreateOTAFirmwareOutcomeCallable IotClient::createOTAFirmwareCallable return task->get_future(); } +IotClient::CreateOTAModuleOutcome IotClient::createOTAModule(const CreateOTAModuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOTAModuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOTAModuleOutcome(CreateOTAModuleResult(outcome.result())); + else + return CreateOTAModuleOutcome(outcome.error()); +} + +void IotClient::createOTAModuleAsync(const CreateOTAModuleRequest& request, const CreateOTAModuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOTAModule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateOTAModuleOutcomeCallable IotClient::createOTAModuleCallable(const CreateOTAModuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOTAModule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateOTAStaticUpgradeJobOutcome IotClient::createOTAStaticUpgradeJob(const CreateOTAStaticUpgradeJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2139,42 @@ IotClient::CreateThingModelOutcomeCallable IotClient::createThingModelCallable(c return task->get_future(); } +IotClient::CreateThingScriptOutcome IotClient::createThingScript(const CreateThingScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateThingScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateThingScriptOutcome(CreateThingScriptResult(outcome.result())); + else + return CreateThingScriptOutcome(outcome.error()); +} + +void IotClient::createThingScriptAsync(const CreateThingScriptRequest& request, const CreateThingScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createThingScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateThingScriptOutcomeCallable IotClient::createThingScriptCallable(const CreateThingScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createThingScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateTopicRouteTableOutcome IotClient::createTopicRouteTable(const CreateTopicRouteTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,6 +2211,42 @@ IotClient::CreateTopicRouteTableOutcomeCallable IotClient::createTopicRouteTable return task->get_future(); } +IotClient::DeleteClientIdsOutcome IotClient::deleteClientIds(const DeleteClientIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClientIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClientIdsOutcome(DeleteClientIdsResult(outcome.result())); + else + return DeleteClientIdsOutcome(outcome.error()); +} + +void IotClient::deleteClientIdsAsync(const DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteClientIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteClientIdsOutcomeCallable IotClient::deleteClientIdsCallable(const DeleteClientIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteClientIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteConsumerGroupOutcome IotClient::deleteConsumerGroup(const DeleteConsumerGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +2607,42 @@ IotClient::DeleteOTAFirmwareOutcomeCallable IotClient::deleteOTAFirmwareCallable return task->get_future(); } +IotClient::DeleteOTAModuleOutcome IotClient::deleteOTAModule(const DeleteOTAModuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOTAModuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOTAModuleOutcome(DeleteOTAModuleResult(outcome.result())); + else + return DeleteOTAModuleOutcome(outcome.error()); +} + +void IotClient::deleteOTAModuleAsync(const DeleteOTAModuleRequest& request, const DeleteOTAModuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOTAModule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteOTAModuleOutcomeCallable IotClient::deleteOTAModuleCallable(const DeleteOTAModuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOTAModule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteProductOutcome IotClient::deleteProduct(const DeleteProductRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2895,6 +3111,42 @@ IotClient::EnableThingOutcomeCallable IotClient::enableThingCallable(const Enabl return task->get_future(); } +IotClient::GenerateDeviceNameListURLOutcome IotClient::generateDeviceNameListURL(const GenerateDeviceNameListURLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateDeviceNameListURLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateDeviceNameListURLOutcome(GenerateDeviceNameListURLResult(outcome.result())); + else + return GenerateDeviceNameListURLOutcome(outcome.error()); +} + +void IotClient::generateDeviceNameListURLAsync(const GenerateDeviceNameListURLRequest& request, const GenerateDeviceNameListURLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateDeviceNameListURL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GenerateDeviceNameListURLOutcomeCallable IotClient::generateDeviceNameListURLCallable(const GenerateDeviceNameListURLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateDeviceNameListURL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GenerateOTAUploadURLOutcome IotClient::generateOTAUploadURL(const GenerateOTAUploadURLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3399,6 +3651,78 @@ IotClient::GetThingModelTslOutcomeCallable IotClient::getThingModelTslCallable(c return task->get_future(); } +IotClient::GetThingModelTslPublishedOutcome IotClient::getThingModelTslPublished(const GetThingModelTslPublishedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetThingModelTslPublishedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetThingModelTslPublishedOutcome(GetThingModelTslPublishedResult(outcome.result())); + else + return GetThingModelTslPublishedOutcome(outcome.error()); +} + +void IotClient::getThingModelTslPublishedAsync(const GetThingModelTslPublishedRequest& request, const GetThingModelTslPublishedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getThingModelTslPublished(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetThingModelTslPublishedOutcomeCallable IotClient::getThingModelTslPublishedCallable(const GetThingModelTslPublishedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getThingModelTslPublished(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::GetThingScriptOutcome IotClient::getThingScript(const GetThingScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetThingScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetThingScriptOutcome(GetThingScriptResult(outcome.result())); + else + return GetThingScriptOutcome(outcome.error()); +} + +void IotClient::getThingScriptAsync(const GetThingScriptRequest& request, const GetThingScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getThingScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetThingScriptOutcomeCallable IotClient::getThingScriptCallable(const GetThingScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getThingScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetThingTemplateOutcome IotClient::getThingTemplate(const GetThingTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,6 +4047,78 @@ IotClient::ListOTAJobByFirmwareOutcomeCallable IotClient::listOTAJobByFirmwareCa return task->get_future(); } +IotClient::ListOTAModuleByProductOutcome IotClient::listOTAModuleByProduct(const ListOTAModuleByProductRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOTAModuleByProductOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOTAModuleByProductOutcome(ListOTAModuleByProductResult(outcome.result())); + else + return ListOTAModuleByProductOutcome(outcome.error()); +} + +void IotClient::listOTAModuleByProductAsync(const ListOTAModuleByProductRequest& request, const ListOTAModuleByProductAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOTAModuleByProduct(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListOTAModuleByProductOutcomeCallable IotClient::listOTAModuleByProductCallable(const ListOTAModuleByProductRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOTAModuleByProduct(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::ListOTAModuleVersionsByDeviceOutcome IotClient::listOTAModuleVersionsByDevice(const ListOTAModuleVersionsByDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOTAModuleVersionsByDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOTAModuleVersionsByDeviceOutcome(ListOTAModuleVersionsByDeviceResult(outcome.result())); + else + return ListOTAModuleVersionsByDeviceOutcome(outcome.error()); +} + +void IotClient::listOTAModuleVersionsByDeviceAsync(const ListOTAModuleVersionsByDeviceRequest& request, const ListOTAModuleVersionsByDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOTAModuleVersionsByDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListOTAModuleVersionsByDeviceOutcomeCallable IotClient::listOTAModuleVersionsByDeviceCallable(const ListOTAModuleVersionsByDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOTAModuleVersionsByDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ListOTATaskByJobOutcome IotClient::listOTATaskByJob(const ListOTATaskByJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4227,6 +4623,42 @@ IotClient::QueryCertUrlByApplyIdOutcomeCallable IotClient::queryCertUrlByApplyId return task->get_future(); } +IotClient::QueryClientIdsOutcome IotClient::queryClientIds(const QueryClientIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryClientIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryClientIdsOutcome(QueryClientIdsResult(outcome.result())); + else + return QueryClientIdsOutcome(outcome.error()); +} + +void IotClient::queryClientIdsAsync(const QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryClientIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryClientIdsOutcomeCallable IotClient::queryClientIdsCallable(const QueryClientIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryClientIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryConsumerGroupByGroupIdOutcome IotClient::queryConsumerGroupByGroupId(const QueryConsumerGroupByGroupIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,6 +4839,42 @@ IotClient::QueryDeviceOutcomeCallable IotClient::queryDeviceCallable(const Query return task->get_future(); } +IotClient::QueryDeviceBySQLOutcome IotClient::queryDeviceBySQL(const QueryDeviceBySQLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceBySQLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceBySQLOutcome(QueryDeviceBySQLResult(outcome.result())); + else + return QueryDeviceBySQLOutcome(outcome.error()); +} + +void IotClient::queryDeviceBySQLAsync(const QueryDeviceBySQLRequest& request, const QueryDeviceBySQLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceBySQL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceBySQLOutcomeCallable IotClient::queryDeviceBySQLCallable(const QueryDeviceBySQLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceBySQL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceByStatusOutcome IotClient::queryDeviceByStatus(const QueryDeviceByStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +5379,150 @@ IotClient::QueryDeviceListByDeviceGroupOutcomeCallable IotClient::queryDeviceLis return task->get_future(); } +IotClient::QueryDeviceOriginalEventDataOutcome IotClient::queryDeviceOriginalEventData(const QueryDeviceOriginalEventDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceOriginalEventDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceOriginalEventDataOutcome(QueryDeviceOriginalEventDataResult(outcome.result())); + else + return QueryDeviceOriginalEventDataOutcome(outcome.error()); +} + +void IotClient::queryDeviceOriginalEventDataAsync(const QueryDeviceOriginalEventDataRequest& request, const QueryDeviceOriginalEventDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceOriginalEventData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceOriginalEventDataOutcomeCallable IotClient::queryDeviceOriginalEventDataCallable(const QueryDeviceOriginalEventDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceOriginalEventData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryDeviceOriginalPropertyDataOutcome IotClient::queryDeviceOriginalPropertyData(const QueryDeviceOriginalPropertyDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceOriginalPropertyDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceOriginalPropertyDataOutcome(QueryDeviceOriginalPropertyDataResult(outcome.result())); + else + return QueryDeviceOriginalPropertyDataOutcome(outcome.error()); +} + +void IotClient::queryDeviceOriginalPropertyDataAsync(const QueryDeviceOriginalPropertyDataRequest& request, const QueryDeviceOriginalPropertyDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceOriginalPropertyData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceOriginalPropertyDataOutcomeCallable IotClient::queryDeviceOriginalPropertyDataCallable(const QueryDeviceOriginalPropertyDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceOriginalPropertyData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryDeviceOriginalPropertyStatusOutcome IotClient::queryDeviceOriginalPropertyStatus(const QueryDeviceOriginalPropertyStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceOriginalPropertyStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceOriginalPropertyStatusOutcome(QueryDeviceOriginalPropertyStatusResult(outcome.result())); + else + return QueryDeviceOriginalPropertyStatusOutcome(outcome.error()); +} + +void IotClient::queryDeviceOriginalPropertyStatusAsync(const QueryDeviceOriginalPropertyStatusRequest& request, const QueryDeviceOriginalPropertyStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceOriginalPropertyStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceOriginalPropertyStatusOutcomeCallable IotClient::queryDeviceOriginalPropertyStatusCallable(const QueryDeviceOriginalPropertyStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceOriginalPropertyStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryDeviceOriginalServiceDataOutcome IotClient::queryDeviceOriginalServiceData(const QueryDeviceOriginalServiceDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceOriginalServiceDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceOriginalServiceDataOutcome(QueryDeviceOriginalServiceDataResult(outcome.result())); + else + return QueryDeviceOriginalServiceDataOutcome(outcome.error()); +} + +void IotClient::queryDeviceOriginalServiceDataAsync(const QueryDeviceOriginalServiceDataRequest& request, const QueryDeviceOriginalServiceDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceOriginalServiceData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceOriginalServiceDataOutcomeCallable IotClient::queryDeviceOriginalServiceDataCallable(const QueryDeviceOriginalServiceDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceOriginalServiceData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDevicePropOutcome IotClient::queryDeviceProp(const QueryDevicePropRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5955,6 +6567,114 @@ IotClient::QueryThingModelOutcomeCallable IotClient::queryThingModelCallable(con return task->get_future(); } +IotClient::QueryThingModelExtendConfigOutcome IotClient::queryThingModelExtendConfig(const QueryThingModelExtendConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryThingModelExtendConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryThingModelExtendConfigOutcome(QueryThingModelExtendConfigResult(outcome.result())); + else + return QueryThingModelExtendConfigOutcome(outcome.error()); +} + +void IotClient::queryThingModelExtendConfigAsync(const QueryThingModelExtendConfigRequest& request, const QueryThingModelExtendConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryThingModelExtendConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryThingModelExtendConfigOutcomeCallable IotClient::queryThingModelExtendConfigCallable(const QueryThingModelExtendConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryThingModelExtendConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryThingModelExtendConfigPublishedOutcome IotClient::queryThingModelExtendConfigPublished(const QueryThingModelExtendConfigPublishedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryThingModelExtendConfigPublishedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryThingModelExtendConfigPublishedOutcome(QueryThingModelExtendConfigPublishedResult(outcome.result())); + else + return QueryThingModelExtendConfigPublishedOutcome(outcome.error()); +} + +void IotClient::queryThingModelExtendConfigPublishedAsync(const QueryThingModelExtendConfigPublishedRequest& request, const QueryThingModelExtendConfigPublishedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryThingModelExtendConfigPublished(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryThingModelExtendConfigPublishedOutcomeCallable IotClient::queryThingModelExtendConfigPublishedCallable(const QueryThingModelExtendConfigPublishedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryThingModelExtendConfigPublished(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryThingModelPublishedOutcome IotClient::queryThingModelPublished(const QueryThingModelPublishedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryThingModelPublishedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryThingModelPublishedOutcome(QueryThingModelPublishedResult(outcome.result())); + else + return QueryThingModelPublishedOutcome(outcome.error()); +} + +void IotClient::queryThingModelPublishedAsync(const QueryThingModelPublishedRequest& request, const QueryThingModelPublishedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryThingModelPublished(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryThingModelPublishedOutcomeCallable IotClient::queryThingModelPublishedCallable(const QueryThingModelPublishedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryThingModelPublished(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryTopicReverseRouteTableOutcome IotClient::queryTopicReverseRouteTable(const QueryTopicReverseRouteTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6531,6 +7251,42 @@ IotClient::SetProductCertInfoOutcomeCallable IotClient::setProductCertInfoCallab return task->get_future(); } +IotClient::SpeechByCombinationOutcome IotClient::speechByCombination(const SpeechByCombinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SpeechByCombinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SpeechByCombinationOutcome(SpeechByCombinationResult(outcome.result())); + else + return SpeechByCombinationOutcome(outcome.error()); +} + +void IotClient::speechByCombinationAsync(const SpeechByCombinationRequest& request, const SpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, speechByCombination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::SpeechByCombinationOutcomeCallable IotClient::speechByCombinationCallable(const SpeechByCombinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->speechByCombination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::StartRuleOutcome IotClient::startRule(const StartRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6603,6 +7359,42 @@ IotClient::StopRuleOutcomeCallable IotClient::stopRuleCallable(const StopRuleReq return task->get_future(); } +IotClient::TransformClientIdOutcome IotClient::transformClientId(const TransformClientIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransformClientIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransformClientIdOutcome(TransformClientIdResult(outcome.result())); + else + return TransformClientIdOutcome(outcome.error()); +} + +void IotClient::transformClientIdAsync(const TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transformClientId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::TransformClientIdOutcomeCallable IotClient::transformClientIdCallable(const TransformClientIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transformClientId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::TriggerSceneRuleOutcome IotClient::triggerSceneRule(const TriggerSceneRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6711,6 +7503,42 @@ IotClient::UnbindDriverFromEdgeInstanceOutcomeCallable IotClient::unbindDriverFr return task->get_future(); } +IotClient::UnbindRoleFromEdgeInstanceOutcome IotClient::unbindRoleFromEdgeInstance(const UnbindRoleFromEdgeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindRoleFromEdgeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindRoleFromEdgeInstanceOutcome(UnbindRoleFromEdgeInstanceResult(outcome.result())); + else + return UnbindRoleFromEdgeInstanceOutcome(outcome.error()); +} + +void IotClient::unbindRoleFromEdgeInstanceAsync(const UnbindRoleFromEdgeInstanceRequest& request, const UnbindRoleFromEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindRoleFromEdgeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UnbindRoleFromEdgeInstanceOutcomeCallable IotClient::unbindRoleFromEdgeInstanceCallable(const UnbindRoleFromEdgeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindRoleFromEdgeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UnbindSceneRuleFromEdgeInstanceOutcome IotClient::unbindSceneRuleFromEdgeInstance(const UnbindSceneRuleFromEdgeInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6963,6 +7791,42 @@ IotClient::UpdateEdgeInstanceChannelOutcomeCallable IotClient::updateEdgeInstanc return task->get_future(); } +IotClient::UpdateOTAModuleOutcome IotClient::updateOTAModule(const UpdateOTAModuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOTAModuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOTAModuleOutcome(UpdateOTAModuleResult(outcome.result())); + else + return UpdateOTAModuleOutcome(outcome.error()); +} + +void IotClient::updateOTAModuleAsync(const UpdateOTAModuleRequest& request, const UpdateOTAModuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateOTAModule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateOTAModuleOutcomeCallable IotClient::updateOTAModuleCallable(const UpdateOTAModuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateOTAModule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateProductOutcome IotClient::updateProduct(const UpdateProductRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7287,3 +8151,75 @@ IotClient::UpdateThingModelOutcomeCallable IotClient::updateThingModelCallable(c return task->get_future(); } +IotClient::UpdateThingModelValidationConfigOutcome IotClient::updateThingModelValidationConfig(const UpdateThingModelValidationConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateThingModelValidationConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateThingModelValidationConfigOutcome(UpdateThingModelValidationConfigResult(outcome.result())); + else + return UpdateThingModelValidationConfigOutcome(outcome.error()); +} + +void IotClient::updateThingModelValidationConfigAsync(const UpdateThingModelValidationConfigRequest& request, const UpdateThingModelValidationConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateThingModelValidationConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateThingModelValidationConfigOutcomeCallable IotClient::updateThingModelValidationConfigCallable(const UpdateThingModelValidationConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateThingModelValidationConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::UpdateThingScriptOutcome IotClient::updateThingScript(const UpdateThingScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateThingScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateThingScriptOutcome(UpdateThingScriptResult(outcome.result())); + else + return UpdateThingScriptOutcome(outcome.error()); +} + +void IotClient::updateThingScriptAsync(const UpdateThingScriptRequest& request, const UpdateThingScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateThingScript(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateThingScriptOutcomeCallable IotClient::updateThingScriptCallable(const UpdateThingScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateThingScript(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/iot/src/model/BatchCheckDeviceNamesRequest.cc b/iot/src/model/BatchCheckDeviceNamesRequest.cc index 751600953..829ec4caf 100644 --- a/iot/src/model/BatchCheckDeviceNamesRequest.cc +++ b/iot/src/model/BatchCheckDeviceNamesRequest.cc @@ -38,6 +38,22 @@ void BatchCheckDeviceNamesRequest::setAccessKeyId(const std::string& accessKeyId setParameter("AccessKeyId", accessKeyId); } +std::vector BatchCheckDeviceNamesRequest::getDeviceNameList()const +{ + return deviceNameList_; +} + +void BatchCheckDeviceNamesRequest::setDeviceNameList(const std::vector& deviceNameList) +{ + deviceNameList_ = deviceNameList; + for(int dep1 = 0; dep1!= deviceNameList.size(); dep1++) { + auto deviceNameListObj = deviceNameList.at(dep1); + std::string deviceNameListObjStr = "DeviceNameList." + std::to_string(dep1 + 1); + setParameter(deviceNameListObjStr + ".DeviceNickname", deviceNameListObj.deviceNickname); + setParameter(deviceNameListObjStr + ".DeviceName", deviceNameListObj.deviceName); + } +} + std::string BatchCheckDeviceNamesRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchCheckDeviceNamesResult.cc b/iot/src/model/BatchCheckDeviceNamesResult.cc index 0ad3b8504..e6b7bf298 100644 --- a/iot/src/model/BatchCheckDeviceNamesResult.cc +++ b/iot/src/model/BatchCheckDeviceNamesResult.cc @@ -45,6 +45,9 @@ void BatchCheckDeviceNamesResult::parse(const std::string &payload) auto allInvalidDeviceNameList = dataNode["InvalidDeviceNameList"]["InvalidDeviceName"]; for (auto value : allInvalidDeviceNameList) data_.invalidDeviceNameList.push_back(value.asString()); + auto allInvalidDeviceNicknameList = dataNode["InvalidDeviceNicknameList"]["InvalidDeviceNickname"]; + for (auto value : allInvalidDeviceNicknameList) + data_.invalidDeviceNicknameList.push_back(value.asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/iot/src/model/BatchGetEdgeInstanceChannelResult.cc b/iot/src/model/BatchGetEdgeInstanceChannelResult.cc index 31c963f16..aaba4b803 100644 --- a/iot/src/model/BatchGetEdgeInstanceChannelResult.cc +++ b/iot/src/model/BatchGetEdgeInstanceChannelResult.cc @@ -47,18 +47,18 @@ void BatchGetEdgeInstanceChannelResult::parse(const std::string &payload) dataObject.channelId = valueDataChannel["ChannelId"].asString(); if(!valueDataChannel["ChannelName"].isNull()) dataObject.channelName = valueDataChannel["ChannelName"].asString(); - auto allConfigListNode = allDataNode["ConfigList"]["Config"]; - for (auto allDataNodeConfigListConfig : allConfigListNode) + auto allConfigListNode = valueDataChannel["ConfigList"]["Config"]; + for (auto valueDataChannelConfigListConfig : allConfigListNode) { Channel::Config configListObject; - if(!allDataNodeConfigListConfig["ConfigId"].isNull()) - configListObject.configId = allDataNodeConfigListConfig["ConfigId"].asString(); - if(!allDataNodeConfigListConfig["Format"].isNull()) - configListObject.format = allDataNodeConfigListConfig["Format"].asString(); - if(!allDataNodeConfigListConfig["Content"].isNull()) - configListObject.content = allDataNodeConfigListConfig["Content"].asString(); - if(!allDataNodeConfigListConfig["Key"].isNull()) - configListObject.key = allDataNodeConfigListConfig["Key"].asString(); + if(!valueDataChannelConfigListConfig["ConfigId"].isNull()) + configListObject.configId = valueDataChannelConfigListConfig["ConfigId"].asString(); + if(!valueDataChannelConfigListConfig["Format"].isNull()) + configListObject.format = valueDataChannelConfigListConfig["Format"].asString(); + if(!valueDataChannelConfigListConfig["Content"].isNull()) + configListObject.content = valueDataChannelConfigListConfig["Content"].asString(); + if(!valueDataChannelConfigListConfig["Key"].isNull()) + configListObject.key = valueDataChannelConfigListConfig["Key"].asString(); dataObject.configList.push_back(configListObject); } data_.push_back(dataObject); diff --git a/iot/src/model/BatchGetEdgeInstanceDriverConfigsResult.cc b/iot/src/model/BatchGetEdgeInstanceDriverConfigsResult.cc index 145ab4d3e..fa3f0a06e 100644 --- a/iot/src/model/BatchGetEdgeInstanceDriverConfigsResult.cc +++ b/iot/src/model/BatchGetEdgeInstanceDriverConfigsResult.cc @@ -45,18 +45,18 @@ void BatchGetEdgeInstanceDriverConfigsResult::parse(const std::string &payload) DriverConfig driverConfigListObject; if(!valueDriverConfigListDriverConfig["DriverId"].isNull()) driverConfigListObject.driverId = valueDriverConfigListDriverConfig["DriverId"].asString(); - auto allConfigListNode = allDriverConfigListNode["ConfigList"]["Config"]; - for (auto allDriverConfigListNodeConfigListConfig : allConfigListNode) + auto allConfigListNode = valueDriverConfigListDriverConfig["ConfigList"]["Config"]; + for (auto valueDriverConfigListDriverConfigConfigListConfig : allConfigListNode) { DriverConfig::Config configListObject; - if(!allDriverConfigListNodeConfigListConfig["ConfigId"].isNull()) - configListObject.configId = allDriverConfigListNodeConfigListConfig["ConfigId"].asString(); - if(!allDriverConfigListNodeConfigListConfig["Format"].isNull()) - configListObject.format = allDriverConfigListNodeConfigListConfig["Format"].asString(); - if(!allDriverConfigListNodeConfigListConfig["Content"].isNull()) - configListObject.content = allDriverConfigListNodeConfigListConfig["Content"].asString(); - if(!allDriverConfigListNodeConfigListConfig["Key"].isNull()) - configListObject.key = allDriverConfigListNodeConfigListConfig["Key"].asString(); + if(!valueDriverConfigListDriverConfigConfigListConfig["ConfigId"].isNull()) + configListObject.configId = valueDriverConfigListDriverConfigConfigListConfig["ConfigId"].asString(); + if(!valueDriverConfigListDriverConfigConfigListConfig["Format"].isNull()) + configListObject.format = valueDriverConfigListDriverConfigConfigListConfig["Format"].asString(); + if(!valueDriverConfigListDriverConfigConfigListConfig["Content"].isNull()) + configListObject.content = valueDriverConfigListDriverConfigConfigListConfig["Content"].asString(); + if(!valueDriverConfigListDriverConfigConfigListConfig["Key"].isNull()) + configListObject.key = valueDriverConfigListDriverConfigConfigListConfig["Key"].asString(); driverConfigListObject.configList.push_back(configListObject); } driverConfigList_.push_back(driverConfigListObject); diff --git a/iot/src/model/BatchPubRequest.cc b/iot/src/model/BatchPubRequest.cc new file mode 100644 index 000000000..b7f376d34 --- /dev/null +++ b/iot/src/model/BatchPubRequest.cc @@ -0,0 +1,119 @@ +/* + * 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::BatchPubRequest; + +BatchPubRequest::BatchPubRequest() : + RpcServiceRequest("iot", "2018-01-20", "BatchPub") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchPubRequest::~BatchPubRequest() +{} + +std::string BatchPubRequest::getMessageContent()const +{ + return messageContent_; +} + +void BatchPubRequest::setMessageContent(const std::string& messageContent) +{ + messageContent_ = messageContent; + setParameter("MessageContent", messageContent); +} + +int BatchPubRequest::getQos()const +{ + return qos_; +} + +void BatchPubRequest::setQos(int qos) +{ + qos_ = qos; + setParameter("Qos", std::to_string(qos)); +} + +std::string BatchPubRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void BatchPubRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string BatchPubRequest::getTopicShortName()const +{ + return topicShortName_; +} + +void BatchPubRequest::setTopicShortName(const std::string& topicShortName) +{ + topicShortName_ = topicShortName; + setParameter("TopicShortName", topicShortName); +} + +std::string BatchPubRequest::getProductKey()const +{ + return productKey_; +} + +void BatchPubRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string BatchPubRequest::getApiProduct()const +{ + return apiProduct_; +} + +void BatchPubRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string BatchPubRequest::getApiRevision()const +{ + return apiRevision_; +} + +void BatchPubRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::vector BatchPubRequest::getDeviceName()const +{ + return deviceName_; +} + +void BatchPubRequest::setDeviceName(const std::vector& deviceName) +{ + deviceName_ = deviceName; + for(int dep1 = 0; dep1!= deviceName.size(); dep1++) { + setParameter("DeviceName."+ std::to_string(dep1), deviceName.at(dep1)); + } +} + diff --git a/iot/src/model/BatchPubResult.cc b/iot/src/model/BatchPubResult.cc new file mode 100644 index 000000000..03038d26c --- /dev/null +++ b/iot/src/model/BatchPubResult.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; + +BatchPubResult::BatchPubResult() : + ServiceResult() +{} + +BatchPubResult::BatchPubResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchPubResult::~BatchPubResult() +{} + +void BatchPubResult::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 BatchPubResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BatchPubResult::getCode()const +{ + return code_; +} + +bool BatchPubResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/BindRoleToEdgeInstanceRequest.cc b/iot/src/model/BindRoleToEdgeInstanceRequest.cc new file mode 100644 index 000000000..ee68e3761 --- /dev/null +++ b/iot/src/model/BindRoleToEdgeInstanceRequest.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::BindRoleToEdgeInstanceRequest; + +BindRoleToEdgeInstanceRequest::BindRoleToEdgeInstanceRequest() : + RpcServiceRequest("iot", "2018-01-20", "BindRoleToEdgeInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +BindRoleToEdgeInstanceRequest::~BindRoleToEdgeInstanceRequest() +{} + +std::string BindRoleToEdgeInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BindRoleToEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string BindRoleToEdgeInstanceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void BindRoleToEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string BindRoleToEdgeInstanceRequest::getRoleName()const +{ + return roleName_; +} + +void BindRoleToEdgeInstanceRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + +std::string BindRoleToEdgeInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void BindRoleToEdgeInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string BindRoleToEdgeInstanceRequest::getRoleArn()const +{ + return roleArn_; +} + +void BindRoleToEdgeInstanceRequest::setRoleArn(const std::string& roleArn) +{ + roleArn_ = roleArn; + setParameter("RoleArn", roleArn); +} + +std::string BindRoleToEdgeInstanceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void BindRoleToEdgeInstanceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string BindRoleToEdgeInstanceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void BindRoleToEdgeInstanceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/BindRoleToEdgeInstanceResult.cc b/iot/src/model/BindRoleToEdgeInstanceResult.cc new file mode 100644 index 000000000..0506d0198 --- /dev/null +++ b/iot/src/model/BindRoleToEdgeInstanceResult.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; + +BindRoleToEdgeInstanceResult::BindRoleToEdgeInstanceResult() : + ServiceResult() +{} + +BindRoleToEdgeInstanceResult::BindRoleToEdgeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindRoleToEdgeInstanceResult::~BindRoleToEdgeInstanceResult() +{} + +void BindRoleToEdgeInstanceResult::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 BindRoleToEdgeInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BindRoleToEdgeInstanceResult::getCode()const +{ + return code_; +} + +bool BindRoleToEdgeInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CopyThingModelRequest.cc b/iot/src/model/CopyThingModelRequest.cc index c0af9da2c..97d801aee 100644 --- a/iot/src/model/CopyThingModelRequest.cc +++ b/iot/src/model/CopyThingModelRequest.cc @@ -27,6 +27,17 @@ CopyThingModelRequest::CopyThingModelRequest() : CopyThingModelRequest::~CopyThingModelRequest() {} +std::string CopyThingModelRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void CopyThingModelRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string CopyThingModelRequest::getTargetProductKey()const { return targetProductKey_; @@ -49,6 +60,17 @@ void CopyThingModelRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string CopyThingModelRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void CopyThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string CopyThingModelRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/iot/src/model/CreateOTADynamicUpgradeJobRequest.cc b/iot/src/model/CreateOTADynamicUpgradeJobRequest.cc index 22c139ebc..7c0d81c51 100644 --- a/iot/src/model/CreateOTADynamicUpgradeJobRequest.cc +++ b/iot/src/model/CreateOTADynamicUpgradeJobRequest.cc @@ -27,6 +27,17 @@ CreateOTADynamicUpgradeJobRequest::CreateOTADynamicUpgradeJobRequest() : CreateOTADynamicUpgradeJobRequest::~CreateOTADynamicUpgradeJobRequest() {} +int CreateOTADynamicUpgradeJobRequest::getDynamicMode()const +{ + return dynamicMode_; +} + +void CreateOTADynamicUpgradeJobRequest::setDynamicMode(int dynamicMode) +{ + dynamicMode_ = dynamicMode; + setParameter("DynamicMode", std::to_string(dynamicMode)); +} + int CreateOTADynamicUpgradeJobRequest::getRetryCount()const { return retryCount_; @@ -71,6 +82,22 @@ void CreateOTADynamicUpgradeJobRequest::setIotInstanceId(const std::string& iotI setParameter("IotInstanceId", iotInstanceId); } +std::vector CreateOTADynamicUpgradeJobRequest::getTag()const +{ + return tag_; +} + +void CreateOTADynamicUpgradeJobRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateOTADynamicUpgradeJobRequest::getFirmwareId()const { return firmwareId_; @@ -117,6 +144,17 @@ void CreateOTADynamicUpgradeJobRequest::setSrcVersion(const std::vector + +using AlibabaCloud::Iot::Model::CreateOTAModuleRequest; + +CreateOTAModuleRequest::CreateOTAModuleRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateOTAModule") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateOTAModuleRequest::~CreateOTAModuleRequest() +{} + +std::string CreateOTAModuleRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateOTAModuleRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateOTAModuleRequest::getModuleName()const +{ + return moduleName_; +} + +void CreateOTAModuleRequest::setModuleName(const std::string& moduleName) +{ + moduleName_ = moduleName; + setParameter("ModuleName", moduleName); +} + +std::string CreateOTAModuleRequest::getProductKey()const +{ + return productKey_; +} + +void CreateOTAModuleRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string CreateOTAModuleRequest::getAliasName()const +{ + return aliasName_; +} + +void CreateOTAModuleRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setParameter("AliasName", aliasName); +} + +std::string CreateOTAModuleRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateOTAModuleRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateOTAModuleRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateOTAModuleRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string CreateOTAModuleRequest::getDesc()const +{ + return desc_; +} + +void CreateOTAModuleRequest::setDesc(const std::string& desc) +{ + desc_ = desc; + setParameter("Desc", desc); +} + diff --git a/iot/src/model/CreateOTAModuleResult.cc b/iot/src/model/CreateOTAModuleResult.cc new file mode 100644 index 000000000..c2544b16d --- /dev/null +++ b/iot/src/model/CreateOTAModuleResult.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; + +CreateOTAModuleResult::CreateOTAModuleResult() : + ServiceResult() +{} + +CreateOTAModuleResult::CreateOTAModuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOTAModuleResult::~CreateOTAModuleResult() +{} + +void CreateOTAModuleResult::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 CreateOTAModuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateOTAModuleResult::getCode()const +{ + return code_; +} + +bool CreateOTAModuleResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CreateOTAStaticUpgradeJobRequest.cc b/iot/src/model/CreateOTAStaticUpgradeJobRequest.cc index ebd6d8466..193458482 100644 --- a/iot/src/model/CreateOTAStaticUpgradeJobRequest.cc +++ b/iot/src/model/CreateOTAStaticUpgradeJobRequest.cc @@ -82,6 +82,33 @@ void CreateOTAStaticUpgradeJobRequest::setTargetSelection(const std::string& tar setParameter("TargetSelection", targetSelection); } +long CreateOTAStaticUpgradeJobRequest::getScheduleFinishTime()const +{ + return scheduleFinishTime_; +} + +void CreateOTAStaticUpgradeJobRequest::setScheduleFinishTime(long scheduleFinishTime) +{ + scheduleFinishTime_ = scheduleFinishTime; + setParameter("ScheduleFinishTime", std::to_string(scheduleFinishTime)); +} + +std::vector CreateOTAStaticUpgradeJobRequest::getTag()const +{ + return tag_; +} + +void CreateOTAStaticUpgradeJobRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateOTAStaticUpgradeJobRequest::getGrayPercent()const { return grayPercent_; @@ -93,6 +120,17 @@ void CreateOTAStaticUpgradeJobRequest::setGrayPercent(const std::string& grayPer setParameter("GrayPercent", grayPercent); } +std::string CreateOTAStaticUpgradeJobRequest::getDnListFileUrl()const +{ + return dnListFileUrl_; +} + +void CreateOTAStaticUpgradeJobRequest::setDnListFileUrl(const std::string& dnListFileUrl) +{ + dnListFileUrl_ = dnListFileUrl; + setParameter("DnListFileUrl", dnListFileUrl); +} + std::string CreateOTAStaticUpgradeJobRequest::getFirmwareId()const { return firmwareId_; @@ -150,6 +188,17 @@ void CreateOTAStaticUpgradeJobRequest::setScheduleTime(long scheduleTime) setParameter("ScheduleTime", std::to_string(scheduleTime)); } +int CreateOTAStaticUpgradeJobRequest::getOverwriteMode()const +{ + return overwriteMode_; +} + +void CreateOTAStaticUpgradeJobRequest::setOverwriteMode(int overwriteMode) +{ + overwriteMode_ = overwriteMode; + setParameter("OverwriteMode", std::to_string(overwriteMode)); +} + std::string CreateOTAStaticUpgradeJobRequest::getApiProduct()const { return apiProduct_; diff --git a/iot/src/model/CreateProductRequest.cc b/iot/src/model/CreateProductRequest.cc index 8c6e7039f..d05487041 100644 --- a/iot/src/model/CreateProductRequest.cc +++ b/iot/src/model/CreateProductRequest.cc @@ -38,6 +38,17 @@ void CreateProductRequest::setNodeType(int nodeType) setParameter("NodeType", std::to_string(nodeType)); } +std::string CreateProductRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void CreateProductRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string CreateProductRequest::getDescription()const { return description_; @@ -93,6 +104,17 @@ void CreateProductRequest::setAuthType(const std::string& authType) setParameter("AuthType", authType); } +std::string CreateProductRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void CreateProductRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string CreateProductRequest::getResourceGroupId()const { return resourceGroupId_; @@ -104,6 +126,17 @@ void CreateProductRequest::setResourceGroupId(const std::string& resourceGroupId setParameter("ResourceGroupId", resourceGroupId); } +int CreateProductRequest::getValidateType()const +{ + return validateType_; +} + +void CreateProductRequest::setValidateType(int validateType) +{ + validateType_ = validateType; + setParameter("ValidateType", std::to_string(validateType)); +} + std::string CreateProductRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/CreateSubscribeRelationRequest.cc b/iot/src/model/CreateSubscribeRelationRequest.cc index b57be46bf..65d8b3840 100644 --- a/iot/src/model/CreateSubscribeRelationRequest.cc +++ b/iot/src/model/CreateSubscribeRelationRequest.cc @@ -93,6 +93,28 @@ void CreateSubscribeRelationRequest::setDeviceStatusChangeFlag(bool deviceStatus setParameter("DeviceStatusChangeFlag", deviceStatusChangeFlag ? "true" : "false"); } +bool CreateSubscribeRelationRequest::getOtaVersionFlag()const +{ + return otaVersionFlag_; +} + +void CreateSubscribeRelationRequest::setOtaVersionFlag(bool otaVersionFlag) +{ + otaVersionFlag_ = otaVersionFlag; + setParameter("OtaVersionFlag", otaVersionFlag ? "true" : "false"); +} + +bool CreateSubscribeRelationRequest::getDeviceTagFlag()const +{ + return deviceTagFlag_; +} + +void CreateSubscribeRelationRequest::setDeviceTagFlag(bool deviceTagFlag) +{ + deviceTagFlag_ = deviceTagFlag; + setParameter("DeviceTagFlag", deviceTagFlag ? "true" : "false"); +} + std::vector CreateSubscribeRelationRequest::getConsumerGroupIds()const { return consumerGroupIds_; @@ -139,6 +161,17 @@ void CreateSubscribeRelationRequest::setFoundDeviceListFlag(bool foundDeviceList setParameter("FoundDeviceListFlag", foundDeviceListFlag ? "true" : "false"); } +bool CreateSubscribeRelationRequest::getOtaJobFlag()const +{ + return otaJobFlag_; +} + +void CreateSubscribeRelationRequest::setOtaJobFlag(bool otaJobFlag) +{ + otaJobFlag_ = otaJobFlag; + setParameter("OtaJobFlag", otaJobFlag ? "true" : "false"); +} + std::string CreateSubscribeRelationRequest::getApiProduct()const { return apiProduct_; diff --git a/iot/src/model/CreateThingModelRequest.cc b/iot/src/model/CreateThingModelRequest.cc index 97b2f9f7e..7d422fa5a 100644 --- a/iot/src/model/CreateThingModelRequest.cc +++ b/iot/src/model/CreateThingModelRequest.cc @@ -27,6 +27,28 @@ CreateThingModelRequest::CreateThingModelRequest() : CreateThingModelRequest::~CreateThingModelRequest() {} +std::string CreateThingModelRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void CreateThingModelRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string CreateThingModelRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void CreateThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string CreateThingModelRequest::getIotInstanceId()const { return iotInstanceId_; @@ -38,6 +60,17 @@ void CreateThingModelRequest::setIotInstanceId(const std::string& iotInstanceId) setParameter("IotInstanceId", iotInstanceId); } +std::string CreateThingModelRequest::getFunctionBlockName()const +{ + return functionBlockName_; +} + +void CreateThingModelRequest::setFunctionBlockName(const std::string& functionBlockName) +{ + functionBlockName_ = functionBlockName; + setParameter("FunctionBlockName", functionBlockName); +} + std::string CreateThingModelRequest::getProductKey()const { return productKey_; @@ -82,3 +115,14 @@ void CreateThingModelRequest::setApiRevision(const std::string& apiRevision) setBodyParameter("ApiRevision", apiRevision); } +std::string CreateThingModelRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void CreateThingModelRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/CreateThingScriptRequest.cc b/iot/src/model/CreateThingScriptRequest.cc new file mode 100644 index 000000000..2005054f7 --- /dev/null +++ b/iot/src/model/CreateThingScriptRequest.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::CreateThingScriptRequest; + +CreateThingScriptRequest::CreateThingScriptRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateThingScript") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateThingScriptRequest::~CreateThingScriptRequest() +{} + +std::string CreateThingScriptRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateThingScriptRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateThingScriptRequest::getScriptType()const +{ + return scriptType_; +} + +void CreateThingScriptRequest::setScriptType(const std::string& scriptType) +{ + scriptType_ = scriptType; + setParameter("ScriptType", scriptType); +} + +std::string CreateThingScriptRequest::getProductKey()const +{ + return productKey_; +} + +void CreateThingScriptRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string CreateThingScriptRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateThingScriptRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateThingScriptRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateThingScriptRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string CreateThingScriptRequest::getScriptContent()const +{ + return scriptContent_; +} + +void CreateThingScriptRequest::setScriptContent(const std::string& scriptContent) +{ + scriptContent_ = scriptContent; + setParameter("ScriptContent", scriptContent); +} + diff --git a/iot/src/model/CreateThingScriptResult.cc b/iot/src/model/CreateThingScriptResult.cc new file mode 100644 index 000000000..96d1935f6 --- /dev/null +++ b/iot/src/model/CreateThingScriptResult.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; + +CreateThingScriptResult::CreateThingScriptResult() : + ServiceResult() +{} + +CreateThingScriptResult::CreateThingScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateThingScriptResult::~CreateThingScriptResult() +{} + +void CreateThingScriptResult::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 CreateThingScriptResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateThingScriptResult::getCode()const +{ + return code_; +} + +bool CreateThingScriptResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteClientIdsRequest.cc b/iot/src/model/DeleteClientIdsRequest.cc new file mode 100644 index 000000000..75b0ecd2b --- /dev/null +++ b/iot/src/model/DeleteClientIdsRequest.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::DeleteClientIdsRequest; + +DeleteClientIdsRequest::DeleteClientIdsRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteClientIds") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteClientIdsRequest::~DeleteClientIdsRequest() +{} + +std::string DeleteClientIdsRequest::getAuthConfig()const +{ + return authConfig_; +} + +void DeleteClientIdsRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string DeleteClientIdsRequest::getIotId()const +{ + return iotId_; +} + +void DeleteClientIdsRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string DeleteClientIdsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteClientIdsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteClientIdsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteClientIdsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteClientIdsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteClientIdsResult.cc b/iot/src/model/DeleteClientIdsResult.cc new file mode 100644 index 000000000..e374d7232 --- /dev/null +++ b/iot/src/model/DeleteClientIdsResult.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; + +DeleteClientIdsResult::DeleteClientIdsResult() : + ServiceResult() +{} + +DeleteClientIdsResult::DeleteClientIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClientIdsResult::~DeleteClientIdsResult() +{} + +void DeleteClientIdsResult::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 DeleteClientIdsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteClientIdsResult::getCode()const +{ + return code_; +} + +bool DeleteClientIdsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteOTAModuleRequest.cc b/iot/src/model/DeleteOTAModuleRequest.cc new file mode 100644 index 000000000..b0bdd6177 --- /dev/null +++ b/iot/src/model/DeleteOTAModuleRequest.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::DeleteOTAModuleRequest; + +DeleteOTAModuleRequest::DeleteOTAModuleRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteOTAModule") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteOTAModuleRequest::~DeleteOTAModuleRequest() +{} + +std::string DeleteOTAModuleRequest::getAuthConfig()const +{ + return authConfig_; +} + +void DeleteOTAModuleRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string DeleteOTAModuleRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteOTAModuleRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteOTAModuleRequest::getModuleName()const +{ + return moduleName_; +} + +void DeleteOTAModuleRequest::setModuleName(const std::string& moduleName) +{ + moduleName_ = moduleName; + setParameter("ModuleName", moduleName); +} + +std::string DeleteOTAModuleRequest::getProductKey()const +{ + return productKey_; +} + +void DeleteOTAModuleRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string DeleteOTAModuleRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteOTAModuleRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteOTAModuleRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteOTAModuleRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteOTAModuleResult.cc b/iot/src/model/DeleteOTAModuleResult.cc new file mode 100644 index 000000000..9650626eb --- /dev/null +++ b/iot/src/model/DeleteOTAModuleResult.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; + +DeleteOTAModuleResult::DeleteOTAModuleResult() : + ServiceResult() +{} + +DeleteOTAModuleResult::DeleteOTAModuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOTAModuleResult::~DeleteOTAModuleResult() +{} + +void DeleteOTAModuleResult::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 DeleteOTAModuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteOTAModuleResult::getCode()const +{ + return code_; +} + +bool DeleteOTAModuleResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteThingModelRequest.cc b/iot/src/model/DeleteThingModelRequest.cc index a4203574e..351f82748 100644 --- a/iot/src/model/DeleteThingModelRequest.cc +++ b/iot/src/model/DeleteThingModelRequest.cc @@ -27,6 +27,28 @@ DeleteThingModelRequest::DeleteThingModelRequest() : DeleteThingModelRequest::~DeleteThingModelRequest() {} +std::string DeleteThingModelRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void DeleteThingModelRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +bool DeleteThingModelRequest::getIsClearAllFunction()const +{ + return isClearAllFunction_; +} + +void DeleteThingModelRequest::setIsClearAllFunction(bool isClearAllFunction) +{ + isClearAllFunction_ = isClearAllFunction; + setParameter("IsClearAllFunction", isClearAllFunction ? "true" : "false"); +} + std::string DeleteThingModelRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +60,17 @@ void DeleteThingModelRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DeleteThingModelRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void DeleteThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string DeleteThingModelRequest::getResourceGroupId()const { return resourceGroupId_; @@ -132,3 +165,14 @@ void DeleteThingModelRequest::setEventIdentifier(const std::vector& } } +std::string DeleteThingModelRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void DeleteThingModelRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/GenerateDeviceNameListURLRequest.cc b/iot/src/model/GenerateDeviceNameListURLRequest.cc new file mode 100644 index 000000000..4cc41cc11 --- /dev/null +++ b/iot/src/model/GenerateDeviceNameListURLRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::GenerateDeviceNameListURLRequest; + +GenerateDeviceNameListURLRequest::GenerateDeviceNameListURLRequest() : + RpcServiceRequest("iot", "2018-01-20", "GenerateDeviceNameListURL") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateDeviceNameListURLRequest::~GenerateDeviceNameListURLRequest() +{} + +std::string GenerateDeviceNameListURLRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GenerateDeviceNameListURLRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string GenerateDeviceNameListURLRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GenerateDeviceNameListURLRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GenerateDeviceNameListURLRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GenerateDeviceNameListURLRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GenerateDeviceNameListURLResult.cc b/iot/src/model/GenerateDeviceNameListURLResult.cc new file mode 100644 index 000000000..8c88e9310 --- /dev/null +++ b/iot/src/model/GenerateDeviceNameListURLResult.cc @@ -0,0 +1,87 @@ +/* + * 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; + +GenerateDeviceNameListURLResult::GenerateDeviceNameListURLResult() : + ServiceResult() +{} + +GenerateDeviceNameListURLResult::GenerateDeviceNameListURLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateDeviceNameListURLResult::~GenerateDeviceNameListURLResult() +{} + +void GenerateDeviceNameListURLResult::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["Key"].isNull()) + data_.key = dataNode["Key"].asString(); + if(!dataNode["Host"].isNull()) + data_.host = dataNode["Host"].asString(); + if(!dataNode["Policy"].isNull()) + data_.policy = dataNode["Policy"].asString(); + if(!dataNode["AccessKeyId"].isNull()) + data_.accessKeyId = dataNode["AccessKeyId"].asString(); + if(!dataNode["Signature"].isNull()) + data_.signature = dataNode["Signature"].asString(); + if(!dataNode["FileUrl"].isNull()) + data_.fileUrl = dataNode["FileUrl"].asString(); + if(!dataNode["UtcCreate"].isNull()) + data_.utcCreate = dataNode["UtcCreate"].asString(); + if(!dataNode["ObjectStorage"].isNull()) + data_.objectStorage = dataNode["ObjectStorage"].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(); + +} + +GenerateDeviceNameListURLResult::Data GenerateDeviceNameListURLResult::getData()const +{ + return data_; +} + +std::string GenerateDeviceNameListURLResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GenerateDeviceNameListURLResult::getCode()const +{ + return code_; +} + +bool GenerateDeviceNameListURLResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GenerateOTAUploadURLRequest.cc b/iot/src/model/GenerateOTAUploadURLRequest.cc index 97eeb7514..9ab298bec 100644 --- a/iot/src/model/GenerateOTAUploadURLRequest.cc +++ b/iot/src/model/GenerateOTAUploadURLRequest.cc @@ -27,6 +27,17 @@ GenerateOTAUploadURLRequest::GenerateOTAUploadURLRequest() : GenerateOTAUploadURLRequest::~GenerateOTAUploadURLRequest() {} +std::string GenerateOTAUploadURLRequest::getFileSuffix()const +{ + return fileSuffix_; +} + +void GenerateOTAUploadURLRequest::setFileSuffix(const std::string& fileSuffix) +{ + fileSuffix_ = fileSuffix; + setParameter("FileSuffix", fileSuffix); +} + std::string GenerateOTAUploadURLRequest::getAccessKeyId()const { return accessKeyId_; diff --git a/iot/src/model/GenerateOTAUploadURLResult.cc b/iot/src/model/GenerateOTAUploadURLResult.cc index 8f6e0a768..1c438d07a 100644 --- a/iot/src/model/GenerateOTAUploadURLResult.cc +++ b/iot/src/model/GenerateOTAUploadURLResult.cc @@ -52,6 +52,10 @@ void GenerateOTAUploadURLResult::parse(const std::string &payload) data_.signature = dataNode["Signature"].asString(); if(!dataNode["FirmwareUrl"].isNull()) data_.firmwareUrl = dataNode["FirmwareUrl"].asString(); + if(!dataNode["UtcCreate"].isNull()) + data_.utcCreate = dataNode["UtcCreate"].asString(); + if(!dataNode["ObjectStorage"].isNull()) + data_.objectStorage = dataNode["ObjectStorage"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/iot/src/model/GetEdgeInstanceDeploymentResult.cc b/iot/src/model/GetEdgeInstanceDeploymentResult.cc index d7bcd9bbf..ac1df1874 100644 --- a/iot/src/model/GetEdgeInstanceDeploymentResult.cc +++ b/iot/src/model/GetEdgeInstanceDeploymentResult.cc @@ -84,38 +84,38 @@ void GetEdgeInstanceDeploymentResult::parse(const std::string &payload) taskObject.gmtModifiedTimestamp = std::stol(dataNodeTaskListTask["GmtModifiedTimestamp"].asString()); if(!dataNodeTaskListTask["GmtCompletedTimestamp"].isNull()) taskObject.gmtCompletedTimestamp = std::stol(dataNodeTaskListTask["GmtCompletedTimestamp"].asString()); - auto allResourceSnapshotListNode = allTaskListNode["ResourceSnapshotList"]["ResourceSnapshot"]; - for (auto allTaskListNodeResourceSnapshotListResourceSnapshot : allResourceSnapshotListNode) + auto allResourceSnapshotListNode = dataNodeTaskListTask["ResourceSnapshotList"]["ResourceSnapshot"]; + for (auto dataNodeTaskListTaskResourceSnapshotListResourceSnapshot : allResourceSnapshotListNode) { Data::Task::ResourceSnapshot resourceSnapshotListObject; - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCreate"].isNull()) - resourceSnapshotListObject.gmtCreate = allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCreate"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtModified"].isNull()) - resourceSnapshotListObject.gmtModified = allTaskListNodeResourceSnapshotListResourceSnapshot["GmtModified"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCompleted"].isNull()) - resourceSnapshotListObject.gmtCompleted = allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCompleted"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["SnapshotId"].isNull()) - resourceSnapshotListObject.snapshotId = allTaskListNodeResourceSnapshotListResourceSnapshot["SnapshotId"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["ResourceType"].isNull()) - resourceSnapshotListObject.resourceType = allTaskListNodeResourceSnapshotListResourceSnapshot["ResourceType"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["ResourceId"].isNull()) - resourceSnapshotListObject.resourceId = allTaskListNodeResourceSnapshotListResourceSnapshot["ResourceId"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["ResourceName"].isNull()) - resourceSnapshotListObject.resourceName = allTaskListNodeResourceSnapshotListResourceSnapshot["ResourceName"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["OperateType"].isNull()) - resourceSnapshotListObject.operateType = std::stoi(allTaskListNodeResourceSnapshotListResourceSnapshot["OperateType"].asString()); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["Stage"].isNull()) - resourceSnapshotListObject.stage = std::stoi(allTaskListNodeResourceSnapshotListResourceSnapshot["Stage"].asString()); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["Status"].isNull()) - resourceSnapshotListObject.status = std::stoi(allTaskListNodeResourceSnapshotListResourceSnapshot["Status"].asString()); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["Log"].isNull()) - resourceSnapshotListObject.log = allTaskListNodeResourceSnapshotListResourceSnapshot["Log"].asString(); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCreateTimestamp"].isNull()) - resourceSnapshotListObject.gmtCreateTimestamp = std::stol(allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCreateTimestamp"].asString()); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtModifiedTimestamp"].isNull()) - resourceSnapshotListObject.gmtModifiedTimestamp = std::stol(allTaskListNodeResourceSnapshotListResourceSnapshot["GmtModifiedTimestamp"].asString()); - if(!allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCompletedTimestamp"].isNull()) - resourceSnapshotListObject.gmtCompletedTimestamp = std::stol(allTaskListNodeResourceSnapshotListResourceSnapshot["GmtCompletedTimestamp"].asString()); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCreate"].isNull()) + resourceSnapshotListObject.gmtCreate = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCreate"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtModified"].isNull()) + resourceSnapshotListObject.gmtModified = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtModified"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCompleted"].isNull()) + resourceSnapshotListObject.gmtCompleted = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCompleted"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["SnapshotId"].isNull()) + resourceSnapshotListObject.snapshotId = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["SnapshotId"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["ResourceType"].isNull()) + resourceSnapshotListObject.resourceType = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["ResourceType"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["ResourceId"].isNull()) + resourceSnapshotListObject.resourceId = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["ResourceId"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["ResourceName"].isNull()) + resourceSnapshotListObject.resourceName = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["ResourceName"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["OperateType"].isNull()) + resourceSnapshotListObject.operateType = std::stoi(dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["OperateType"].asString()); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["Stage"].isNull()) + resourceSnapshotListObject.stage = std::stoi(dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["Stage"].asString()); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["Status"].isNull()) + resourceSnapshotListObject.status = std::stoi(dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["Status"].asString()); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["Log"].isNull()) + resourceSnapshotListObject.log = dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["Log"].asString(); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCreateTimestamp"].isNull()) + resourceSnapshotListObject.gmtCreateTimestamp = std::stol(dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCreateTimestamp"].asString()); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtModifiedTimestamp"].isNull()) + resourceSnapshotListObject.gmtModifiedTimestamp = std::stol(dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtModifiedTimestamp"].asString()); + if(!dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCompletedTimestamp"].isNull()) + resourceSnapshotListObject.gmtCompletedTimestamp = std::stol(dataNodeTaskListTaskResourceSnapshotListResourceSnapshot["GmtCompletedTimestamp"].asString()); taskObject.resourceSnapshotList.push_back(resourceSnapshotListObject); } data_.taskList.push_back(taskObject); diff --git a/iot/src/model/GetThingModelTslPublishedRequest.cc b/iot/src/model/GetThingModelTslPublishedRequest.cc new file mode 100644 index 000000000..093bc51ee --- /dev/null +++ b/iot/src/model/GetThingModelTslPublishedRequest.cc @@ -0,0 +1,150 @@ +/* + * 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::GetThingModelTslPublishedRequest; + +GetThingModelTslPublishedRequest::GetThingModelTslPublishedRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetThingModelTslPublished") +{ + setMethod(HttpRequest::Method::Post); +} + +GetThingModelTslPublishedRequest::~GetThingModelTslPublishedRequest() +{} + +std::string GetThingModelTslPublishedRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void GetThingModelTslPublishedRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +bool GetThingModelTslPublishedRequest::getSimple()const +{ + return simple_; +} + +void GetThingModelTslPublishedRequest::setSimple(bool simple) +{ + simple_ = simple; + setParameter("Simple", simple ? "true" : "false"); +} + +std::string GetThingModelTslPublishedRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetThingModelTslPublishedRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GetThingModelTslPublishedRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void GetThingModelTslPublishedRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + +std::string GetThingModelTslPublishedRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void GetThingModelTslPublishedRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string GetThingModelTslPublishedRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetThingModelTslPublishedRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string GetThingModelTslPublishedRequest::getProductKey()const +{ + return productKey_; +} + +void GetThingModelTslPublishedRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string GetThingModelTslPublishedRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetThingModelTslPublishedRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetThingModelTslPublishedRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetThingModelTslPublishedRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string GetThingModelTslPublishedRequest::getModelVersion()const +{ + return modelVersion_; +} + +void GetThingModelTslPublishedRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + +std::string GetThingModelTslPublishedRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void GetThingModelTslPublishedRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/GetThingModelTslPublishedResult.cc b/iot/src/model/GetThingModelTslPublishedResult.cc new file mode 100644 index 000000000..846c8b4df --- /dev/null +++ b/iot/src/model/GetThingModelTslPublishedResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetThingModelTslPublishedResult::GetThingModelTslPublishedResult() : + ServiceResult() +{} + +GetThingModelTslPublishedResult::GetThingModelTslPublishedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetThingModelTslPublishedResult::~GetThingModelTslPublishedResult() +{} + +void GetThingModelTslPublishedResult::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["TslStr"].isNull()) + data_.tslStr = dataNode["TslStr"].asString(); + if(!dataNode["TslUri"].isNull()) + data_.tslUri = dataNode["TslUri"].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(); + +} + +GetThingModelTslPublishedResult::Data GetThingModelTslPublishedResult::getData()const +{ + return data_; +} + +std::string GetThingModelTslPublishedResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetThingModelTslPublishedResult::getCode()const +{ + return code_; +} + +bool GetThingModelTslPublishedResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetThingModelTslRequest.cc b/iot/src/model/GetThingModelTslRequest.cc index 7dd602f14..5114e3aa2 100644 --- a/iot/src/model/GetThingModelTslRequest.cc +++ b/iot/src/model/GetThingModelTslRequest.cc @@ -27,6 +27,17 @@ GetThingModelTslRequest::GetThingModelTslRequest() : GetThingModelTslRequest::~GetThingModelTslRequest() {} +std::string GetThingModelTslRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void GetThingModelTslRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + bool GetThingModelTslRequest::getSimple()const { return simple_; @@ -49,6 +60,17 @@ void GetThingModelTslRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string GetThingModelTslRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void GetThingModelTslRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string GetThingModelTslRequest::getResourceGroupId()const { return resourceGroupId_; @@ -115,3 +137,14 @@ void GetThingModelTslRequest::setModelVersion(const std::string& modelVersion) setParameter("ModelVersion", modelVersion); } +std::string GetThingModelTslRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void GetThingModelTslRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/GetThingScriptRequest.cc b/iot/src/model/GetThingScriptRequest.cc new file mode 100644 index 000000000..b1b8f7b88 --- /dev/null +++ b/iot/src/model/GetThingScriptRequest.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::GetThingScriptRequest; + +GetThingScriptRequest::GetThingScriptRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetThingScript") +{ + setMethod(HttpRequest::Method::Post); +} + +GetThingScriptRequest::~GetThingScriptRequest() +{} + +std::string GetThingScriptRequest::getProductKey()const +{ + return productKey_; +} + +void GetThingScriptRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string GetThingScriptRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetThingScriptRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string GetThingScriptRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetThingScriptRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetThingScriptRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetThingScriptRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetThingScriptResult.cc b/iot/src/model/GetThingScriptResult.cc new file mode 100644 index 000000000..8dc9c7cc4 --- /dev/null +++ b/iot/src/model/GetThingScriptResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetThingScriptResult::GetThingScriptResult() : + ServiceResult() +{} + +GetThingScriptResult::GetThingScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetThingScriptResult::~GetThingScriptResult() +{} + +void GetThingScriptResult::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["ScriptType"].isNull()) + data_.scriptType = dataNode["ScriptType"].asString(); + if(!dataNode["ScriptUrl"].isNull()) + data_.scriptUrl = dataNode["ScriptUrl"].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(); + +} + +GetThingScriptResult::Data GetThingScriptResult::getData()const +{ + return data_; +} + +std::string GetThingScriptResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetThingScriptResult::getCode()const +{ + return code_; +} + +bool GetThingScriptResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ImportThingModelTslRequest.cc b/iot/src/model/ImportThingModelTslRequest.cc index fdc11c295..8f78a8483 100644 --- a/iot/src/model/ImportThingModelTslRequest.cc +++ b/iot/src/model/ImportThingModelTslRequest.cc @@ -27,6 +27,17 @@ ImportThingModelTslRequest::ImportThingModelTslRequest() : ImportThingModelTslRequest::~ImportThingModelTslRequest() {} +std::string ImportThingModelTslRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void ImportThingModelTslRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string ImportThingModelTslRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void ImportThingModelTslRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string ImportThingModelTslRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void ImportThingModelTslRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string ImportThingModelTslRequest::getResourceGroupId()const { return resourceGroupId_; @@ -60,6 +82,17 @@ void ImportThingModelTslRequest::setIotInstanceId(const std::string& iotInstance setParameter("IotInstanceId", iotInstanceId); } +std::string ImportThingModelTslRequest::getFunctionBlockName()const +{ + return functionBlockName_; +} + +void ImportThingModelTslRequest::setFunctionBlockName(const std::string& functionBlockName) +{ + functionBlockName_ = functionBlockName; + setParameter("FunctionBlockName", functionBlockName); +} + std::string ImportThingModelTslRequest::getProductKey()const { return productKey_; @@ -115,3 +148,14 @@ void ImportThingModelTslRequest::setTslStr(const std::string& tslStr) setParameter("TslStr", tslStr); } +std::string ImportThingModelTslRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void ImportThingModelTslRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/ListOTAJobByDeviceResult.cc b/iot/src/model/ListOTAJobByDeviceResult.cc index 698409e29..86253ecd6 100644 --- a/iot/src/model/ListOTAJobByDeviceResult.cc +++ b/iot/src/model/ListOTAJobByDeviceResult.cc @@ -65,6 +65,16 @@ void ListOTAJobByDeviceResult::parse(const std::string &payload) dataObject.targetSelection = valueDataSimpleOTAJobInfo["TargetSelection"].asString(); if(!valueDataSimpleOTAJobInfo["SelectionType"].isNull()) dataObject.selectionType = valueDataSimpleOTAJobInfo["SelectionType"].asString(); + auto allTagsNode = valueDataSimpleOTAJobInfo["Tags"]["OtaTagDTO"]; + for (auto valueDataSimpleOTAJobInfoTagsOtaTagDTO : allTagsNode) + { + SimpleOTAJobInfo::OtaTagDTO tagsObject; + if(!valueDataSimpleOTAJobInfoTagsOtaTagDTO["Key"].isNull()) + tagsObject.key = valueDataSimpleOTAJobInfoTagsOtaTagDTO["Key"].asString(); + if(!valueDataSimpleOTAJobInfoTagsOtaTagDTO["Value"].isNull()) + tagsObject.value = valueDataSimpleOTAJobInfoTagsOtaTagDTO["Value"].asString(); + dataObject.tags.push_back(tagsObject); + } data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/iot/src/model/ListOTAJobByFirmwareResult.cc b/iot/src/model/ListOTAJobByFirmwareResult.cc index 2604090dd..b9b593626 100644 --- a/iot/src/model/ListOTAJobByFirmwareResult.cc +++ b/iot/src/model/ListOTAJobByFirmwareResult.cc @@ -65,6 +65,16 @@ void ListOTAJobByFirmwareResult::parse(const std::string &payload) dataObject.targetSelection = valueDataSimpleOTAJobInfo["TargetSelection"].asString(); if(!valueDataSimpleOTAJobInfo["SelectionType"].isNull()) dataObject.selectionType = valueDataSimpleOTAJobInfo["SelectionType"].asString(); + auto allTagsNode = valueDataSimpleOTAJobInfo["Tags"]["OtaTagDTO"]; + for (auto valueDataSimpleOTAJobInfoTagsOtaTagDTO : allTagsNode) + { + SimpleOTAJobInfo::OtaTagDTO tagsObject; + if(!valueDataSimpleOTAJobInfoTagsOtaTagDTO["Key"].isNull()) + tagsObject.key = valueDataSimpleOTAJobInfoTagsOtaTagDTO["Key"].asString(); + if(!valueDataSimpleOTAJobInfoTagsOtaTagDTO["Value"].isNull()) + tagsObject.value = valueDataSimpleOTAJobInfoTagsOtaTagDTO["Value"].asString(); + dataObject.tags.push_back(tagsObject); + } data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/iot/src/model/ListOTAModuleByProductRequest.cc b/iot/src/model/ListOTAModuleByProductRequest.cc new file mode 100644 index 000000000..f90e8e132 --- /dev/null +++ b/iot/src/model/ListOTAModuleByProductRequest.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::ListOTAModuleByProductRequest; + +ListOTAModuleByProductRequest::ListOTAModuleByProductRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListOTAModuleByProduct") +{ + setMethod(HttpRequest::Method::Get); +} + +ListOTAModuleByProductRequest::~ListOTAModuleByProductRequest() +{} + +std::string ListOTAModuleByProductRequest::getAuthConfig()const +{ + return authConfig_; +} + +void ListOTAModuleByProductRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string ListOTAModuleByProductRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListOTAModuleByProductRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string ListOTAModuleByProductRequest::getProductKey()const +{ + return productKey_; +} + +void ListOTAModuleByProductRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string ListOTAModuleByProductRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListOTAModuleByProductRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListOTAModuleByProductRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListOTAModuleByProductRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/ListOTAModuleByProductResult.cc b/iot/src/model/ListOTAModuleByProductResult.cc new file mode 100644 index 000000000..d9ce75e24 --- /dev/null +++ b/iot/src/model/ListOTAModuleByProductResult.cc @@ -0,0 +1,88 @@ +/* + * 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; + +ListOTAModuleByProductResult::ListOTAModuleByProductResult() : + ServiceResult() +{} + +ListOTAModuleByProductResult::ListOTAModuleByProductResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOTAModuleByProductResult::~ListOTAModuleByProductResult() +{} + +void ListOTAModuleByProductResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["OtaModuleDTO"]; + for (auto valueDataOtaModuleDTO : allDataNode) + { + OtaModuleDTO dataObject; + if(!valueDataOtaModuleDTO["ProductKey"].isNull()) + dataObject.productKey = valueDataOtaModuleDTO["ProductKey"].asString(); + if(!valueDataOtaModuleDTO["ModuleName"].isNull()) + dataObject.moduleName = valueDataOtaModuleDTO["ModuleName"].asString(); + if(!valueDataOtaModuleDTO["AliasName"].isNull()) + dataObject.aliasName = valueDataOtaModuleDTO["AliasName"].asString(); + if(!valueDataOtaModuleDTO["Desc"].isNull()) + dataObject.desc = valueDataOtaModuleDTO["Desc"].asString(); + if(!valueDataOtaModuleDTO["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataOtaModuleDTO["GmtCreate"].asString(); + if(!valueDataOtaModuleDTO["GmtModified"].isNull()) + dataObject.gmtModified = valueDataOtaModuleDTO["GmtModified"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector ListOTAModuleByProductResult::getData()const +{ + return data_; +} + +std::string ListOTAModuleByProductResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListOTAModuleByProductResult::getCode()const +{ + return code_; +} + +bool ListOTAModuleByProductResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListOTAModuleVersionsByDeviceRequest.cc b/iot/src/model/ListOTAModuleVersionsByDeviceRequest.cc new file mode 100644 index 000000000..7cb8d5325 --- /dev/null +++ b/iot/src/model/ListOTAModuleVersionsByDeviceRequest.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::ListOTAModuleVersionsByDeviceRequest; + +ListOTAModuleVersionsByDeviceRequest::ListOTAModuleVersionsByDeviceRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListOTAModuleVersionsByDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +ListOTAModuleVersionsByDeviceRequest::~ListOTAModuleVersionsByDeviceRequest() +{} + +std::string ListOTAModuleVersionsByDeviceRequest::getIotId()const +{ + return iotId_; +} + +void ListOTAModuleVersionsByDeviceRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string ListOTAModuleVersionsByDeviceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListOTAModuleVersionsByDeviceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListOTAModuleVersionsByDeviceRequest::getPageSize()const +{ + return pageSize_; +} + +void ListOTAModuleVersionsByDeviceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListOTAModuleVersionsByDeviceRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListOTAModuleVersionsByDeviceRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListOTAModuleVersionsByDeviceRequest::getProductKey()const +{ + return productKey_; +} + +void ListOTAModuleVersionsByDeviceRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string ListOTAModuleVersionsByDeviceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListOTAModuleVersionsByDeviceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListOTAModuleVersionsByDeviceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListOTAModuleVersionsByDeviceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string ListOTAModuleVersionsByDeviceRequest::getDeviceName()const +{ + return deviceName_; +} + +void ListOTAModuleVersionsByDeviceRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/ListOTAModuleVersionsByDeviceResult.cc b/iot/src/model/ListOTAModuleVersionsByDeviceResult.cc new file mode 100644 index 000000000..b82a1df56 --- /dev/null +++ b/iot/src/model/ListOTAModuleVersionsByDeviceResult.cc @@ -0,0 +1,114 @@ +/* + * 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; + +ListOTAModuleVersionsByDeviceResult::ListOTAModuleVersionsByDeviceResult() : + ServiceResult() +{} + +ListOTAModuleVersionsByDeviceResult::ListOTAModuleVersionsByDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOTAModuleVersionsByDeviceResult::~ListOTAModuleVersionsByDeviceResult() +{} + +void ListOTAModuleVersionsByDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SimpleOTAModuleInfo"]; + for (auto valueDataSimpleOTAModuleInfo : allDataNode) + { + SimpleOTAModuleInfo dataObject; + if(!valueDataSimpleOTAModuleInfo["ProductKey"].isNull()) + dataObject.productKey = valueDataSimpleOTAModuleInfo["ProductKey"].asString(); + if(!valueDataSimpleOTAModuleInfo["DeviceName"].isNull()) + dataObject.deviceName = valueDataSimpleOTAModuleInfo["DeviceName"].asString(); + if(!valueDataSimpleOTAModuleInfo["IotId"].isNull()) + dataObject.iotId = valueDataSimpleOTAModuleInfo["IotId"].asString(); + if(!valueDataSimpleOTAModuleInfo["ModuleVersion"].isNull()) + dataObject.moduleVersion = valueDataSimpleOTAModuleInfo["ModuleVersion"].asString(); + if(!valueDataSimpleOTAModuleInfo["ModuleName"].isNull()) + dataObject.moduleName = valueDataSimpleOTAModuleInfo["ModuleName"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + +} + +int ListOTAModuleVersionsByDeviceResult::getPageSize()const +{ + return pageSize_; +} + +int ListOTAModuleVersionsByDeviceResult::getPageCount()const +{ + return pageCount_; +} + +int ListOTAModuleVersionsByDeviceResult::getCurrentPage()const +{ + return currentPage_; +} + +int ListOTAModuleVersionsByDeviceResult::getTotal()const +{ + return total_; +} + +std::vector ListOTAModuleVersionsByDeviceResult::getData()const +{ + return data_; +} + +std::string ListOTAModuleVersionsByDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListOTAModuleVersionsByDeviceResult::getCode()const +{ + return code_; +} + +bool ListOTAModuleVersionsByDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListOTATaskByJobRequest.cc b/iot/src/model/ListOTATaskByJobRequest.cc index 5f024a929..2e9fb4c59 100644 --- a/iot/src/model/ListOTATaskByJobRequest.cc +++ b/iot/src/model/ListOTATaskByJobRequest.cc @@ -71,6 +71,19 @@ void ListOTATaskByJobRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::vector ListOTATaskByJobRequest::getDeviceNames()const +{ + return deviceNames_; +} + +void ListOTATaskByJobRequest::setDeviceNames(const std::vector& deviceNames) +{ + deviceNames_ = deviceNames; + for(int dep1 = 0; dep1!= deviceNames.size(); dep1++) { + setParameter("DeviceNames."+ std::to_string(dep1), deviceNames.at(dep1)); + } +} + int ListOTATaskByJobRequest::getCurrentPage()const { return currentPage_; diff --git a/iot/src/model/PubRequest.cc b/iot/src/model/PubRequest.cc index 105c7f0f8..694688949 100644 --- a/iot/src/model/PubRequest.cc +++ b/iot/src/model/PubRequest.cc @@ -27,6 +27,22 @@ PubRequest::PubRequest() : PubRequest::~PubRequest() {} +std::vector PubRequest::getUserProp()const +{ + return userProp_; +} + +void PubRequest::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 PubRequest::getMessageContent()const { return messageContent_; @@ -60,6 +76,17 @@ void PubRequest::setQos(int qos) setParameter("Qos", std::to_string(qos)); } +std::string PubRequest::getCorrelationData()const +{ + return correlationData_; +} + +void PubRequest::setCorrelationData(const std::string& correlationData) +{ + correlationData_ = correlationData; + setParameter("CorrelationData", correlationData); +} + std::string PubRequest::getIotInstanceId()const { return iotInstanceId_; @@ -71,6 +98,17 @@ void PubRequest::setIotInstanceId(const std::string& iotInstanceId) setParameter("IotInstanceId", iotInstanceId); } +std::string PubRequest::getResponseTopic()const +{ + return responseTopic_; +} + +void PubRequest::setResponseTopic(const std::string& responseTopic) +{ + responseTopic_ = responseTopic; + setParameter("ResponseTopic", responseTopic); +} + std::string PubRequest::getTopicFullName()const { return topicFullName_; diff --git a/iot/src/model/PublishThingModelRequest.cc b/iot/src/model/PublishThingModelRequest.cc index afd7a2348..beadfd128 100644 --- a/iot/src/model/PublishThingModelRequest.cc +++ b/iot/src/model/PublishThingModelRequest.cc @@ -27,6 +27,17 @@ PublishThingModelRequest::PublishThingModelRequest() : PublishThingModelRequest::~PublishThingModelRequest() {} +std::string PublishThingModelRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void PublishThingModelRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string PublishThingModelRequest::getDescription()const { return description_; @@ -49,6 +60,17 @@ void PublishThingModelRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string PublishThingModelRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void PublishThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string PublishThingModelRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/iot/src/model/QueryAppDeviceListRequest.cc b/iot/src/model/QueryAppDeviceListRequest.cc index 4b5d46d37..cf4aeb467 100644 --- a/iot/src/model/QueryAppDeviceListRequest.cc +++ b/iot/src/model/QueryAppDeviceListRequest.cc @@ -27,17 +27,6 @@ QueryAppDeviceListRequest::QueryAppDeviceListRequest() : QueryAppDeviceListRequest::~QueryAppDeviceListRequest() {} -int QueryAppDeviceListRequest::getCurrentPage()const -{ - return currentPage_; -} - -void QueryAppDeviceListRequest::setCurrentPage(int currentPage) -{ - currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); -} - std::vector QueryAppDeviceListRequest::getTagList()const { return tagList_; @@ -67,19 +56,6 @@ void QueryAppDeviceListRequest::setProductKeyList(const std::vector } } -std::vector QueryAppDeviceListRequest::getCategoryKeyList()const -{ - return categoryKeyList_; -} - -void QueryAppDeviceListRequest::setCategoryKeyList(const std::vector& categoryKeyList) -{ - categoryKeyList_ = categoryKeyList; - for(int dep1 = 0; dep1!= categoryKeyList.size(); dep1++) { - setParameter("CategoryKeyList."+ std::to_string(dep1), categoryKeyList.at(dep1)); - } -} - std::string QueryAppDeviceListRequest::getIotInstanceId()const { return iotInstanceId_; @@ -102,6 +78,52 @@ void QueryAppDeviceListRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +int QueryAppDeviceListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void QueryAppDeviceListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::vector QueryAppDeviceListRequest::getCategoryKeyList()const +{ + return categoryKeyList_; +} + +void QueryAppDeviceListRequest::setCategoryKeyList(const std::vector& categoryKeyList) +{ + categoryKeyList_ = categoryKeyList; + for(int dep1 = 0; dep1!= categoryKeyList.size(); dep1++) { + setParameter("CategoryKeyList."+ std::to_string(dep1), categoryKeyList.at(dep1)); + } +} + +std::string QueryAppDeviceListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryAppDeviceListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryAppDeviceListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryAppDeviceListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + std::string QueryAppDeviceListRequest::getAppKey()const { return appKey_; diff --git a/iot/src/model/QueryClientIdsRequest.cc b/iot/src/model/QueryClientIdsRequest.cc new file mode 100644 index 000000000..c432484c9 --- /dev/null +++ b/iot/src/model/QueryClientIdsRequest.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::QueryClientIdsRequest; + +QueryClientIdsRequest::QueryClientIdsRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryClientIds") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryClientIdsRequest::~QueryClientIdsRequest() +{} + +std::string QueryClientIdsRequest::getAuthConfig()const +{ + return authConfig_; +} + +void QueryClientIdsRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string QueryClientIdsRequest::getIotId()const +{ + return iotId_; +} + +void QueryClientIdsRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string QueryClientIdsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryClientIdsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryClientIdsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryClientIdsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryClientIdsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryClientIdsResult.cc b/iot/src/model/QueryClientIdsResult.cc new file mode 100644 index 000000000..23db3f479 --- /dev/null +++ b/iot/src/model/QueryClientIdsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryClientIdsResult::QueryClientIdsResult() : + ServiceResult() +{} + +QueryClientIdsResult::QueryClientIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryClientIdsResult::~QueryClientIdsResult() +{} + +void QueryClientIdsResult::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["IotId"].isNull()) + data_.iotId = dataNode["IotId"].asString(); + auto allDynamicRegClientIdsNode = dataNode["DynamicRegClientIds"]["DynamicRegClientId"]; + for (auto dataNodeDynamicRegClientIdsDynamicRegClientId : allDynamicRegClientIdsNode) + { + Data::DynamicRegClientId dynamicRegClientIdObject; + if(!dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].isNull()) + dynamicRegClientIdObject.clientId = dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].asString(); + if(!dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].isNull()) + dynamicRegClientIdObject.createTime = std::stol(dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].asString()); + data_.dynamicRegClientIds.push_back(dynamicRegClientIdObject); + } + 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(); + +} + +QueryClientIdsResult::Data QueryClientIdsResult::getData()const +{ + return data_; +} + +std::string QueryClientIdsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryClientIdsResult::getCode()const +{ + return code_; +} + +bool QueryClientIdsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceBySQLRequest.cc b/iot/src/model/QueryDeviceBySQLRequest.cc new file mode 100644 index 000000000..ee99f9a48 --- /dev/null +++ b/iot/src/model/QueryDeviceBySQLRequest.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::QueryDeviceBySQLRequest; + +QueryDeviceBySQLRequest::QueryDeviceBySQLRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryDeviceBySQL") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDeviceBySQLRequest::~QueryDeviceBySQLRequest() +{} + +std::string QueryDeviceBySQLRequest::getSQL()const +{ + return sQL_; +} + +void QueryDeviceBySQLRequest::setSQL(const std::string& sQL) +{ + sQL_ = sQL; + setParameter("SQL", sQL); +} + +std::string QueryDeviceBySQLRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryDeviceBySQLRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryDeviceBySQLRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryDeviceBySQLRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryDeviceBySQLRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryDeviceBySQLRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryDeviceBySQLResult.cc b/iot/src/model/QueryDeviceBySQLResult.cc new file mode 100644 index 000000000..27ff9e45b --- /dev/null +++ b/iot/src/model/QueryDeviceBySQLResult.cc @@ -0,0 +1,127 @@ +/* + * 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; + +QueryDeviceBySQLResult::QueryDeviceBySQLResult() : + ServiceResult() +{} + +QueryDeviceBySQLResult::QueryDeviceBySQLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDeviceBySQLResult::~QueryDeviceBySQLResult() +{} + +void QueryDeviceBySQLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SimpleDeviceSearchInfo"]; + for (auto valueDataSimpleDeviceSearchInfo : allDataNode) + { + SimpleDeviceSearchInfo dataObject; + if(!valueDataSimpleDeviceSearchInfo["ProductKey"].isNull()) + dataObject.productKey = valueDataSimpleDeviceSearchInfo["ProductKey"].asString(); + if(!valueDataSimpleDeviceSearchInfo["DeviceName"].isNull()) + dataObject.deviceName = valueDataSimpleDeviceSearchInfo["DeviceName"].asString(); + if(!valueDataSimpleDeviceSearchInfo["Nickname"].isNull()) + dataObject.nickname = valueDataSimpleDeviceSearchInfo["Nickname"].asString(); + if(!valueDataSimpleDeviceSearchInfo["Status"].isNull()) + dataObject.status = valueDataSimpleDeviceSearchInfo["Status"].asString(); + if(!valueDataSimpleDeviceSearchInfo["ActiveTime"].isNull()) + dataObject.activeTime = valueDataSimpleDeviceSearchInfo["ActiveTime"].asString(); + if(!valueDataSimpleDeviceSearchInfo["IotId"].isNull()) + dataObject.iotId = valueDataSimpleDeviceSearchInfo["IotId"].asString(); + if(!valueDataSimpleDeviceSearchInfo["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataSimpleDeviceSearchInfo["GmtCreate"].asString(); + if(!valueDataSimpleDeviceSearchInfo["GmtModified"].isNull()) + dataObject.gmtModified = valueDataSimpleDeviceSearchInfo["GmtModified"].asString(); + auto allGroupsNode = valueDataSimpleDeviceSearchInfo["Groups"]["SimpleDeviceGroupInfo"]; + for (auto valueDataSimpleDeviceSearchInfoGroupsSimpleDeviceGroupInfo : allGroupsNode) + { + SimpleDeviceSearchInfo::SimpleDeviceGroupInfo groupsObject; + if(!valueDataSimpleDeviceSearchInfoGroupsSimpleDeviceGroupInfo["GroupId"].isNull()) + groupsObject.groupId = valueDataSimpleDeviceSearchInfoGroupsSimpleDeviceGroupInfo["GroupId"].asString(); + dataObject.groups.push_back(groupsObject); + } + auto allTagsNode = valueDataSimpleDeviceSearchInfo["Tags"]["TagInfo"]; + for (auto valueDataSimpleDeviceSearchInfoTagsTagInfo : allTagsNode) + { + SimpleDeviceSearchInfo::TagInfo tagsObject; + if(!valueDataSimpleDeviceSearchInfoTagsTagInfo["TagName"].isNull()) + tagsObject.tagName = valueDataSimpleDeviceSearchInfoTagsTagInfo["TagName"].asString(); + if(!valueDataSimpleDeviceSearchInfoTagsTagInfo["TagValue"].isNull()) + tagsObject.tagValue = valueDataSimpleDeviceSearchInfoTagsTagInfo["TagValue"].asString(); + dataObject.tags.push_back(tagsObject); + } + auto allOTAModulesNode = valueDataSimpleDeviceSearchInfo["OTAModules"]["OTAModuleInfo"]; + for (auto valueDataSimpleDeviceSearchInfoOTAModulesOTAModuleInfo : allOTAModulesNode) + { + SimpleDeviceSearchInfo::OTAModuleInfo oTAModulesObject; + if(!valueDataSimpleDeviceSearchInfoOTAModulesOTAModuleInfo["ModuleName"].isNull()) + oTAModulesObject.moduleName = valueDataSimpleDeviceSearchInfoOTAModulesOTAModuleInfo["ModuleName"].asString(); + if(!valueDataSimpleDeviceSearchInfoOTAModulesOTAModuleInfo["FirmwareVersion"].isNull()) + oTAModulesObject.firmwareVersion = valueDataSimpleDeviceSearchInfoOTAModulesOTAModuleInfo["FirmwareVersion"].asString(); + dataObject.oTAModules.push_back(oTAModulesObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long QueryDeviceBySQLResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector QueryDeviceBySQLResult::getData()const +{ + return data_; +} + +std::string QueryDeviceBySQLResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryDeviceBySQLResult::getCode()const +{ + return code_; +} + +bool QueryDeviceBySQLResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceDesiredPropertyRequest.cc b/iot/src/model/QueryDeviceDesiredPropertyRequest.cc index 6554af4d0..89511b78a 100644 --- a/iot/src/model/QueryDeviceDesiredPropertyRequest.cc +++ b/iot/src/model/QueryDeviceDesiredPropertyRequest.cc @@ -117,3 +117,14 @@ void QueryDeviceDesiredPropertyRequest::setDeviceName(const std::string& deviceN setParameter("DeviceName", deviceName); } +std::string QueryDeviceDesiredPropertyRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void QueryDeviceDesiredPropertyRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/QueryDeviceOriginalEventDataRequest.cc b/iot/src/model/QueryDeviceOriginalEventDataRequest.cc new file mode 100644 index 000000000..a192b03b3 --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalEventDataRequest.cc @@ -0,0 +1,161 @@ +/* + * 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::QueryDeviceOriginalEventDataRequest; + +QueryDeviceOriginalEventDataRequest::QueryDeviceOriginalEventDataRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryDeviceOriginalEventData") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDeviceOriginalEventDataRequest::~QueryDeviceOriginalEventDataRequest() +{} + +std::string QueryDeviceOriginalEventDataRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QueryDeviceOriginalEventDataRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long QueryDeviceOriginalEventDataRequest::getStartTime()const +{ + return startTime_; +} + +void QueryDeviceOriginalEventDataRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string QueryDeviceOriginalEventDataRequest::getIotId()const +{ + return iotId_; +} + +void QueryDeviceOriginalEventDataRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string QueryDeviceOriginalEventDataRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryDeviceOriginalEventDataRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int QueryDeviceOriginalEventDataRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDeviceOriginalEventDataRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryDeviceOriginalEventDataRequest::getIdentifier()const +{ + return identifier_; +} + +void QueryDeviceOriginalEventDataRequest::setIdentifier(const std::string& identifier) +{ + identifier_ = identifier; + setParameter("Identifier", identifier); +} + +long QueryDeviceOriginalEventDataRequest::getEndTime()const +{ + return endTime_; +} + +void QueryDeviceOriginalEventDataRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +std::string QueryDeviceOriginalEventDataRequest::getProductKey()const +{ + return productKey_; +} + +void QueryDeviceOriginalEventDataRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +int QueryDeviceOriginalEventDataRequest::getAsc()const +{ + return asc_; +} + +void QueryDeviceOriginalEventDataRequest::setAsc(int asc) +{ + asc_ = asc; + setParameter("Asc", std::to_string(asc)); +} + +std::string QueryDeviceOriginalEventDataRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryDeviceOriginalEventDataRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryDeviceOriginalEventDataRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryDeviceOriginalEventDataRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryDeviceOriginalEventDataRequest::getDeviceName()const +{ + return deviceName_; +} + +void QueryDeviceOriginalEventDataRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryDeviceOriginalEventDataResult.cc b/iot/src/model/QueryDeviceOriginalEventDataResult.cc new file mode 100644 index 000000000..5b1ce1128 --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalEventDataResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +QueryDeviceOriginalEventDataResult::QueryDeviceOriginalEventDataResult() : + ServiceResult() +{} + +QueryDeviceOriginalEventDataResult::QueryDeviceOriginalEventDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDeviceOriginalEventDataResult::~QueryDeviceOriginalEventDataResult() +{} + +void QueryDeviceOriginalEventDataResult::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["NextPageToken"].isNull()) + data_.nextPageToken = dataNode["NextPageToken"].asString(); + if(!dataNode["NextValid"].isNull()) + data_.nextValid = dataNode["NextValid"].asString() == "true"; + auto allListNode = dataNode["List"]["EventInfo"]; + for (auto dataNodeListEventInfo : allListNode) + { + Data::EventInfo eventInfoObject; + if(!dataNodeListEventInfo["Time"].isNull()) + eventInfoObject.time = dataNodeListEventInfo["Time"].asString(); + if(!dataNodeListEventInfo["Identifier"].isNull()) + eventInfoObject.identifier = dataNodeListEventInfo["Identifier"].asString(); + if(!dataNodeListEventInfo["Name"].isNull()) + eventInfoObject.name = dataNodeListEventInfo["Name"].asString(); + if(!dataNodeListEventInfo["EventType"].isNull()) + eventInfoObject.eventType = dataNodeListEventInfo["EventType"].asString(); + if(!dataNodeListEventInfo["OutputData"].isNull()) + eventInfoObject.outputData = dataNodeListEventInfo["OutputData"].asString(); + data_.list.push_back(eventInfoObject); + } + 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(); + +} + +QueryDeviceOriginalEventDataResult::Data QueryDeviceOriginalEventDataResult::getData()const +{ + return data_; +} + +std::string QueryDeviceOriginalEventDataResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryDeviceOriginalEventDataResult::getCode()const +{ + return code_; +} + +bool QueryDeviceOriginalEventDataResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceOriginalPropertyDataRequest.cc b/iot/src/model/QueryDeviceOriginalPropertyDataRequest.cc new file mode 100644 index 000000000..e68ac231e --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalPropertyDataRequest.cc @@ -0,0 +1,161 @@ +/* + * 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::QueryDeviceOriginalPropertyDataRequest; + +QueryDeviceOriginalPropertyDataRequest::QueryDeviceOriginalPropertyDataRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryDeviceOriginalPropertyData") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDeviceOriginalPropertyDataRequest::~QueryDeviceOriginalPropertyDataRequest() +{} + +std::string QueryDeviceOriginalPropertyDataRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QueryDeviceOriginalPropertyDataRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long QueryDeviceOriginalPropertyDataRequest::getStartTime()const +{ + return startTime_; +} + +void QueryDeviceOriginalPropertyDataRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getIotId()const +{ + return iotId_; +} + +void QueryDeviceOriginalPropertyDataRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryDeviceOriginalPropertyDataRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int QueryDeviceOriginalPropertyDataRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDeviceOriginalPropertyDataRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getIdentifier()const +{ + return identifier_; +} + +void QueryDeviceOriginalPropertyDataRequest::setIdentifier(const std::string& identifier) +{ + identifier_ = identifier; + setParameter("Identifier", identifier); +} + +long QueryDeviceOriginalPropertyDataRequest::getEndTime()const +{ + return endTime_; +} + +void QueryDeviceOriginalPropertyDataRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getProductKey()const +{ + return productKey_; +} + +void QueryDeviceOriginalPropertyDataRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +int QueryDeviceOriginalPropertyDataRequest::getAsc()const +{ + return asc_; +} + +void QueryDeviceOriginalPropertyDataRequest::setAsc(int asc) +{ + asc_ = asc; + setParameter("Asc", std::to_string(asc)); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryDeviceOriginalPropertyDataRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryDeviceOriginalPropertyDataRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryDeviceOriginalPropertyDataRequest::getDeviceName()const +{ + return deviceName_; +} + +void QueryDeviceOriginalPropertyDataRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryDeviceOriginalPropertyDataResult.cc b/iot/src/model/QueryDeviceOriginalPropertyDataResult.cc new file mode 100644 index 000000000..fdaa788bd --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalPropertyDataResult.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; + +QueryDeviceOriginalPropertyDataResult::QueryDeviceOriginalPropertyDataResult() : + ServiceResult() +{} + +QueryDeviceOriginalPropertyDataResult::QueryDeviceOriginalPropertyDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDeviceOriginalPropertyDataResult::~QueryDeviceOriginalPropertyDataResult() +{} + +void QueryDeviceOriginalPropertyDataResult::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["NextValid"].isNull()) + data_.nextValid = dataNode["NextValid"].asString() == "true"; + if(!dataNode["nextPageToken"].isNull()) + data_.nextPageToken = dataNode["nextPageToken"].asString(); + auto allListNode = dataNode["List"]["PropertyInfo"]; + for (auto dataNodeListPropertyInfo : allListNode) + { + Data::PropertyInfo propertyInfoObject; + if(!dataNodeListPropertyInfo["Time"].isNull()) + propertyInfoObject.time = dataNodeListPropertyInfo["Time"].asString(); + if(!dataNodeListPropertyInfo["Value"].isNull()) + propertyInfoObject.value = dataNodeListPropertyInfo["Value"].asString(); + data_.list.push_back(propertyInfoObject); + } + 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(); + +} + +QueryDeviceOriginalPropertyDataResult::Data QueryDeviceOriginalPropertyDataResult::getData()const +{ + return data_; +} + +std::string QueryDeviceOriginalPropertyDataResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryDeviceOriginalPropertyDataResult::getCode()const +{ + return code_; +} + +bool QueryDeviceOriginalPropertyDataResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceOriginalPropertyStatusRequest.cc b/iot/src/model/QueryDeviceOriginalPropertyStatusRequest.cc new file mode 100644 index 000000000..ec4b85a46 --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalPropertyStatusRequest.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::QueryDeviceOriginalPropertyStatusRequest; + +QueryDeviceOriginalPropertyStatusRequest::QueryDeviceOriginalPropertyStatusRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryDeviceOriginalPropertyStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDeviceOriginalPropertyStatusRequest::~QueryDeviceOriginalPropertyStatusRequest() +{} + +std::string QueryDeviceOriginalPropertyStatusRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getIotId()const +{ + return iotId_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int QueryDeviceOriginalPropertyStatusRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getProductKey()const +{ + return productKey_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +int QueryDeviceOriginalPropertyStatusRequest::getAsc()const +{ + return asc_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setAsc(int asc) +{ + asc_ = asc; + setParameter("Asc", std::to_string(asc)); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryDeviceOriginalPropertyStatusRequest::getDeviceName()const +{ + return deviceName_; +} + +void QueryDeviceOriginalPropertyStatusRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryDeviceOriginalPropertyStatusResult.cc b/iot/src/model/QueryDeviceOriginalPropertyStatusResult.cc new file mode 100644 index 000000000..9a8e7b7eb --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalPropertyStatusResult.cc @@ -0,0 +1,87 @@ +/* + * 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; + +QueryDeviceOriginalPropertyStatusResult::QueryDeviceOriginalPropertyStatusResult() : + ServiceResult() +{} + +QueryDeviceOriginalPropertyStatusResult::QueryDeviceOriginalPropertyStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDeviceOriginalPropertyStatusResult::~QueryDeviceOriginalPropertyStatusResult() +{} + +void QueryDeviceOriginalPropertyStatusResult::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["NextValid"].isNull()) + data_.nextValid = dataNode["NextValid"].asString() == "true"; + if(!dataNode["NextPageToken"].isNull()) + data_.nextPageToken = dataNode["NextPageToken"].asString(); + auto allListNode = dataNode["List"]["PropertyStatusDataInfo"]; + for (auto dataNodeListPropertyStatusDataInfo : allListNode) + { + Data::PropertyStatusDataInfo propertyStatusDataInfoObject; + if(!dataNodeListPropertyStatusDataInfo["Identifier"].isNull()) + propertyStatusDataInfoObject.identifier = dataNodeListPropertyStatusDataInfo["Identifier"].asString(); + if(!dataNodeListPropertyStatusDataInfo["Value"].isNull()) + propertyStatusDataInfoObject.value = dataNodeListPropertyStatusDataInfo["Value"].asString(); + if(!dataNodeListPropertyStatusDataInfo["Time"].isNull()) + propertyStatusDataInfoObject.time = std::stol(dataNodeListPropertyStatusDataInfo["Time"].asString()); + data_.list.push_back(propertyStatusDataInfoObject); + } + 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(); + +} + +QueryDeviceOriginalPropertyStatusResult::Data QueryDeviceOriginalPropertyStatusResult::getData()const +{ + return data_; +} + +std::string QueryDeviceOriginalPropertyStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryDeviceOriginalPropertyStatusResult::getCode()const +{ + return code_; +} + +bool QueryDeviceOriginalPropertyStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceOriginalServiceDataRequest.cc b/iot/src/model/QueryDeviceOriginalServiceDataRequest.cc new file mode 100644 index 000000000..9b8f3dab2 --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalServiceDataRequest.cc @@ -0,0 +1,161 @@ +/* + * 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::QueryDeviceOriginalServiceDataRequest; + +QueryDeviceOriginalServiceDataRequest::QueryDeviceOriginalServiceDataRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryDeviceOriginalServiceData") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDeviceOriginalServiceDataRequest::~QueryDeviceOriginalServiceDataRequest() +{} + +std::string QueryDeviceOriginalServiceDataRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void QueryDeviceOriginalServiceDataRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setParameter("NextPageToken", nextPageToken); +} + +long QueryDeviceOriginalServiceDataRequest::getStartTime()const +{ + return startTime_; +} + +void QueryDeviceOriginalServiceDataRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +std::string QueryDeviceOriginalServiceDataRequest::getIotId()const +{ + return iotId_; +} + +void QueryDeviceOriginalServiceDataRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string QueryDeviceOriginalServiceDataRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryDeviceOriginalServiceDataRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int QueryDeviceOriginalServiceDataRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDeviceOriginalServiceDataRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryDeviceOriginalServiceDataRequest::getIdentifier()const +{ + return identifier_; +} + +void QueryDeviceOriginalServiceDataRequest::setIdentifier(const std::string& identifier) +{ + identifier_ = identifier; + setParameter("Identifier", identifier); +} + +long QueryDeviceOriginalServiceDataRequest::getEndTime()const +{ + return endTime_; +} + +void QueryDeviceOriginalServiceDataRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + +std::string QueryDeviceOriginalServiceDataRequest::getProductKey()const +{ + return productKey_; +} + +void QueryDeviceOriginalServiceDataRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +int QueryDeviceOriginalServiceDataRequest::getAsc()const +{ + return asc_; +} + +void QueryDeviceOriginalServiceDataRequest::setAsc(int asc) +{ + asc_ = asc; + setParameter("Asc", std::to_string(asc)); +} + +std::string QueryDeviceOriginalServiceDataRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryDeviceOriginalServiceDataRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryDeviceOriginalServiceDataRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryDeviceOriginalServiceDataRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryDeviceOriginalServiceDataRequest::getDeviceName()const +{ + return deviceName_; +} + +void QueryDeviceOriginalServiceDataRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryDeviceOriginalServiceDataResult.cc b/iot/src/model/QueryDeviceOriginalServiceDataResult.cc new file mode 100644 index 000000000..0b1f04e7c --- /dev/null +++ b/iot/src/model/QueryDeviceOriginalServiceDataResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +QueryDeviceOriginalServiceDataResult::QueryDeviceOriginalServiceDataResult() : + ServiceResult() +{} + +QueryDeviceOriginalServiceDataResult::QueryDeviceOriginalServiceDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDeviceOriginalServiceDataResult::~QueryDeviceOriginalServiceDataResult() +{} + +void QueryDeviceOriginalServiceDataResult::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["NextPageToken"].isNull()) + data_.nextPageToken = dataNode["NextPageToken"].asString(); + if(!dataNode["NextValid"].isNull()) + data_.nextValid = dataNode["NextValid"].asString() == "true"; + auto allListNode = dataNode["List"]["ServiceInfo"]; + for (auto dataNodeListServiceInfo : allListNode) + { + Data::ServiceInfo serviceInfoObject; + if(!dataNodeListServiceInfo["Time"].isNull()) + serviceInfoObject.time = dataNodeListServiceInfo["Time"].asString(); + if(!dataNodeListServiceInfo["Identifier"].isNull()) + serviceInfoObject.identifier = dataNodeListServiceInfo["Identifier"].asString(); + if(!dataNodeListServiceInfo["Name"].isNull()) + serviceInfoObject.name = dataNodeListServiceInfo["Name"].asString(); + if(!dataNodeListServiceInfo["InputData"].isNull()) + serviceInfoObject.inputData = dataNodeListServiceInfo["InputData"].asString(); + if(!dataNodeListServiceInfo["OutputData"].isNull()) + serviceInfoObject.outputData = dataNodeListServiceInfo["OutputData"].asString(); + data_.list.push_back(serviceInfoObject); + } + 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(); + +} + +QueryDeviceOriginalServiceDataResult::Data QueryDeviceOriginalServiceDataResult::getData()const +{ + return data_; +} + +std::string QueryDeviceOriginalServiceDataResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryDeviceOriginalServiceDataResult::getCode()const +{ + return code_; +} + +bool QueryDeviceOriginalServiceDataResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDevicePropertiesDataResult.cc b/iot/src/model/QueryDevicePropertiesDataResult.cc index 4dbec730b..86c37365a 100644 --- a/iot/src/model/QueryDevicePropertiesDataResult.cc +++ b/iot/src/model/QueryDevicePropertiesDataResult.cc @@ -45,14 +45,14 @@ void QueryDevicePropertiesDataResult::parse(const std::string &payload) PropertyDataInfo propertyDataInfosObject; if(!valuePropertyDataInfosPropertyDataInfo["Identifier"].isNull()) propertyDataInfosObject.identifier = valuePropertyDataInfosPropertyDataInfo["Identifier"].asString(); - auto allListNode = allPropertyDataInfosNode["List"]["PropertyInfo"]; - for (auto allPropertyDataInfosNodeListPropertyInfo : allListNode) + auto allListNode = valuePropertyDataInfosPropertyDataInfo["List"]["PropertyInfo"]; + for (auto valuePropertyDataInfosPropertyDataInfoListPropertyInfo : allListNode) { PropertyDataInfo::PropertyInfo listObject; - if(!allPropertyDataInfosNodeListPropertyInfo["Time"].isNull()) - listObject.time = std::stol(allPropertyDataInfosNodeListPropertyInfo["Time"].asString()); - if(!allPropertyDataInfosNodeListPropertyInfo["Value"].isNull()) - listObject.value = allPropertyDataInfosNodeListPropertyInfo["Value"].asString(); + if(!valuePropertyDataInfosPropertyDataInfoListPropertyInfo["Time"].isNull()) + listObject.time = std::stol(valuePropertyDataInfosPropertyDataInfoListPropertyInfo["Time"].asString()); + if(!valuePropertyDataInfosPropertyDataInfoListPropertyInfo["Value"].isNull()) + listObject.value = valuePropertyDataInfosPropertyDataInfoListPropertyInfo["Value"].asString(); propertyDataInfosObject.list.push_back(listObject); } propertyDataInfos_.push_back(propertyDataInfosObject); diff --git a/iot/src/model/QueryDevicePropertyDataRequest.cc b/iot/src/model/QueryDevicePropertyDataRequest.cc index 72ba1071f..7a3bb8c0b 100644 --- a/iot/src/model/QueryDevicePropertyDataRequest.cc +++ b/iot/src/model/QueryDevicePropertyDataRequest.cc @@ -27,6 +27,17 @@ QueryDevicePropertyDataRequest::QueryDevicePropertyDataRequest() : QueryDevicePropertyDataRequest::~QueryDevicePropertyDataRequest() {} +std::string QueryDevicePropertyDataRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDevicePropertyDataRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + long QueryDevicePropertyDataRequest::getStartTime()const { return startTime_; @@ -49,6 +60,17 @@ void QueryDevicePropertyDataRequest::setAccessKeyId(const std::string& accessKey setParameter("AccessKeyId", accessKeyId); } +std::string QueryDevicePropertyDataRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDevicePropertyDataRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDevicePropertyDataRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDevicePropertyStatusRequest.cc b/iot/src/model/QueryDevicePropertyStatusRequest.cc index 259145e32..68ed7820c 100644 --- a/iot/src/model/QueryDevicePropertyStatusRequest.cc +++ b/iot/src/model/QueryDevicePropertyStatusRequest.cc @@ -27,6 +27,17 @@ QueryDevicePropertyStatusRequest::QueryDevicePropertyStatusRequest() : QueryDevicePropertyStatusRequest::~QueryDevicePropertyStatusRequest() {} +std::string QueryDevicePropertyStatusRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDevicePropertyStatusRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDevicePropertyStatusRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDevicePropertyStatusRequest::setAccessKeyId(const std::string& accessK setParameter("AccessKeyId", accessKeyId); } +std::string QueryDevicePropertyStatusRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDevicePropertyStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDevicePropertyStatusRequest::getIotId()const { return iotId_; @@ -104,3 +126,14 @@ void QueryDevicePropertyStatusRequest::setDeviceName(const std::string& deviceNa setParameter("DeviceName", deviceName); } +std::string QueryDevicePropertyStatusRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void QueryDevicePropertyStatusRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/QueryEdgeInstanceChannelResult.cc b/iot/src/model/QueryEdgeInstanceChannelResult.cc index 4fcbdfaae..9ec67639c 100644 --- a/iot/src/model/QueryEdgeInstanceChannelResult.cc +++ b/iot/src/model/QueryEdgeInstanceChannelResult.cc @@ -62,18 +62,18 @@ void QueryEdgeInstanceChannelResult::parse(const std::string &payload) channelObject.gmtCreateTimestamp = std::stol(dataNodeChannelListChannel["GmtCreateTimestamp"].asString()); if(!dataNodeChannelListChannel["GmtModifiedTimestamp"].isNull()) channelObject.gmtModifiedTimestamp = std::stol(dataNodeChannelListChannel["GmtModifiedTimestamp"].asString()); - auto allConfigListNode = allChannelListNode["ConfigList"]["Config"]; - for (auto allChannelListNodeConfigListConfig : allConfigListNode) + auto allConfigListNode = dataNodeChannelListChannel["ConfigList"]["Config"]; + for (auto dataNodeChannelListChannelConfigListConfig : allConfigListNode) { Data::Channel::Config configListObject; - if(!allChannelListNodeConfigListConfig["ConfigId"].isNull()) - configListObject.configId = allChannelListNodeConfigListConfig["ConfigId"].asString(); - if(!allChannelListNodeConfigListConfig["Format"].isNull()) - configListObject.format = allChannelListNodeConfigListConfig["Format"].asString(); - if(!allChannelListNodeConfigListConfig["Content"].isNull()) - configListObject.content = allChannelListNodeConfigListConfig["Content"].asString(); - if(!allChannelListNodeConfigListConfig["Key"].isNull()) - configListObject.key = allChannelListNodeConfigListConfig["Key"].asString(); + if(!dataNodeChannelListChannelConfigListConfig["ConfigId"].isNull()) + configListObject.configId = dataNodeChannelListChannelConfigListConfig["ConfigId"].asString(); + if(!dataNodeChannelListChannelConfigListConfig["Format"].isNull()) + configListObject.format = dataNodeChannelListChannelConfigListConfig["Format"].asString(); + if(!dataNodeChannelListChannelConfigListConfig["Content"].isNull()) + configListObject.content = dataNodeChannelListChannelConfigListConfig["Content"].asString(); + if(!dataNodeChannelListChannelConfigListConfig["Key"].isNull()) + configListObject.key = dataNodeChannelListChannelConfigListConfig["Key"].asString(); channelObject.configList.push_back(configListObject); } data_.channelList.push_back(channelObject); diff --git a/iot/src/model/QueryOTAJobResult.cc b/iot/src/model/QueryOTAJobResult.cc index 732795750..a8d9ae9e8 100644 --- a/iot/src/model/QueryOTAJobResult.cc +++ b/iot/src/model/QueryOTAJobResult.cc @@ -80,6 +80,22 @@ void QueryOTAJobResult::parse(const std::string &payload) data_.maximumPerMinute = std::stoi(dataNode["MaximumPerMinute"].asString()); if(!dataNode["DestVersion"].isNull()) data_.destVersion = dataNode["DestVersion"].asString(); + if(!dataNode["UtcScheduleFinishTime"].isNull()) + data_.utcScheduleFinishTime = dataNode["UtcScheduleFinishTime"].asString(); + if(!dataNode["OverwriteMode"].isNull()) + data_.overwriteMode = std::stoi(dataNode["OverwriteMode"].asString()); + if(!dataNode["DynamicMode"].isNull()) + data_.dynamicMode = std::stoi(dataNode["DynamicMode"].asString()); + auto allTagsNode = dataNode["Tags"]["OtaTagDTO"]; + for (auto dataNodeTagsOtaTagDTO : allTagsNode) + { + Data::OtaTagDTO otaTagDTOObject; + if(!dataNodeTagsOtaTagDTO["Key"].isNull()) + otaTagDTOObject.key = dataNodeTagsOtaTagDTO["Key"].asString(); + if(!dataNodeTagsOtaTagDTO["Value"].isNull()) + otaTagDTOObject.value = dataNodeTagsOtaTagDTO["Value"].asString(); + data_.tags.push_back(otaTagDTOObject); + } auto allSrcVersions = dataNode["SrcVersions"]["SrcVersion"]; for (auto value : allSrcVersions) data_.srcVersions.push_back(value.asString()); diff --git a/iot/src/model/QuerySubscribeRelationResult.cc b/iot/src/model/QuerySubscribeRelationResult.cc index a86858b9b..2a2c9b320 100644 --- a/iot/src/model/QuerySubscribeRelationResult.cc +++ b/iot/src/model/QuerySubscribeRelationResult.cc @@ -68,6 +68,12 @@ void QuerySubscribeRelationResult::parse(const std::string &payload) thingHistoryFlag_ = value["ThingHistoryFlag"].asString() == "true"; if(!value["MnsConfiguration"].isNull()) mnsConfiguration_ = value["MnsConfiguration"].asString(); + if(!value["DeviceTagFlag"].isNull()) + deviceTagFlag_ = value["DeviceTagFlag"].asString() == "true"; + if(!value["OtaVersionFlag"].isNull()) + otaVersionFlag_ = value["OtaVersionFlag"].asString() == "true"; + if(!value["OtaJobFlag"].isNull()) + otaJobFlag_ = value["OtaJobFlag"].asString() == "true"; } @@ -91,6 +97,11 @@ bool QuerySubscribeRelationResult::getDeviceStatusChangeFlag()const return deviceStatusChangeFlag_; } +bool QuerySubscribeRelationResult::getDeviceTagFlag()const +{ + return deviceTagFlag_; +} + std::vector QuerySubscribeRelationResult::getConsumerGroupIds()const { return consumerGroupIds_; @@ -121,6 +132,11 @@ bool QuerySubscribeRelationResult::getFoundDeviceListFlag()const return foundDeviceListFlag_; } +bool QuerySubscribeRelationResult::getOtaJobFlag()const +{ + return otaJobFlag_; +} + bool QuerySubscribeRelationResult::getOtaEventFlag()const { return otaEventFlag_; @@ -131,6 +147,11 @@ std::string QuerySubscribeRelationResult::getErrorMessage()const return errorMessage_; } +bool QuerySubscribeRelationResult::getOtaVersionFlag()const +{ + return otaVersionFlag_; +} + std::string QuerySubscribeRelationResult::getProductKey()const { return productKey_; diff --git a/iot/src/model/QueryThingModelExtendConfigPublishedRequest.cc b/iot/src/model/QueryThingModelExtendConfigPublishedRequest.cc new file mode 100644 index 000000000..731295500 --- /dev/null +++ b/iot/src/model/QueryThingModelExtendConfigPublishedRequest.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::QueryThingModelExtendConfigPublishedRequest; + +QueryThingModelExtendConfigPublishedRequest::QueryThingModelExtendConfigPublishedRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryThingModelExtendConfigPublished") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryThingModelExtendConfigPublishedRequest::~QueryThingModelExtendConfigPublishedRequest() +{} + +std::string QueryThingModelExtendConfigPublishedRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryThingModelExtendConfigPublishedRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryThingModelExtendConfigPublishedRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryThingModelExtendConfigPublishedRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getProductKey()const +{ + return productKey_; +} + +void QueryThingModelExtendConfigPublishedRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryThingModelExtendConfigPublishedRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryThingModelExtendConfigPublishedRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getModelVersion()const +{ + return modelVersion_; +} + +void QueryThingModelExtendConfigPublishedRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + +std::string QueryThingModelExtendConfigPublishedRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void QueryThingModelExtendConfigPublishedRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/QueryThingModelExtendConfigPublishedResult.cc b/iot/src/model/QueryThingModelExtendConfigPublishedResult.cc new file mode 100644 index 000000000..3145ed739 --- /dev/null +++ b/iot/src/model/QueryThingModelExtendConfigPublishedResult.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 +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryThingModelExtendConfigPublishedResult::QueryThingModelExtendConfigPublishedResult() : + ServiceResult() +{} + +QueryThingModelExtendConfigPublishedResult::QueryThingModelExtendConfigPublishedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryThingModelExtendConfigPublishedResult::~QueryThingModelExtendConfigPublishedResult() +{} + +void QueryThingModelExtendConfigPublishedResult::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["Configuration"].isNull()) + data_.configuration = dataNode["Configuration"].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(); + +} + +QueryThingModelExtendConfigPublishedResult::Data QueryThingModelExtendConfigPublishedResult::getData()const +{ + return data_; +} + +std::string QueryThingModelExtendConfigPublishedResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryThingModelExtendConfigPublishedResult::getCode()const +{ + return code_; +} + +bool QueryThingModelExtendConfigPublishedResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryThingModelExtendConfigRequest.cc b/iot/src/model/QueryThingModelExtendConfigRequest.cc new file mode 100644 index 000000000..afd3b4a81 --- /dev/null +++ b/iot/src/model/QueryThingModelExtendConfigRequest.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::QueryThingModelExtendConfigRequest; + +QueryThingModelExtendConfigRequest::QueryThingModelExtendConfigRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryThingModelExtendConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryThingModelExtendConfigRequest::~QueryThingModelExtendConfigRequest() +{} + +std::string QueryThingModelExtendConfigRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryThingModelExtendConfigRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string QueryThingModelExtendConfigRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryThingModelExtendConfigRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + +std::string QueryThingModelExtendConfigRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void QueryThingModelExtendConfigRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string QueryThingModelExtendConfigRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryThingModelExtendConfigRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryThingModelExtendConfigRequest::getProductKey()const +{ + return productKey_; +} + +void QueryThingModelExtendConfigRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string QueryThingModelExtendConfigRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryThingModelExtendConfigRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryThingModelExtendConfigRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryThingModelExtendConfigRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryThingModelExtendConfigRequest::getModelVersion()const +{ + return modelVersion_; +} + +void QueryThingModelExtendConfigRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + +std::string QueryThingModelExtendConfigRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void QueryThingModelExtendConfigRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/QueryThingModelExtendConfigResult.cc b/iot/src/model/QueryThingModelExtendConfigResult.cc new file mode 100644 index 000000000..1dbcfef1a --- /dev/null +++ b/iot/src/model/QueryThingModelExtendConfigResult.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 +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryThingModelExtendConfigResult::QueryThingModelExtendConfigResult() : + ServiceResult() +{} + +QueryThingModelExtendConfigResult::QueryThingModelExtendConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryThingModelExtendConfigResult::~QueryThingModelExtendConfigResult() +{} + +void QueryThingModelExtendConfigResult::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["Configuration"].isNull()) + data_.configuration = dataNode["Configuration"].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(); + +} + +QueryThingModelExtendConfigResult::Data QueryThingModelExtendConfigResult::getData()const +{ + return data_; +} + +std::string QueryThingModelExtendConfigResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryThingModelExtendConfigResult::getCode()const +{ + return code_; +} + +bool QueryThingModelExtendConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryThingModelPublishedRequest.cc b/iot/src/model/QueryThingModelPublishedRequest.cc new file mode 100644 index 000000000..818c26667 --- /dev/null +++ b/iot/src/model/QueryThingModelPublishedRequest.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::QueryThingModelPublishedRequest; + +QueryThingModelPublishedRequest::QueryThingModelPublishedRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryThingModelPublished") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryThingModelPublishedRequest::~QueryThingModelPublishedRequest() +{} + +std::string QueryThingModelPublishedRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryThingModelPublishedRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string QueryThingModelPublishedRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryThingModelPublishedRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QueryThingModelPublishedRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryThingModelPublishedRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + +std::string QueryThingModelPublishedRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void QueryThingModelPublishedRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string QueryThingModelPublishedRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryThingModelPublishedRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryThingModelPublishedRequest::getProductKey()const +{ + return productKey_; +} + +void QueryThingModelPublishedRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string QueryThingModelPublishedRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryThingModelPublishedRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryThingModelPublishedRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryThingModelPublishedRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryThingModelPublishedRequest::getModelVersion()const +{ + return modelVersion_; +} + +void QueryThingModelPublishedRequest::setModelVersion(const std::string& modelVersion) +{ + modelVersion_ = modelVersion; + setParameter("ModelVersion", modelVersion); +} + +std::string QueryThingModelPublishedRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void QueryThingModelPublishedRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/QueryThingModelPublishedResult.cc b/iot/src/model/QueryThingModelPublishedResult.cc new file mode 100644 index 000000000..199ee0e5a --- /dev/null +++ b/iot/src/model/QueryThingModelPublishedResult.cc @@ -0,0 +1,80 @@ +/* + * 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; + +QueryThingModelPublishedResult::QueryThingModelPublishedResult() : + ServiceResult() +{} + +QueryThingModelPublishedResult::QueryThingModelPublishedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryThingModelPublishedResult::~QueryThingModelPublishedResult() +{} + +void QueryThingModelPublishedResult::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["ThingModelJson"].isNull()) + data_.thingModelJson = dataNode["ThingModelJson"].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["ProductKey"].isNull()) + productKey_ = value["ProductKey"].asString(); + +} + +QueryThingModelPublishedResult::Data QueryThingModelPublishedResult::getData()const +{ + return data_; +} + +std::string QueryThingModelPublishedResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryThingModelPublishedResult::getCode()const +{ + return code_; +} + +bool QueryThingModelPublishedResult::getSuccess()const +{ + return success_; +} + +std::string QueryThingModelPublishedResult::getProductKey()const +{ + return productKey_; +} + diff --git a/iot/src/model/QueryThingModelRequest.cc b/iot/src/model/QueryThingModelRequest.cc index b96055c95..a3d43c5d2 100644 --- a/iot/src/model/QueryThingModelRequest.cc +++ b/iot/src/model/QueryThingModelRequest.cc @@ -27,6 +27,17 @@ QueryThingModelRequest::QueryThingModelRequest() : QueryThingModelRequest::~QueryThingModelRequest() {} +std::string QueryThingModelRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryThingModelRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryThingModelRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryThingModelRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryThingModelRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryThingModelRequest::getResourceGroupId()const { return resourceGroupId_; @@ -104,3 +126,14 @@ void QueryThingModelRequest::setModelVersion(const std::string& modelVersion) setParameter("ModelVersion", modelVersion); } +std::string QueryThingModelRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void QueryThingModelRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/RRpcResult.cc b/iot/src/model/RRpcResult.cc index 712c7b9fc..51723eceb 100644 --- a/iot/src/model/RRpcResult.cc +++ b/iot/src/model/RRpcResult.cc @@ -50,7 +50,7 @@ void RRpcResult::parse(const std::string &payload) if(!value["PayloadBase64Byte"].isNull()) payloadBase64Byte_ = value["PayloadBase64Byte"].asString(); if(!value["MessageId"].isNull()) - messageId_ = std::stoull(value["MessageId"].asString()); + messageId_ = std::stol(value["MessageId"].asString()); } diff --git a/iot/src/model/RegisterDeviceRequest.cc b/iot/src/model/RegisterDeviceRequest.cc index 5c95581dc..140c81661 100644 --- a/iot/src/model/RegisterDeviceRequest.cc +++ b/iot/src/model/RegisterDeviceRequest.cc @@ -38,6 +38,17 @@ void RegisterDeviceRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string RegisterDeviceRequest::getLoraNodeType()const +{ + return loraNodeType_; +} + +void RegisterDeviceRequest::setLoraNodeType(const std::string& loraNodeType) +{ + loraNodeType_ = loraNodeType; + setParameter("LoraNodeType", loraNodeType); +} + std::string RegisterDeviceRequest::getIotInstanceId()const { return iotInstanceId_; @@ -93,6 +104,17 @@ void RegisterDeviceRequest::setDevEui(const std::string& devEui) setParameter("DevEui", devEui); } +std::string RegisterDeviceRequest::getJoinEui()const +{ + return joinEui_; +} + +void RegisterDeviceRequest::setJoinEui(const std::string& joinEui) +{ + joinEui_ = joinEui; + setParameter("JoinEui", joinEui); +} + std::string RegisterDeviceRequest::getApiProduct()const { return apiProduct_; @@ -126,3 +148,14 @@ void RegisterDeviceRequest::setDeviceName(const std::string& deviceName) setParameter("DeviceName", deviceName); } +std::string RegisterDeviceRequest::getAppKey()const +{ + return appKey_; +} + +void RegisterDeviceRequest::setAppKey(const std::string& appKey) +{ + appKey_ = appKey; + setParameter("AppKey", appKey); +} + diff --git a/iot/src/model/SetDeviceDesiredPropertyResult.cc b/iot/src/model/SetDeviceDesiredPropertyResult.cc index a233ee7de..809c8b19f 100644 --- a/iot/src/model/SetDeviceDesiredPropertyResult.cc +++ b/iot/src/model/SetDeviceDesiredPropertyResult.cc @@ -50,9 +50,16 @@ void SetDeviceDesiredPropertyResult::parse(const std::string &payload) errorMessage_ = value["ErrorMessage"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["MessageArguments"].isNull()) + messageArguments_ = value["MessageArguments"].asString(); } +std::string SetDeviceDesiredPropertyResult::getMessageArguments()const +{ + return messageArguments_; +} + SetDeviceDesiredPropertyResult::Data SetDeviceDesiredPropertyResult::getData()const { return data_; diff --git a/iot/src/model/SpeechByCombinationRequest.cc b/iot/src/model/SpeechByCombinationRequest.cc new file mode 100644 index 000000000..ac8411dfb --- /dev/null +++ b/iot/src/model/SpeechByCombinationRequest.cc @@ -0,0 +1,97 @@ +/* + * 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::SpeechByCombinationRequest; + +SpeechByCombinationRequest::SpeechByCombinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "SpeechByCombination") +{ + setMethod(HttpRequest::Method::Post); +} + +SpeechByCombinationRequest::~SpeechByCombinationRequest() +{} + +std::string SpeechByCombinationRequest::getIotId()const +{ + return iotId_; +} + +void SpeechByCombinationRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::vector SpeechByCombinationRequest::getCombinationList()const +{ + return combinationList_; +} + +void SpeechByCombinationRequest::setCombinationList(const std::vector& combinationList) +{ + combinationList_ = combinationList; + for(int dep1 = 0; dep1!= combinationList.size(); dep1++) { + setBodyParameter("CombinationList."+ std::to_string(dep1), combinationList.at(dep1)); + } +} + +std::string SpeechByCombinationRequest::getProductKey()const +{ + return productKey_; +} + +void SpeechByCombinationRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string SpeechByCombinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void SpeechByCombinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string SpeechByCombinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void SpeechByCombinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string SpeechByCombinationRequest::getDeviceName()const +{ + return deviceName_; +} + +void SpeechByCombinationRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/SpeechByCombinationResult.cc b/iot/src/model/SpeechByCombinationResult.cc new file mode 100644 index 000000000..1d28b0597 --- /dev/null +++ b/iot/src/model/SpeechByCombinationResult.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; + +SpeechByCombinationResult::SpeechByCombinationResult() : + ServiceResult() +{} + +SpeechByCombinationResult::SpeechByCombinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SpeechByCombinationResult::~SpeechByCombinationResult() +{} + +void SpeechByCombinationResult::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 SpeechByCombinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string SpeechByCombinationResult::getCode()const +{ + return code_; +} + +bool SpeechByCombinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/TransformClientIdRequest.cc b/iot/src/model/TransformClientIdRequest.cc new file mode 100644 index 000000000..cb0ba9273 --- /dev/null +++ b/iot/src/model/TransformClientIdRequest.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::TransformClientIdRequest; + +TransformClientIdRequest::TransformClientIdRequest() : + RpcServiceRequest("iot", "2018-01-20", "TransformClientId") +{ + setMethod(HttpRequest::Method::Post); +} + +TransformClientIdRequest::~TransformClientIdRequest() +{} + +std::string TransformClientIdRequest::getAuthConfig()const +{ + return authConfig_; +} + +void TransformClientIdRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string TransformClientIdRequest::getClientId()const +{ + return clientId_; +} + +void TransformClientIdRequest::setClientId(const std::string& clientId) +{ + clientId_ = clientId; + setParameter("ClientId", clientId); +} + +std::string TransformClientIdRequest::getIotId()const +{ + return iotId_; +} + +void TransformClientIdRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string TransformClientIdRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void TransformClientIdRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string TransformClientIdRequest::getApiProduct()const +{ + return apiProduct_; +} + +void TransformClientIdRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string TransformClientIdRequest::getApiRevision()const +{ + return apiRevision_; +} + +void TransformClientIdRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/TransformClientIdResult.cc b/iot/src/model/TransformClientIdResult.cc new file mode 100644 index 000000000..0da4c4201 --- /dev/null +++ b/iot/src/model/TransformClientIdResult.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; + +TransformClientIdResult::TransformClientIdResult() : + ServiceResult() +{} + +TransformClientIdResult::TransformClientIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransformClientIdResult::~TransformClientIdResult() +{} + +void TransformClientIdResult::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 TransformClientIdResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string TransformClientIdResult::getCode()const +{ + return code_; +} + +bool TransformClientIdResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UnbindRoleFromEdgeInstanceRequest.cc b/iot/src/model/UnbindRoleFromEdgeInstanceRequest.cc new file mode 100644 index 000000000..6c8328d1d --- /dev/null +++ b/iot/src/model/UnbindRoleFromEdgeInstanceRequest.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::UnbindRoleFromEdgeInstanceRequest; + +UnbindRoleFromEdgeInstanceRequest::UnbindRoleFromEdgeInstanceRequest() : + RpcServiceRequest("iot", "2018-01-20", "UnbindRoleFromEdgeInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +UnbindRoleFromEdgeInstanceRequest::~UnbindRoleFromEdgeInstanceRequest() +{} + +std::string UnbindRoleFromEdgeInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnbindRoleFromEdgeInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UnbindRoleFromEdgeInstanceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UnbindRoleFromEdgeInstanceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string UnbindRoleFromEdgeInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnbindRoleFromEdgeInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnbindRoleFromEdgeInstanceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UnbindRoleFromEdgeInstanceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UnbindRoleFromEdgeInstanceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UnbindRoleFromEdgeInstanceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/UnbindRoleFromEdgeInstanceResult.cc b/iot/src/model/UnbindRoleFromEdgeInstanceResult.cc new file mode 100644 index 000000000..ce8cb182a --- /dev/null +++ b/iot/src/model/UnbindRoleFromEdgeInstanceResult.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; + +UnbindRoleFromEdgeInstanceResult::UnbindRoleFromEdgeInstanceResult() : + ServiceResult() +{} + +UnbindRoleFromEdgeInstanceResult::UnbindRoleFromEdgeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindRoleFromEdgeInstanceResult::~UnbindRoleFromEdgeInstanceResult() +{} + +void UnbindRoleFromEdgeInstanceResult::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 UnbindRoleFromEdgeInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UnbindRoleFromEdgeInstanceResult::getCode()const +{ + return code_; +} + +bool UnbindRoleFromEdgeInstanceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateDeviceShadowRequest.cc b/iot/src/model/UpdateDeviceShadowRequest.cc index 95d426445..01cba5edc 100644 --- a/iot/src/model/UpdateDeviceShadowRequest.cc +++ b/iot/src/model/UpdateDeviceShadowRequest.cc @@ -71,6 +71,17 @@ void UpdateDeviceShadowRequest::setProductKey(const std::string& productKey) setParameter("ProductKey", productKey); } +bool UpdateDeviceShadowRequest::getDeltaUpdate()const +{ + return deltaUpdate_; +} + +void UpdateDeviceShadowRequest::setDeltaUpdate(bool deltaUpdate) +{ + deltaUpdate_ = deltaUpdate; + setParameter("DeltaUpdate", deltaUpdate ? "true" : "false"); +} + std::string UpdateDeviceShadowRequest::getApiProduct()const { return apiProduct_; diff --git a/iot/src/model/UpdateOTAModuleRequest.cc b/iot/src/model/UpdateOTAModuleRequest.cc new file mode 100644 index 000000000..6b8d03d2c --- /dev/null +++ b/iot/src/model/UpdateOTAModuleRequest.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::UpdateOTAModuleRequest; + +UpdateOTAModuleRequest::UpdateOTAModuleRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateOTAModule") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateOTAModuleRequest::~UpdateOTAModuleRequest() +{} + +std::string UpdateOTAModuleRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateOTAModuleRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string UpdateOTAModuleRequest::getModuleName()const +{ + return moduleName_; +} + +void UpdateOTAModuleRequest::setModuleName(const std::string& moduleName) +{ + moduleName_ = moduleName; + setParameter("ModuleName", moduleName); +} + +std::string UpdateOTAModuleRequest::getProductKey()const +{ + return productKey_; +} + +void UpdateOTAModuleRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string UpdateOTAModuleRequest::getAliasName()const +{ + return aliasName_; +} + +void UpdateOTAModuleRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setParameter("AliasName", aliasName); +} + +std::string UpdateOTAModuleRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateOTAModuleRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateOTAModuleRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateOTAModuleRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string UpdateOTAModuleRequest::getDesc()const +{ + return desc_; +} + +void UpdateOTAModuleRequest::setDesc(const std::string& desc) +{ + desc_ = desc; + setParameter("Desc", desc); +} + diff --git a/iot/src/model/UpdateOTAModuleResult.cc b/iot/src/model/UpdateOTAModuleResult.cc new file mode 100644 index 000000000..b96868225 --- /dev/null +++ b/iot/src/model/UpdateOTAModuleResult.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; + +UpdateOTAModuleResult::UpdateOTAModuleResult() : + ServiceResult() +{} + +UpdateOTAModuleResult::UpdateOTAModuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateOTAModuleResult::~UpdateOTAModuleResult() +{} + +void UpdateOTAModuleResult::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 UpdateOTAModuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateOTAModuleResult::getCode()const +{ + return code_; +} + +bool UpdateOTAModuleResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateSubscribeRelationRequest.cc b/iot/src/model/UpdateSubscribeRelationRequest.cc index d54d47737..b8ce92fa7 100644 --- a/iot/src/model/UpdateSubscribeRelationRequest.cc +++ b/iot/src/model/UpdateSubscribeRelationRequest.cc @@ -93,6 +93,28 @@ void UpdateSubscribeRelationRequest::setDeviceStatusChangeFlag(bool deviceStatus setParameter("DeviceStatusChangeFlag", deviceStatusChangeFlag ? "true" : "false"); } +bool UpdateSubscribeRelationRequest::getOtaVersionFlag()const +{ + return otaVersionFlag_; +} + +void UpdateSubscribeRelationRequest::setOtaVersionFlag(bool otaVersionFlag) +{ + otaVersionFlag_ = otaVersionFlag; + setParameter("OtaVersionFlag", otaVersionFlag ? "true" : "false"); +} + +bool UpdateSubscribeRelationRequest::getDeviceTagFlag()const +{ + return deviceTagFlag_; +} + +void UpdateSubscribeRelationRequest::setDeviceTagFlag(bool deviceTagFlag) +{ + deviceTagFlag_ = deviceTagFlag; + setParameter("DeviceTagFlag", deviceTagFlag ? "true" : "false"); +} + std::vector UpdateSubscribeRelationRequest::getConsumerGroupIds()const { return consumerGroupIds_; @@ -139,6 +161,17 @@ void UpdateSubscribeRelationRequest::setFoundDeviceListFlag(bool foundDeviceList setParameter("FoundDeviceListFlag", foundDeviceListFlag ? "true" : "false"); } +bool UpdateSubscribeRelationRequest::getOtaJobFlag()const +{ + return otaJobFlag_; +} + +void UpdateSubscribeRelationRequest::setOtaJobFlag(bool otaJobFlag) +{ + otaJobFlag_ = otaJobFlag; + setParameter("OtaJobFlag", otaJobFlag ? "true" : "false"); +} + std::string UpdateSubscribeRelationRequest::getApiProduct()const { return apiProduct_; diff --git a/iot/src/model/UpdateThingModelRequest.cc b/iot/src/model/UpdateThingModelRequest.cc index 13ab3ea14..0f35d870f 100644 --- a/iot/src/model/UpdateThingModelRequest.cc +++ b/iot/src/model/UpdateThingModelRequest.cc @@ -27,6 +27,28 @@ UpdateThingModelRequest::UpdateThingModelRequest() : UpdateThingModelRequest::~UpdateThingModelRequest() {} +std::string UpdateThingModelRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void UpdateThingModelRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string UpdateThingModelRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void UpdateThingModelRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string UpdateThingModelRequest::getIotInstanceId()const { return iotInstanceId_; @@ -49,6 +71,17 @@ void UpdateThingModelRequest::setIdentifier(const std::string& identifier) setParameter("Identifier", identifier); } +std::string UpdateThingModelRequest::getFunctionBlockName()const +{ + return functionBlockName_; +} + +void UpdateThingModelRequest::setFunctionBlockName(const std::string& functionBlockName) +{ + functionBlockName_ = functionBlockName; + setParameter("FunctionBlockName", functionBlockName); +} + std::string UpdateThingModelRequest::getProductKey()const { return productKey_; @@ -93,3 +126,14 @@ void UpdateThingModelRequest::setApiRevision(const std::string& apiRevision) setBodyParameter("ApiRevision", apiRevision); } +std::string UpdateThingModelRequest::getFunctionBlockId()const +{ + return functionBlockId_; +} + +void UpdateThingModelRequest::setFunctionBlockId(const std::string& functionBlockId) +{ + functionBlockId_ = functionBlockId; + setParameter("FunctionBlockId", functionBlockId); +} + diff --git a/iot/src/model/UpdateThingModelValidationConfigRequest.cc b/iot/src/model/UpdateThingModelValidationConfigRequest.cc new file mode 100644 index 000000000..fc61e4d53 --- /dev/null +++ b/iot/src/model/UpdateThingModelValidationConfigRequest.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::UpdateThingModelValidationConfigRequest; + +UpdateThingModelValidationConfigRequest::UpdateThingModelValidationConfigRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateThingModelValidationConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateThingModelValidationConfigRequest::~UpdateThingModelValidationConfigRequest() +{} + +int UpdateThingModelValidationConfigRequest::getValidateType()const +{ + return validateType_; +} + +void UpdateThingModelValidationConfigRequest::setValidateType(int validateType) +{ + validateType_ = validateType; + setParameter("ValidateType", std::to_string(validateType)); +} + +std::string UpdateThingModelValidationConfigRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateThingModelValidationConfigRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string UpdateThingModelValidationConfigRequest::getProductKey()const +{ + return productKey_; +} + +void UpdateThingModelValidationConfigRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string UpdateThingModelValidationConfigRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateThingModelValidationConfigRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateThingModelValidationConfigRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateThingModelValidationConfigRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/UpdateThingModelValidationConfigResult.cc b/iot/src/model/UpdateThingModelValidationConfigResult.cc new file mode 100644 index 000000000..1bdccd104 --- /dev/null +++ b/iot/src/model/UpdateThingModelValidationConfigResult.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; + +UpdateThingModelValidationConfigResult::UpdateThingModelValidationConfigResult() : + ServiceResult() +{} + +UpdateThingModelValidationConfigResult::UpdateThingModelValidationConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateThingModelValidationConfigResult::~UpdateThingModelValidationConfigResult() +{} + +void UpdateThingModelValidationConfigResult::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 UpdateThingModelValidationConfigResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateThingModelValidationConfigResult::getCode()const +{ + return code_; +} + +bool UpdateThingModelValidationConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateThingScriptRequest.cc b/iot/src/model/UpdateThingScriptRequest.cc new file mode 100644 index 000000000..a67d1e798 --- /dev/null +++ b/iot/src/model/UpdateThingScriptRequest.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::UpdateThingScriptRequest; + +UpdateThingScriptRequest::UpdateThingScriptRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateThingScript") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateThingScriptRequest::~UpdateThingScriptRequest() +{} + +std::string UpdateThingScriptRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateThingScriptRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string UpdateThingScriptRequest::getScriptType()const +{ + return scriptType_; +} + +void UpdateThingScriptRequest::setScriptType(const std::string& scriptType) +{ + scriptType_ = scriptType; + setParameter("ScriptType", scriptType); +} + +std::string UpdateThingScriptRequest::getProductKey()const +{ + return productKey_; +} + +void UpdateThingScriptRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string UpdateThingScriptRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateThingScriptRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateThingScriptRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateThingScriptRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string UpdateThingScriptRequest::getScriptContent()const +{ + return scriptContent_; +} + +void UpdateThingScriptRequest::setScriptContent(const std::string& scriptContent) +{ + scriptContent_ = scriptContent; + setParameter("ScriptContent", scriptContent); +} + diff --git a/iot/src/model/UpdateThingScriptResult.cc b/iot/src/model/UpdateThingScriptResult.cc new file mode 100644 index 000000000..0b9f22efe --- /dev/null +++ b/iot/src/model/UpdateThingScriptResult.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; + +UpdateThingScriptResult::UpdateThingScriptResult() : + ServiceResult() +{} + +UpdateThingScriptResult::UpdateThingScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateThingScriptResult::~UpdateThingScriptResult() +{} + +void UpdateThingScriptResult::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 UpdateThingScriptResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateThingScriptResult::getCode()const +{ + return code_; +} + +bool UpdateThingScriptResult::getSuccess()const +{ + return success_; +} +