From 7964674af1c9a1b3876ed4e5a7f7d7743ccc16f8 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sun, 7 Feb 2021 13:38:41 +0000 Subject: [PATCH] Add IoT Studio BatchBindDevicesIntoProject API. --- CHANGELOG | 6 + iot/CMakeLists.txt | 40 ++- iot/include/alibabacloud/iot/IotClient.h | 80 +++-- .../BatchBindDevicesIntoProjectRequest.h | 66 ++++ .../model/BatchBindDevicesIntoProjectResult.h | 57 ++++ ... => BatchBindProductsIntoProjectRequest.h} | 27 +- .../BatchBindProductsIntoProjectResult.h | 57 ++++ .../iot/model/BatchCheckDeviceNamesRequest.h | 6 + .../iot/model/BatchRegisterDeviceRequest.h | 6 + .../BatchRegisterDeviceWithApplyIdRequest.h | 6 + .../model/BatchUnbindProjectDevicesRequest.h | 66 ++++ ...lt.h => BatchUnbindProjectDevicesResult.h} | 16 +- ....h => BatchUnbindProjectProductsRequest.h} | 24 +- .../model/BatchUnbindProjectProductsResult.h | 57 ++++ .../model/CreateRulengDistributeJobRequest.h | 60 ++++ ...lt.h => CreateRulengDistributeJobResult.h} | 14 +- .../iot/model/DisableThingRequest.h | 6 + .../iot/model/EnableThingRequest.h | 6 + .../iot/model/OpenIotServiceRequest.h | 48 +++ .../iot/model/OpenIotServiceResult.h | 51 +++ .../QueryBatchRegisterDeviceStatusRequest.h | 6 + .../iot/model/QueryDeviceRequest.h | 6 + .../iot/model/QueryPageByApplyIdRequest.h | 6 + .../iot/model/QueryProductListRequest.h | 6 + .../iot/model/SpeechByCombinationRequest.h | 3 + ...est.h => SyncSpeechByCombinationRequest.h} | 24 +- ...sult.h => SyncSpeechByCombinationResult.h} | 23 +- .../iot/model/UpdateProductRequest.h | 6 + iot/src/IotClient.cc | 306 +++++++++++++----- .../BatchBindDevicesIntoProjectRequest.cc | 89 +++++ .../BatchBindDevicesIntoProjectResult.cc | 72 +++++ .../BatchBindProductsIntoProjectRequest.cc | 86 +++++ .../BatchBindProductsIntoProjectResult.cc | 72 +++++ iot/src/model/BatchCheckDeviceNamesRequest.cc | 22 ++ iot/src/model/BatchRegisterDeviceRequest.cc | 22 ++ .../BatchRegisterDeviceWithApplyIdRequest.cc | 22 ++ .../model/BatchUnbindProjectDevicesRequest.cc | 89 +++++ ....cc => BatchUnbindProjectDevicesResult.cc} | 23 +- .../BatchUnbindProjectProductsRequest.cc | 86 +++++ .../model/BatchUnbindProjectProductsResult.cc | 72 +++++ .../model/CreateRulengDistributeJobRequest.cc | 84 +++++ ....cc => CreateRulengDistributeJobResult.cc} | 16 +- iot/src/model/DeleteClientIdsRequest.cc | 84 ----- iot/src/model/DisableThingRequest.cc | 22 ++ iot/src/model/EnableThingRequest.cc | 22 ++ iot/src/model/OpenIotServiceRequest.cc | 40 +++ iot/src/model/OpenIotServiceResult.cc | 51 +++ .../QueryBatchRegisterDeviceStatusRequest.cc | 22 ++ iot/src/model/QueryClientIdsRequest.cc | 84 ----- iot/src/model/QueryDeviceRequest.cc | 22 ++ iot/src/model/QueryPageByApplyIdRequest.cc | 22 ++ iot/src/model/QueryProductListRequest.cc | 22 ++ iot/src/model/SpeechByCombinationRequest.cc | 11 + .../model/SyncSpeechByCombinationRequest.cc | 108 +++++++ ...lt.cc => SyncSpeechByCombinationResult.cc} | 34 +- iot/src/model/TransformClientIdRequest.cc | 95 ------ iot/src/model/UpdateProductRequest.cc | 22 ++ 57 files changed, 2020 insertions(+), 481 deletions(-) create mode 100644 iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.h create mode 100644 iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectResult.h rename iot/include/alibabacloud/iot/model/{TransformClientIdRequest.h => BatchBindProductsIntoProjectRequest.h} (64%) create mode 100644 iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectResult.h create mode 100644 iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.h rename iot/include/alibabacloud/iot/model/{DeleteClientIdsResult.h => BatchUnbindProjectDevicesResult.h} (69%) rename iot/include/alibabacloud/iot/model/{DeleteClientIdsRequest.h => BatchUnbindProjectProductsRequest.h} (64%) create mode 100644 iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsResult.h create mode 100644 iot/include/alibabacloud/iot/model/CreateRulengDistributeJobRequest.h rename iot/include/alibabacloud/iot/model/{TransformClientIdResult.h => CreateRulengDistributeJobResult.h} (71%) create mode 100644 iot/include/alibabacloud/iot/model/OpenIotServiceRequest.h create mode 100644 iot/include/alibabacloud/iot/model/OpenIotServiceResult.h rename iot/include/alibabacloud/iot/model/{QueryClientIdsRequest.h => SyncSpeechByCombinationRequest.h} (62%) rename iot/include/alibabacloud/iot/model/{QueryClientIdsResult.h => SyncSpeechByCombinationResult.h} (68%) create mode 100644 iot/src/model/BatchBindDevicesIntoProjectRequest.cc create mode 100644 iot/src/model/BatchBindDevicesIntoProjectResult.cc create mode 100644 iot/src/model/BatchBindProductsIntoProjectRequest.cc create mode 100644 iot/src/model/BatchBindProductsIntoProjectResult.cc create mode 100644 iot/src/model/BatchUnbindProjectDevicesRequest.cc rename iot/src/model/{DeleteClientIdsResult.cc => BatchUnbindProjectDevicesResult.cc} (63%) create mode 100644 iot/src/model/BatchUnbindProjectProductsRequest.cc create mode 100644 iot/src/model/BatchUnbindProjectProductsResult.cc create mode 100644 iot/src/model/CreateRulengDistributeJobRequest.cc rename iot/src/model/{TransformClientIdResult.cc => CreateRulengDistributeJobResult.cc} (68%) delete mode 100644 iot/src/model/DeleteClientIdsRequest.cc create mode 100644 iot/src/model/OpenIotServiceRequest.cc create mode 100644 iot/src/model/OpenIotServiceResult.cc delete mode 100644 iot/src/model/QueryClientIdsRequest.cc create mode 100644 iot/src/model/SyncSpeechByCombinationRequest.cc rename iot/src/model/{QueryClientIdsResult.cc => SyncSpeechByCombinationResult.cc} (50%) delete mode 100644 iot/src/model/TransformClientIdRequest.cc diff --git a/CHANGELOG b/CHANGELOG index 24efc6ce8..ea4f0b23a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +2021-02-07 Version: patch +- Add IoT Studio BatchBindDevicesIntoProject API. +- Add IoT Studio BatchBindProductsIntoProject API. +- Add IoT Studio BatchUnbindProjectDevices API. +- Add IoT Studio BatchUnbindProjectProducts API. + 2021-02-07 Version: patch - Support patch manager apis. diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index f07764d31..5284e350c 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -27,6 +27,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/BatchAddThingTopoResult.h include/alibabacloud/iot/model/BatchBindDeviceToEdgeInstanceWithDriverRequest.h include/alibabacloud/iot/model/BatchBindDeviceToEdgeInstanceWithDriverResult.h + include/alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.h + include/alibabacloud/iot/model/BatchBindDevicesIntoProjectResult.h + include/alibabacloud/iot/model/BatchBindProductsIntoProjectRequest.h + include/alibabacloud/iot/model/BatchBindProductsIntoProjectResult.h include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h include/alibabacloud/iot/model/BatchClearEdgeInstanceDeviceConfigRequest.h @@ -65,6 +69,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/BatchSetEdgeInstanceDeviceConfigResult.h include/alibabacloud/iot/model/BatchUnbindDeviceFromEdgeInstanceRequest.h include/alibabacloud/iot/model/BatchUnbindDeviceFromEdgeInstanceResult.h + include/alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.h + include/alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h + include/alibabacloud/iot/model/BatchUnbindProjectProductsRequest.h + include/alibabacloud/iot/model/BatchUnbindProjectProductsResult.h include/alibabacloud/iot/model/BatchUpdateDeviceNicknameRequest.h include/alibabacloud/iot/model/BatchUpdateDeviceNicknameResult.h include/alibabacloud/iot/model/BindApplicationToEdgeInstanceRequest.h @@ -139,6 +147,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateRuleResult.h include/alibabacloud/iot/model/CreateRuleActionRequest.h include/alibabacloud/iot/model/CreateRuleActionResult.h + include/alibabacloud/iot/model/CreateRulengDistributeJobRequest.h + include/alibabacloud/iot/model/CreateRulengDistributeJobResult.h include/alibabacloud/iot/model/CreateSceneRuleRequest.h include/alibabacloud/iot/model/CreateSceneRuleResult.h include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h @@ -149,8 +159,6 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateThingScriptResult.h include/alibabacloud/iot/model/CreateTopicRouteTableRequest.h include/alibabacloud/iot/model/CreateTopicRouteTableResult.h - include/alibabacloud/iot/model/DeleteClientIdsRequest.h - include/alibabacloud/iot/model/DeleteClientIdsResult.h include/alibabacloud/iot/model/DeleteConsumerGroupRequest.h include/alibabacloud/iot/model/DeleteConsumerGroupResult.h include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationRequest.h @@ -289,6 +297,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/ListThingTemplatesResult.h include/alibabacloud/iot/model/NotifyAddThingTopoRequest.h include/alibabacloud/iot/model/NotifyAddThingTopoResult.h + include/alibabacloud/iot/model/OpenIotServiceRequest.h + include/alibabacloud/iot/model/OpenIotServiceResult.h include/alibabacloud/iot/model/PubRequest.h include/alibabacloud/iot/model/PubResult.h include/alibabacloud/iot/model/PubBroadcastRequest.h @@ -301,8 +311,6 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusResult.h include/alibabacloud/iot/model/QueryCertUrlByApplyIdRequest.h include/alibabacloud/iot/model/QueryCertUrlByApplyIdResult.h - include/alibabacloud/iot/model/QueryClientIdsRequest.h - include/alibabacloud/iot/model/QueryClientIdsResult.h include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdRequest.h include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdResult.h include/alibabacloud/iot/model/QueryConsumerGroupListRequest.h @@ -463,8 +471,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/StartRuleResult.h include/alibabacloud/iot/model/StopRuleRequest.h include/alibabacloud/iot/model/StopRuleResult.h - include/alibabacloud/iot/model/TransformClientIdRequest.h - include/alibabacloud/iot/model/TransformClientIdResult.h + include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h + include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h include/alibabacloud/iot/model/TriggerSceneRuleRequest.h include/alibabacloud/iot/model/TriggerSceneRuleResult.h include/alibabacloud/iot/model/UnbindApplicationFromEdgeInstanceRequest.h @@ -522,6 +530,10 @@ set(iot_src src/model/BatchAddThingTopoResult.cc src/model/BatchBindDeviceToEdgeInstanceWithDriverRequest.cc src/model/BatchBindDeviceToEdgeInstanceWithDriverResult.cc + src/model/BatchBindDevicesIntoProjectRequest.cc + src/model/BatchBindDevicesIntoProjectResult.cc + src/model/BatchBindProductsIntoProjectRequest.cc + src/model/BatchBindProductsIntoProjectResult.cc src/model/BatchCheckDeviceNamesRequest.cc src/model/BatchCheckDeviceNamesResult.cc src/model/BatchClearEdgeInstanceDeviceConfigRequest.cc @@ -560,6 +572,10 @@ set(iot_src src/model/BatchSetEdgeInstanceDeviceConfigResult.cc src/model/BatchUnbindDeviceFromEdgeInstanceRequest.cc src/model/BatchUnbindDeviceFromEdgeInstanceResult.cc + src/model/BatchUnbindProjectDevicesRequest.cc + src/model/BatchUnbindProjectDevicesResult.cc + src/model/BatchUnbindProjectProductsRequest.cc + src/model/BatchUnbindProjectProductsResult.cc src/model/BatchUpdateDeviceNicknameRequest.cc src/model/BatchUpdateDeviceNicknameResult.cc src/model/BindApplicationToEdgeInstanceRequest.cc @@ -634,6 +650,8 @@ set(iot_src src/model/CreateRuleResult.cc src/model/CreateRuleActionRequest.cc src/model/CreateRuleActionResult.cc + src/model/CreateRulengDistributeJobRequest.cc + src/model/CreateRulengDistributeJobResult.cc src/model/CreateSceneRuleRequest.cc src/model/CreateSceneRuleResult.cc src/model/CreateSubscribeRelationRequest.cc @@ -644,8 +662,6 @@ set(iot_src src/model/CreateThingScriptResult.cc src/model/CreateTopicRouteTableRequest.cc src/model/CreateTopicRouteTableResult.cc - src/model/DeleteClientIdsRequest.cc - src/model/DeleteClientIdsResult.cc src/model/DeleteConsumerGroupRequest.cc src/model/DeleteConsumerGroupResult.cc src/model/DeleteConsumerGroupSubscribeRelationRequest.cc @@ -784,6 +800,8 @@ set(iot_src src/model/ListThingTemplatesResult.cc src/model/NotifyAddThingTopoRequest.cc src/model/NotifyAddThingTopoResult.cc + src/model/OpenIotServiceRequest.cc + src/model/OpenIotServiceResult.cc src/model/PubRequest.cc src/model/PubResult.cc src/model/PubBroadcastRequest.cc @@ -796,8 +814,6 @@ set(iot_src src/model/QueryBatchRegisterDeviceStatusResult.cc src/model/QueryCertUrlByApplyIdRequest.cc src/model/QueryCertUrlByApplyIdResult.cc - src/model/QueryClientIdsRequest.cc - src/model/QueryClientIdsResult.cc src/model/QueryConsumerGroupByGroupIdRequest.cc src/model/QueryConsumerGroupByGroupIdResult.cc src/model/QueryConsumerGroupListRequest.cc @@ -958,8 +974,8 @@ set(iot_src src/model/StartRuleResult.cc src/model/StopRuleRequest.cc src/model/StopRuleResult.cc - src/model/TransformClientIdRequest.cc - src/model/TransformClientIdResult.cc + src/model/SyncSpeechByCombinationRequest.cc + src/model/SyncSpeechByCombinationResult.cc src/model/TriggerSceneRuleRequest.cc src/model/TriggerSceneRuleResult.cc src/model/UnbindApplicationFromEdgeInstanceRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index 216e50d13..10cb2c403 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -28,6 +28,10 @@ #include "model/BatchAddThingTopoResult.h" #include "model/BatchBindDeviceToEdgeInstanceWithDriverRequest.h" #include "model/BatchBindDeviceToEdgeInstanceWithDriverResult.h" +#include "model/BatchBindDevicesIntoProjectRequest.h" +#include "model/BatchBindDevicesIntoProjectResult.h" +#include "model/BatchBindProductsIntoProjectRequest.h" +#include "model/BatchBindProductsIntoProjectResult.h" #include "model/BatchCheckDeviceNamesRequest.h" #include "model/BatchCheckDeviceNamesResult.h" #include "model/BatchClearEdgeInstanceDeviceConfigRequest.h" @@ -66,6 +70,10 @@ #include "model/BatchSetEdgeInstanceDeviceConfigResult.h" #include "model/BatchUnbindDeviceFromEdgeInstanceRequest.h" #include "model/BatchUnbindDeviceFromEdgeInstanceResult.h" +#include "model/BatchUnbindProjectDevicesRequest.h" +#include "model/BatchUnbindProjectDevicesResult.h" +#include "model/BatchUnbindProjectProductsRequest.h" +#include "model/BatchUnbindProjectProductsResult.h" #include "model/BatchUpdateDeviceNicknameRequest.h" #include "model/BatchUpdateDeviceNicknameResult.h" #include "model/BindApplicationToEdgeInstanceRequest.h" @@ -140,6 +148,8 @@ #include "model/CreateRuleResult.h" #include "model/CreateRuleActionRequest.h" #include "model/CreateRuleActionResult.h" +#include "model/CreateRulengDistributeJobRequest.h" +#include "model/CreateRulengDistributeJobResult.h" #include "model/CreateSceneRuleRequest.h" #include "model/CreateSceneRuleResult.h" #include "model/CreateSubscribeRelationRequest.h" @@ -150,8 +160,6 @@ #include "model/CreateThingScriptResult.h" #include "model/CreateTopicRouteTableRequest.h" #include "model/CreateTopicRouteTableResult.h" -#include "model/DeleteClientIdsRequest.h" -#include "model/DeleteClientIdsResult.h" #include "model/DeleteConsumerGroupRequest.h" #include "model/DeleteConsumerGroupResult.h" #include "model/DeleteConsumerGroupSubscribeRelationRequest.h" @@ -290,6 +298,8 @@ #include "model/ListThingTemplatesResult.h" #include "model/NotifyAddThingTopoRequest.h" #include "model/NotifyAddThingTopoResult.h" +#include "model/OpenIotServiceRequest.h" +#include "model/OpenIotServiceResult.h" #include "model/PubRequest.h" #include "model/PubResult.h" #include "model/PubBroadcastRequest.h" @@ -302,8 +312,6 @@ #include "model/QueryBatchRegisterDeviceStatusResult.h" #include "model/QueryCertUrlByApplyIdRequest.h" #include "model/QueryCertUrlByApplyIdResult.h" -#include "model/QueryClientIdsRequest.h" -#include "model/QueryClientIdsResult.h" #include "model/QueryConsumerGroupByGroupIdRequest.h" #include "model/QueryConsumerGroupByGroupIdResult.h" #include "model/QueryConsumerGroupListRequest.h" @@ -464,8 +472,8 @@ #include "model/StartRuleResult.h" #include "model/StopRuleRequest.h" #include "model/StopRuleResult.h" -#include "model/TransformClientIdRequest.h" -#include "model/TransformClientIdResult.h" +#include "model/SyncSpeechByCombinationRequest.h" +#include "model/SyncSpeechByCombinationResult.h" #include "model/TriggerSceneRuleRequest.h" #include "model/TriggerSceneRuleResult.h" #include "model/UnbindApplicationFromEdgeInstanceRequest.h" @@ -532,6 +540,12 @@ namespace AlibabaCloud typedef Outcome BatchBindDeviceToEdgeInstanceWithDriverOutcome; typedef std::future BatchBindDeviceToEdgeInstanceWithDriverOutcomeCallable; typedef std::function&)> BatchBindDeviceToEdgeInstanceWithDriverAsyncHandler; + typedef Outcome BatchBindDevicesIntoProjectOutcome; + typedef std::future BatchBindDevicesIntoProjectOutcomeCallable; + typedef std::function&)> BatchBindDevicesIntoProjectAsyncHandler; + typedef Outcome BatchBindProductsIntoProjectOutcome; + typedef std::future BatchBindProductsIntoProjectOutcomeCallable; + typedef std::function&)> BatchBindProductsIntoProjectAsyncHandler; typedef Outcome BatchCheckDeviceNamesOutcome; typedef std::future BatchCheckDeviceNamesOutcomeCallable; typedef std::function&)> BatchCheckDeviceNamesAsyncHandler; @@ -589,6 +603,12 @@ namespace AlibabaCloud typedef Outcome BatchUnbindDeviceFromEdgeInstanceOutcome; typedef std::future BatchUnbindDeviceFromEdgeInstanceOutcomeCallable; typedef std::function&)> BatchUnbindDeviceFromEdgeInstanceAsyncHandler; + typedef Outcome BatchUnbindProjectDevicesOutcome; + typedef std::future BatchUnbindProjectDevicesOutcomeCallable; + typedef std::function&)> BatchUnbindProjectDevicesAsyncHandler; + typedef Outcome BatchUnbindProjectProductsOutcome; + typedef std::future BatchUnbindProjectProductsOutcomeCallable; + typedef std::function&)> BatchUnbindProjectProductsAsyncHandler; typedef Outcome BatchUpdateDeviceNicknameOutcome; typedef std::future BatchUpdateDeviceNicknameOutcomeCallable; typedef std::function&)> BatchUpdateDeviceNicknameAsyncHandler; @@ -700,6 +720,9 @@ namespace AlibabaCloud typedef Outcome CreateRuleActionOutcome; typedef std::future CreateRuleActionOutcomeCallable; typedef std::function&)> CreateRuleActionAsyncHandler; + typedef Outcome CreateRulengDistributeJobOutcome; + typedef std::future CreateRulengDistributeJobOutcomeCallable; + typedef std::function&)> CreateRulengDistributeJobAsyncHandler; typedef Outcome CreateSceneRuleOutcome; typedef std::future CreateSceneRuleOutcomeCallable; typedef std::function&)> CreateSceneRuleAsyncHandler; @@ -715,9 +738,6 @@ namespace AlibabaCloud typedef Outcome CreateTopicRouteTableOutcome; typedef std::future CreateTopicRouteTableOutcomeCallable; typedef std::function&)> CreateTopicRouteTableAsyncHandler; - typedef Outcome DeleteClientIdsOutcome; - typedef std::future DeleteClientIdsOutcomeCallable; - typedef std::function&)> DeleteClientIdsAsyncHandler; typedef Outcome DeleteConsumerGroupOutcome; typedef std::future DeleteConsumerGroupOutcomeCallable; typedef std::function&)> DeleteConsumerGroupAsyncHandler; @@ -925,6 +945,9 @@ namespace AlibabaCloud typedef Outcome NotifyAddThingTopoOutcome; typedef std::future NotifyAddThingTopoOutcomeCallable; typedef std::function&)> NotifyAddThingTopoAsyncHandler; + typedef Outcome OpenIotServiceOutcome; + typedef std::future OpenIotServiceOutcomeCallable; + typedef std::function&)> OpenIotServiceAsyncHandler; typedef Outcome PubOutcome; typedef std::future PubOutcomeCallable; typedef std::function&)> PubAsyncHandler; @@ -943,9 +966,6 @@ namespace AlibabaCloud typedef Outcome QueryCertUrlByApplyIdOutcome; typedef std::future QueryCertUrlByApplyIdOutcomeCallable; typedef std::function&)> QueryCertUrlByApplyIdAsyncHandler; - typedef Outcome QueryClientIdsOutcome; - typedef std::future QueryClientIdsOutcomeCallable; - typedef std::function&)> QueryClientIdsAsyncHandler; typedef Outcome QueryConsumerGroupByGroupIdOutcome; typedef std::future QueryConsumerGroupByGroupIdOutcomeCallable; typedef std::function&)> QueryConsumerGroupByGroupIdAsyncHandler; @@ -1186,9 +1206,9 @@ namespace AlibabaCloud typedef Outcome StopRuleOutcome; typedef std::future StopRuleOutcomeCallable; typedef std::function&)> StopRuleAsyncHandler; - typedef Outcome TransformClientIdOutcome; - typedef std::future TransformClientIdOutcomeCallable; - typedef std::function&)> TransformClientIdAsyncHandler; + typedef Outcome SyncSpeechByCombinationOutcome; + typedef std::future SyncSpeechByCombinationOutcomeCallable; + typedef std::function&)> SyncSpeechByCombinationAsyncHandler; typedef Outcome TriggerSceneRuleOutcome; typedef std::future TriggerSceneRuleOutcomeCallable; typedef std::function&)> TriggerSceneRuleAsyncHandler; @@ -1275,6 +1295,12 @@ namespace AlibabaCloud BatchBindDeviceToEdgeInstanceWithDriverOutcome batchBindDeviceToEdgeInstanceWithDriver(const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest &request)const; void batchBindDeviceToEdgeInstanceWithDriverAsync(const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest& request, const BatchBindDeviceToEdgeInstanceWithDriverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchBindDeviceToEdgeInstanceWithDriverOutcomeCallable batchBindDeviceToEdgeInstanceWithDriverCallable(const Model::BatchBindDeviceToEdgeInstanceWithDriverRequest& request) const; + BatchBindDevicesIntoProjectOutcome batchBindDevicesIntoProject(const Model::BatchBindDevicesIntoProjectRequest &request)const; + void batchBindDevicesIntoProjectAsync(const Model::BatchBindDevicesIntoProjectRequest& request, const BatchBindDevicesIntoProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchBindDevicesIntoProjectOutcomeCallable batchBindDevicesIntoProjectCallable(const Model::BatchBindDevicesIntoProjectRequest& request) const; + BatchBindProductsIntoProjectOutcome batchBindProductsIntoProject(const Model::BatchBindProductsIntoProjectRequest &request)const; + void batchBindProductsIntoProjectAsync(const Model::BatchBindProductsIntoProjectRequest& request, const BatchBindProductsIntoProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchBindProductsIntoProjectOutcomeCallable batchBindProductsIntoProjectCallable(const Model::BatchBindProductsIntoProjectRequest& request) const; BatchCheckDeviceNamesOutcome batchCheckDeviceNames(const Model::BatchCheckDeviceNamesRequest &request)const; void batchCheckDeviceNamesAsync(const Model::BatchCheckDeviceNamesRequest& request, const BatchCheckDeviceNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchCheckDeviceNamesOutcomeCallable batchCheckDeviceNamesCallable(const Model::BatchCheckDeviceNamesRequest& request) const; @@ -1332,6 +1358,12 @@ namespace AlibabaCloud BatchUnbindDeviceFromEdgeInstanceOutcome batchUnbindDeviceFromEdgeInstance(const Model::BatchUnbindDeviceFromEdgeInstanceRequest &request)const; void batchUnbindDeviceFromEdgeInstanceAsync(const Model::BatchUnbindDeviceFromEdgeInstanceRequest& request, const BatchUnbindDeviceFromEdgeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchUnbindDeviceFromEdgeInstanceOutcomeCallable batchUnbindDeviceFromEdgeInstanceCallable(const Model::BatchUnbindDeviceFromEdgeInstanceRequest& request) const; + BatchUnbindProjectDevicesOutcome batchUnbindProjectDevices(const Model::BatchUnbindProjectDevicesRequest &request)const; + void batchUnbindProjectDevicesAsync(const Model::BatchUnbindProjectDevicesRequest& request, const BatchUnbindProjectDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchUnbindProjectDevicesOutcomeCallable batchUnbindProjectDevicesCallable(const Model::BatchUnbindProjectDevicesRequest& request) const; + BatchUnbindProjectProductsOutcome batchUnbindProjectProducts(const Model::BatchUnbindProjectProductsRequest &request)const; + void batchUnbindProjectProductsAsync(const Model::BatchUnbindProjectProductsRequest& request, const BatchUnbindProjectProductsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchUnbindProjectProductsOutcomeCallable batchUnbindProjectProductsCallable(const Model::BatchUnbindProjectProductsRequest& request) const; BatchUpdateDeviceNicknameOutcome batchUpdateDeviceNickname(const Model::BatchUpdateDeviceNicknameRequest &request)const; void batchUpdateDeviceNicknameAsync(const Model::BatchUpdateDeviceNicknameRequest& request, const BatchUpdateDeviceNicknameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchUpdateDeviceNicknameOutcomeCallable batchUpdateDeviceNicknameCallable(const Model::BatchUpdateDeviceNicknameRequest& request) const; @@ -1443,6 +1475,9 @@ namespace AlibabaCloud CreateRuleActionOutcome createRuleAction(const Model::CreateRuleActionRequest &request)const; void createRuleActionAsync(const Model::CreateRuleActionRequest& request, const CreateRuleActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateRuleActionOutcomeCallable createRuleActionCallable(const Model::CreateRuleActionRequest& request) const; + CreateRulengDistributeJobOutcome createRulengDistributeJob(const Model::CreateRulengDistributeJobRequest &request)const; + void createRulengDistributeJobAsync(const Model::CreateRulengDistributeJobRequest& request, const CreateRulengDistributeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRulengDistributeJobOutcomeCallable createRulengDistributeJobCallable(const Model::CreateRulengDistributeJobRequest& request) const; CreateSceneRuleOutcome createSceneRule(const Model::CreateSceneRuleRequest &request)const; void createSceneRuleAsync(const Model::CreateSceneRuleRequest& request, const CreateSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSceneRuleOutcomeCallable createSceneRuleCallable(const Model::CreateSceneRuleRequest& request) const; @@ -1458,9 +1493,6 @@ namespace AlibabaCloud CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const; void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const; - DeleteClientIdsOutcome deleteClientIds(const Model::DeleteClientIdsRequest &request)const; - void deleteClientIdsAsync(const Model::DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteClientIdsOutcomeCallable deleteClientIdsCallable(const Model::DeleteClientIdsRequest& request) const; DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const; void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const; @@ -1668,6 +1700,9 @@ namespace AlibabaCloud NotifyAddThingTopoOutcome notifyAddThingTopo(const Model::NotifyAddThingTopoRequest &request)const; void notifyAddThingTopoAsync(const Model::NotifyAddThingTopoRequest& request, const NotifyAddThingTopoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; NotifyAddThingTopoOutcomeCallable notifyAddThingTopoCallable(const Model::NotifyAddThingTopoRequest& request) const; + OpenIotServiceOutcome openIotService(const Model::OpenIotServiceRequest &request)const; + void openIotServiceAsync(const Model::OpenIotServiceRequest& request, const OpenIotServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenIotServiceOutcomeCallable openIotServiceCallable(const Model::OpenIotServiceRequest& request) const; PubOutcome pub(const Model::PubRequest &request)const; void pubAsync(const Model::PubRequest& request, const PubAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PubOutcomeCallable pubCallable(const Model::PubRequest& request) const; @@ -1686,9 +1721,6 @@ namespace AlibabaCloud QueryCertUrlByApplyIdOutcome queryCertUrlByApplyId(const Model::QueryCertUrlByApplyIdRequest &request)const; void queryCertUrlByApplyIdAsync(const Model::QueryCertUrlByApplyIdRequest& request, const QueryCertUrlByApplyIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCertUrlByApplyIdOutcomeCallable queryCertUrlByApplyIdCallable(const Model::QueryCertUrlByApplyIdRequest& request) const; - QueryClientIdsOutcome queryClientIds(const Model::QueryClientIdsRequest &request)const; - void queryClientIdsAsync(const Model::QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryClientIdsOutcomeCallable queryClientIdsCallable(const Model::QueryClientIdsRequest& request) const; QueryConsumerGroupByGroupIdOutcome queryConsumerGroupByGroupId(const Model::QueryConsumerGroupByGroupIdRequest &request)const; void queryConsumerGroupByGroupIdAsync(const Model::QueryConsumerGroupByGroupIdRequest& request, const QueryConsumerGroupByGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryConsumerGroupByGroupIdOutcomeCallable queryConsumerGroupByGroupIdCallable(const Model::QueryConsumerGroupByGroupIdRequest& request) const; @@ -1929,9 +1961,9 @@ namespace AlibabaCloud StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const; void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const; - TransformClientIdOutcome transformClientId(const Model::TransformClientIdRequest &request)const; - void transformClientIdAsync(const Model::TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TransformClientIdOutcomeCallable transformClientIdCallable(const Model::TransformClientIdRequest& request) const; + SyncSpeechByCombinationOutcome syncSpeechByCombination(const Model::SyncSpeechByCombinationRequest &request)const; + void syncSpeechByCombinationAsync(const Model::SyncSpeechByCombinationRequest& request, const SyncSpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncSpeechByCombinationOutcomeCallable syncSpeechByCombinationCallable(const Model::SyncSpeechByCombinationRequest& request) const; TriggerSceneRuleOutcome triggerSceneRule(const Model::TriggerSceneRuleRequest &request)const; void triggerSceneRuleAsync(const Model::TriggerSceneRuleRequest& request, const TriggerSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TriggerSceneRuleOutcomeCallable triggerSceneRuleCallable(const Model::TriggerSceneRuleRequest& request) const; diff --git a/iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.h b/iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.h new file mode 100644 index 000000000..044f30cc2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectRequest.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_BATCHBINDDEVICESINTOPROJECTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchBindDevicesIntoProjectRequest : public RpcServiceRequest + { + public: + struct Devices + { + std::string deviceName; + std::string productKey; + }; + + public: + BatchBindDevicesIntoProjectRequest(); + ~BatchBindDevicesIntoProjectRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::vector getDevices()const; + void setDevices(const std::vector& devices); + 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 projectId_; + std::vector devices_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectResult.h b/iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectResult.h new file mode 100644 index 000000000..048fb471a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchBindDevicesIntoProjectResult.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_BATCHBINDDEVICESINTOPROJECTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchBindDevicesIntoProjectResult : public ServiceResult + { + public: + + + BatchBindDevicesIntoProjectResult(); + explicit BatchBindDevicesIntoProjectResult(const std::string &payload); + ~BatchBindDevicesIntoProjectResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDDEVICESINTOPROJECTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h b/iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectRequest.h similarity index 64% rename from iot/include/alibabacloud/iot/model/TransformClientIdRequest.h rename to iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectRequest.h index 22058c76a..94451916b 100644 --- a/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ -#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ +#ifndef ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTREQUEST_H_ #include #include @@ -28,31 +28,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IOT_EXPORT TransformClientIdRequest : public RpcServiceRequest + class ALIBABACLOUD_IOT_EXPORT BatchBindProductsIntoProjectRequest : public RpcServiceRequest { public: - TransformClientIdRequest(); - ~TransformClientIdRequest(); + BatchBindProductsIntoProjectRequest(); + ~BatchBindProductsIntoProjectRequest(); - std::string getAuthConfig()const; - void setAuthConfig(const std::string& authConfig); - std::string getClientId()const; - void setClientId(const std::string& clientId); - std::string getIotId()const; - void setIotId(const std::string& iotId); + std::vector getProductKeys()const; + void setProductKeys(const std::vector& productKeys); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); private: - std::string authConfig_; - std::string clientId_; - std::string iotId_; + std::vector productKeys_; std::string iotInstanceId_; + std::string projectId_; std::string apiProduct_; std::string apiRevision_; @@ -60,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectResult.h b/iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectResult.h new file mode 100644 index 000000000..5397dd4b5 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchBindProductsIntoProjectResult.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_BATCHBINDPRODUCTSINTOPROJECTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchBindProductsIntoProjectResult : public ServiceResult + { + public: + + + BatchBindProductsIntoProjectResult(); + explicit BatchBindProductsIntoProjectResult(const std::string &payload); + ~BatchBindProductsIntoProjectResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHBINDPRODUCTSINTOPROJECTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h b/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h index 18b5816b1..402a62999 100644 --- a/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchCheckDeviceNamesRequest.h @@ -41,8 +41,12 @@ namespace AlibabaCloud BatchCheckDeviceNamesRequest(); ~BatchCheckDeviceNamesRequest(); + 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::vector getDeviceNameList()const; void setDeviceNameList(const std::vector& deviceNameList); std::string getIotInstanceId()const; @@ -57,7 +61,9 @@ namespace AlibabaCloud void setDeviceName(const std::vector& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::vector deviceNameList_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/BatchRegisterDeviceRequest.h b/iot/include/alibabacloud/iot/model/BatchRegisterDeviceRequest.h index 4aac054ad..063fb8d82 100644 --- a/iot/include/alibabacloud/iot/model/BatchRegisterDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchRegisterDeviceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud BatchRegisterDeviceRequest(); ~BatchRegisterDeviceRequest(); + 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); int getCount()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_; int count_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/BatchRegisterDeviceWithApplyIdRequest.h b/iot/include/alibabacloud/iot/model/BatchRegisterDeviceWithApplyIdRequest.h index 120b0868a..c653e092c 100644 --- a/iot/include/alibabacloud/iot/model/BatchRegisterDeviceWithApplyIdRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchRegisterDeviceWithApplyIdRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud BatchRegisterDeviceWithApplyIdRequest(); ~BatchRegisterDeviceWithApplyIdRequest(); + 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 setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; long applyId_; diff --git a/iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.h b/iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.h new file mode 100644 index 000000000..b68a79a5e --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesRequest.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_BATCHUNBINDPROJECTDEVICESREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectDevicesRequest : public RpcServiceRequest + { + public: + struct Devices + { + std::string deviceName; + std::string productKey; + }; + + public: + BatchUnbindProjectDevicesRequest(); + ~BatchUnbindProjectDevicesRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::vector getDevices()const; + void setDevices(const std::vector& devices); + 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 projectId_; + std::vector devices_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h b/iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h similarity index 69% rename from iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h rename to iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h index 07debde20..20bcc815f 100644 --- a/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h +++ b/iot/include/alibabacloud/iot/model/BatchUnbindProjectDevicesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ -#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ +#ifndef ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESRESULT_H_ #include #include @@ -29,14 +29,15 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsResult : public ServiceResult + class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectDevicesResult : public ServiceResult { public: - DeleteClientIdsResult(); - explicit DeleteClientIdsResult(const std::string &payload); - ~DeleteClientIdsResult(); + BatchUnbindProjectDevicesResult(); + explicit BatchUnbindProjectDevicesResult(const std::string &payload); + ~BatchUnbindProjectDevicesResult(); + std::string getData()const; std::string getErrorMessage()const; std::string getCode()const; bool getSuccess()const; @@ -44,6 +45,7 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::string data_; std::string errorMessage_; std::string code_; bool success_; @@ -52,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTDEVICESRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h b/iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsRequest.h similarity index 64% rename from iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h rename to iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsRequest.h index 216442488..af96b841a 100644 --- a/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h +++ b/iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ -#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ +#ifndef ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSREQUEST_H_ #include #include @@ -28,28 +28,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsRequest : public RpcServiceRequest + class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectProductsRequest : public RpcServiceRequest { public: - DeleteClientIdsRequest(); - ~DeleteClientIdsRequest(); + BatchUnbindProjectProductsRequest(); + ~BatchUnbindProjectProductsRequest(); - std::string getAuthConfig()const; - void setAuthConfig(const std::string& authConfig); - std::string getIotId()const; - void setIotId(const std::string& iotId); + std::vector getProductKeys()const; + void setProductKeys(const std::vector& productKeys); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); private: - std::string authConfig_; - std::string iotId_; + std::vector productKeys_; std::string iotInstanceId_; + std::string projectId_; std::string apiProduct_; std::string apiRevision_; @@ -57,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsResult.h b/iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsResult.h new file mode 100644 index 000000000..602b3dc56 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/BatchUnbindProjectProductsResult.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_BATCHUNBINDPROJECTPRODUCTSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT BatchUnbindProjectProductsResult : public ServiceResult + { + public: + + + BatchUnbindProjectProductsResult(); + explicit BatchUnbindProjectProductsResult(const std::string &payload); + ~BatchUnbindProjectProductsResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_BATCHUNBINDPROJECTPRODUCTSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateRulengDistributeJobRequest.h b/iot/include/alibabacloud/iot/model/CreateRulengDistributeJobRequest.h new file mode 100644 index 000000000..764baf7dd --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateRulengDistributeJobRequest.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_CREATERULENGDISTRIBUTEJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateRulengDistributeJobRequest : public RpcServiceRequest + { + + public: + CreateRulengDistributeJobRequest(); + ~CreateRulengDistributeJobRequest(); + + std::string getSourceInstanceId()const; + void setSourceInstanceId(const std::string& sourceInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getTargetInstanceId()const; + void setTargetInstanceId(const std::string& targetInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string sourceInstanceId_; + std::string productKey_; + std::string targetInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TransformClientIdResult.h b/iot/include/alibabacloud/iot/model/CreateRulengDistributeJobResult.h similarity index 71% rename from iot/include/alibabacloud/iot/model/TransformClientIdResult.h rename to iot/include/alibabacloud/iot/model/CreateRulengDistributeJobResult.h index adfc7091b..038a24b18 100644 --- a/iot/include/alibabacloud/iot/model/TransformClientIdResult.h +++ b/iot/include/alibabacloud/iot/model/CreateRulengDistributeJobResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ -#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ +#ifndef ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IOT_EXPORT TransformClientIdResult : public ServiceResult + class ALIBABACLOUD_IOT_EXPORT CreateRulengDistributeJobResult : public ServiceResult { public: - TransformClientIdResult(); - explicit TransformClientIdResult(const std::string &payload); - ~TransformClientIdResult(); + CreateRulengDistributeJobResult(); + explicit CreateRulengDistributeJobResult(const std::string &payload); + ~CreateRulengDistributeJobResult(); std::string getErrorMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IOT_MODEL_CREATERULENGDISTRIBUTEJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DisableThingRequest.h b/iot/include/alibabacloud/iot/model/DisableThingRequest.h index e4ca3589f..a92fc3552 100644 --- a/iot/include/alibabacloud/iot/model/DisableThingRequest.h +++ b/iot/include/alibabacloud/iot/model/DisableThingRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud DisableThingRequest(); ~DisableThingRequest(); + 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/EnableThingRequest.h b/iot/include/alibabacloud/iot/model/EnableThingRequest.h index 43311d25f..7b9a4ac54 100644 --- a/iot/include/alibabacloud/iot/model/EnableThingRequest.h +++ b/iot/include/alibabacloud/iot/model/EnableThingRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud EnableThingRequest(); ~EnableThingRequest(); + 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/OpenIotServiceRequest.h b/iot/include/alibabacloud/iot/model/OpenIotServiceRequest.h new file mode 100644 index 000000000..74b4f53f1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/OpenIotServiceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENIOTSERVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT OpenIotServiceRequest : public RpcServiceRequest + { + + public: + OpenIotServiceRequest(); + ~OpenIotServiceRequest(); + + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/OpenIotServiceResult.h b/iot/include/alibabacloud/iot/model/OpenIotServiceResult.h new file mode 100644 index 000000000..33e837c55 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/OpenIotServiceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_OPENIOTSERVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT OpenIotServiceResult : public ServiceResult + { + public: + + + OpenIotServiceResult(); + explicit OpenIotServiceResult(const std::string &payload); + ~OpenIotServiceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_OPENIOTSERVICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusRequest.h b/iot/include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusRequest.h index 87eba24a4..f076c864f 100644 --- a/iot/include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryBatchRegisterDeviceStatusRequest(); ~QueryBatchRegisterDeviceStatusRequest(); + 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 setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; long applyId_; diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceRequest.h index 6096633b2..f092c19cd 100644 --- a/iot/include/alibabacloud/iot/model/QueryDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryDeviceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryDeviceRequest(); ~QueryDeviceRequest(); + 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); int getPageSize()const; @@ -51,7 +55,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; int pageSize_; int currentPage_; diff --git a/iot/include/alibabacloud/iot/model/QueryPageByApplyIdRequest.h b/iot/include/alibabacloud/iot/model/QueryPageByApplyIdRequest.h index 219c6faf9..65f7ab7c0 100644 --- a/iot/include/alibabacloud/iot/model/QueryPageByApplyIdRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryPageByApplyIdRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryPageByApplyIdRequest(); ~QueryPageByApplyIdRequest(); + 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); int getPageSize()const; @@ -51,7 +55,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; int pageSize_; int currentPage_; diff --git a/iot/include/alibabacloud/iot/model/QueryProductListRequest.h b/iot/include/alibabacloud/iot/model/QueryProductListRequest.h index b66a984c0..f33928df1 100644 --- a/iot/include/alibabacloud/iot/model/QueryProductListRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryProductListRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud QueryProductListRequest(); ~QueryProductListRequest(); + 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; @@ -53,7 +57,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); 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/SpeechByCombinationRequest.h b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h index 7018064ce..25e02650a 100644 --- a/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h +++ b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setIotId(const std::string& iotId); std::vector getCombinationList()const; void setCombinationList(const std::vector& combinationList); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string iotId_; std::vector combinationList_; + std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; diff --git a/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h similarity index 62% rename from iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h rename to iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h index ff564debd..6c911b156 100644 --- a/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h +++ b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ -#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ +#ifndef ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONREQUEST_H_ #include #include @@ -28,33 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IOT_EXPORT QueryClientIdsRequest : public RpcServiceRequest + class ALIBABACLOUD_IOT_EXPORT SyncSpeechByCombinationRequest : public RpcServiceRequest { public: - QueryClientIdsRequest(); - ~QueryClientIdsRequest(); + SyncSpeechByCombinationRequest(); + ~SyncSpeechByCombinationRequest(); - std::string getAuthConfig()const; - void setAuthConfig(const std::string& authConfig); std::string getIotId()const; void setIotId(const std::string& iotId); + std::vector getCombinationList()const; + void setCombinationList(const std::vector& combinationList); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); std::string getApiProduct()const; void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); private: - std::string authConfig_; std::string iotId_; + std::vector combinationList_; std::string iotInstanceId_; + std::string productKey_; std::string apiProduct_; std::string apiRevision_; + std::string deviceName_; }; } } } -#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h similarity index 68% rename from iot/include/alibabacloud/iot/model/QueryClientIdsResult.h rename to iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h index 0965edb4f..84721a8e6 100644 --- a/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h +++ b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ -#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ +#ifndef ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONRESULT_H_ #include #include @@ -29,24 +29,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IOT_EXPORT QueryClientIdsResult : public ServiceResult + class ALIBABACLOUD_IOT_EXPORT SyncSpeechByCombinationResult : public ServiceResult { public: struct Data { - struct DynamicRegClientId - { - long createTime; - std::string clientId; - }; - std::vector dynamicRegClientIds; - std::string iotId; + int retryCount; + std::string id; }; - QueryClientIdsResult(); - explicit QueryClientIdsResult(const std::string &payload); - ~QueryClientIdsResult(); + SyncSpeechByCombinationResult(); + explicit SyncSpeechByCombinationResult(const std::string &payload); + ~SyncSpeechByCombinationResult(); Data getData()const; std::string getErrorMessage()const; std::string getCode()const; @@ -64,4 +59,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IOT_MODEL_SYNCSPEECHBYCOMBINATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateProductRequest.h b/iot/include/alibabacloud/iot/model/UpdateProductRequest.h index 9fb850a36..16dab6a5f 100644 --- a/iot/include/alibabacloud/iot/model/UpdateProductRequest.h +++ b/iot/include/alibabacloud/iot/model/UpdateProductRequest.h @@ -35,10 +35,14 @@ namespace AlibabaCloud UpdateProductRequest(); ~UpdateProductRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getDescription()const; void setDescription(const std::string& description); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductName()const; @@ -51,8 +55,10 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string description_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productName_; std::string productKey_; diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index 3df30e084..3e21c24a9 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -159,6 +159,78 @@ IotClient::BatchBindDeviceToEdgeInstanceWithDriverOutcomeCallable IotClient::bat return task->get_future(); } +IotClient::BatchBindDevicesIntoProjectOutcome IotClient::batchBindDevicesIntoProject(const BatchBindDevicesIntoProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchBindDevicesIntoProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchBindDevicesIntoProjectOutcome(BatchBindDevicesIntoProjectResult(outcome.result())); + else + return BatchBindDevicesIntoProjectOutcome(outcome.error()); +} + +void IotClient::batchBindDevicesIntoProjectAsync(const BatchBindDevicesIntoProjectRequest& request, const BatchBindDevicesIntoProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchBindDevicesIntoProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchBindDevicesIntoProjectOutcomeCallable IotClient::batchBindDevicesIntoProjectCallable(const BatchBindDevicesIntoProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchBindDevicesIntoProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::BatchBindProductsIntoProjectOutcome IotClient::batchBindProductsIntoProject(const BatchBindProductsIntoProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchBindProductsIntoProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchBindProductsIntoProjectOutcome(BatchBindProductsIntoProjectResult(outcome.result())); + else + return BatchBindProductsIntoProjectOutcome(outcome.error()); +} + +void IotClient::batchBindProductsIntoProjectAsync(const BatchBindProductsIntoProjectRequest& request, const BatchBindProductsIntoProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchBindProductsIntoProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchBindProductsIntoProjectOutcomeCallable IotClient::batchBindProductsIntoProjectCallable(const BatchBindProductsIntoProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchBindProductsIntoProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BatchCheckDeviceNamesOutcome IotClient::batchCheckDeviceNames(const BatchCheckDeviceNamesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +915,78 @@ IotClient::BatchUnbindDeviceFromEdgeInstanceOutcomeCallable IotClient::batchUnbi return task->get_future(); } +IotClient::BatchUnbindProjectDevicesOutcome IotClient::batchUnbindProjectDevices(const BatchUnbindProjectDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchUnbindProjectDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchUnbindProjectDevicesOutcome(BatchUnbindProjectDevicesResult(outcome.result())); + else + return BatchUnbindProjectDevicesOutcome(outcome.error()); +} + +void IotClient::batchUnbindProjectDevicesAsync(const BatchUnbindProjectDevicesRequest& request, const BatchUnbindProjectDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchUnbindProjectDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchUnbindProjectDevicesOutcomeCallable IotClient::batchUnbindProjectDevicesCallable(const BatchUnbindProjectDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchUnbindProjectDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::BatchUnbindProjectProductsOutcome IotClient::batchUnbindProjectProducts(const BatchUnbindProjectProductsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchUnbindProjectProductsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchUnbindProjectProductsOutcome(BatchUnbindProjectProductsResult(outcome.result())); + else + return BatchUnbindProjectProductsOutcome(outcome.error()); +} + +void IotClient::batchUnbindProjectProductsAsync(const BatchUnbindProjectProductsRequest& request, const BatchUnbindProjectProductsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchUnbindProjectProducts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::BatchUnbindProjectProductsOutcomeCallable IotClient::batchUnbindProjectProductsCallable(const BatchUnbindProjectProductsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchUnbindProjectProducts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::BatchUpdateDeviceNicknameOutcome IotClient::batchUpdateDeviceNickname(const BatchUpdateDeviceNicknameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2319,42 @@ IotClient::CreateRuleActionOutcomeCallable IotClient::createRuleActionCallable(c return task->get_future(); } +IotClient::CreateRulengDistributeJobOutcome IotClient::createRulengDistributeJob(const CreateRulengDistributeJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRulengDistributeJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRulengDistributeJobOutcome(CreateRulengDistributeJobResult(outcome.result())); + else + return CreateRulengDistributeJobOutcome(outcome.error()); +} + +void IotClient::createRulengDistributeJobAsync(const CreateRulengDistributeJobRequest& request, const CreateRulengDistributeJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRulengDistributeJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateRulengDistributeJobOutcomeCallable IotClient::createRulengDistributeJobCallable(const CreateRulengDistributeJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRulengDistributeJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateSceneRuleOutcome IotClient::createSceneRule(const CreateSceneRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,42 +2535,6 @@ IotClient::CreateTopicRouteTableOutcomeCallable IotClient::createTopicRouteTable return task->get_future(); } -IotClient::DeleteClientIdsOutcome IotClient::deleteClientIds(const DeleteClientIdsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteClientIdsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteClientIdsOutcome(DeleteClientIdsResult(outcome.result())); - else - return DeleteClientIdsOutcome(outcome.error()); -} - -void IotClient::deleteClientIdsAsync(const DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteClientIds(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IotClient::DeleteClientIdsOutcomeCallable IotClient::deleteClientIdsCallable(const DeleteClientIdsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteClientIds(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IotClient::DeleteConsumerGroupOutcome IotClient::deleteConsumerGroup(const DeleteConsumerGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4875,6 +5019,42 @@ IotClient::NotifyAddThingTopoOutcomeCallable IotClient::notifyAddThingTopoCallab return task->get_future(); } +IotClient::OpenIotServiceOutcome IotClient::openIotService(const OpenIotServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenIotServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenIotServiceOutcome(OpenIotServiceResult(outcome.result())); + else + return OpenIotServiceOutcome(outcome.error()); +} + +void IotClient::openIotServiceAsync(const OpenIotServiceRequest& request, const OpenIotServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openIotService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::OpenIotServiceOutcomeCallable IotClient::openIotServiceCallable(const OpenIotServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openIotService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::PubOutcome IotClient::pub(const PubRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5091,42 +5271,6 @@ IotClient::QueryCertUrlByApplyIdOutcomeCallable IotClient::queryCertUrlByApplyId return task->get_future(); } -IotClient::QueryClientIdsOutcome IotClient::queryClientIds(const QueryClientIdsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryClientIdsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryClientIdsOutcome(QueryClientIdsResult(outcome.result())); - else - return QueryClientIdsOutcome(outcome.error()); -} - -void IotClient::queryClientIdsAsync(const QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryClientIds(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -IotClient::QueryClientIdsOutcomeCallable IotClient::queryClientIdsCallable(const QueryClientIdsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryClientIds(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - IotClient::QueryConsumerGroupByGroupIdOutcome IotClient::queryConsumerGroupByGroupId(const QueryConsumerGroupByGroupIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8007,36 +8151,36 @@ IotClient::StopRuleOutcomeCallable IotClient::stopRuleCallable(const StopRuleReq return task->get_future(); } -IotClient::TransformClientIdOutcome IotClient::transformClientId(const TransformClientIdRequest &request) const +IotClient::SyncSpeechByCombinationOutcome IotClient::syncSpeechByCombination(const SyncSpeechByCombinationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return TransformClientIdOutcome(endpointOutcome.error()); + return SyncSpeechByCombinationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return TransformClientIdOutcome(TransformClientIdResult(outcome.result())); + return SyncSpeechByCombinationOutcome(SyncSpeechByCombinationResult(outcome.result())); else - return TransformClientIdOutcome(outcome.error()); + return SyncSpeechByCombinationOutcome(outcome.error()); } -void IotClient::transformClientIdAsync(const TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr& context) const +void IotClient::syncSpeechByCombinationAsync(const SyncSpeechByCombinationRequest& request, const SyncSpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, transformClientId(request), context); + handler(this, request, syncSpeechByCombination(request), context); }; asyncExecute(new Runnable(fn)); } -IotClient::TransformClientIdOutcomeCallable IotClient::transformClientIdCallable(const TransformClientIdRequest &request) const +IotClient::SyncSpeechByCombinationOutcomeCallable IotClient::syncSpeechByCombinationCallable(const SyncSpeechByCombinationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->transformClientId(request); + return this->syncSpeechByCombination(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/iot/src/model/BatchBindDevicesIntoProjectRequest.cc b/iot/src/model/BatchBindDevicesIntoProjectRequest.cc new file mode 100644 index 000000000..efd5a94d3 --- /dev/null +++ b/iot/src/model/BatchBindDevicesIntoProjectRequest.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 + +using AlibabaCloud::Iot::Model::BatchBindDevicesIntoProjectRequest; + +BatchBindDevicesIntoProjectRequest::BatchBindDevicesIntoProjectRequest() : + RpcServiceRequest("iot", "2018-01-20", "BatchBindDevicesIntoProject") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchBindDevicesIntoProjectRequest::~BatchBindDevicesIntoProjectRequest() +{} + +std::string BatchBindDevicesIntoProjectRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void BatchBindDevicesIntoProjectRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string BatchBindDevicesIntoProjectRequest::getProjectId()const +{ + return projectId_; +} + +void BatchBindDevicesIntoProjectRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::vector BatchBindDevicesIntoProjectRequest::getDevices()const +{ + return devices_; +} + +void BatchBindDevicesIntoProjectRequest::setDevices(const std::vector& devices) +{ + devices_ = devices; + for(int dep1 = 0; dep1!= devices.size(); dep1++) { + auto devicesObj = devices.at(dep1); + std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1); + setParameter(devicesObjStr + ".DeviceName", devicesObj.deviceName); + setParameter(devicesObjStr + ".ProductKey", devicesObj.productKey); + } +} + +std::string BatchBindDevicesIntoProjectRequest::getApiProduct()const +{ + return apiProduct_; +} + +void BatchBindDevicesIntoProjectRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string BatchBindDevicesIntoProjectRequest::getApiRevision()const +{ + return apiRevision_; +} + +void BatchBindDevicesIntoProjectRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/BatchBindDevicesIntoProjectResult.cc b/iot/src/model/BatchBindDevicesIntoProjectResult.cc new file mode 100644 index 000000000..d0f9e1d18 --- /dev/null +++ b/iot/src/model/BatchBindDevicesIntoProjectResult.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; + +BatchBindDevicesIntoProjectResult::BatchBindDevicesIntoProjectResult() : + ServiceResult() +{} + +BatchBindDevicesIntoProjectResult::BatchBindDevicesIntoProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchBindDevicesIntoProjectResult::~BatchBindDevicesIntoProjectResult() +{} + +void BatchBindDevicesIntoProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string BatchBindDevicesIntoProjectResult::getData()const +{ + return data_; +} + +std::string BatchBindDevicesIntoProjectResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BatchBindDevicesIntoProjectResult::getCode()const +{ + return code_; +} + +bool BatchBindDevicesIntoProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/BatchBindProductsIntoProjectRequest.cc b/iot/src/model/BatchBindProductsIntoProjectRequest.cc new file mode 100644 index 000000000..9f512c2df --- /dev/null +++ b/iot/src/model/BatchBindProductsIntoProjectRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::BatchBindProductsIntoProjectRequest; + +BatchBindProductsIntoProjectRequest::BatchBindProductsIntoProjectRequest() : + RpcServiceRequest("iot", "2018-01-20", "BatchBindProductsIntoProject") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchBindProductsIntoProjectRequest::~BatchBindProductsIntoProjectRequest() +{} + +std::vector BatchBindProductsIntoProjectRequest::getProductKeys()const +{ + return productKeys_; +} + +void BatchBindProductsIntoProjectRequest::setProductKeys(const std::vector& productKeys) +{ + productKeys_ = productKeys; + for(int dep1 = 0; dep1!= productKeys.size(); dep1++) { + setBodyParameter("ProductKeys."+ std::to_string(dep1), productKeys.at(dep1)); + } +} + +std::string BatchBindProductsIntoProjectRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void BatchBindProductsIntoProjectRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string BatchBindProductsIntoProjectRequest::getProjectId()const +{ + return projectId_; +} + +void BatchBindProductsIntoProjectRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string BatchBindProductsIntoProjectRequest::getApiProduct()const +{ + return apiProduct_; +} + +void BatchBindProductsIntoProjectRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string BatchBindProductsIntoProjectRequest::getApiRevision()const +{ + return apiRevision_; +} + +void BatchBindProductsIntoProjectRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/BatchBindProductsIntoProjectResult.cc b/iot/src/model/BatchBindProductsIntoProjectResult.cc new file mode 100644 index 000000000..d393816c6 --- /dev/null +++ b/iot/src/model/BatchBindProductsIntoProjectResult.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; + +BatchBindProductsIntoProjectResult::BatchBindProductsIntoProjectResult() : + ServiceResult() +{} + +BatchBindProductsIntoProjectResult::BatchBindProductsIntoProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchBindProductsIntoProjectResult::~BatchBindProductsIntoProjectResult() +{} + +void BatchBindProductsIntoProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string BatchBindProductsIntoProjectResult::getData()const +{ + return data_; +} + +std::string BatchBindProductsIntoProjectResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BatchBindProductsIntoProjectResult::getCode()const +{ + return code_; +} + +bool BatchBindProductsIntoProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/BatchCheckDeviceNamesRequest.cc b/iot/src/model/BatchCheckDeviceNamesRequest.cc index 829ec4caf..b7aa0cbcb 100644 --- a/iot/src/model/BatchCheckDeviceNamesRequest.cc +++ b/iot/src/model/BatchCheckDeviceNamesRequest.cc @@ -27,6 +27,17 @@ BatchCheckDeviceNamesRequest::BatchCheckDeviceNamesRequest() : BatchCheckDeviceNamesRequest::~BatchCheckDeviceNamesRequest() {} +std::string BatchCheckDeviceNamesRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchCheckDeviceNamesRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchCheckDeviceNamesRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void BatchCheckDeviceNamesRequest::setAccessKeyId(const std::string& accessKeyId setParameter("AccessKeyId", accessKeyId); } +std::string BatchCheckDeviceNamesRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchCheckDeviceNamesRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::vector BatchCheckDeviceNamesRequest::getDeviceNameList()const { return deviceNameList_; diff --git a/iot/src/model/BatchRegisterDeviceRequest.cc b/iot/src/model/BatchRegisterDeviceRequest.cc index ceabe6c76..b50a68390 100644 --- a/iot/src/model/BatchRegisterDeviceRequest.cc +++ b/iot/src/model/BatchRegisterDeviceRequest.cc @@ -27,6 +27,17 @@ BatchRegisterDeviceRequest::BatchRegisterDeviceRequest() : BatchRegisterDeviceRequest::~BatchRegisterDeviceRequest() {} +std::string BatchRegisterDeviceRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchRegisterDeviceRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchRegisterDeviceRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void BatchRegisterDeviceRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string BatchRegisterDeviceRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchRegisterDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchRegisterDeviceRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchRegisterDeviceWithApplyIdRequest.cc b/iot/src/model/BatchRegisterDeviceWithApplyIdRequest.cc index 8ab4c3071..732a2264d 100644 --- a/iot/src/model/BatchRegisterDeviceWithApplyIdRequest.cc +++ b/iot/src/model/BatchRegisterDeviceWithApplyIdRequest.cc @@ -27,6 +27,17 @@ BatchRegisterDeviceWithApplyIdRequest::BatchRegisterDeviceWithApplyIdRequest() : BatchRegisterDeviceWithApplyIdRequest::~BatchRegisterDeviceWithApplyIdRequest() {} +std::string BatchRegisterDeviceWithApplyIdRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void BatchRegisterDeviceWithApplyIdRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string BatchRegisterDeviceWithApplyIdRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void BatchRegisterDeviceWithApplyIdRequest::setAccessKeyId(const std::string& ac setParameter("AccessKeyId", accessKeyId); } +std::string BatchRegisterDeviceWithApplyIdRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void BatchRegisterDeviceWithApplyIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string BatchRegisterDeviceWithApplyIdRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/BatchUnbindProjectDevicesRequest.cc b/iot/src/model/BatchUnbindProjectDevicesRequest.cc new file mode 100644 index 000000000..6e4e98cba --- /dev/null +++ b/iot/src/model/BatchUnbindProjectDevicesRequest.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 + +using AlibabaCloud::Iot::Model::BatchUnbindProjectDevicesRequest; + +BatchUnbindProjectDevicesRequest::BatchUnbindProjectDevicesRequest() : + RpcServiceRequest("iot", "2018-01-20", "BatchUnbindProjectDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchUnbindProjectDevicesRequest::~BatchUnbindProjectDevicesRequest() +{} + +std::string BatchUnbindProjectDevicesRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void BatchUnbindProjectDevicesRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string BatchUnbindProjectDevicesRequest::getProjectId()const +{ + return projectId_; +} + +void BatchUnbindProjectDevicesRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::vector BatchUnbindProjectDevicesRequest::getDevices()const +{ + return devices_; +} + +void BatchUnbindProjectDevicesRequest::setDevices(const std::vector& devices) +{ + devices_ = devices; + for(int dep1 = 0; dep1!= devices.size(); dep1++) { + auto devicesObj = devices.at(dep1); + std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1); + setParameter(devicesObjStr + ".DeviceName", devicesObj.deviceName); + setParameter(devicesObjStr + ".ProductKey", devicesObj.productKey); + } +} + +std::string BatchUnbindProjectDevicesRequest::getApiProduct()const +{ + return apiProduct_; +} + +void BatchUnbindProjectDevicesRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string BatchUnbindProjectDevicesRequest::getApiRevision()const +{ + return apiRevision_; +} + +void BatchUnbindProjectDevicesRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteClientIdsResult.cc b/iot/src/model/BatchUnbindProjectDevicesResult.cc similarity index 63% rename from iot/src/model/DeleteClientIdsResult.cc rename to iot/src/model/BatchUnbindProjectDevicesResult.cc index e374d7232..0d8d5155c 100644 --- a/iot/src/model/DeleteClientIdsResult.cc +++ b/iot/src/model/BatchUnbindProjectDevicesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Iot; using namespace AlibabaCloud::Iot::Model; -DeleteClientIdsResult::DeleteClientIdsResult() : +BatchUnbindProjectDevicesResult::BatchUnbindProjectDevicesResult() : ServiceResult() {} -DeleteClientIdsResult::DeleteClientIdsResult(const std::string &payload) : +BatchUnbindProjectDevicesResult::BatchUnbindProjectDevicesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteClientIdsResult::~DeleteClientIdsResult() +BatchUnbindProjectDevicesResult::~BatchUnbindProjectDevicesResult() {} -void DeleteClientIdsResult::parse(const std::string &payload) +void BatchUnbindProjectDevicesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -45,20 +45,27 @@ void DeleteClientIdsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["ErrorMessage"].isNull()) errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } -std::string DeleteClientIdsResult::getErrorMessage()const +std::string BatchUnbindProjectDevicesResult::getData()const +{ + return data_; +} + +std::string BatchUnbindProjectDevicesResult::getErrorMessage()const { return errorMessage_; } -std::string DeleteClientIdsResult::getCode()const +std::string BatchUnbindProjectDevicesResult::getCode()const { return code_; } -bool DeleteClientIdsResult::getSuccess()const +bool BatchUnbindProjectDevicesResult::getSuccess()const { return success_; } diff --git a/iot/src/model/BatchUnbindProjectProductsRequest.cc b/iot/src/model/BatchUnbindProjectProductsRequest.cc new file mode 100644 index 000000000..a3bc01f60 --- /dev/null +++ b/iot/src/model/BatchUnbindProjectProductsRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::BatchUnbindProjectProductsRequest; + +BatchUnbindProjectProductsRequest::BatchUnbindProjectProductsRequest() : + RpcServiceRequest("iot", "2018-01-20", "BatchUnbindProjectProducts") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchUnbindProjectProductsRequest::~BatchUnbindProjectProductsRequest() +{} + +std::vector BatchUnbindProjectProductsRequest::getProductKeys()const +{ + return productKeys_; +} + +void BatchUnbindProjectProductsRequest::setProductKeys(const std::vector& productKeys) +{ + productKeys_ = productKeys; + for(int dep1 = 0; dep1!= productKeys.size(); dep1++) { + setBodyParameter("ProductKeys."+ std::to_string(dep1), productKeys.at(dep1)); + } +} + +std::string BatchUnbindProjectProductsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void BatchUnbindProjectProductsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string BatchUnbindProjectProductsRequest::getProjectId()const +{ + return projectId_; +} + +void BatchUnbindProjectProductsRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string BatchUnbindProjectProductsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void BatchUnbindProjectProductsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string BatchUnbindProjectProductsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void BatchUnbindProjectProductsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/BatchUnbindProjectProductsResult.cc b/iot/src/model/BatchUnbindProjectProductsResult.cc new file mode 100644 index 000000000..1415b4ead --- /dev/null +++ b/iot/src/model/BatchUnbindProjectProductsResult.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; + +BatchUnbindProjectProductsResult::BatchUnbindProjectProductsResult() : + ServiceResult() +{} + +BatchUnbindProjectProductsResult::BatchUnbindProjectProductsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchUnbindProjectProductsResult::~BatchUnbindProjectProductsResult() +{} + +void BatchUnbindProjectProductsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string BatchUnbindProjectProductsResult::getData()const +{ + return data_; +} + +std::string BatchUnbindProjectProductsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BatchUnbindProjectProductsResult::getCode()const +{ + return code_; +} + +bool BatchUnbindProjectProductsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CreateRulengDistributeJobRequest.cc b/iot/src/model/CreateRulengDistributeJobRequest.cc new file mode 100644 index 000000000..3d6868621 --- /dev/null +++ b/iot/src/model/CreateRulengDistributeJobRequest.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::CreateRulengDistributeJobRequest; + +CreateRulengDistributeJobRequest::CreateRulengDistributeJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateRulengDistributeJob") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateRulengDistributeJobRequest::~CreateRulengDistributeJobRequest() +{} + +std::string CreateRulengDistributeJobRequest::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +void CreateRulengDistributeJobRequest::setSourceInstanceId(const std::string& sourceInstanceId) +{ + sourceInstanceId_ = sourceInstanceId; + setParameter("SourceInstanceId", sourceInstanceId); +} + +std::string CreateRulengDistributeJobRequest::getProductKey()const +{ + return productKey_; +} + +void CreateRulengDistributeJobRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string CreateRulengDistributeJobRequest::getTargetInstanceId()const +{ + return targetInstanceId_; +} + +void CreateRulengDistributeJobRequest::setTargetInstanceId(const std::string& targetInstanceId) +{ + targetInstanceId_ = targetInstanceId; + setParameter("TargetInstanceId", targetInstanceId); +} + +std::string CreateRulengDistributeJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateRulengDistributeJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateRulengDistributeJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateRulengDistributeJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/TransformClientIdResult.cc b/iot/src/model/CreateRulengDistributeJobResult.cc similarity index 68% rename from iot/src/model/TransformClientIdResult.cc rename to iot/src/model/CreateRulengDistributeJobResult.cc index 0da4c4201..4770e88e3 100644 --- a/iot/src/model/TransformClientIdResult.cc +++ b/iot/src/model/CreateRulengDistributeJobResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Iot; using namespace AlibabaCloud::Iot::Model; -TransformClientIdResult::TransformClientIdResult() : +CreateRulengDistributeJobResult::CreateRulengDistributeJobResult() : ServiceResult() {} -TransformClientIdResult::TransformClientIdResult(const std::string &payload) : +CreateRulengDistributeJobResult::CreateRulengDistributeJobResult(const std::string &payload) : ServiceResult() { parse(payload); } -TransformClientIdResult::~TransformClientIdResult() +CreateRulengDistributeJobResult::~CreateRulengDistributeJobResult() {} -void TransformClientIdResult::parse(const std::string &payload) +void CreateRulengDistributeJobResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void TransformClientIdResult::parse(const std::string &payload) } -std::string TransformClientIdResult::getErrorMessage()const +std::string CreateRulengDistributeJobResult::getErrorMessage()const { return errorMessage_; } -std::string TransformClientIdResult::getCode()const +std::string CreateRulengDistributeJobResult::getCode()const { return code_; } -bool TransformClientIdResult::getSuccess()const +bool CreateRulengDistributeJobResult::getSuccess()const { return success_; } diff --git a/iot/src/model/DeleteClientIdsRequest.cc b/iot/src/model/DeleteClientIdsRequest.cc deleted file mode 100644 index 75b0ecd2b..000000000 --- a/iot/src/model/DeleteClientIdsRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Iot::Model::DeleteClientIdsRequest; - -DeleteClientIdsRequest::DeleteClientIdsRequest() : - RpcServiceRequest("iot", "2018-01-20", "DeleteClientIds") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteClientIdsRequest::~DeleteClientIdsRequest() -{} - -std::string DeleteClientIdsRequest::getAuthConfig()const -{ - return authConfig_; -} - -void DeleteClientIdsRequest::setAuthConfig(const std::string& authConfig) -{ - authConfig_ = authConfig; - setParameter("AuthConfig", authConfig); -} - -std::string DeleteClientIdsRequest::getIotId()const -{ - return iotId_; -} - -void DeleteClientIdsRequest::setIotId(const std::string& iotId) -{ - iotId_ = iotId; - setParameter("IotId", iotId); -} - -std::string DeleteClientIdsRequest::getIotInstanceId()const -{ - return iotInstanceId_; -} - -void DeleteClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId) -{ - iotInstanceId_ = iotInstanceId; - setParameter("IotInstanceId", iotInstanceId); -} - -std::string DeleteClientIdsRequest::getApiProduct()const -{ - return apiProduct_; -} - -void DeleteClientIdsRequest::setApiProduct(const std::string& apiProduct) -{ - apiProduct_ = apiProduct; - setBodyParameter("ApiProduct", apiProduct); -} - -std::string DeleteClientIdsRequest::getApiRevision()const -{ - return apiRevision_; -} - -void DeleteClientIdsRequest::setApiRevision(const std::string& apiRevision) -{ - apiRevision_ = apiRevision; - setBodyParameter("ApiRevision", apiRevision); -} - diff --git a/iot/src/model/DisableThingRequest.cc b/iot/src/model/DisableThingRequest.cc index 22fc10697..ffdebe889 100644 --- a/iot/src/model/DisableThingRequest.cc +++ b/iot/src/model/DisableThingRequest.cc @@ -27,6 +27,17 @@ DisableThingRequest::DisableThingRequest() : DisableThingRequest::~DisableThingRequest() {} +std::string DisableThingRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void DisableThingRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string DisableThingRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void DisableThingRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DisableThingRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void DisableThingRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string DisableThingRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/EnableThingRequest.cc b/iot/src/model/EnableThingRequest.cc index aeb6bd696..873089174 100644 --- a/iot/src/model/EnableThingRequest.cc +++ b/iot/src/model/EnableThingRequest.cc @@ -27,6 +27,17 @@ EnableThingRequest::EnableThingRequest() : EnableThingRequest::~EnableThingRequest() {} +std::string EnableThingRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void EnableThingRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string EnableThingRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void EnableThingRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string EnableThingRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void EnableThingRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string EnableThingRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/OpenIotServiceRequest.cc b/iot/src/model/OpenIotServiceRequest.cc new file mode 100644 index 000000000..74428ef12 --- /dev/null +++ b/iot/src/model/OpenIotServiceRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::OpenIotServiceRequest; + +OpenIotServiceRequest::OpenIotServiceRequest() : + RpcServiceRequest("iot", "2018-01-20", "OpenIotService") +{ + setMethod(HttpRequest::Method::Post); +} + +OpenIotServiceRequest::~OpenIotServiceRequest() +{} + +long OpenIotServiceRequest::getOwnerId()const +{ + return ownerId_; +} + +void OpenIotServiceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/iot/src/model/OpenIotServiceResult.cc b/iot/src/model/OpenIotServiceResult.cc new file mode 100644 index 000000000..d6b286f9e --- /dev/null +++ b/iot/src/model/OpenIotServiceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +OpenIotServiceResult::OpenIotServiceResult() : + ServiceResult() +{} + +OpenIotServiceResult::OpenIotServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenIotServiceResult::~OpenIotServiceResult() +{} + +void OpenIotServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string OpenIotServiceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/iot/src/model/QueryBatchRegisterDeviceStatusRequest.cc b/iot/src/model/QueryBatchRegisterDeviceStatusRequest.cc index 64d9432c1..23bb28851 100644 --- a/iot/src/model/QueryBatchRegisterDeviceStatusRequest.cc +++ b/iot/src/model/QueryBatchRegisterDeviceStatusRequest.cc @@ -27,6 +27,17 @@ QueryBatchRegisterDeviceStatusRequest::QueryBatchRegisterDeviceStatusRequest() : QueryBatchRegisterDeviceStatusRequest::~QueryBatchRegisterDeviceStatusRequest() {} +std::string QueryBatchRegisterDeviceStatusRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryBatchRegisterDeviceStatusRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryBatchRegisterDeviceStatusRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryBatchRegisterDeviceStatusRequest::setAccessKeyId(const std::string& ac setParameter("AccessKeyId", accessKeyId); } +std::string QueryBatchRegisterDeviceStatusRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryBatchRegisterDeviceStatusRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryBatchRegisterDeviceStatusRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryClientIdsRequest.cc b/iot/src/model/QueryClientIdsRequest.cc deleted file mode 100644 index c432484c9..000000000 --- a/iot/src/model/QueryClientIdsRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Iot::Model::QueryClientIdsRequest; - -QueryClientIdsRequest::QueryClientIdsRequest() : - RpcServiceRequest("iot", "2018-01-20", "QueryClientIds") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryClientIdsRequest::~QueryClientIdsRequest() -{} - -std::string QueryClientIdsRequest::getAuthConfig()const -{ - return authConfig_; -} - -void QueryClientIdsRequest::setAuthConfig(const std::string& authConfig) -{ - authConfig_ = authConfig; - setParameter("AuthConfig", authConfig); -} - -std::string QueryClientIdsRequest::getIotId()const -{ - return iotId_; -} - -void QueryClientIdsRequest::setIotId(const std::string& iotId) -{ - iotId_ = iotId; - setParameter("IotId", iotId); -} - -std::string QueryClientIdsRequest::getIotInstanceId()const -{ - return iotInstanceId_; -} - -void QueryClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId) -{ - iotInstanceId_ = iotInstanceId; - setParameter("IotInstanceId", iotInstanceId); -} - -std::string QueryClientIdsRequest::getApiProduct()const -{ - return apiProduct_; -} - -void QueryClientIdsRequest::setApiProduct(const std::string& apiProduct) -{ - apiProduct_ = apiProduct; - setBodyParameter("ApiProduct", apiProduct); -} - -std::string QueryClientIdsRequest::getApiRevision()const -{ - return apiRevision_; -} - -void QueryClientIdsRequest::setApiRevision(const std::string& apiRevision) -{ - apiRevision_ = apiRevision; - setBodyParameter("ApiRevision", apiRevision); -} - diff --git a/iot/src/model/QueryDeviceRequest.cc b/iot/src/model/QueryDeviceRequest.cc index f665f83a4..4738b9fdd 100644 --- a/iot/src/model/QueryDeviceRequest.cc +++ b/iot/src/model/QueryDeviceRequest.cc @@ -27,6 +27,17 @@ QueryDeviceRequest::QueryDeviceRequest() : QueryDeviceRequest::~QueryDeviceRequest() {} +std::string QueryDeviceRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryDeviceRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryDeviceRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryDeviceRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryDeviceRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryDeviceRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryDeviceRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryPageByApplyIdRequest.cc b/iot/src/model/QueryPageByApplyIdRequest.cc index 14f24ac02..699450a6e 100644 --- a/iot/src/model/QueryPageByApplyIdRequest.cc +++ b/iot/src/model/QueryPageByApplyIdRequest.cc @@ -27,6 +27,17 @@ QueryPageByApplyIdRequest::QueryPageByApplyIdRequest() : QueryPageByApplyIdRequest::~QueryPageByApplyIdRequest() {} +std::string QueryPageByApplyIdRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryPageByApplyIdRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryPageByApplyIdRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryPageByApplyIdRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryPageByApplyIdRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryPageByApplyIdRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryPageByApplyIdRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryProductListRequest.cc b/iot/src/model/QueryProductListRequest.cc index a2e6df206..7409cd207 100644 --- a/iot/src/model/QueryProductListRequest.cc +++ b/iot/src/model/QueryProductListRequest.cc @@ -27,6 +27,17 @@ QueryProductListRequest::QueryProductListRequest() : QueryProductListRequest::~QueryProductListRequest() {} +std::string QueryProductListRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void QueryProductListRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string QueryProductListRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void QueryProductListRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string QueryProductListRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void QueryProductListRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string QueryProductListRequest::getResourceGroupId()const { return resourceGroupId_; diff --git a/iot/src/model/SpeechByCombinationRequest.cc b/iot/src/model/SpeechByCombinationRequest.cc index ac8411dfb..161e5eacf 100644 --- a/iot/src/model/SpeechByCombinationRequest.cc +++ b/iot/src/model/SpeechByCombinationRequest.cc @@ -51,6 +51,17 @@ void SpeechByCombinationRequest::setCombinationList(const std::vector + +using AlibabaCloud::Iot::Model::SyncSpeechByCombinationRequest; + +SyncSpeechByCombinationRequest::SyncSpeechByCombinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "SyncSpeechByCombination") +{ + setMethod(HttpRequest::Method::Post); +} + +SyncSpeechByCombinationRequest::~SyncSpeechByCombinationRequest() +{} + +std::string SyncSpeechByCombinationRequest::getIotId()const +{ + return iotId_; +} + +void SyncSpeechByCombinationRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::vector SyncSpeechByCombinationRequest::getCombinationList()const +{ + return combinationList_; +} + +void SyncSpeechByCombinationRequest::setCombinationList(const std::vector& combinationList) +{ + combinationList_ = combinationList; + for(int dep1 = 0; dep1!= combinationList.size(); dep1++) { + setBodyParameter("CombinationList."+ std::to_string(dep1), combinationList.at(dep1)); + } +} + +std::string SyncSpeechByCombinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void SyncSpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string SyncSpeechByCombinationRequest::getProductKey()const +{ + return productKey_; +} + +void SyncSpeechByCombinationRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string SyncSpeechByCombinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void SyncSpeechByCombinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string SyncSpeechByCombinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void SyncSpeechByCombinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string SyncSpeechByCombinationRequest::getDeviceName()const +{ + return deviceName_; +} + +void SyncSpeechByCombinationRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryClientIdsResult.cc b/iot/src/model/SyncSpeechByCombinationResult.cc similarity index 50% rename from iot/src/model/QueryClientIdsResult.cc rename to iot/src/model/SyncSpeechByCombinationResult.cc index 23db3f479..c3884b9f7 100644 --- a/iot/src/model/QueryClientIdsResult.cc +++ b/iot/src/model/SyncSpeechByCombinationResult.cc @@ -14,44 +14,36 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Iot; using namespace AlibabaCloud::Iot::Model; -QueryClientIdsResult::QueryClientIdsResult() : +SyncSpeechByCombinationResult::SyncSpeechByCombinationResult() : ServiceResult() {} -QueryClientIdsResult::QueryClientIdsResult(const std::string &payload) : +SyncSpeechByCombinationResult::SyncSpeechByCombinationResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryClientIdsResult::~QueryClientIdsResult() +SyncSpeechByCombinationResult::~SyncSpeechByCombinationResult() {} -void QueryClientIdsResult::parse(const std::string &payload) +void SyncSpeechByCombinationResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["IotId"].isNull()) - data_.iotId = dataNode["IotId"].asString(); - auto allDynamicRegClientIdsNode = dataNode["DynamicRegClientIds"]["DynamicRegClientId"]; - for (auto dataNodeDynamicRegClientIdsDynamicRegClientId : allDynamicRegClientIdsNode) - { - Data::DynamicRegClientId dynamicRegClientIdObject; - if(!dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].isNull()) - dynamicRegClientIdObject.clientId = dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].asString(); - if(!dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].isNull()) - dynamicRegClientIdObject.createTime = std::stol(dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].asString()); - data_.dynamicRegClientIds.push_back(dynamicRegClientIdObject); - } + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["RetryCount"].isNull()) + data_.retryCount = std::stoi(dataNode["RetryCount"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) @@ -61,22 +53,22 @@ void QueryClientIdsResult::parse(const std::string &payload) } -QueryClientIdsResult::Data QueryClientIdsResult::getData()const +SyncSpeechByCombinationResult::Data SyncSpeechByCombinationResult::getData()const { return data_; } -std::string QueryClientIdsResult::getErrorMessage()const +std::string SyncSpeechByCombinationResult::getErrorMessage()const { return errorMessage_; } -std::string QueryClientIdsResult::getCode()const +std::string SyncSpeechByCombinationResult::getCode()const { return code_; } -bool QueryClientIdsResult::getSuccess()const +bool SyncSpeechByCombinationResult::getSuccess()const { return success_; } diff --git a/iot/src/model/TransformClientIdRequest.cc b/iot/src/model/TransformClientIdRequest.cc deleted file mode 100644 index cb0ba9273..000000000 --- a/iot/src/model/TransformClientIdRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Iot::Model::TransformClientIdRequest; - -TransformClientIdRequest::TransformClientIdRequest() : - RpcServiceRequest("iot", "2018-01-20", "TransformClientId") -{ - setMethod(HttpRequest::Method::Post); -} - -TransformClientIdRequest::~TransformClientIdRequest() -{} - -std::string TransformClientIdRequest::getAuthConfig()const -{ - return authConfig_; -} - -void TransformClientIdRequest::setAuthConfig(const std::string& authConfig) -{ - authConfig_ = authConfig; - setParameter("AuthConfig", authConfig); -} - -std::string TransformClientIdRequest::getClientId()const -{ - return clientId_; -} - -void TransformClientIdRequest::setClientId(const std::string& clientId) -{ - clientId_ = clientId; - setParameter("ClientId", clientId); -} - -std::string TransformClientIdRequest::getIotId()const -{ - return iotId_; -} - -void TransformClientIdRequest::setIotId(const std::string& iotId) -{ - iotId_ = iotId; - setParameter("IotId", iotId); -} - -std::string TransformClientIdRequest::getIotInstanceId()const -{ - return iotInstanceId_; -} - -void TransformClientIdRequest::setIotInstanceId(const std::string& iotInstanceId) -{ - iotInstanceId_ = iotInstanceId; - setParameter("IotInstanceId", iotInstanceId); -} - -std::string TransformClientIdRequest::getApiProduct()const -{ - return apiProduct_; -} - -void TransformClientIdRequest::setApiProduct(const std::string& apiProduct) -{ - apiProduct_ = apiProduct; - setBodyParameter("ApiProduct", apiProduct); -} - -std::string TransformClientIdRequest::getApiRevision()const -{ - return apiRevision_; -} - -void TransformClientIdRequest::setApiRevision(const std::string& apiRevision) -{ - apiRevision_ = apiRevision; - setBodyParameter("ApiRevision", apiRevision); -} - diff --git a/iot/src/model/UpdateProductRequest.cc b/iot/src/model/UpdateProductRequest.cc index 33a3f01df..1a04ae38b 100644 --- a/iot/src/model/UpdateProductRequest.cc +++ b/iot/src/model/UpdateProductRequest.cc @@ -27,6 +27,17 @@ UpdateProductRequest::UpdateProductRequest() : UpdateProductRequest::~UpdateProductRequest() {} +std::string UpdateProductRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void UpdateProductRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string UpdateProductRequest::getDescription()const { return description_; @@ -49,6 +60,17 @@ void UpdateProductRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string UpdateProductRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void UpdateProductRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string UpdateProductRequest::getIotInstanceId()const { return iotInstanceId_;