diff --git a/CHANGELOG b/CHANGELOG index b6ad12228..1775549ea 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-01-13 Version: patch +- Add support for IoT jobs, including job management and query APIs like CreateJob, UpdateJob, QueryJob, CancelJob, ListTask, QueryTask, QueryJobStatistics etc. + 2021-01-13 Version: patch - Generated 2016-11-01 for `live`. diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index f875a52bb..ce8a2f266 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -77,6 +77,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/BindRoleToEdgeInstanceResult.h include/alibabacloud/iot/model/BindSceneRuleToEdgeInstanceRequest.h include/alibabacloud/iot/model/BindSceneRuleToEdgeInstanceResult.h + include/alibabacloud/iot/model/CancelJobRequest.h + include/alibabacloud/iot/model/CancelJobResult.h include/alibabacloud/iot/model/CancelOTAStrategyByJobRequest.h include/alibabacloud/iot/model/CancelOTAStrategyByJobResult.h include/alibabacloud/iot/model/CancelOTATaskByDeviceRequest.h @@ -109,6 +111,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateEdgeInstanceDeploymentResult.h include/alibabacloud/iot/model/CreateEdgeOssPreSignedAddressRequest.h include/alibabacloud/iot/model/CreateEdgeOssPreSignedAddressResult.h + include/alibabacloud/iot/model/CreateJobRequest.h + include/alibabacloud/iot/model/CreateJobResult.h include/alibabacloud/iot/model/CreateLoRaNodesTaskRequest.h include/alibabacloud/iot/model/CreateLoRaNodesTaskResult.h include/alibabacloud/iot/model/CreateOTADynamicUpgradeJobRequest.h @@ -161,6 +165,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteEdgeDriverVersionResult.h include/alibabacloud/iot/model/DeleteEdgeInstanceRequest.h include/alibabacloud/iot/model/DeleteEdgeInstanceResult.h + include/alibabacloud/iot/model/DeleteJobRequest.h + include/alibabacloud/iot/model/DeleteJobResult.h include/alibabacloud/iot/model/DeleteOTAFirmwareRequest.h include/alibabacloud/iot/model/DeleteOTAFirmwareResult.h include/alibabacloud/iot/model/DeleteOTAModuleRequest.h @@ -193,6 +199,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/EnableThingResult.h include/alibabacloud/iot/model/GenerateDeviceNameListURLRequest.h include/alibabacloud/iot/model/GenerateDeviceNameListURLResult.h + include/alibabacloud/iot/model/GenerateFileUploadURLRequest.h + include/alibabacloud/iot/model/GenerateFileUploadURLResult.h include/alibabacloud/iot/model/GenerateOTAUploadURLRequest.h include/alibabacloud/iot/model/GenerateOTAUploadURLResult.h include/alibabacloud/iot/model/GetDataAPIServiceDetailRequest.h @@ -237,6 +245,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/InvokeThingServiceResult.h include/alibabacloud/iot/model/InvokeThingsServiceRequest.h include/alibabacloud/iot/model/InvokeThingsServiceResult.h + include/alibabacloud/iot/model/ListJobRequest.h + include/alibabacloud/iot/model/ListJobResult.h include/alibabacloud/iot/model/ListOTAFirmwareRequest.h include/alibabacloud/iot/model/ListOTAFirmwareResult.h include/alibabacloud/iot/model/ListOTAJobByDeviceRequest.h @@ -257,6 +267,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListRuleResult.h include/alibabacloud/iot/model/ListRuleActionsRequest.h include/alibabacloud/iot/model/ListRuleActionsResult.h + include/alibabacloud/iot/model/ListTaskRequest.h + include/alibabacloud/iot/model/ListTaskResult.h + include/alibabacloud/iot/model/ListTaskByPageRequest.h + include/alibabacloud/iot/model/ListTaskByPageResult.h include/alibabacloud/iot/model/ListThingModelVersionRequest.h include/alibabacloud/iot/model/ListThingModelVersionResult.h include/alibabacloud/iot/model/ListThingTemplatesRequest.h @@ -357,6 +371,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryEdgeInstanceHistoricDeploymentResult.h include/alibabacloud/iot/model/QueryEdgeInstanceSceneRuleRequest.h include/alibabacloud/iot/model/QueryEdgeInstanceSceneRuleResult.h + include/alibabacloud/iot/model/QueryJobRequest.h + include/alibabacloud/iot/model/QueryJobResult.h + include/alibabacloud/iot/model/QueryJobStatisticsRequest.h + include/alibabacloud/iot/model/QueryJobStatisticsResult.h include/alibabacloud/iot/model/QueryLoRaJoinPermissionsRequest.h include/alibabacloud/iot/model/QueryLoRaJoinPermissionsResult.h include/alibabacloud/iot/model/QueryOTAFirmwareRequest.h @@ -381,6 +399,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QuerySummarySceneRuleLogResult.h include/alibabacloud/iot/model/QuerySuperDeviceGroupRequest.h include/alibabacloud/iot/model/QuerySuperDeviceGroupResult.h + include/alibabacloud/iot/model/QueryTaskRequest.h + include/alibabacloud/iot/model/QueryTaskResult.h include/alibabacloud/iot/model/QueryThingModelRequest.h include/alibabacloud/iot/model/QueryThingModelResult.h include/alibabacloud/iot/model/QueryThingModelExtendConfigRequest.h @@ -451,6 +471,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/UpdateJobRequest.h + include/alibabacloud/iot/model/UpdateJobResult.h include/alibabacloud/iot/model/UpdateOTAModuleRequest.h include/alibabacloud/iot/model/UpdateOTAModuleResult.h include/alibabacloud/iot/model/UpdateProductRequest.h @@ -534,6 +556,8 @@ set(iot_src src/model/BindRoleToEdgeInstanceResult.cc src/model/BindSceneRuleToEdgeInstanceRequest.cc src/model/BindSceneRuleToEdgeInstanceResult.cc + src/model/CancelJobRequest.cc + src/model/CancelJobResult.cc src/model/CancelOTAStrategyByJobRequest.cc src/model/CancelOTAStrategyByJobResult.cc src/model/CancelOTATaskByDeviceRequest.cc @@ -566,6 +590,8 @@ set(iot_src src/model/CreateEdgeInstanceDeploymentResult.cc src/model/CreateEdgeOssPreSignedAddressRequest.cc src/model/CreateEdgeOssPreSignedAddressResult.cc + src/model/CreateJobRequest.cc + src/model/CreateJobResult.cc src/model/CreateLoRaNodesTaskRequest.cc src/model/CreateLoRaNodesTaskResult.cc src/model/CreateOTADynamicUpgradeJobRequest.cc @@ -618,6 +644,8 @@ set(iot_src src/model/DeleteEdgeDriverVersionResult.cc src/model/DeleteEdgeInstanceRequest.cc src/model/DeleteEdgeInstanceResult.cc + src/model/DeleteJobRequest.cc + src/model/DeleteJobResult.cc src/model/DeleteOTAFirmwareRequest.cc src/model/DeleteOTAFirmwareResult.cc src/model/DeleteOTAModuleRequest.cc @@ -650,6 +678,8 @@ set(iot_src src/model/EnableThingResult.cc src/model/GenerateDeviceNameListURLRequest.cc src/model/GenerateDeviceNameListURLResult.cc + src/model/GenerateFileUploadURLRequest.cc + src/model/GenerateFileUploadURLResult.cc src/model/GenerateOTAUploadURLRequest.cc src/model/GenerateOTAUploadURLResult.cc src/model/GetDataAPIServiceDetailRequest.cc @@ -694,6 +724,8 @@ set(iot_src src/model/InvokeThingServiceResult.cc src/model/InvokeThingsServiceRequest.cc src/model/InvokeThingsServiceResult.cc + src/model/ListJobRequest.cc + src/model/ListJobResult.cc src/model/ListOTAFirmwareRequest.cc src/model/ListOTAFirmwareResult.cc src/model/ListOTAJobByDeviceRequest.cc @@ -714,6 +746,10 @@ set(iot_src src/model/ListRuleResult.cc src/model/ListRuleActionsRequest.cc src/model/ListRuleActionsResult.cc + src/model/ListTaskRequest.cc + src/model/ListTaskResult.cc + src/model/ListTaskByPageRequest.cc + src/model/ListTaskByPageResult.cc src/model/ListThingModelVersionRequest.cc src/model/ListThingModelVersionResult.cc src/model/ListThingTemplatesRequest.cc @@ -814,6 +850,10 @@ set(iot_src src/model/QueryEdgeInstanceHistoricDeploymentResult.cc src/model/QueryEdgeInstanceSceneRuleRequest.cc src/model/QueryEdgeInstanceSceneRuleResult.cc + src/model/QueryJobRequest.cc + src/model/QueryJobResult.cc + src/model/QueryJobStatisticsRequest.cc + src/model/QueryJobStatisticsResult.cc src/model/QueryLoRaJoinPermissionsRequest.cc src/model/QueryLoRaJoinPermissionsResult.cc src/model/QueryOTAFirmwareRequest.cc @@ -838,6 +878,8 @@ set(iot_src src/model/QuerySummarySceneRuleLogResult.cc src/model/QuerySuperDeviceGroupRequest.cc src/model/QuerySuperDeviceGroupResult.cc + src/model/QueryTaskRequest.cc + src/model/QueryTaskResult.cc src/model/QueryThingModelRequest.cc src/model/QueryThingModelResult.cc src/model/QueryThingModelExtendConfigRequest.cc @@ -908,6 +950,8 @@ set(iot_src src/model/UpdateEdgeInstanceResult.cc src/model/UpdateEdgeInstanceChannelRequest.cc src/model/UpdateEdgeInstanceChannelResult.cc + src/model/UpdateJobRequest.cc + src/model/UpdateJobResult.cc src/model/UpdateOTAModuleRequest.cc src/model/UpdateOTAModuleResult.cc src/model/UpdateProductRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index 64323d468..d10b8df63 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -78,6 +78,8 @@ #include "model/BindRoleToEdgeInstanceResult.h" #include "model/BindSceneRuleToEdgeInstanceRequest.h" #include "model/BindSceneRuleToEdgeInstanceResult.h" +#include "model/CancelJobRequest.h" +#include "model/CancelJobResult.h" #include "model/CancelOTAStrategyByJobRequest.h" #include "model/CancelOTAStrategyByJobResult.h" #include "model/CancelOTATaskByDeviceRequest.h" @@ -110,6 +112,8 @@ #include "model/CreateEdgeInstanceDeploymentResult.h" #include "model/CreateEdgeOssPreSignedAddressRequest.h" #include "model/CreateEdgeOssPreSignedAddressResult.h" +#include "model/CreateJobRequest.h" +#include "model/CreateJobResult.h" #include "model/CreateLoRaNodesTaskRequest.h" #include "model/CreateLoRaNodesTaskResult.h" #include "model/CreateOTADynamicUpgradeJobRequest.h" @@ -162,6 +166,8 @@ #include "model/DeleteEdgeDriverVersionResult.h" #include "model/DeleteEdgeInstanceRequest.h" #include "model/DeleteEdgeInstanceResult.h" +#include "model/DeleteJobRequest.h" +#include "model/DeleteJobResult.h" #include "model/DeleteOTAFirmwareRequest.h" #include "model/DeleteOTAFirmwareResult.h" #include "model/DeleteOTAModuleRequest.h" @@ -194,6 +200,8 @@ #include "model/EnableThingResult.h" #include "model/GenerateDeviceNameListURLRequest.h" #include "model/GenerateDeviceNameListURLResult.h" +#include "model/GenerateFileUploadURLRequest.h" +#include "model/GenerateFileUploadURLResult.h" #include "model/GenerateOTAUploadURLRequest.h" #include "model/GenerateOTAUploadURLResult.h" #include "model/GetDataAPIServiceDetailRequest.h" @@ -238,6 +246,8 @@ #include "model/InvokeThingServiceResult.h" #include "model/InvokeThingsServiceRequest.h" #include "model/InvokeThingsServiceResult.h" +#include "model/ListJobRequest.h" +#include "model/ListJobResult.h" #include "model/ListOTAFirmwareRequest.h" #include "model/ListOTAFirmwareResult.h" #include "model/ListOTAJobByDeviceRequest.h" @@ -258,6 +268,10 @@ #include "model/ListRuleResult.h" #include "model/ListRuleActionsRequest.h" #include "model/ListRuleActionsResult.h" +#include "model/ListTaskRequest.h" +#include "model/ListTaskResult.h" +#include "model/ListTaskByPageRequest.h" +#include "model/ListTaskByPageResult.h" #include "model/ListThingModelVersionRequest.h" #include "model/ListThingModelVersionResult.h" #include "model/ListThingTemplatesRequest.h" @@ -358,6 +372,10 @@ #include "model/QueryEdgeInstanceHistoricDeploymentResult.h" #include "model/QueryEdgeInstanceSceneRuleRequest.h" #include "model/QueryEdgeInstanceSceneRuleResult.h" +#include "model/QueryJobRequest.h" +#include "model/QueryJobResult.h" +#include "model/QueryJobStatisticsRequest.h" +#include "model/QueryJobStatisticsResult.h" #include "model/QueryLoRaJoinPermissionsRequest.h" #include "model/QueryLoRaJoinPermissionsResult.h" #include "model/QueryOTAFirmwareRequest.h" @@ -382,6 +400,8 @@ #include "model/QuerySummarySceneRuleLogResult.h" #include "model/QuerySuperDeviceGroupRequest.h" #include "model/QuerySuperDeviceGroupResult.h" +#include "model/QueryTaskRequest.h" +#include "model/QueryTaskResult.h" #include "model/QueryThingModelRequest.h" #include "model/QueryThingModelResult.h" #include "model/QueryThingModelExtendConfigRequest.h" @@ -452,6 +472,8 @@ #include "model/UpdateEdgeInstanceResult.h" #include "model/UpdateEdgeInstanceChannelRequest.h" #include "model/UpdateEdgeInstanceChannelResult.h" +#include "model/UpdateJobRequest.h" +#include "model/UpdateJobResult.h" #include "model/UpdateOTAModuleRequest.h" #include "model/UpdateOTAModuleResult.h" #include "model/UpdateProductRequest.h" @@ -569,6 +591,9 @@ namespace AlibabaCloud typedef Outcome BindSceneRuleToEdgeInstanceOutcome; typedef std::future BindSceneRuleToEdgeInstanceOutcomeCallable; typedef std::function&)> BindSceneRuleToEdgeInstanceAsyncHandler; + typedef Outcome CancelJobOutcome; + typedef std::future CancelJobOutcomeCallable; + typedef std::function&)> CancelJobAsyncHandler; typedef Outcome CancelOTAStrategyByJobOutcome; typedef std::future CancelOTAStrategyByJobOutcomeCallable; typedef std::function&)> CancelOTAStrategyByJobAsyncHandler; @@ -617,6 +642,9 @@ namespace AlibabaCloud typedef Outcome CreateEdgeOssPreSignedAddressOutcome; typedef std::future CreateEdgeOssPreSignedAddressOutcomeCallable; typedef std::function&)> CreateEdgeOssPreSignedAddressAsyncHandler; + typedef Outcome CreateJobOutcome; + typedef std::future CreateJobOutcomeCallable; + typedef std::function&)> CreateJobAsyncHandler; typedef Outcome CreateLoRaNodesTaskOutcome; typedef std::future CreateLoRaNodesTaskOutcomeCallable; typedef std::function&)> CreateLoRaNodesTaskAsyncHandler; @@ -695,6 +723,9 @@ namespace AlibabaCloud typedef Outcome DeleteEdgeInstanceOutcome; typedef std::future DeleteEdgeInstanceOutcomeCallable; typedef std::function&)> DeleteEdgeInstanceAsyncHandler; + typedef Outcome DeleteJobOutcome; + typedef std::future DeleteJobOutcomeCallable; + typedef std::function&)> DeleteJobAsyncHandler; typedef Outcome DeleteOTAFirmwareOutcome; typedef std::future DeleteOTAFirmwareOutcomeCallable; typedef std::function&)> DeleteOTAFirmwareAsyncHandler; @@ -743,6 +774,9 @@ namespace AlibabaCloud typedef Outcome GenerateDeviceNameListURLOutcome; typedef std::future GenerateDeviceNameListURLOutcomeCallable; typedef std::function&)> GenerateDeviceNameListURLAsyncHandler; + typedef Outcome GenerateFileUploadURLOutcome; + typedef std::future GenerateFileUploadURLOutcomeCallable; + typedef std::function&)> GenerateFileUploadURLAsyncHandler; typedef Outcome GenerateOTAUploadURLOutcome; typedef std::future GenerateOTAUploadURLOutcomeCallable; typedef std::function&)> GenerateOTAUploadURLAsyncHandler; @@ -809,6 +843,9 @@ namespace AlibabaCloud typedef Outcome InvokeThingsServiceOutcome; typedef std::future InvokeThingsServiceOutcomeCallable; typedef std::function&)> InvokeThingsServiceAsyncHandler; + typedef Outcome ListJobOutcome; + typedef std::future ListJobOutcomeCallable; + typedef std::function&)> ListJobAsyncHandler; typedef Outcome ListOTAFirmwareOutcome; typedef std::future ListOTAFirmwareOutcomeCallable; typedef std::function&)> ListOTAFirmwareAsyncHandler; @@ -839,6 +876,12 @@ namespace AlibabaCloud typedef Outcome ListRuleActionsOutcome; typedef std::future ListRuleActionsOutcomeCallable; typedef std::function&)> ListRuleActionsAsyncHandler; + typedef Outcome ListTaskOutcome; + typedef std::future ListTaskOutcomeCallable; + typedef std::function&)> ListTaskAsyncHandler; + typedef Outcome ListTaskByPageOutcome; + typedef std::future ListTaskByPageOutcomeCallable; + typedef std::function&)> ListTaskByPageAsyncHandler; typedef Outcome ListThingModelVersionOutcome; typedef std::future ListThingModelVersionOutcomeCallable; typedef std::function&)> ListThingModelVersionAsyncHandler; @@ -989,6 +1032,12 @@ namespace AlibabaCloud typedef Outcome QueryEdgeInstanceSceneRuleOutcome; typedef std::future QueryEdgeInstanceSceneRuleOutcomeCallable; typedef std::function&)> QueryEdgeInstanceSceneRuleAsyncHandler; + typedef Outcome QueryJobOutcome; + typedef std::future QueryJobOutcomeCallable; + typedef std::function&)> QueryJobAsyncHandler; + typedef Outcome QueryJobStatisticsOutcome; + typedef std::future QueryJobStatisticsOutcomeCallable; + typedef std::function&)> QueryJobStatisticsAsyncHandler; typedef Outcome QueryLoRaJoinPermissionsOutcome; typedef std::future QueryLoRaJoinPermissionsOutcomeCallable; typedef std::function&)> QueryLoRaJoinPermissionsAsyncHandler; @@ -1025,6 +1074,9 @@ namespace AlibabaCloud typedef Outcome QuerySuperDeviceGroupOutcome; typedef std::future QuerySuperDeviceGroupOutcomeCallable; typedef std::function&)> QuerySuperDeviceGroupAsyncHandler; + typedef Outcome QueryTaskOutcome; + typedef std::future QueryTaskOutcomeCallable; + typedef std::function&)> QueryTaskAsyncHandler; typedef Outcome QueryThingModelOutcome; typedef std::future QueryThingModelOutcomeCallable; typedef std::function&)> QueryThingModelAsyncHandler; @@ -1130,6 +1182,9 @@ namespace AlibabaCloud typedef Outcome UpdateEdgeInstanceChannelOutcome; typedef std::future UpdateEdgeInstanceChannelOutcomeCallable; typedef std::function&)> UpdateEdgeInstanceChannelAsyncHandler; + typedef Outcome UpdateJobOutcome; + typedef std::future UpdateJobOutcomeCallable; + typedef std::function&)> UpdateJobAsyncHandler; typedef Outcome UpdateOTAModuleOutcome; typedef std::future UpdateOTAModuleOutcomeCallable; typedef std::function&)> UpdateOTAModuleAsyncHandler; @@ -1255,6 +1310,9 @@ namespace AlibabaCloud 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; + CancelJobOutcome cancelJob(const Model::CancelJobRequest &request)const; + void cancelJobAsync(const Model::CancelJobRequest& request, const CancelJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelJobOutcomeCallable cancelJobCallable(const Model::CancelJobRequest& request) const; CancelOTAStrategyByJobOutcome cancelOTAStrategyByJob(const Model::CancelOTAStrategyByJobRequest &request)const; void cancelOTAStrategyByJobAsync(const Model::CancelOTAStrategyByJobRequest& request, const CancelOTAStrategyByJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelOTAStrategyByJobOutcomeCallable cancelOTAStrategyByJobCallable(const Model::CancelOTAStrategyByJobRequest& request) const; @@ -1303,6 +1361,9 @@ namespace AlibabaCloud CreateEdgeOssPreSignedAddressOutcome createEdgeOssPreSignedAddress(const Model::CreateEdgeOssPreSignedAddressRequest &request)const; void createEdgeOssPreSignedAddressAsync(const Model::CreateEdgeOssPreSignedAddressRequest& request, const CreateEdgeOssPreSignedAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateEdgeOssPreSignedAddressOutcomeCallable createEdgeOssPreSignedAddressCallable(const Model::CreateEdgeOssPreSignedAddressRequest& request) const; + CreateJobOutcome createJob(const Model::CreateJobRequest &request)const; + void createJobAsync(const Model::CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobOutcomeCallable createJobCallable(const Model::CreateJobRequest& request) const; CreateLoRaNodesTaskOutcome createLoRaNodesTask(const Model::CreateLoRaNodesTaskRequest &request)const; void createLoRaNodesTaskAsync(const Model::CreateLoRaNodesTaskRequest& request, const CreateLoRaNodesTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoRaNodesTaskOutcomeCallable createLoRaNodesTaskCallable(const Model::CreateLoRaNodesTaskRequest& request) const; @@ -1381,6 +1442,9 @@ namespace AlibabaCloud DeleteEdgeInstanceOutcome deleteEdgeInstance(const Model::DeleteEdgeInstanceRequest &request)const; void deleteEdgeInstanceAsync(const Model::DeleteEdgeInstanceRequest& request, const DeleteEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEdgeInstanceOutcomeCallable deleteEdgeInstanceCallable(const Model::DeleteEdgeInstanceRequest& request) const; + DeleteJobOutcome deleteJob(const Model::DeleteJobRequest &request)const; + void deleteJobAsync(const Model::DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteJobOutcomeCallable deleteJobCallable(const Model::DeleteJobRequest& request) const; 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; @@ -1429,6 +1493,9 @@ namespace AlibabaCloud 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; + GenerateFileUploadURLOutcome generateFileUploadURL(const Model::GenerateFileUploadURLRequest &request)const; + void generateFileUploadURLAsync(const Model::GenerateFileUploadURLRequest& request, const GenerateFileUploadURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateFileUploadURLOutcomeCallable generateFileUploadURLCallable(const Model::GenerateFileUploadURLRequest& 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; @@ -1495,6 +1562,9 @@ namespace AlibabaCloud InvokeThingsServiceOutcome invokeThingsService(const Model::InvokeThingsServiceRequest &request)const; void invokeThingsServiceAsync(const Model::InvokeThingsServiceRequest& request, const InvokeThingsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InvokeThingsServiceOutcomeCallable invokeThingsServiceCallable(const Model::InvokeThingsServiceRequest& request) const; + ListJobOutcome listJob(const Model::ListJobRequest &request)const; + void listJobAsync(const Model::ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobOutcomeCallable listJobCallable(const Model::ListJobRequest& request) const; ListOTAFirmwareOutcome listOTAFirmware(const Model::ListOTAFirmwareRequest &request)const; void listOTAFirmwareAsync(const Model::ListOTAFirmwareRequest& request, const ListOTAFirmwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOTAFirmwareOutcomeCallable listOTAFirmwareCallable(const Model::ListOTAFirmwareRequest& request) const; @@ -1525,6 +1595,12 @@ namespace AlibabaCloud ListRuleActionsOutcome listRuleActions(const Model::ListRuleActionsRequest &request)const; void listRuleActionsAsync(const Model::ListRuleActionsRequest& request, const ListRuleActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRuleActionsOutcomeCallable listRuleActionsCallable(const Model::ListRuleActionsRequest& request) const; + ListTaskOutcome listTask(const Model::ListTaskRequest &request)const; + void listTaskAsync(const Model::ListTaskRequest& request, const ListTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTaskOutcomeCallable listTaskCallable(const Model::ListTaskRequest& request) const; + ListTaskByPageOutcome listTaskByPage(const Model::ListTaskByPageRequest &request)const; + void listTaskByPageAsync(const Model::ListTaskByPageRequest& request, const ListTaskByPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTaskByPageOutcomeCallable listTaskByPageCallable(const Model::ListTaskByPageRequest& request) const; ListThingModelVersionOutcome listThingModelVersion(const Model::ListThingModelVersionRequest &request)const; void listThingModelVersionAsync(const Model::ListThingModelVersionRequest& request, const ListThingModelVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListThingModelVersionOutcomeCallable listThingModelVersionCallable(const Model::ListThingModelVersionRequest& request) const; @@ -1675,6 +1751,12 @@ namespace AlibabaCloud QueryEdgeInstanceSceneRuleOutcome queryEdgeInstanceSceneRule(const Model::QueryEdgeInstanceSceneRuleRequest &request)const; void queryEdgeInstanceSceneRuleAsync(const Model::QueryEdgeInstanceSceneRuleRequest& request, const QueryEdgeInstanceSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryEdgeInstanceSceneRuleOutcomeCallable queryEdgeInstanceSceneRuleCallable(const Model::QueryEdgeInstanceSceneRuleRequest& request) const; + QueryJobOutcome queryJob(const Model::QueryJobRequest &request)const; + void queryJobAsync(const Model::QueryJobRequest& request, const QueryJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryJobOutcomeCallable queryJobCallable(const Model::QueryJobRequest& request) const; + QueryJobStatisticsOutcome queryJobStatistics(const Model::QueryJobStatisticsRequest &request)const; + void queryJobStatisticsAsync(const Model::QueryJobStatisticsRequest& request, const QueryJobStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryJobStatisticsOutcomeCallable queryJobStatisticsCallable(const Model::QueryJobStatisticsRequest& request) const; QueryLoRaJoinPermissionsOutcome queryLoRaJoinPermissions(const Model::QueryLoRaJoinPermissionsRequest &request)const; void queryLoRaJoinPermissionsAsync(const Model::QueryLoRaJoinPermissionsRequest& request, const QueryLoRaJoinPermissionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryLoRaJoinPermissionsOutcomeCallable queryLoRaJoinPermissionsCallable(const Model::QueryLoRaJoinPermissionsRequest& request) const; @@ -1711,6 +1793,9 @@ namespace AlibabaCloud QuerySuperDeviceGroupOutcome querySuperDeviceGroup(const Model::QuerySuperDeviceGroupRequest &request)const; void querySuperDeviceGroupAsync(const Model::QuerySuperDeviceGroupRequest& request, const QuerySuperDeviceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySuperDeviceGroupOutcomeCallable querySuperDeviceGroupCallable(const Model::QuerySuperDeviceGroupRequest& request) const; + QueryTaskOutcome queryTask(const Model::QueryTaskRequest &request)const; + void queryTaskAsync(const Model::QueryTaskRequest& request, const QueryTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTaskOutcomeCallable queryTaskCallable(const Model::QueryTaskRequest& request) const; 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; @@ -1816,6 +1901,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; + UpdateJobOutcome updateJob(const Model::UpdateJobRequest &request)const; + void updateJobAsync(const Model::UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateJobOutcomeCallable updateJobCallable(const Model::UpdateJobRequest& request) const; UpdateOTAModuleOutcome updateOTAModule(const Model::UpdateOTAModuleRequest &request)const; void updateOTAModuleAsync(const Model::UpdateOTAModuleRequest& request, const UpdateOTAModuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateOTAModuleOutcomeCallable updateOTAModuleCallable(const Model::UpdateOTAModuleRequest& request) const; diff --git a/iot/include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h b/iot/include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h index 3bc7e9b8d..3ad2a3299 100644 --- a/iot/include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h @@ -41,8 +41,12 @@ namespace AlibabaCloud BatchAddDeviceGroupRelationsRequest(); ~BatchAddDeviceGroupRelationsRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getGroupId()const; @@ -55,7 +59,9 @@ namespace AlibabaCloud void setDevice(const std::vector& device); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string groupId_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsRequest.h b/iot/include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsRequest.h index 106e2991d..a3ebeab76 100644 --- a/iot/include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsRequest.h @@ -41,8 +41,12 @@ namespace AlibabaCloud BatchDeleteDeviceGroupRelationsRequest(); ~BatchDeleteDeviceGroupRelationsRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getGroupId()const; @@ -55,7 +59,9 @@ namespace AlibabaCloud void setDevice(const std::vector& device); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string groupId_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h b/iot/include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h index 53e9d4343..98e8b2351 100644 --- a/iot/include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h @@ -35,6 +35,10 @@ namespace AlibabaCloud BatchQueryDeviceDetailRequest(); ~BatchQueryDeviceDetailRequest(); + 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; @@ -47,6 +51,8 @@ namespace AlibabaCloud void setDeviceName(const std::vector& deviceName); private: + std::string realTenantId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h b/iot/include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h index 4c176cad2..25c69b669 100644 --- a/iot/include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h @@ -43,8 +43,12 @@ namespace AlibabaCloud BatchUpdateDeviceNicknameRequest(); ~BatchUpdateDeviceNicknameRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::vector getDeviceNicknameInfo()const; @@ -55,7 +59,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::vector deviceNicknameInfo_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/CancelJobRequest.h b/iot/include/alibabacloud/iot/model/CancelJobRequest.h new file mode 100644 index 000000000..bc636c577 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CancelJobRequest.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_CANCELJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CANCELJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CancelJobRequest : public RpcServiceRequest + { + + public: + CancelJobRequest(); + ~CancelJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + 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 jobId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CANCELJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CancelJobResult.h b/iot/include/alibabacloud/iot/model/CancelJobResult.h new file mode 100644 index 000000000..8d8bec309 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CancelJobResult.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_CANCELJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CANCELJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CancelJobResult : public ServiceResult + { + public: + + + CancelJobResult(); + explicit CancelJobResult(const std::string &payload); + ~CancelJobResult(); + 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_CANCELJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateDeviceGroupRequest.h b/iot/include/alibabacloud/iot/model/CreateDeviceGroupRequest.h index abe73b888..f4630cdaa 100644 --- a/iot/include/alibabacloud/iot/model/CreateDeviceGroupRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateDeviceGroupRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud CreateDeviceGroupRequest(); ~CreateDeviceGroupRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getSuperGroupId()const; void setSuperGroupId(const std::string& superGroupId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getGroupName()const; @@ -51,8 +55,10 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string superGroupId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string groupName_; std::string groupDesc_; diff --git a/iot/include/alibabacloud/iot/model/CreateJobRequest.h b/iot/include/alibabacloud/iot/model/CreateJobRequest.h new file mode 100644 index 000000000..bd47766d3 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateJobRequest.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_CREATEJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateJobRequest : public RpcServiceRequest + { + + public: + CreateJobRequest(); + ~CreateJobRequest(); + + std::string getJobDocument()const; + void setJobDocument(const std::string& jobDocument); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + std::string getRolloutConfig()const; + void setRolloutConfig(const std::string& rolloutConfig); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getJobName()const; + void setJobName(const std::string& jobName); + std::string getTimeoutConfig()const; + void setTimeoutConfig(const std::string& timeoutConfig); + std::string getTargetConfig()const; + void setTargetConfig(const std::string& targetConfig); + std::string getJobFile()const; + void setJobFile(const std::string& jobFile); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string jobDocument_; + std::string description_; + std::string type_; + std::string rolloutConfig_; + std::string iotInstanceId_; + std::string jobName_; + std::string timeoutConfig_; + std::string targetConfig_; + std::string jobFile_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateJobResult.h b/iot/include/alibabacloud/iot/model/CreateJobResult.h new file mode 100644 index 000000000..616f5bd0f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateJobResult.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_CREATEJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateJobResult : public ServiceResult + { + public: + + + CreateJobResult(); + explicit CreateJobResult(const std::string &payload); + ~CreateJobResult(); + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATEJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateProductTagsRequest.h b/iot/include/alibabacloud/iot/model/CreateProductTagsRequest.h index d66385d40..6d2ca549d 100644 --- a/iot/include/alibabacloud/iot/model/CreateProductTagsRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateProductTagsRequest.h @@ -41,8 +41,12 @@ namespace AlibabaCloud CreateProductTagsRequest(); ~CreateProductTagsRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -55,7 +59,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::vector productTag_; diff --git a/iot/include/alibabacloud/iot/model/CreateRuleRequest.h b/iot/include/alibabacloud/iot/model/CreateRuleRequest.h index 7aab0c678..3c52332b8 100644 --- a/iot/include/alibabacloud/iot/model/CreateRuleRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateRuleRequest.h @@ -59,6 +59,8 @@ namespace AlibabaCloud void setApiProduct(const std::string& apiProduct); std::string getName()const; void setName(const std::string& name); + std::string getTopic()const; + void setTopic(const std::string& topic); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); @@ -75,6 +77,7 @@ namespace AlibabaCloud std::string productKey_; std::string apiProduct_; std::string name_; + std::string topic_; std::string apiRevision_; }; diff --git a/iot/include/alibabacloud/iot/model/DeleteDeviceGroupRequest.h b/iot/include/alibabacloud/iot/model/DeleteDeviceGroupRequest.h index bc03e4072..e06342e10 100644 --- a/iot/include/alibabacloud/iot/model/DeleteDeviceGroupRequest.h +++ b/iot/include/alibabacloud/iot/model/DeleteDeviceGroupRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud DeleteDeviceGroupRequest(); ~DeleteDeviceGroupRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getGroupId()const; @@ -47,7 +51,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string groupId_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/DeleteDeviceRequest.h b/iot/include/alibabacloud/iot/model/DeleteDeviceRequest.h index d49cc3ee0..402b1d79e 100644 --- a/iot/include/alibabacloud/iot/model/DeleteDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/DeleteDeviceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud DeleteDeviceRequest(); ~DeleteDeviceRequest(); + 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; @@ -51,7 +55,9 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/DeleteJobRequest.h b/iot/include/alibabacloud/iot/model/DeleteJobRequest.h new file mode 100644 index 000000000..cd348a3d2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteJobRequest.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_DELETEJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteJobRequest : public RpcServiceRequest + { + + public: + DeleteJobRequest(); + ~DeleteJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + 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 jobId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteJobResult.h b/iot/include/alibabacloud/iot/model/DeleteJobResult.h new file mode 100644 index 000000000..acfab2f4e --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteJobResult.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_DELETEJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteJobResult : public ServiceResult + { + public: + + + DeleteJobResult(); + explicit DeleteJobResult(const std::string &payload); + ~DeleteJobResult(); + 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_DELETEJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteProductRequest.h b/iot/include/alibabacloud/iot/model/DeleteProductRequest.h index 09fe4e2f4..4e917c249 100644 --- a/iot/include/alibabacloud/iot/model/DeleteProductRequest.h +++ b/iot/include/alibabacloud/iot/model/DeleteProductRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud DeleteProductRequest(); ~DeleteProductRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -47,7 +51,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/DeleteProductTagsRequest.h b/iot/include/alibabacloud/iot/model/DeleteProductTagsRequest.h index 545d26694..14ce83bfa 100644 --- a/iot/include/alibabacloud/iot/model/DeleteProductTagsRequest.h +++ b/iot/include/alibabacloud/iot/model/DeleteProductTagsRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud DeleteProductTagsRequest(); ~DeleteProductTagsRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::vector getProductTagKey()const; @@ -49,7 +53,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::vector productTagKey_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/GenerateFileUploadURLRequest.h b/iot/include/alibabacloud/iot/model/GenerateFileUploadURLRequest.h new file mode 100644 index 000000000..2958c3fc9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GenerateFileUploadURLRequest.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_GENERATEFILEUPLOADURLREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GENERATEFILEUPLOADURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GenerateFileUploadURLRequest : public RpcServiceRequest + { + + public: + GenerateFileUploadURLRequest(); + ~GenerateFileUploadURLRequest(); + + std::string getFileSuffix()const; + void setFileSuffix(const std::string& fileSuffix); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string fileSuffix_; + std::string iotInstanceId_; + std::string bizCode_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GENERATEFILEUPLOADURLREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GenerateFileUploadURLResult.h b/iot/include/alibabacloud/iot/model/GenerateFileUploadURLResult.h new file mode 100644 index 000000000..7ca52956e --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GenerateFileUploadURLResult.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_GENERATEFILEUPLOADURLRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GENERATEFILEUPLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GenerateFileUploadURLResult : public ServiceResult + { + public: + struct Data + { + std::string policy; + std::string signature; + std::string objectStorage; + std::string host; + std::string ossAccessKeyId; + std::string key; + }; + + + GenerateFileUploadURLResult(); + explicit GenerateFileUploadURLResult(const std::string &payload); + ~GenerateFileUploadURLResult(); + 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_GENERATEFILEUPLOADURLRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/InvokeThingServiceRequest.h b/iot/include/alibabacloud/iot/model/InvokeThingServiceRequest.h index d6fb34bf5..241f4e3c0 100644 --- a/iot/include/alibabacloud/iot/model/InvokeThingServiceRequest.h +++ b/iot/include/alibabacloud/iot/model/InvokeThingServiceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud InvokeThingServiceRequest(); ~InvokeThingServiceRequest(); + 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; @@ -55,7 +59,9 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string identifier_; diff --git a/iot/include/alibabacloud/iot/model/ListJobRequest.h b/iot/include/alibabacloud/iot/model/ListJobRequest.h new file mode 100644 index 000000000..4a044a4e4 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListJobRequest.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_LISTJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListJobRequest : public RpcServiceRequest + { + + public: + ListJobRequest(); + ~ListJobRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string iotInstanceId_; + int pageSize_; + int currentPage_; + std::string apiProduct_; + std::string apiRevision_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListJobResult.h b/iot/include/alibabacloud/iot/model/ListJobResult.h new file mode 100644 index 000000000..7eb7480fe --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListJobResult.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_LISTJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListJobResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + std::string type; + std::string description; + std::string utcCreate; + std::string jobName; + std::string utcModified; + std::string jobId; + }; + + + ListJobResult(); + explicit ListJobResult(const std::string &payload); + ~ListJobResult(); + int getPageSize()const; + int getTotal()const; + std::vector getData()const; + int getPage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int total_; + std::vector data_; + int page_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListProductTagsRequest.h b/iot/include/alibabacloud/iot/model/ListProductTagsRequest.h index f25bd1495..0e9bed1ca 100644 --- a/iot/include/alibabacloud/iot/model/ListProductTagsRequest.h +++ b/iot/include/alibabacloud/iot/model/ListProductTagsRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud ListProductTagsRequest(); ~ListProductTagsRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -47,7 +51,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/ListTaskByPageRequest.h b/iot/include/alibabacloud/iot/model/ListTaskByPageRequest.h new file mode 100644 index 000000000..e1c54cee2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListTaskByPageRequest.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_LISTTASKBYPAGEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTTASKBYPAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListTaskByPageRequest : public RpcServiceRequest + { + + public: + ListTaskByPageRequest(); + ~ListTaskByPageRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getJobName()const; + void setJobName(const std::string& jobName); + std::string getPageNo()const; + void setPageNo(const std::string& pageNo); + 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 getDevice()const; + void setDevice(const std::string& device); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string jobId_; + std::string iotInstanceId_; + std::string pageSize_; + std::string jobName_; + std::string pageNo_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + std::string device_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTTASKBYPAGEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListTaskByPageResult.h b/iot/include/alibabacloud/iot/model/ListTaskByPageResult.h new file mode 100644 index 000000000..a81afc620 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListTaskByPageResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_LISTTASKBYPAGERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTTASKBYPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListTaskByPageResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + std::string iotId; + int progress; + std::string taskId; + std::string productName; + std::string statusDetail; + std::string jobName; + std::string utcModified; + std::string utcQueueTime; + std::string jobId; + std::string productKey; + std::string deviceName; + }; + + + ListTaskByPageResult(); + explicit ListTaskByPageResult(const std::string &payload); + ~ListTaskByPageResult(); + int getPageSize()const; + int getPageCount()const; + int getTotal()const; + std::vector getData()const; + int getPage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageCount_; + int total_; + std::vector data_; + int page_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTTASKBYPAGERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListTaskRequest.h b/iot/include/alibabacloud/iot/model/ListTaskRequest.h new file mode 100644 index 000000000..6c5ff4dc0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListTaskRequest.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_LISTTASKREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListTaskRequest : public RpcServiceRequest + { + + public: + ListTaskRequest(); + ~ListTaskRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getLimit()const; + void setLimit(int limit); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDevice()const; + void setDevice(const std::string& device); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string jobId_; + std::string nextToken_; + std::string iotInstanceId_; + int limit_; + std::string apiProduct_; + std::string apiRevision_; + std::string device_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTTASKREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ListTaskResult.h b/iot/include/alibabacloud/iot/model/ListTaskResult.h new file mode 100644 index 000000000..9c952117b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ListTaskResult.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_LISTTASKRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_LISTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ListTaskResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + std::string iotId; + std::string progress; + std::string taskId; + std::string jobName; + std::string utcModified; + std::string utcQueueTime; + std::string jobId; + std::string productKey; + std::string deviceName; + }; + + + ListTaskResult(); + explicit ListTaskResult(const std::string &payload); + ~ListTaskResult(); + std::string getNextToken()const; + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_LISTTASKRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceByStatusRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceByStatusRequest.h index 9c362c499..7a59de304 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceByStatusRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceByStatusRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDeviceByStatusRequest(); ~QueryDeviceByStatusRequest(); + 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; @@ -57,7 +61,9 @@ namespace AlibabaCloud void setStatus(int status); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string resourceGroupId_; std::string iotInstanceId_; int pageSize_; diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h index b2435b1d4..275251c95 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceDesiredPropertyRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDeviceDesiredPropertyRequest(); ~QueryDeviceDesiredPropertyRequest(); + 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; @@ -55,7 +59,9 @@ namespace AlibabaCloud void setFunctionBlockId(const std::string& functionBlockId); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::vector identifier_; diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceDetailRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceDetailRequest.h index 5becaea63..e961df5a0 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceDetailRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceDetailRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDeviceDetailRequest(); ~QueryDeviceDetailRequest(); + 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; @@ -51,7 +55,9 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceEventDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceEventDataRequest.h index 135ccee64..52b15675b 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceEventDataRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceEventDataRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud QueryDeviceEventDataRequest(); ~QueryDeviceEventDataRequest(); + 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; @@ -63,8 +67,10 @@ namespace AlibabaCloud void setEventType(const std::string& eventType); 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/QueryDeviceGroupByDeviceRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceGroupByDeviceRequest.h index be7f67bdc..ad1192871 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceGroupByDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceGroupByDeviceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDeviceGroupByDeviceRequest(); ~QueryDeviceGroupByDeviceRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -49,7 +53,9 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceGroupInfoRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceGroupInfoRequest.h index bb8b64c1a..ac7b1fb00 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceGroupInfoRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceGroupInfoRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDeviceGroupInfoRequest(); ~QueryDeviceGroupInfoRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getGroupId()const; @@ -47,7 +51,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string groupId_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/QueryDevicePropRequest.h b/iot/include/alibabacloud/iot/model/QueryDevicePropRequest.h index fcc903fe6..30628bedb 100644 --- a/iot/include/alibabacloud/iot/model/QueryDevicePropRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDevicePropRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDevicePropRequest(); ~QueryDevicePropRequest(); + 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; @@ -51,7 +55,9 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/QueryDevicePropertiesDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDevicePropertiesDataRequest.h index fc11b7974..777c70f7b 100644 --- a/iot/include/alibabacloud/iot/model/QueryDevicePropertiesDataRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDevicePropertiesDataRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud QueryDevicePropertiesDataRequest(); ~QueryDevicePropertiesDataRequest(); + 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/QueryDeviceServiceDataRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceServiceDataRequest.h index af107b2f2..ec89ad1bb 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceServiceDataRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceServiceDataRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud QueryDeviceServiceDataRequest(); ~QueryDeviceServiceDataRequest(); + 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/QueryDeviceStatisticsRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h index 2ff5cecd3..3ad2c93b5 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h @@ -35,10 +35,16 @@ namespace AlibabaCloud QueryDeviceStatisticsRequest(); ~QueryDeviceStatisticsRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -47,8 +53,11 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; + std::string groupId_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; diff --git a/iot/include/alibabacloud/iot/model/QueryJobRequest.h b/iot/include/alibabacloud/iot/model/QueryJobRequest.h new file mode 100644 index 000000000..7f2cd4097 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryJobRequest.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_QUERYJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryJobRequest : public RpcServiceRequest + { + + public: + QueryJobRequest(); + ~QueryJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + 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 jobId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryJobResult.h b/iot/include/alibabacloud/iot/model/QueryJobResult.h new file mode 100644 index 000000000..35fdc5031 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryJobResult.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryJobResult : public ServiceResult + { + public: + struct Data + { + struct RolloutConfig + { + int maximumPerMinute; + }; + struct TimeoutConfig + { + int inProgressTimeoutInMinutes; + }; + struct JobFile + { + std::string fileUrl; + std::string sign; + std::string signMethod; + }; + struct TargetConfig + { + struct TargetDevicesItem + { + std::string productKey; + std::string deviceName; + }; + std::vector targetDevices; + std::string targetGroup; + std::string targetType; + std::string targetProduct; + }; + std::string status; + RolloutConfig rolloutConfig; + TimeoutConfig timeoutConfig; + std::string type; + std::string description; + JobFile jobFile; + std::string utcCreate; + std::string jobDocument; + std::string jobName; + std::string utcModified; + TargetConfig targetConfig; + std::string jobId; + }; + + + QueryJobResult(); + explicit QueryJobResult(const std::string &payload); + ~QueryJobResult(); + 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_QUERYJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryJobStatisticsRequest.h b/iot/include/alibabacloud/iot/model/QueryJobStatisticsRequest.h new file mode 100644 index 000000000..00a48feee --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryJobStatisticsRequest.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_QUERYJOBSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYJOBSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryJobStatisticsRequest : public RpcServiceRequest + { + + public: + QueryJobStatisticsRequest(); + ~QueryJobStatisticsRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + 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 jobId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYJOBSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryJobStatisticsResult.h b/iot/include/alibabacloud/iot/model/QueryJobStatisticsResult.h new file mode 100644 index 000000000..7f826f802 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryJobStatisticsResult.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_QUERYJOBSTATISTICSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYJOBSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryJobStatisticsResult : public ServiceResult + { + public: + struct Data + { + int succeeded; + int failed; + int timeOut; + int total; + int inProgress; + int queued; + int rejected; + int cancelled; + int sent; + }; + + + QueryJobStatisticsResult(); + explicit QueryJobStatisticsResult(const std::string &payload); + ~QueryJobStatisticsResult(); + 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_QUERYJOBSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryProductRequest.h b/iot/include/alibabacloud/iot/model/QueryProductRequest.h index 312c87245..f60dcdfc2 100644 --- a/iot/include/alibabacloud/iot/model/QueryProductRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryProductRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryProductRequest(); ~QueryProductRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -47,7 +51,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/QueryProductResult.h b/iot/include/alibabacloud/iot/model/QueryProductResult.h index 46a5d2fe5..c941fb04c 100644 --- a/iot/include/alibabacloud/iot/model/QueryProductResult.h +++ b/iot/include/alibabacloud/iot/model/QueryProductResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string aliyunCommodityCode; std::string productStatus; std::string productSecret; + int validateType; long gmtCreate; std::string categoryKey; bool id2; diff --git a/iot/include/alibabacloud/iot/model/QueryTaskRequest.h b/iot/include/alibabacloud/iot/model/QueryTaskRequest.h new file mode 100644 index 000000000..2a5898641 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryTaskRequest.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_QUERYTASKREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryTaskRequest : public RpcServiceRequest + { + + public: + QueryTaskRequest(); + ~QueryTaskRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + 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 taskId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYTASKREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryTaskResult.h b/iot/include/alibabacloud/iot/model/QueryTaskResult.h new file mode 100644 index 000000000..19719ccde --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryTaskResult.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_QUERYTASKRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryTaskResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string iotId; + std::string progress; + std::string taskId; + std::string message; + std::string statusDetail; + std::string jobName; + std::string utcModified; + std::string utcQueueTime; + std::string jobId; + std::string productKey; + std::string deviceName; + }; + + + QueryTaskResult(); + explicit QueryTaskResult(const std::string &payload); + ~QueryTaskResult(); + 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_QUERYTASKRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h b/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h index fb5f28ccb..89950b246 100644 --- a/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/RegisterDeviceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud RegisterDeviceRequest(); ~RegisterDeviceRequest(); + 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 getLoraNodeType()const; void setLoraNodeType(const std::string& loraNodeType); std::string getIotInstanceId()const; @@ -61,7 +65,9 @@ namespace AlibabaCloud void setAppKey(const std::string& appKey); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string loraNodeType_; std::string iotInstanceId_; std::string nickname_; diff --git a/iot/include/alibabacloud/iot/model/SetDevicePropertyRequest.h b/iot/include/alibabacloud/iot/model/SetDevicePropertyRequest.h index ce72e195a..a56d392d0 100644 --- a/iot/include/alibabacloud/iot/model/SetDevicePropertyRequest.h +++ b/iot/include/alibabacloud/iot/model/SetDevicePropertyRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud SetDevicePropertyRequest(); ~SetDevicePropertyRequest(); + 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; @@ -53,7 +57,9 @@ namespace AlibabaCloud void setItems(const std::string& items); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/UpdateJobRequest.h b/iot/include/alibabacloud/iot/model/UpdateJobRequest.h new file mode 100644 index 000000000..0b5fda838 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateJobRequest.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_UPDATEJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateJobRequest : public RpcServiceRequest + { + + public: + UpdateJobRequest(); + ~UpdateJobRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getRolloutConfig()const; + void setRolloutConfig(const std::string& rolloutConfig); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getTimeoutConfig()const; + void setTimeoutConfig(const std::string& timeoutConfig); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string rolloutConfig_; + std::string jobId_; + std::string iotInstanceId_; + std::string timeoutConfig_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateJobResult.h b/iot/include/alibabacloud/iot/model/UpdateJobResult.h new file mode 100644 index 000000000..13348e394 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateJobResult.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_UPDATEJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateJobResult : public ServiceResult + { + public: + + + UpdateJobResult(); + explicit UpdateJobResult(const std::string &payload); + ~UpdateJobResult(); + 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_UPDATEJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateRuleRequest.h b/iot/include/alibabacloud/iot/model/UpdateRuleRequest.h index 5ad95ab70..8702a8921 100644 --- a/iot/include/alibabacloud/iot/model/UpdateRuleRequest.h +++ b/iot/include/alibabacloud/iot/model/UpdateRuleRequest.h @@ -55,6 +55,8 @@ namespace AlibabaCloud void setApiProduct(const std::string& apiProduct); std::string getName()const; void setName(const std::string& name); + std::string getTopic()const; + void setTopic(const std::string& topic); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); long getRuleId()const; @@ -71,6 +73,7 @@ namespace AlibabaCloud std::string productKey_; std::string apiProduct_; std::string name_; + std::string topic_; std::string apiRevision_; long ruleId_; diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index 30a852b29..944eee813 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -1059,6 +1059,42 @@ IotClient::BindSceneRuleToEdgeInstanceOutcomeCallable IotClient::bindSceneRuleTo return task->get_future(); } +IotClient::CancelJobOutcome IotClient::cancelJob(const CancelJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelJobOutcome(CancelJobResult(outcome.result())); + else + return CancelJobOutcome(outcome.error()); +} + +void IotClient::cancelJobAsync(const CancelJobRequest& request, const CancelJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CancelJobOutcomeCallable IotClient::cancelJobCallable(const CancelJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CancelOTAStrategyByJobOutcome IotClient::cancelOTAStrategyByJob(const CancelOTAStrategyByJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +1671,42 @@ IotClient::CreateEdgeOssPreSignedAddressOutcomeCallable IotClient::createEdgeOss return task->get_future(); } +IotClient::CreateJobOutcome IotClient::createJob(const CreateJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobOutcome(CreateJobResult(outcome.result())); + else + return CreateJobOutcome(outcome.error()); +} + +void IotClient::createJobAsync(const CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateJobOutcomeCallable IotClient::createJobCallable(const CreateJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateLoRaNodesTaskOutcome IotClient::createLoRaNodesTask(const CreateLoRaNodesTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +2643,42 @@ IotClient::DeleteEdgeInstanceOutcomeCallable IotClient::deleteEdgeInstanceCallab return task->get_future(); } +IotClient::DeleteJobOutcome IotClient::deleteJob(const DeleteJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteJobOutcome(DeleteJobResult(outcome.result())); + else + return DeleteJobOutcome(outcome.error()); +} + +void IotClient::deleteJobAsync(const DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteJobOutcomeCallable IotClient::deleteJobCallable(const DeleteJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteOTAFirmwareOutcome IotClient::deleteOTAFirmware(const DeleteOTAFirmwareRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,6 +3255,42 @@ IotClient::GenerateDeviceNameListURLOutcomeCallable IotClient::generateDeviceNam return task->get_future(); } +IotClient::GenerateFileUploadURLOutcome IotClient::generateFileUploadURL(const GenerateFileUploadURLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateFileUploadURLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateFileUploadURLOutcome(GenerateFileUploadURLResult(outcome.result())); + else + return GenerateFileUploadURLOutcome(outcome.error()); +} + +void IotClient::generateFileUploadURLAsync(const GenerateFileUploadURLRequest& request, const GenerateFileUploadURLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateFileUploadURL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GenerateFileUploadURLOutcomeCallable IotClient::generateFileUploadURLCallable(const GenerateFileUploadURLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateFileUploadURL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GenerateOTAUploadURLOutcome IotClient::generateOTAUploadURL(const GenerateOTAUploadURLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3939,6 +4083,42 @@ IotClient::InvokeThingsServiceOutcomeCallable IotClient::invokeThingsServiceCall return task->get_future(); } +IotClient::ListJobOutcome IotClient::listJob(const ListJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobOutcome(ListJobResult(outcome.result())); + else + return ListJobOutcome(outcome.error()); +} + +void IotClient::listJobAsync(const ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListJobOutcomeCallable IotClient::listJobCallable(const ListJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ListOTAFirmwareOutcome IotClient::listOTAFirmware(const ListOTAFirmwareRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4299,6 +4479,78 @@ IotClient::ListRuleActionsOutcomeCallable IotClient::listRuleActionsCallable(con return task->get_future(); } +IotClient::ListTaskOutcome IotClient::listTask(const ListTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTaskOutcome(ListTaskResult(outcome.result())); + else + return ListTaskOutcome(outcome.error()); +} + +void IotClient::listTaskAsync(const ListTaskRequest& request, const ListTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListTaskOutcomeCallable IotClient::listTaskCallable(const ListTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::ListTaskByPageOutcome IotClient::listTaskByPage(const ListTaskByPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTaskByPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTaskByPageOutcome(ListTaskByPageResult(outcome.result())); + else + return ListTaskByPageOutcome(outcome.error()); +} + +void IotClient::listTaskByPageAsync(const ListTaskByPageRequest& request, const ListTaskByPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTaskByPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ListTaskByPageOutcomeCallable IotClient::listTaskByPageCallable(const ListTaskByPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTaskByPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ListThingModelVersionOutcome IotClient::listThingModelVersion(const ListThingModelVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6099,6 +6351,78 @@ IotClient::QueryEdgeInstanceSceneRuleOutcomeCallable IotClient::queryEdgeInstanc return task->get_future(); } +IotClient::QueryJobOutcome IotClient::queryJob(const QueryJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryJobOutcome(QueryJobResult(outcome.result())); + else + return QueryJobOutcome(outcome.error()); +} + +void IotClient::queryJobAsync(const QueryJobRequest& request, const QueryJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryJobOutcomeCallable IotClient::queryJobCallable(const QueryJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryJobStatisticsOutcome IotClient::queryJobStatistics(const QueryJobStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryJobStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryJobStatisticsOutcome(QueryJobStatisticsResult(outcome.result())); + else + return QueryJobStatisticsOutcome(outcome.error()); +} + +void IotClient::queryJobStatisticsAsync(const QueryJobStatisticsRequest& request, const QueryJobStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryJobStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryJobStatisticsOutcomeCallable IotClient::queryJobStatisticsCallable(const QueryJobStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryJobStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryLoRaJoinPermissionsOutcome IotClient::queryLoRaJoinPermissions(const QueryLoRaJoinPermissionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6531,6 +6855,42 @@ IotClient::QuerySuperDeviceGroupOutcomeCallable IotClient::querySuperDeviceGroup return task->get_future(); } +IotClient::QueryTaskOutcome IotClient::queryTask(const QueryTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTaskOutcome(QueryTaskResult(outcome.result())); + else + return QueryTaskOutcome(outcome.error()); +} + +void IotClient::queryTaskAsync(const QueryTaskRequest& request, const QueryTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryTaskOutcomeCallable IotClient::queryTaskCallable(const QueryTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryThingModelOutcome IotClient::queryThingModel(const QueryThingModelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7791,6 +8151,42 @@ IotClient::UpdateEdgeInstanceChannelOutcomeCallable IotClient::updateEdgeInstanc return task->get_future(); } +IotClient::UpdateJobOutcome IotClient::updateJob(const UpdateJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateJobOutcome(UpdateJobResult(outcome.result())); + else + return UpdateJobOutcome(outcome.error()); +} + +void IotClient::updateJobAsync(const UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateJobOutcomeCallable IotClient::updateJobCallable(const UpdateJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateOTAModuleOutcome IotClient::updateOTAModule(const UpdateOTAModuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/iot/src/model/BatchAddDeviceGroupRelationsRequest.cc b/iot/src/model/BatchAddDeviceGroupRelationsRequest.cc index e25a0c045..8e059a90c 100644 --- a/iot/src/model/BatchAddDeviceGroupRelationsRequest.cc +++ b/iot/src/model/BatchAddDeviceGroupRelationsRequest.cc @@ -27,6 +27,17 @@ BatchAddDeviceGroupRelationsRequest::BatchAddDeviceGroupRelationsRequest() : BatchAddDeviceGroupRelationsRequest::~BatchAddDeviceGroupRelationsRequest() {} +std::string BatchAddDeviceGroupRelationsRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchAddDeviceGroupRelationsRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchAddDeviceGroupRelationsRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void BatchAddDeviceGroupRelationsRequest::setAccessKeyId(const std::string& acce setParameter("AccessKeyId", accessKeyId); } +std::string BatchAddDeviceGroupRelationsRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchAddDeviceGroupRelationsRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchAddDeviceGroupRelationsRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchDeleteDeviceGroupRelationsRequest.cc b/iot/src/model/BatchDeleteDeviceGroupRelationsRequest.cc index 509a63fdb..7969d6048 100644 --- a/iot/src/model/BatchDeleteDeviceGroupRelationsRequest.cc +++ b/iot/src/model/BatchDeleteDeviceGroupRelationsRequest.cc @@ -27,6 +27,17 @@ BatchDeleteDeviceGroupRelationsRequest::BatchDeleteDeviceGroupRelationsRequest() BatchDeleteDeviceGroupRelationsRequest::~BatchDeleteDeviceGroupRelationsRequest() {} +std::string BatchDeleteDeviceGroupRelationsRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchDeleteDeviceGroupRelationsRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchDeleteDeviceGroupRelationsRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void BatchDeleteDeviceGroupRelationsRequest::setAccessKeyId(const std::string& a setParameter("AccessKeyId", accessKeyId); } +std::string BatchDeleteDeviceGroupRelationsRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchDeleteDeviceGroupRelationsRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchDeleteDeviceGroupRelationsRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchQueryDeviceDetailRequest.cc b/iot/src/model/BatchQueryDeviceDetailRequest.cc index d7e44ee2b..2f6eb38ad 100644 --- a/iot/src/model/BatchQueryDeviceDetailRequest.cc +++ b/iot/src/model/BatchQueryDeviceDetailRequest.cc @@ -27,6 +27,28 @@ BatchQueryDeviceDetailRequest::BatchQueryDeviceDetailRequest() : BatchQueryDeviceDetailRequest::~BatchQueryDeviceDetailRequest() {} +std::string BatchQueryDeviceDetailRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchQueryDeviceDetailRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + +std::string BatchQueryDeviceDetailRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchQueryDeviceDetailRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchQueryDeviceDetailRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchUpdateDeviceNicknameRequest.cc b/iot/src/model/BatchUpdateDeviceNicknameRequest.cc index ec6c5c82d..e448db920 100644 --- a/iot/src/model/BatchUpdateDeviceNicknameRequest.cc +++ b/iot/src/model/BatchUpdateDeviceNicknameRequest.cc @@ -27,6 +27,17 @@ BatchUpdateDeviceNicknameRequest::BatchUpdateDeviceNicknameRequest() : BatchUpdateDeviceNicknameRequest::~BatchUpdateDeviceNicknameRequest() {} +std::string BatchUpdateDeviceNicknameRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchUpdateDeviceNicknameRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchUpdateDeviceNicknameRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void BatchUpdateDeviceNicknameRequest::setAccessKeyId(const std::string& accessK setParameter("AccessKeyId", accessKeyId); } +std::string BatchUpdateDeviceNicknameRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchUpdateDeviceNicknameRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchUpdateDeviceNicknameRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/CancelJobRequest.cc b/iot/src/model/CancelJobRequest.cc new file mode 100644 index 000000000..1b375add0 --- /dev/null +++ b/iot/src/model/CancelJobRequest.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::CancelJobRequest; + +CancelJobRequest::CancelJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "CancelJob") +{ + setMethod(HttpRequest::Method::Post); +} + +CancelJobRequest::~CancelJobRequest() +{} + +std::string CancelJobRequest::getJobId()const +{ + return jobId_; +} + +void CancelJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string CancelJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CancelJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CancelJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CancelJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CancelJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CancelJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CancelJobResult.cc b/iot/src/model/CancelJobResult.cc new file mode 100644 index 000000000..f254b3287 --- /dev/null +++ b/iot/src/model/CancelJobResult.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; + +CancelJobResult::CancelJobResult() : + ServiceResult() +{} + +CancelJobResult::CancelJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelJobResult::~CancelJobResult() +{} + +void CancelJobResult::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 CancelJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CancelJobResult::getCode()const +{ + return code_; +} + +bool CancelJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CreateDeviceGroupRequest.cc b/iot/src/model/CreateDeviceGroupRequest.cc index 84fef5489..919e28930 100644 --- a/iot/src/model/CreateDeviceGroupRequest.cc +++ b/iot/src/model/CreateDeviceGroupRequest.cc @@ -27,6 +27,17 @@ CreateDeviceGroupRequest::CreateDeviceGroupRequest() : CreateDeviceGroupRequest::~CreateDeviceGroupRequest() {} +std::string CreateDeviceGroupRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void CreateDeviceGroupRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string CreateDeviceGroupRequest::getSuperGroupId()const { return superGroupId_; @@ -49,6 +60,17 @@ void CreateDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string CreateDeviceGroupRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void CreateDeviceGroupRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string CreateDeviceGroupRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/CreateJobRequest.cc b/iot/src/model/CreateJobRequest.cc new file mode 100644 index 000000000..f4d6b11cb --- /dev/null +++ b/iot/src/model/CreateJobRequest.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::CreateJobRequest; + +CreateJobRequest::CreateJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateJob") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateJobRequest::~CreateJobRequest() +{} + +std::string CreateJobRequest::getJobDocument()const +{ + return jobDocument_; +} + +void CreateJobRequest::setJobDocument(const std::string& jobDocument) +{ + jobDocument_ = jobDocument; + setParameter("JobDocument", jobDocument); +} + +std::string CreateJobRequest::getDescription()const +{ + return description_; +} + +void CreateJobRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateJobRequest::getType()const +{ + return type_; +} + +void CreateJobRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string CreateJobRequest::getRolloutConfig()const +{ + return rolloutConfig_; +} + +void CreateJobRequest::setRolloutConfig(const std::string& rolloutConfig) +{ + rolloutConfig_ = rolloutConfig; + setParameter("RolloutConfig", rolloutConfig); +} + +std::string CreateJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateJobRequest::getJobName()const +{ + return jobName_; +} + +void CreateJobRequest::setJobName(const std::string& jobName) +{ + jobName_ = jobName; + setParameter("JobName", jobName); +} + +std::string CreateJobRequest::getTimeoutConfig()const +{ + return timeoutConfig_; +} + +void CreateJobRequest::setTimeoutConfig(const std::string& timeoutConfig) +{ + timeoutConfig_ = timeoutConfig; + setParameter("TimeoutConfig", timeoutConfig); +} + +std::string CreateJobRequest::getTargetConfig()const +{ + return targetConfig_; +} + +void CreateJobRequest::setTargetConfig(const std::string& targetConfig) +{ + targetConfig_ = targetConfig; + setParameter("TargetConfig", targetConfig); +} + +std::string CreateJobRequest::getJobFile()const +{ + return jobFile_; +} + +void CreateJobRequest::setJobFile(const std::string& jobFile) +{ + jobFile_ = jobFile; + setParameter("JobFile", jobFile); +} + +std::string CreateJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CreateJobResult.cc b/iot/src/model/CreateJobResult.cc new file mode 100644 index 000000000..dcf896f8f --- /dev/null +++ b/iot/src/model/CreateJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +CreateJobResult::CreateJobResult() : + ServiceResult() +{} + +CreateJobResult::CreateJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateJobResult::~CreateJobResult() +{} + +void CreateJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateJobResult::getCode()const +{ + return code_; +} + +bool CreateJobResult::getSuccess()const +{ + return success_; +} + +std::string CreateJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/iot/src/model/CreateProductTagsRequest.cc b/iot/src/model/CreateProductTagsRequest.cc index cf7dc80c4..e54643cd9 100644 --- a/iot/src/model/CreateProductTagsRequest.cc +++ b/iot/src/model/CreateProductTagsRequest.cc @@ -27,6 +27,17 @@ CreateProductTagsRequest::CreateProductTagsRequest() : CreateProductTagsRequest::~CreateProductTagsRequest() {} +std::string CreateProductTagsRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void CreateProductTagsRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string CreateProductTagsRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void CreateProductTagsRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string CreateProductTagsRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void CreateProductTagsRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string CreateProductTagsRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/CreateRuleRequest.cc b/iot/src/model/CreateRuleRequest.cc index a9c5c2817..cd22aec75 100644 --- a/iot/src/model/CreateRuleRequest.cc +++ b/iot/src/model/CreateRuleRequest.cc @@ -159,6 +159,17 @@ void CreateRuleRequest::setName(const std::string& name) setParameter("Name", name); } +std::string CreateRuleRequest::getTopic()const +{ + return topic_; +} + +void CreateRuleRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + std::string CreateRuleRequest::getApiRevision()const { return apiRevision_; diff --git a/iot/src/model/DeleteDeviceGroupRequest.cc b/iot/src/model/DeleteDeviceGroupRequest.cc index 7e06cc801..5786ba992 100644 --- a/iot/src/model/DeleteDeviceGroupRequest.cc +++ b/iot/src/model/DeleteDeviceGroupRequest.cc @@ -27,6 +27,17 @@ DeleteDeviceGroupRequest::DeleteDeviceGroupRequest() : DeleteDeviceGroupRequest::~DeleteDeviceGroupRequest() {} +std::string DeleteDeviceGroupRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void DeleteDeviceGroupRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string DeleteDeviceGroupRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void DeleteDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DeleteDeviceGroupRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void DeleteDeviceGroupRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string DeleteDeviceGroupRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/DeleteDeviceRequest.cc b/iot/src/model/DeleteDeviceRequest.cc index fe91f72d6..92231defa 100644 --- a/iot/src/model/DeleteDeviceRequest.cc +++ b/iot/src/model/DeleteDeviceRequest.cc @@ -27,6 +27,17 @@ DeleteDeviceRequest::DeleteDeviceRequest() : DeleteDeviceRequest::~DeleteDeviceRequest() {} +std::string DeleteDeviceRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void DeleteDeviceRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string DeleteDeviceRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void DeleteDeviceRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DeleteDeviceRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void DeleteDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string DeleteDeviceRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/DeleteJobRequest.cc b/iot/src/model/DeleteJobRequest.cc new file mode 100644 index 000000000..f74fb8a5c --- /dev/null +++ b/iot/src/model/DeleteJobRequest.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::DeleteJobRequest; + +DeleteJobRequest::DeleteJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteJob") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteJobRequest::~DeleteJobRequest() +{} + +std::string DeleteJobRequest::getJobId()const +{ + return jobId_; +} + +void DeleteJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string DeleteJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteJobResult.cc b/iot/src/model/DeleteJobResult.cc new file mode 100644 index 000000000..92c0e179f --- /dev/null +++ b/iot/src/model/DeleteJobResult.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; + +DeleteJobResult::DeleteJobResult() : + ServiceResult() +{} + +DeleteJobResult::DeleteJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteJobResult::~DeleteJobResult() +{} + +void DeleteJobResult::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 DeleteJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteJobResult::getCode()const +{ + return code_; +} + +bool DeleteJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteProductRequest.cc b/iot/src/model/DeleteProductRequest.cc index a871d0ae6..170ba55a9 100644 --- a/iot/src/model/DeleteProductRequest.cc +++ b/iot/src/model/DeleteProductRequest.cc @@ -27,6 +27,17 @@ DeleteProductRequest::DeleteProductRequest() : DeleteProductRequest::~DeleteProductRequest() {} +std::string DeleteProductRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void DeleteProductRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string DeleteProductRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void DeleteProductRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DeleteProductRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void DeleteProductRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string DeleteProductRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/DeleteProductTagsRequest.cc b/iot/src/model/DeleteProductTagsRequest.cc index 2a3bca89e..88ff94c4e 100644 --- a/iot/src/model/DeleteProductTagsRequest.cc +++ b/iot/src/model/DeleteProductTagsRequest.cc @@ -27,6 +27,17 @@ DeleteProductTagsRequest::DeleteProductTagsRequest() : DeleteProductTagsRequest::~DeleteProductTagsRequest() {} +std::string DeleteProductTagsRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void DeleteProductTagsRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string DeleteProductTagsRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void DeleteProductTagsRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DeleteProductTagsRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void DeleteProductTagsRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string DeleteProductTagsRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/GenerateFileUploadURLRequest.cc b/iot/src/model/GenerateFileUploadURLRequest.cc new file mode 100644 index 000000000..fc35ebc8c --- /dev/null +++ b/iot/src/model/GenerateFileUploadURLRequest.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::GenerateFileUploadURLRequest; + +GenerateFileUploadURLRequest::GenerateFileUploadURLRequest() : + RpcServiceRequest("iot", "2018-01-20", "GenerateFileUploadURL") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateFileUploadURLRequest::~GenerateFileUploadURLRequest() +{} + +std::string GenerateFileUploadURLRequest::getFileSuffix()const +{ + return fileSuffix_; +} + +void GenerateFileUploadURLRequest::setFileSuffix(const std::string& fileSuffix) +{ + fileSuffix_ = fileSuffix; + setParameter("FileSuffix", fileSuffix); +} + +std::string GenerateFileUploadURLRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GenerateFileUploadURLRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string GenerateFileUploadURLRequest::getBizCode()const +{ + return bizCode_; +} + +void GenerateFileUploadURLRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setParameter("BizCode", bizCode); +} + +std::string GenerateFileUploadURLRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GenerateFileUploadURLRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GenerateFileUploadURLRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GenerateFileUploadURLRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GenerateFileUploadURLResult.cc b/iot/src/model/GenerateFileUploadURLResult.cc new file mode 100644 index 000000000..c4bdf67a8 --- /dev/null +++ b/iot/src/model/GenerateFileUploadURLResult.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; + +GenerateFileUploadURLResult::GenerateFileUploadURLResult() : + ServiceResult() +{} + +GenerateFileUploadURLResult::GenerateFileUploadURLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateFileUploadURLResult::~GenerateFileUploadURLResult() +{} + +void GenerateFileUploadURLResult::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["OssAccessKeyId"].isNull()) + data_.ossAccessKeyId = dataNode["OssAccessKeyId"].asString(); + if(!dataNode["Signature"].isNull()) + data_.signature = dataNode["Signature"].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(); + +} + +GenerateFileUploadURLResult::Data GenerateFileUploadURLResult::getData()const +{ + return data_; +} + +std::string GenerateFileUploadURLResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GenerateFileUploadURLResult::getCode()const +{ + return code_; +} + +bool GenerateFileUploadURLResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/InvokeThingServiceRequest.cc b/iot/src/model/InvokeThingServiceRequest.cc index b94f920ce..a8ee048f6 100644 --- a/iot/src/model/InvokeThingServiceRequest.cc +++ b/iot/src/model/InvokeThingServiceRequest.cc @@ -27,6 +27,17 @@ InvokeThingServiceRequest::InvokeThingServiceRequest() : InvokeThingServiceRequest::~InvokeThingServiceRequest() {} +std::string InvokeThingServiceRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void InvokeThingServiceRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string InvokeThingServiceRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void InvokeThingServiceRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string InvokeThingServiceRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void InvokeThingServiceRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string InvokeThingServiceRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/ListJobRequest.cc b/iot/src/model/ListJobRequest.cc new file mode 100644 index 000000000..0f042583c --- /dev/null +++ b/iot/src/model/ListJobRequest.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::ListJobRequest; + +ListJobRequest::ListJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListJob") +{ + setMethod(HttpRequest::Method::Post); +} + +ListJobRequest::~ListJobRequest() +{} + +std::string ListJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListJobRequest::getPageSize()const +{ + return pageSize_; +} + +void ListJobRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListJobRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListJobRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string ListJobRequest::getStatus()const +{ + return status_; +} + +void ListJobRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/iot/src/model/ListJobResult.cc b/iot/src/model/ListJobResult.cc new file mode 100644 index 000000000..7fb25076b --- /dev/null +++ b/iot/src/model/ListJobResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ListJobResult::ListJobResult() : + ServiceResult() +{} + +ListJobResult::ListJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobResult::~ListJobResult() +{} + +void ListJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["JobId"].isNull()) + dataObject.jobId = valueDatadataItem["JobId"].asString(); + if(!valueDatadataItem["JobName"].isNull()) + dataObject.jobName = valueDatadataItem["JobName"].asString(); + if(!valueDatadataItem["UtcCreate"].isNull()) + dataObject.utcCreate = valueDatadataItem["UtcCreate"].asString(); + if(!valueDatadataItem["UtcModified"].isNull()) + dataObject.utcModified = valueDatadataItem["UtcModified"].asString(); + if(!valueDatadataItem["Status"].isNull()) + dataObject.status = valueDatadataItem["Status"].asString(); + if(!valueDatadataItem["Description"].isNull()) + dataObject.description = valueDatadataItem["Description"].asString(); + if(!valueDatadataItem["Type"].isNull()) + dataObject.type = valueDatadataItem["Type"].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["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + +} + +int ListJobResult::getPageSize()const +{ + return pageSize_; +} + +int ListJobResult::getTotal()const +{ + return total_; +} + +std::vector ListJobResult::getData()const +{ + return data_; +} + +int ListJobResult::getPage()const +{ + return page_; +} + +std::string ListJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListJobResult::getCode()const +{ + return code_; +} + +bool ListJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListProductTagsRequest.cc b/iot/src/model/ListProductTagsRequest.cc index 5fe79ea0b..10725e78c 100644 --- a/iot/src/model/ListProductTagsRequest.cc +++ b/iot/src/model/ListProductTagsRequest.cc @@ -27,6 +27,17 @@ ListProductTagsRequest::ListProductTagsRequest() : ListProductTagsRequest::~ListProductTagsRequest() {} +std::string ListProductTagsRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void ListProductTagsRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string ListProductTagsRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void ListProductTagsRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string ListProductTagsRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void ListProductTagsRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string ListProductTagsRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/ListTaskByPageRequest.cc b/iot/src/model/ListTaskByPageRequest.cc new file mode 100644 index 000000000..13555c285 --- /dev/null +++ b/iot/src/model/ListTaskByPageRequest.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::ListTaskByPageRequest; + +ListTaskByPageRequest::ListTaskByPageRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListTaskByPage") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTaskByPageRequest::~ListTaskByPageRequest() +{} + +std::string ListTaskByPageRequest::getJobId()const +{ + return jobId_; +} + +void ListTaskByPageRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string ListTaskByPageRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListTaskByPageRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string ListTaskByPageRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTaskByPageRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + +std::string ListTaskByPageRequest::getJobName()const +{ + return jobName_; +} + +void ListTaskByPageRequest::setJobName(const std::string& jobName) +{ + jobName_ = jobName; + setParameter("JobName", jobName); +} + +std::string ListTaskByPageRequest::getPageNo()const +{ + return pageNo_; +} + +void ListTaskByPageRequest::setPageNo(const std::string& pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", pageNo); +} + +std::string ListTaskByPageRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListTaskByPageRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListTaskByPageRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListTaskByPageRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string ListTaskByPageRequest::getDeviceName()const +{ + return deviceName_; +} + +void ListTaskByPageRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + +std::string ListTaskByPageRequest::getDevice()const +{ + return device_; +} + +void ListTaskByPageRequest::setDevice(const std::string& device) +{ + device_ = device; + setParameter("Device", device); +} + +std::string ListTaskByPageRequest::getStatus()const +{ + return status_; +} + +void ListTaskByPageRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/iot/src/model/ListTaskByPageResult.cc b/iot/src/model/ListTaskByPageResult.cc new file mode 100644 index 000000000..c9555899c --- /dev/null +++ b/iot/src/model/ListTaskByPageResult.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 +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ListTaskByPageResult::ListTaskByPageResult() : + ServiceResult() +{} + +ListTaskByPageResult::ListTaskByPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTaskByPageResult::~ListTaskByPageResult() +{} + +void ListTaskByPageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["JobId"].isNull()) + dataObject.jobId = valueDatadataItem["JobId"].asString(); + if(!valueDatadataItem["JobName"].isNull()) + dataObject.jobName = valueDatadataItem["JobName"].asString(); + if(!valueDatadataItem["TaskId"].isNull()) + dataObject.taskId = valueDatadataItem["TaskId"].asString(); + if(!valueDatadataItem["ProductKey"].isNull()) + dataObject.productKey = valueDatadataItem["ProductKey"].asString(); + if(!valueDatadataItem["DeviceName"].isNull()) + dataObject.deviceName = valueDatadataItem["DeviceName"].asString(); + if(!valueDatadataItem["IotId"].isNull()) + dataObject.iotId = valueDatadataItem["IotId"].asString(); + if(!valueDatadataItem["Progress"].isNull()) + dataObject.progress = std::stoi(valueDatadataItem["Progress"].asString()); + if(!valueDatadataItem["UtcQueueTime"].isNull()) + dataObject.utcQueueTime = valueDatadataItem["UtcQueueTime"].asString(); + if(!valueDatadataItem["UtcModified"].isNull()) + dataObject.utcModified = valueDatadataItem["UtcModified"].asString(); + if(!valueDatadataItem["StatusDetail"].isNull()) + dataObject.statusDetail = valueDatadataItem["StatusDetail"].asString(); + if(!valueDatadataItem["Status"].isNull()) + dataObject.status = valueDatadataItem["Status"].asString(); + if(!valueDatadataItem["ProductName"].isNull()) + dataObject.productName = valueDatadataItem["ProductName"].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["Page"].isNull()) + page_ = std::stoi(value["Page"].asString()); + +} + +int ListTaskByPageResult::getPageSize()const +{ + return pageSize_; +} + +int ListTaskByPageResult::getPageCount()const +{ + return pageCount_; +} + +int ListTaskByPageResult::getTotal()const +{ + return total_; +} + +std::vector ListTaskByPageResult::getData()const +{ + return data_; +} + +int ListTaskByPageResult::getPage()const +{ + return page_; +} + +std::string ListTaskByPageResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListTaskByPageResult::getCode()const +{ + return code_; +} + +bool ListTaskByPageResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ListTaskRequest.cc b/iot/src/model/ListTaskRequest.cc new file mode 100644 index 000000000..817fdcba6 --- /dev/null +++ b/iot/src/model/ListTaskRequest.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::ListTaskRequest; + +ListTaskRequest::ListTaskRequest() : + RpcServiceRequest("iot", "2018-01-20", "ListTask") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTaskRequest::~ListTaskRequest() +{} + +std::string ListTaskRequest::getJobId()const +{ + return jobId_; +} + +void ListTaskRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string ListTaskRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTaskRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListTaskRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ListTaskRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int ListTaskRequest::getLimit()const +{ + return limit_; +} + +void ListTaskRequest::setLimit(int limit) +{ + limit_ = limit; + setParameter("Limit", std::to_string(limit)); +} + +std::string ListTaskRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ListTaskRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ListTaskRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ListTaskRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string ListTaskRequest::getDevice()const +{ + return device_; +} + +void ListTaskRequest::setDevice(const std::string& device) +{ + device_ = device; + setParameter("Device", device); +} + +std::string ListTaskRequest::getStatus()const +{ + return status_; +} + +void ListTaskRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/iot/src/model/ListTaskResult.cc b/iot/src/model/ListTaskResult.cc new file mode 100644 index 000000000..a0489de37 --- /dev/null +++ b/iot/src/model/ListTaskResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +ListTaskResult::ListTaskResult() : + ServiceResult() +{} + +ListTaskResult::ListTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTaskResult::~ListTaskResult() +{} + +void ListTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["dataItem"]; + for (auto valueDatadataItem : allDataNode) + { + DataItem dataObject; + if(!valueDatadataItem["JobId"].isNull()) + dataObject.jobId = valueDatadataItem["JobId"].asString(); + if(!valueDatadataItem["JobName"].isNull()) + dataObject.jobName = valueDatadataItem["JobName"].asString(); + if(!valueDatadataItem["TaskId"].isNull()) + dataObject.taskId = valueDatadataItem["TaskId"].asString(); + if(!valueDatadataItem["ProductKey"].isNull()) + dataObject.productKey = valueDatadataItem["ProductKey"].asString(); + if(!valueDatadataItem["DeviceName"].isNull()) + dataObject.deviceName = valueDatadataItem["DeviceName"].asString(); + if(!valueDatadataItem["IotId"].isNull()) + dataObject.iotId = valueDatadataItem["IotId"].asString(); + if(!valueDatadataItem["Progress"].isNull()) + dataObject.progress = valueDatadataItem["Progress"].asString(); + if(!valueDatadataItem["UtcQueueTime"].isNull()) + dataObject.utcQueueTime = valueDatadataItem["UtcQueueTime"].asString(); + if(!valueDatadataItem["UtcModified"].isNull()) + dataObject.utcModified = valueDatadataItem["UtcModified"].asString(); + if(!valueDatadataItem["Status"].isNull()) + dataObject.status = valueDatadataItem["Status"].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["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTaskResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTaskResult::getData()const +{ + return data_; +} + +std::string ListTaskResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ListTaskResult::getCode()const +{ + return code_; +} + +bool ListTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceByStatusRequest.cc b/iot/src/model/QueryDeviceByStatusRequest.cc index 747cb8386..ec546394a 100644 --- a/iot/src/model/QueryDeviceByStatusRequest.cc +++ b/iot/src/model/QueryDeviceByStatusRequest.cc @@ -27,6 +27,17 @@ QueryDeviceByStatusRequest::QueryDeviceByStatusRequest() : QueryDeviceByStatusRequest::~QueryDeviceByStatusRequest() {} +std::string QueryDeviceByStatusRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceByStatusRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceByStatusRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceByStatusRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceByStatusRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceByStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceByStatusRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/iot/src/model/QueryDeviceDesiredPropertyRequest.cc b/iot/src/model/QueryDeviceDesiredPropertyRequest.cc index 89511b78a..50d344f4d 100644 --- a/iot/src/model/QueryDeviceDesiredPropertyRequest.cc +++ b/iot/src/model/QueryDeviceDesiredPropertyRequest.cc @@ -27,6 +27,17 @@ QueryDeviceDesiredPropertyRequest::QueryDeviceDesiredPropertyRequest() : QueryDeviceDesiredPropertyRequest::~QueryDeviceDesiredPropertyRequest() {} +std::string QueryDeviceDesiredPropertyRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceDesiredPropertyRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceDesiredPropertyRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceDesiredPropertyRequest::setAccessKeyId(const std::string& access setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceDesiredPropertyRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceDesiredPropertyRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceDesiredPropertyRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDeviceDetailRequest.cc b/iot/src/model/QueryDeviceDetailRequest.cc index a61fbb395..9ff1fac2e 100644 --- a/iot/src/model/QueryDeviceDetailRequest.cc +++ b/iot/src/model/QueryDeviceDetailRequest.cc @@ -27,6 +27,17 @@ QueryDeviceDetailRequest::QueryDeviceDetailRequest() : QueryDeviceDetailRequest::~QueryDeviceDetailRequest() {} +std::string QueryDeviceDetailRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceDetailRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceDetailRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceDetailRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceDetailRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceDetailRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceDetailRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDeviceEventDataRequest.cc b/iot/src/model/QueryDeviceEventDataRequest.cc index ed4f1e084..2836493bd 100644 --- a/iot/src/model/QueryDeviceEventDataRequest.cc +++ b/iot/src/model/QueryDeviceEventDataRequest.cc @@ -27,6 +27,17 @@ QueryDeviceEventDataRequest::QueryDeviceEventDataRequest() : QueryDeviceEventDataRequest::~QueryDeviceEventDataRequest() {} +std::string QueryDeviceEventDataRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceEventDataRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + long QueryDeviceEventDataRequest::getStartTime()const { return startTime_; @@ -49,6 +60,17 @@ void QueryDeviceEventDataRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceEventDataRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceEventDataRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceEventDataRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDeviceGroupByDeviceRequest.cc b/iot/src/model/QueryDeviceGroupByDeviceRequest.cc index a80f54fe5..a6117c4ee 100644 --- a/iot/src/model/QueryDeviceGroupByDeviceRequest.cc +++ b/iot/src/model/QueryDeviceGroupByDeviceRequest.cc @@ -27,6 +27,17 @@ QueryDeviceGroupByDeviceRequest::QueryDeviceGroupByDeviceRequest() : QueryDeviceGroupByDeviceRequest::~QueryDeviceGroupByDeviceRequest() {} +std::string QueryDeviceGroupByDeviceRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceGroupByDeviceRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceGroupByDeviceRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceGroupByDeviceRequest::setAccessKeyId(const std::string& accessKe setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceGroupByDeviceRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceGroupByDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceGroupByDeviceRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryDeviceGroupInfoRequest.cc b/iot/src/model/QueryDeviceGroupInfoRequest.cc index 0107772b6..9bd6456f9 100644 --- a/iot/src/model/QueryDeviceGroupInfoRequest.cc +++ b/iot/src/model/QueryDeviceGroupInfoRequest.cc @@ -27,6 +27,17 @@ QueryDeviceGroupInfoRequest::QueryDeviceGroupInfoRequest() : QueryDeviceGroupInfoRequest::~QueryDeviceGroupInfoRequest() {} +std::string QueryDeviceGroupInfoRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceGroupInfoRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceGroupInfoRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceGroupInfoRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceGroupInfoRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceGroupInfoRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceGroupInfoRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryDevicePropRequest.cc b/iot/src/model/QueryDevicePropRequest.cc index 6b20a598c..57c582b81 100644 --- a/iot/src/model/QueryDevicePropRequest.cc +++ b/iot/src/model/QueryDevicePropRequest.cc @@ -27,6 +27,17 @@ QueryDevicePropRequest::QueryDevicePropRequest() : QueryDevicePropRequest::~QueryDevicePropRequest() {} +std::string QueryDevicePropRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDevicePropRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDevicePropRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDevicePropRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryDevicePropRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDevicePropRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDevicePropRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDevicePropertiesDataRequest.cc b/iot/src/model/QueryDevicePropertiesDataRequest.cc index 8a4fec17c..105f2884f 100644 --- a/iot/src/model/QueryDevicePropertiesDataRequest.cc +++ b/iot/src/model/QueryDevicePropertiesDataRequest.cc @@ -27,6 +27,17 @@ QueryDevicePropertiesDataRequest::QueryDevicePropertiesDataRequest() : QueryDevicePropertiesDataRequest::~QueryDevicePropertiesDataRequest() {} +std::string QueryDevicePropertiesDataRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDevicePropertiesDataRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + long QueryDevicePropertiesDataRequest::getStartTime()const { return startTime_; @@ -49,6 +60,17 @@ void QueryDevicePropertiesDataRequest::setAccessKeyId(const std::string& accessK setParameter("AccessKeyId", accessKeyId); } +std::string QueryDevicePropertiesDataRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDevicePropertiesDataRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDevicePropertiesDataRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDeviceServiceDataRequest.cc b/iot/src/model/QueryDeviceServiceDataRequest.cc index 5b2792fe2..d233079d7 100644 --- a/iot/src/model/QueryDeviceServiceDataRequest.cc +++ b/iot/src/model/QueryDeviceServiceDataRequest.cc @@ -27,6 +27,17 @@ QueryDeviceServiceDataRequest::QueryDeviceServiceDataRequest() : QueryDeviceServiceDataRequest::~QueryDeviceServiceDataRequest() {} +std::string QueryDeviceServiceDataRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceServiceDataRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + long QueryDeviceServiceDataRequest::getStartTime()const { return startTime_; @@ -49,6 +60,17 @@ void QueryDeviceServiceDataRequest::setAccessKeyId(const std::string& accessKeyI setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceServiceDataRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceServiceDataRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceServiceDataRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/QueryDeviceStatisticsRequest.cc b/iot/src/model/QueryDeviceStatisticsRequest.cc index 0b75232b7..7b7425715 100644 --- a/iot/src/model/QueryDeviceStatisticsRequest.cc +++ b/iot/src/model/QueryDeviceStatisticsRequest.cc @@ -27,6 +27,17 @@ QueryDeviceStatisticsRequest::QueryDeviceStatisticsRequest() : QueryDeviceStatisticsRequest::~QueryDeviceStatisticsRequest() {} +std::string QueryDeviceStatisticsRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceStatisticsRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceStatisticsRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceStatisticsRequest::setAccessKeyId(const std::string& accessKeyId setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceStatisticsRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceStatisticsRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceStatisticsRequest::getIotInstanceId()const { return iotInstanceId_; @@ -49,6 +71,17 @@ void QueryDeviceStatisticsRequest::setIotInstanceId(const std::string& iotInstan setParameter("IotInstanceId", iotInstanceId); } +std::string QueryDeviceStatisticsRequest::getGroupId()const +{ + return groupId_; +} + +void QueryDeviceStatisticsRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + std::string QueryDeviceStatisticsRequest::getProductKey()const { return productKey_; diff --git a/iot/src/model/QueryJobRequest.cc b/iot/src/model/QueryJobRequest.cc new file mode 100644 index 000000000..f0505b724 --- /dev/null +++ b/iot/src/model/QueryJobRequest.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::QueryJobRequest; + +QueryJobRequest::QueryJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryJob") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryJobRequest::~QueryJobRequest() +{} + +std::string QueryJobRequest::getJobId()const +{ + return jobId_; +} + +void QueryJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string QueryJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryJobResult.cc b/iot/src/model/QueryJobResult.cc new file mode 100644 index 000000000..50a6d7a0c --- /dev/null +++ b/iot/src/model/QueryJobResult.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 +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryJobResult::QueryJobResult() : + ServiceResult() +{} + +QueryJobResult::QueryJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryJobResult::~QueryJobResult() +{} + +void QueryJobResult::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["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["JobName"].isNull()) + data_.jobName = dataNode["JobName"].asString(); + if(!dataNode["UtcCreate"].isNull()) + data_.utcCreate = dataNode["UtcCreate"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["JobDocument"].isNull()) + data_.jobDocument = dataNode["JobDocument"].asString(); + if(!dataNode["UtcModified"].isNull()) + data_.utcModified = dataNode["UtcModified"].asString(); + auto rolloutConfigNode = dataNode["RolloutConfig"]; + if(!rolloutConfigNode["MaximumPerMinute"].isNull()) + data_.rolloutConfig.maximumPerMinute = std::stoi(rolloutConfigNode["MaximumPerMinute"].asString()); + auto timeoutConfigNode = dataNode["TimeoutConfig"]; + if(!timeoutConfigNode["InProgressTimeoutInMinutes"].isNull()) + data_.timeoutConfig.inProgressTimeoutInMinutes = std::stoi(timeoutConfigNode["InProgressTimeoutInMinutes"].asString()); + auto jobFileNode = dataNode["JobFile"]; + if(!jobFileNode["FileUrl"].isNull()) + data_.jobFile.fileUrl = jobFileNode["FileUrl"].asString(); + if(!jobFileNode["SignMethod"].isNull()) + data_.jobFile.signMethod = jobFileNode["SignMethod"].asString(); + if(!jobFileNode["Sign"].isNull()) + data_.jobFile.sign = jobFileNode["Sign"].asString(); + auto targetConfigNode = dataNode["TargetConfig"]; + if(!targetConfigNode["TargetGroup"].isNull()) + data_.targetConfig.targetGroup = targetConfigNode["TargetGroup"].asString(); + if(!targetConfigNode["TargetProduct"].isNull()) + data_.targetConfig.targetProduct = targetConfigNode["TargetProduct"].asString(); + if(!targetConfigNode["TargetType"].isNull()) + data_.targetConfig.targetType = targetConfigNode["TargetType"].asString(); + auto allTargetDevicesNode = targetConfigNode["TargetDevices"]["targetDevicesItem"]; + for (auto targetConfigNodeTargetDevicestargetDevicesItem : allTargetDevicesNode) + { + Data::TargetConfig::TargetDevicesItem targetDevicesItemObject; + if(!targetConfigNodeTargetDevicestargetDevicesItem["ProductKey"].isNull()) + targetDevicesItemObject.productKey = targetConfigNodeTargetDevicestargetDevicesItem["ProductKey"].asString(); + if(!targetConfigNodeTargetDevicestargetDevicesItem["DeviceName"].isNull()) + targetDevicesItemObject.deviceName = targetConfigNodeTargetDevicestargetDevicesItem["DeviceName"].asString(); + data_.targetConfig.targetDevices.push_back(targetDevicesItemObject); + } + 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(); + +} + +QueryJobResult::Data QueryJobResult::getData()const +{ + return data_; +} + +std::string QueryJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryJobResult::getCode()const +{ + return code_; +} + +bool QueryJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryJobStatisticsRequest.cc b/iot/src/model/QueryJobStatisticsRequest.cc new file mode 100644 index 000000000..0e82e2231 --- /dev/null +++ b/iot/src/model/QueryJobStatisticsRequest.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::QueryJobStatisticsRequest; + +QueryJobStatisticsRequest::QueryJobStatisticsRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryJobStatistics") +{ + setMethod(HttpRequest::Method::Get); +} + +QueryJobStatisticsRequest::~QueryJobStatisticsRequest() +{} + +std::string QueryJobStatisticsRequest::getJobId()const +{ + return jobId_; +} + +void QueryJobStatisticsRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string QueryJobStatisticsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryJobStatisticsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryJobStatisticsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryJobStatisticsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryJobStatisticsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryJobStatisticsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryJobStatisticsResult.cc b/iot/src/model/QueryJobStatisticsResult.cc new file mode 100644 index 000000000..8b9ab286f --- /dev/null +++ b/iot/src/model/QueryJobStatisticsResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryJobStatisticsResult::QueryJobStatisticsResult() : + ServiceResult() +{} + +QueryJobStatisticsResult::QueryJobStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryJobStatisticsResult::~QueryJobStatisticsResult() +{} + +void QueryJobStatisticsResult::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["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["Queued"].isNull()) + data_.queued = std::stoi(dataNode["Queued"].asString()); + if(!dataNode["Sent"].isNull()) + data_.sent = std::stoi(dataNode["Sent"].asString()); + if(!dataNode["InProgress"].isNull()) + data_.inProgress = std::stoi(dataNode["InProgress"].asString()); + if(!dataNode["Succeeded"].isNull()) + data_.succeeded = std::stoi(dataNode["Succeeded"].asString()); + if(!dataNode["Failed"].isNull()) + data_.failed = std::stoi(dataNode["Failed"].asString()); + if(!dataNode["Rejected"].isNull()) + data_.rejected = std::stoi(dataNode["Rejected"].asString()); + if(!dataNode["TimeOut"].isNull()) + data_.timeOut = std::stoi(dataNode["TimeOut"].asString()); + if(!dataNode["Cancelled"].isNull()) + data_.cancelled = std::stoi(dataNode["Cancelled"].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(); + +} + +QueryJobStatisticsResult::Data QueryJobStatisticsResult::getData()const +{ + return data_; +} + +std::string QueryJobStatisticsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryJobStatisticsResult::getCode()const +{ + return code_; +} + +bool QueryJobStatisticsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryProductRequest.cc b/iot/src/model/QueryProductRequest.cc index cea7c62ef..8b12c1411 100644 --- a/iot/src/model/QueryProductRequest.cc +++ b/iot/src/model/QueryProductRequest.cc @@ -27,6 +27,17 @@ QueryProductRequest::QueryProductRequest() : QueryProductRequest::~QueryProductRequest() {} +std::string QueryProductRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryProductRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryProductRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryProductRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryProductRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryProductRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryProductRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryProductResult.cc b/iot/src/model/QueryProductResult.cc index 5fd9a0159..b29543300 100644 --- a/iot/src/model/QueryProductResult.cc +++ b/iot/src/model/QueryProductResult.cc @@ -74,6 +74,8 @@ void QueryProductResult::parse(const std::string &payload) data_.netType = std::stoi(dataNode["NetType"].asString()); if(!dataNode["AuthType"].isNull()) data_.authType = dataNode["AuthType"].asString(); + if(!dataNode["ValidateType"].isNull()) + data_.validateType = std::stoi(dataNode["ValidateType"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/iot/src/model/QueryTaskRequest.cc b/iot/src/model/QueryTaskRequest.cc new file mode 100644 index 000000000..bcd314667 --- /dev/null +++ b/iot/src/model/QueryTaskRequest.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::QueryTaskRequest; + +QueryTaskRequest::QueryTaskRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryTask") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryTaskRequest::~QueryTaskRequest() +{} + +std::string QueryTaskRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryTaskRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryTaskRequest::getTaskId()const +{ + return taskId_; +} + +void QueryTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +std::string QueryTaskRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryTaskRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryTaskRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryTaskRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryTaskResult.cc b/iot/src/model/QueryTaskResult.cc new file mode 100644 index 000000000..ad54852e8 --- /dev/null +++ b/iot/src/model/QueryTaskResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryTaskResult::QueryTaskResult() : + ServiceResult() +{} + +QueryTaskResult::QueryTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTaskResult::~QueryTaskResult() +{} + +void QueryTaskResult::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["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["JobName"].isNull()) + data_.jobName = dataNode["JobName"].asString(); + if(!dataNode["TaskId"].isNull()) + data_.taskId = dataNode["TaskId"].asString(); + if(!dataNode["ProductKey"].isNull()) + data_.productKey = dataNode["ProductKey"].asString(); + if(!dataNode["DeviceName"].isNull()) + data_.deviceName = dataNode["DeviceName"].asString(); + if(!dataNode["IotId"].isNull()) + data_.iotId = dataNode["IotId"].asString(); + if(!dataNode["Progress"].isNull()) + data_.progress = dataNode["Progress"].asString(); + if(!dataNode["UtcQueueTime"].isNull()) + data_.utcQueueTime = dataNode["UtcQueueTime"].asString(); + if(!dataNode["UtcModified"].isNull()) + data_.utcModified = dataNode["UtcModified"].asString(); + if(!dataNode["StatusDetail"].isNull()) + data_.statusDetail = dataNode["StatusDetail"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].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(); + +} + +QueryTaskResult::Data QueryTaskResult::getData()const +{ + return data_; +} + +std::string QueryTaskResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryTaskResult::getCode()const +{ + return code_; +} + +bool QueryTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/RegisterDeviceRequest.cc b/iot/src/model/RegisterDeviceRequest.cc index 140c81661..9fa02cac0 100644 --- a/iot/src/model/RegisterDeviceRequest.cc +++ b/iot/src/model/RegisterDeviceRequest.cc @@ -27,6 +27,17 @@ RegisterDeviceRequest::RegisterDeviceRequest() : RegisterDeviceRequest::~RegisterDeviceRequest() {} +std::string RegisterDeviceRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void RegisterDeviceRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string RegisterDeviceRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void RegisterDeviceRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string RegisterDeviceRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void RegisterDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string RegisterDeviceRequest::getLoraNodeType()const { return loraNodeType_; diff --git a/iot/src/model/SetDevicePropertyRequest.cc b/iot/src/model/SetDevicePropertyRequest.cc index 9143d773c..118f5de50 100644 --- a/iot/src/model/SetDevicePropertyRequest.cc +++ b/iot/src/model/SetDevicePropertyRequest.cc @@ -27,6 +27,17 @@ SetDevicePropertyRequest::SetDevicePropertyRequest() : SetDevicePropertyRequest::~SetDevicePropertyRequest() {} +std::string SetDevicePropertyRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void SetDevicePropertyRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string SetDevicePropertyRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void SetDevicePropertyRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string SetDevicePropertyRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void SetDevicePropertyRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string SetDevicePropertyRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/UpdateJobRequest.cc b/iot/src/model/UpdateJobRequest.cc new file mode 100644 index 000000000..adbfc223e --- /dev/null +++ b/iot/src/model/UpdateJobRequest.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::UpdateJobRequest; + +UpdateJobRequest::UpdateJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateJob") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateJobRequest::~UpdateJobRequest() +{} + +std::string UpdateJobRequest::getDescription()const +{ + return description_; +} + +void UpdateJobRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateJobRequest::getRolloutConfig()const +{ + return rolloutConfig_; +} + +void UpdateJobRequest::setRolloutConfig(const std::string& rolloutConfig) +{ + rolloutConfig_ = rolloutConfig; + setParameter("RolloutConfig", rolloutConfig); +} + +std::string UpdateJobRequest::getJobId()const +{ + return jobId_; +} + +void UpdateJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string UpdateJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string UpdateJobRequest::getTimeoutConfig()const +{ + return timeoutConfig_; +} + +void UpdateJobRequest::setTimeoutConfig(const std::string& timeoutConfig) +{ + timeoutConfig_ = timeoutConfig; + setParameter("TimeoutConfig", timeoutConfig); +} + +std::string UpdateJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/UpdateJobResult.cc b/iot/src/model/UpdateJobResult.cc new file mode 100644 index 000000000..f14e890f1 --- /dev/null +++ b/iot/src/model/UpdateJobResult.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; + +UpdateJobResult::UpdateJobResult() : + ServiceResult() +{} + +UpdateJobResult::UpdateJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateJobResult::~UpdateJobResult() +{} + +void UpdateJobResult::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 UpdateJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateJobResult::getCode()const +{ + return code_; +} + +bool UpdateJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateRuleRequest.cc b/iot/src/model/UpdateRuleRequest.cc index a86fe991d..6ed818254 100644 --- a/iot/src/model/UpdateRuleRequest.cc +++ b/iot/src/model/UpdateRuleRequest.cc @@ -137,6 +137,17 @@ void UpdateRuleRequest::setName(const std::string& name) setParameter("Name", name); } +std::string UpdateRuleRequest::getTopic()const +{ + return topic_; +} + +void UpdateRuleRequest::setTopic(const std::string& topic) +{ + topic_ = topic; + setParameter("Topic", topic); +} + std::string UpdateRuleRequest::getApiRevision()const { return apiRevision_;