From c74e24f508448bb2654b91220b51b20676e47818 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 18 May 2021 12:13:08 +0000 Subject: [PATCH] Add IoT Studio SetStudioProjectCooperation API. --- CHANGELOG | 13 + VERSION | 2 +- iot/CMakeLists.txt | 88 ++ iot/include/alibabacloud/iot/IotClient.h | 176 ++++ .../iot/model/CreateSpeechRequest.h | 75 ++ .../iot/model/CreateSpeechResult.h | 57 ++ .../model/CreateStudioAppDomainOpenRequest.h | 66 ++ .../model/CreateStudioAppDomainOpenResult.h | 67 ++ .../model/DeleteStudioAppDomainOpenRequest.h | 63 ++ .../model/DeleteStudioAppDomainOpenResult.h | 57 ++ .../iot/model/GetSpeechVoiceRequest.h | 51 ++ .../iot/model/GetSpeechVoiceResult.h | 68 ++ .../iot/model/GetStudioAppTokenOpenRequest.h | 60 ++ .../iot/model/GetStudioAppTokenOpenResult.h | 65 ++ .../iot/model/PublishStudioAppRequest.h | 63 ++ .../iot/model/PublishStudioAppResult.h | 57 ++ .../iot/model/PushSpeechRequest.h | 75 ++ .../alibabacloud/iot/model/PushSpeechResult.h | 57 ++ .../QuerySolutionDeviceGroupPageRequest.h | 66 ++ .../QuerySolutionDeviceGroupPageResult.h | 73 ++ .../iot/model/QuerySpeechListRequest.h | 63 ++ .../iot/model/QuerySpeechListResult.h | 80 ++ .../model/QuerySpeechPushJobDeviceRequest.h | 69 ++ .../model/QuerySpeechPushJobDeviceResult.h | 72 ++ .../iot/model/QuerySpeechPushJobRequest.h | 72 ++ .../iot/model/QuerySpeechPushJobResult.h | 83 ++ .../model/QuerySpeechPushJobSpeechRequest.h | 63 ++ .../model/QuerySpeechPushJobSpeechResult.h | 78 ++ .../iot/model/QuerySpeechRequest.h | 57 ++ .../iot/model/QuerySpeechResult.h | 68 ++ .../QueryStudioAppDomainListOpenRequest.h | 60 ++ .../QueryStudioAppDomainListOpenResult.h | 77 ++ .../iot/model/QueryStudioAppListRequest.h | 69 ++ .../iot/model/QueryStudioAppListResult.h | 78 ++ .../model/QueryStudioAppPageListOpenRequest.h | 69 ++ .../model/QueryStudioAppPageListOpenResult.h | 77 ++ .../iot/model/QueryStudioProjectListRequest.h | 63 ++ .../iot/model/QueryStudioProjectListResult.h | 73 ++ .../model/RefreshStudioAppTokenOpenRequest.h | 60 ++ .../model/RefreshStudioAppTokenOpenResult.h | 65 ++ .../SetStudioProjectCooperationRequest.h | 57 ++ .../model/SetStudioProjectCooperationResult.h | 57 ++ .../model/SetupStudioAppAuthModeOpenRequest.h | 63 ++ .../model/SetupStudioAppAuthModeOpenResult.h | 70 ++ .../iot/model/TestSpeechRequest.h | 72 ++ .../alibabacloud/iot/model/TestSpeechResult.h | 57 ++ .../iot/model/UpdateSpeechRequest.h | 69 ++ .../iot/model/UpdateSpeechResult.h | 55 ++ iot/src/IotClient.cc | 798 +++++++++++++++++- iot/src/model/CreateSpeechRequest.cc | 139 +++ iot/src/model/CreateSpeechResult.cc | 72 ++ .../model/CreateStudioAppDomainOpenRequest.cc | 106 +++ .../model/CreateStudioAppDomainOpenResult.cc | 85 ++ .../model/DeleteStudioAppDomainOpenRequest.cc | 95 +++ .../model/DeleteStudioAppDomainOpenResult.cc | 72 ++ iot/src/model/GetSpeechVoiceRequest.cc | 51 ++ iot/src/model/GetSpeechVoiceResult.cc | 90 ++ iot/src/model/GetStudioAppTokenOpenRequest.cc | 84 ++ iot/src/model/GetStudioAppTokenOpenResult.cc | 81 ++ iot/src/model/PublishStudioAppRequest.cc | 95 +++ iot/src/model/PublishStudioAppResult.cc | 72 ++ iot/src/model/PushSpeechRequest.cc | 141 ++++ iot/src/model/PushSpeechResult.cc | 72 ++ .../QuerySolutionDeviceGroupPageRequest.cc | 106 +++ .../QuerySolutionDeviceGroupPageResult.cc | 95 +++ iot/src/model/QuerySpeechListRequest.cc | 95 +++ iot/src/model/QuerySpeechListResult.cc | 107 +++ .../model/QuerySpeechPushJobDeviceRequest.cc | 117 +++ .../model/QuerySpeechPushJobDeviceResult.cc | 93 ++ iot/src/model/QuerySpeechPushJobRequest.cc | 130 +++ iot/src/model/QuerySpeechPushJobResult.cc | 115 +++ .../model/QuerySpeechPushJobSpeechRequest.cc | 95 +++ .../model/QuerySpeechPushJobSpeechResult.cc | 103 +++ iot/src/model/QuerySpeechRequest.cc | 73 ++ iot/src/model/QuerySpeechResult.cc | 87 ++ .../QueryStudioAppDomainListOpenRequest.cc | 84 ++ .../QueryStudioAppDomainListOpenResult.cc | 103 +++ iot/src/model/QueryStudioAppListRequest.cc | 119 +++ iot/src/model/QueryStudioAppListResult.cc | 105 +++ .../QueryStudioAppPageListOpenRequest.cc | 117 +++ .../model/QueryStudioAppPageListOpenResult.cc | 103 +++ .../model/QueryStudioProjectListRequest.cc | 95 +++ iot/src/model/QueryStudioProjectListResult.cc | 95 +++ .../model/RefreshStudioAppTokenOpenRequest.cc | 84 ++ .../model/RefreshStudioAppTokenOpenResult.cc | 81 ++ .../SetStudioProjectCooperationRequest.cc | 73 ++ .../SetStudioProjectCooperationResult.cc | 72 ++ .../SetupStudioAppAuthModeOpenRequest.cc | 95 +++ .../model/SetupStudioAppAuthModeOpenResult.cc | 84 ++ iot/src/model/TestSpeechRequest.cc | 128 +++ iot/src/model/TestSpeechResult.cc | 73 ++ iot/src/model/UpdateSpeechRequest.cc | 117 +++ iot/src/model/UpdateSpeechResult.cc | 65 ++ 93 files changed, 8153 insertions(+), 4 deletions(-) create mode 100644 iot/include/alibabacloud/iot/model/CreateSpeechRequest.h create mode 100644 iot/include/alibabacloud/iot/model/CreateSpeechResult.h create mode 100644 iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/GetSpeechVoiceRequest.h create mode 100644 iot/include/alibabacloud/iot/model/GetSpeechVoiceResult.h create mode 100644 iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/PublishStudioAppRequest.h create mode 100644 iot/include/alibabacloud/iot/model/PublishStudioAppResult.h create mode 100644 iot/include/alibabacloud/iot/model/PushSpeechRequest.h create mode 100644 iot/include/alibabacloud/iot/model/PushSpeechResult.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechListRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechListResult.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceResult.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechPushJobResult.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechResult.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QuerySpeechResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioAppListRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioAppListResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioProjectListRequest.h create mode 100644 iot/include/alibabacloud/iot/model/QueryStudioProjectListResult.h create mode 100644 iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/SetStudioProjectCooperationRequest.h create mode 100644 iot/include/alibabacloud/iot/model/SetStudioProjectCooperationResult.h create mode 100644 iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenRequest.h create mode 100644 iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenResult.h create mode 100644 iot/include/alibabacloud/iot/model/TestSpeechRequest.h create mode 100644 iot/include/alibabacloud/iot/model/TestSpeechResult.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateSpeechRequest.h create mode 100644 iot/include/alibabacloud/iot/model/UpdateSpeechResult.h create mode 100644 iot/src/model/CreateSpeechRequest.cc create mode 100644 iot/src/model/CreateSpeechResult.cc create mode 100644 iot/src/model/CreateStudioAppDomainOpenRequest.cc create mode 100644 iot/src/model/CreateStudioAppDomainOpenResult.cc create mode 100644 iot/src/model/DeleteStudioAppDomainOpenRequest.cc create mode 100644 iot/src/model/DeleteStudioAppDomainOpenResult.cc create mode 100644 iot/src/model/GetSpeechVoiceRequest.cc create mode 100644 iot/src/model/GetSpeechVoiceResult.cc create mode 100644 iot/src/model/GetStudioAppTokenOpenRequest.cc create mode 100644 iot/src/model/GetStudioAppTokenOpenResult.cc create mode 100644 iot/src/model/PublishStudioAppRequest.cc create mode 100644 iot/src/model/PublishStudioAppResult.cc create mode 100644 iot/src/model/PushSpeechRequest.cc create mode 100644 iot/src/model/PushSpeechResult.cc create mode 100644 iot/src/model/QuerySolutionDeviceGroupPageRequest.cc create mode 100644 iot/src/model/QuerySolutionDeviceGroupPageResult.cc create mode 100644 iot/src/model/QuerySpeechListRequest.cc create mode 100644 iot/src/model/QuerySpeechListResult.cc create mode 100644 iot/src/model/QuerySpeechPushJobDeviceRequest.cc create mode 100644 iot/src/model/QuerySpeechPushJobDeviceResult.cc create mode 100644 iot/src/model/QuerySpeechPushJobRequest.cc create mode 100644 iot/src/model/QuerySpeechPushJobResult.cc create mode 100644 iot/src/model/QuerySpeechPushJobSpeechRequest.cc create mode 100644 iot/src/model/QuerySpeechPushJobSpeechResult.cc create mode 100644 iot/src/model/QuerySpeechRequest.cc create mode 100644 iot/src/model/QuerySpeechResult.cc create mode 100644 iot/src/model/QueryStudioAppDomainListOpenRequest.cc create mode 100644 iot/src/model/QueryStudioAppDomainListOpenResult.cc create mode 100644 iot/src/model/QueryStudioAppListRequest.cc create mode 100644 iot/src/model/QueryStudioAppListResult.cc create mode 100644 iot/src/model/QueryStudioAppPageListOpenRequest.cc create mode 100644 iot/src/model/QueryStudioAppPageListOpenResult.cc create mode 100644 iot/src/model/QueryStudioProjectListRequest.cc create mode 100644 iot/src/model/QueryStudioProjectListResult.cc create mode 100644 iot/src/model/RefreshStudioAppTokenOpenRequest.cc create mode 100644 iot/src/model/RefreshStudioAppTokenOpenResult.cc create mode 100644 iot/src/model/SetStudioProjectCooperationRequest.cc create mode 100644 iot/src/model/SetStudioProjectCooperationResult.cc create mode 100644 iot/src/model/SetupStudioAppAuthModeOpenRequest.cc create mode 100644 iot/src/model/SetupStudioAppAuthModeOpenResult.cc create mode 100644 iot/src/model/TestSpeechRequest.cc create mode 100644 iot/src/model/TestSpeechResult.cc create mode 100644 iot/src/model/UpdateSpeechRequest.cc create mode 100644 iot/src/model/UpdateSpeechResult.cc diff --git a/CHANGELOG b/CHANGELOG index d5947c526..8df58bdb9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,16 @@ +2021-05-18 Version: 1.36.743 +- Add IoT Studio SetStudioProjectCooperation API. +- Add IoT Studio QueryStudioProjectList API. +- Add IoT Studio QueryStudioAppList API. +- Add IoT Studio QueryStudioAppPageListOpen API. +- Add IoT Studio QueryStudioAppDomainListOpen API. +- Add IoT Studio DeleteStudioAppDomainOpen API. +- Add IoT Studio CreateStudioAppDomainOpen API. +- Add IoT Studio GetStudioAppTokenOpen API. +- Add IoT Studio SetupStudioAppAuthModeOpen API. +- Add IoT Studio RefreshStudioAppTokenOpen API. +- Add IoT Studio PublishStudioApp API. + 2021-05-18 Version: 1.36.742 - Support MinCount for AddNodes. - Support HostNamePreffix and HostNameSuffix for ListNodes. diff --git a/VERSION b/VERSION index 38df03592..b6734e752 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.742 \ No newline at end of file +1.36.743 \ No newline at end of file diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index daff80002..d6fd7d16c 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -155,6 +155,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateRulengDistributeJobResult.h include/alibabacloud/iot/model/CreateSceneRuleRequest.h include/alibabacloud/iot/model/CreateSceneRuleResult.h + include/alibabacloud/iot/model/CreateSpeechRequest.h + include/alibabacloud/iot/model/CreateSpeechResult.h + include/alibabacloud/iot/model/CreateStudioAppDomainOpenRequest.h + include/alibabacloud/iot/model/CreateStudioAppDomainOpenResult.h include/alibabacloud/iot/model/CreateSubscribeRelationRequest.h include/alibabacloud/iot/model/CreateSubscribeRelationResult.h include/alibabacloud/iot/model/CreateThingModelRequest.h @@ -205,6 +209,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteSceneRuleResult.h include/alibabacloud/iot/model/DeleteSpeechRequest.h include/alibabacloud/iot/model/DeleteSpeechResult.h + include/alibabacloud/iot/model/DeleteStudioAppDomainOpenRequest.h + include/alibabacloud/iot/model/DeleteStudioAppDomainOpenResult.h include/alibabacloud/iot/model/DeleteSubscribeRelationRequest.h include/alibabacloud/iot/model/DeleteSubscribeRelationResult.h include/alibabacloud/iot/model/DeleteThingModelRequest.h @@ -263,6 +269,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/GetRuleActionResult.h include/alibabacloud/iot/model/GetSceneRuleRequest.h include/alibabacloud/iot/model/GetSceneRuleResult.h + include/alibabacloud/iot/model/GetSpeechVoiceRequest.h + include/alibabacloud/iot/model/GetSpeechVoiceResult.h + include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h + include/alibabacloud/iot/model/GetStudioAppTokenOpenResult.h include/alibabacloud/iot/model/GetThingModelTslRequest.h include/alibabacloud/iot/model/GetThingModelTslResult.h include/alibabacloud/iot/model/GetThingModelTslPublishedRequest.h @@ -329,8 +339,12 @@ set(iot_public_header_model include/alibabacloud/iot/model/PubResult.h include/alibabacloud/iot/model/PubBroadcastRequest.h include/alibabacloud/iot/model/PubBroadcastResult.h + include/alibabacloud/iot/model/PublishStudioAppRequest.h + include/alibabacloud/iot/model/PublishStudioAppResult.h include/alibabacloud/iot/model/PublishThingModelRequest.h include/alibabacloud/iot/model/PublishThingModelResult.h + include/alibabacloud/iot/model/PushSpeechRequest.h + include/alibabacloud/iot/model/PushSpeechResult.h include/alibabacloud/iot/model/QueryAppDeviceListRequest.h include/alibabacloud/iot/model/QueryAppDeviceListResult.h include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusRequest.h @@ -445,6 +459,26 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryProductTopicResult.h include/alibabacloud/iot/model/QuerySceneRuleRequest.h include/alibabacloud/iot/model/QuerySceneRuleResult.h + include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageRequest.h + include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h + include/alibabacloud/iot/model/QuerySpeechRequest.h + include/alibabacloud/iot/model/QuerySpeechResult.h + include/alibabacloud/iot/model/QuerySpeechListRequest.h + include/alibabacloud/iot/model/QuerySpeechListResult.h + include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h + include/alibabacloud/iot/model/QuerySpeechPushJobResult.h + include/alibabacloud/iot/model/QuerySpeechPushJobDeviceRequest.h + include/alibabacloud/iot/model/QuerySpeechPushJobDeviceResult.h + include/alibabacloud/iot/model/QuerySpeechPushJobSpeechRequest.h + include/alibabacloud/iot/model/QuerySpeechPushJobSpeechResult.h + include/alibabacloud/iot/model/QueryStudioAppDomainListOpenRequest.h + include/alibabacloud/iot/model/QueryStudioAppDomainListOpenResult.h + include/alibabacloud/iot/model/QueryStudioAppListRequest.h + include/alibabacloud/iot/model/QueryStudioAppListResult.h + include/alibabacloud/iot/model/QueryStudioAppPageListOpenRequest.h + include/alibabacloud/iot/model/QueryStudioAppPageListOpenResult.h + include/alibabacloud/iot/model/QueryStudioProjectListRequest.h + include/alibabacloud/iot/model/QueryStudioProjectListResult.h include/alibabacloud/iot/model/QuerySubscribeRelationRequest.h include/alibabacloud/iot/model/QuerySubscribeRelationResult.h include/alibabacloud/iot/model/QuerySummarySceneRuleLogRequest.h @@ -469,6 +503,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/RRpcResult.h include/alibabacloud/iot/model/RefreshDeviceTunnelSharePasswordRequest.h include/alibabacloud/iot/model/RefreshDeviceTunnelSharePasswordResult.h + include/alibabacloud/iot/model/RefreshStudioAppTokenOpenRequest.h + include/alibabacloud/iot/model/RefreshStudioAppTokenOpenResult.h include/alibabacloud/iot/model/RegisterDeviceRequest.h include/alibabacloud/iot/model/RegisterDeviceResult.h include/alibabacloud/iot/model/ReleaseEdgeDriverVersionRequest.h @@ -497,6 +533,10 @@ set(iot_public_header_model include/alibabacloud/iot/model/SetEdgeInstanceDriverConfigsResult.h include/alibabacloud/iot/model/SetProductCertInfoRequest.h include/alibabacloud/iot/model/SetProductCertInfoResult.h + include/alibabacloud/iot/model/SetStudioProjectCooperationRequest.h + include/alibabacloud/iot/model/SetStudioProjectCooperationResult.h + include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenRequest.h + include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenResult.h include/alibabacloud/iot/model/SpeechByCombinationRequest.h include/alibabacloud/iot/model/SpeechByCombinationResult.h include/alibabacloud/iot/model/StartRuleRequest.h @@ -505,6 +545,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/StopRuleResult.h include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h + include/alibabacloud/iot/model/TestSpeechRequest.h + include/alibabacloud/iot/model/TestSpeechResult.h include/alibabacloud/iot/model/TriggerSceneRuleRequest.h include/alibabacloud/iot/model/TriggerSceneRuleResult.h include/alibabacloud/iot/model/UnbindApplicationFromEdgeInstanceRequest.h @@ -547,6 +589,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/UpdateRuleActionResult.h include/alibabacloud/iot/model/UpdateSceneRuleRequest.h include/alibabacloud/iot/model/UpdateSceneRuleResult.h + include/alibabacloud/iot/model/UpdateSpeechRequest.h + include/alibabacloud/iot/model/UpdateSpeechResult.h include/alibabacloud/iot/model/UpdateSubscribeRelationRequest.h include/alibabacloud/iot/model/UpdateSubscribeRelationResult.h include/alibabacloud/iot/model/UpdateThingModelRequest.h @@ -692,6 +736,10 @@ set(iot_src src/model/CreateRulengDistributeJobResult.cc src/model/CreateSceneRuleRequest.cc src/model/CreateSceneRuleResult.cc + src/model/CreateSpeechRequest.cc + src/model/CreateSpeechResult.cc + src/model/CreateStudioAppDomainOpenRequest.cc + src/model/CreateStudioAppDomainOpenResult.cc src/model/CreateSubscribeRelationRequest.cc src/model/CreateSubscribeRelationResult.cc src/model/CreateThingModelRequest.cc @@ -742,6 +790,8 @@ set(iot_src src/model/DeleteSceneRuleResult.cc src/model/DeleteSpeechRequest.cc src/model/DeleteSpeechResult.cc + src/model/DeleteStudioAppDomainOpenRequest.cc + src/model/DeleteStudioAppDomainOpenResult.cc src/model/DeleteSubscribeRelationRequest.cc src/model/DeleteSubscribeRelationResult.cc src/model/DeleteThingModelRequest.cc @@ -800,6 +850,10 @@ set(iot_src src/model/GetRuleActionResult.cc src/model/GetSceneRuleRequest.cc src/model/GetSceneRuleResult.cc + src/model/GetSpeechVoiceRequest.cc + src/model/GetSpeechVoiceResult.cc + src/model/GetStudioAppTokenOpenRequest.cc + src/model/GetStudioAppTokenOpenResult.cc src/model/GetThingModelTslRequest.cc src/model/GetThingModelTslResult.cc src/model/GetThingModelTslPublishedRequest.cc @@ -866,8 +920,12 @@ set(iot_src src/model/PubResult.cc src/model/PubBroadcastRequest.cc src/model/PubBroadcastResult.cc + src/model/PublishStudioAppRequest.cc + src/model/PublishStudioAppResult.cc src/model/PublishThingModelRequest.cc src/model/PublishThingModelResult.cc + src/model/PushSpeechRequest.cc + src/model/PushSpeechResult.cc src/model/QueryAppDeviceListRequest.cc src/model/QueryAppDeviceListResult.cc src/model/QueryBatchRegisterDeviceStatusRequest.cc @@ -982,6 +1040,26 @@ set(iot_src src/model/QueryProductTopicResult.cc src/model/QuerySceneRuleRequest.cc src/model/QuerySceneRuleResult.cc + src/model/QuerySolutionDeviceGroupPageRequest.cc + src/model/QuerySolutionDeviceGroupPageResult.cc + src/model/QuerySpeechRequest.cc + src/model/QuerySpeechResult.cc + src/model/QuerySpeechListRequest.cc + src/model/QuerySpeechListResult.cc + src/model/QuerySpeechPushJobRequest.cc + src/model/QuerySpeechPushJobResult.cc + src/model/QuerySpeechPushJobDeviceRequest.cc + src/model/QuerySpeechPushJobDeviceResult.cc + src/model/QuerySpeechPushJobSpeechRequest.cc + src/model/QuerySpeechPushJobSpeechResult.cc + src/model/QueryStudioAppDomainListOpenRequest.cc + src/model/QueryStudioAppDomainListOpenResult.cc + src/model/QueryStudioAppListRequest.cc + src/model/QueryStudioAppListResult.cc + src/model/QueryStudioAppPageListOpenRequest.cc + src/model/QueryStudioAppPageListOpenResult.cc + src/model/QueryStudioProjectListRequest.cc + src/model/QueryStudioProjectListResult.cc src/model/QuerySubscribeRelationRequest.cc src/model/QuerySubscribeRelationResult.cc src/model/QuerySummarySceneRuleLogRequest.cc @@ -1006,6 +1084,8 @@ set(iot_src src/model/RRpcResult.cc src/model/RefreshDeviceTunnelSharePasswordRequest.cc src/model/RefreshDeviceTunnelSharePasswordResult.cc + src/model/RefreshStudioAppTokenOpenRequest.cc + src/model/RefreshStudioAppTokenOpenResult.cc src/model/RegisterDeviceRequest.cc src/model/RegisterDeviceResult.cc src/model/ReleaseEdgeDriverVersionRequest.cc @@ -1034,6 +1114,10 @@ set(iot_src src/model/SetEdgeInstanceDriverConfigsResult.cc src/model/SetProductCertInfoRequest.cc src/model/SetProductCertInfoResult.cc + src/model/SetStudioProjectCooperationRequest.cc + src/model/SetStudioProjectCooperationResult.cc + src/model/SetupStudioAppAuthModeOpenRequest.cc + src/model/SetupStudioAppAuthModeOpenResult.cc src/model/SpeechByCombinationRequest.cc src/model/SpeechByCombinationResult.cc src/model/StartRuleRequest.cc @@ -1042,6 +1126,8 @@ set(iot_src src/model/StopRuleResult.cc src/model/SyncSpeechByCombinationRequest.cc src/model/SyncSpeechByCombinationResult.cc + src/model/TestSpeechRequest.cc + src/model/TestSpeechResult.cc src/model/TriggerSceneRuleRequest.cc src/model/TriggerSceneRuleResult.cc src/model/UnbindApplicationFromEdgeInstanceRequest.cc @@ -1084,6 +1170,8 @@ set(iot_src src/model/UpdateRuleActionResult.cc src/model/UpdateSceneRuleRequest.cc src/model/UpdateSceneRuleResult.cc + src/model/UpdateSpeechRequest.cc + src/model/UpdateSpeechResult.cc src/model/UpdateSubscribeRelationRequest.cc src/model/UpdateSubscribeRelationResult.cc src/model/UpdateThingModelRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index a3f75edbf..ec156cfd0 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -156,6 +156,10 @@ #include "model/CreateRulengDistributeJobResult.h" #include "model/CreateSceneRuleRequest.h" #include "model/CreateSceneRuleResult.h" +#include "model/CreateSpeechRequest.h" +#include "model/CreateSpeechResult.h" +#include "model/CreateStudioAppDomainOpenRequest.h" +#include "model/CreateStudioAppDomainOpenResult.h" #include "model/CreateSubscribeRelationRequest.h" #include "model/CreateSubscribeRelationResult.h" #include "model/CreateThingModelRequest.h" @@ -206,6 +210,8 @@ #include "model/DeleteSceneRuleResult.h" #include "model/DeleteSpeechRequest.h" #include "model/DeleteSpeechResult.h" +#include "model/DeleteStudioAppDomainOpenRequest.h" +#include "model/DeleteStudioAppDomainOpenResult.h" #include "model/DeleteSubscribeRelationRequest.h" #include "model/DeleteSubscribeRelationResult.h" #include "model/DeleteThingModelRequest.h" @@ -264,6 +270,10 @@ #include "model/GetRuleActionResult.h" #include "model/GetSceneRuleRequest.h" #include "model/GetSceneRuleResult.h" +#include "model/GetSpeechVoiceRequest.h" +#include "model/GetSpeechVoiceResult.h" +#include "model/GetStudioAppTokenOpenRequest.h" +#include "model/GetStudioAppTokenOpenResult.h" #include "model/GetThingModelTslRequest.h" #include "model/GetThingModelTslResult.h" #include "model/GetThingModelTslPublishedRequest.h" @@ -330,8 +340,12 @@ #include "model/PubResult.h" #include "model/PubBroadcastRequest.h" #include "model/PubBroadcastResult.h" +#include "model/PublishStudioAppRequest.h" +#include "model/PublishStudioAppResult.h" #include "model/PublishThingModelRequest.h" #include "model/PublishThingModelResult.h" +#include "model/PushSpeechRequest.h" +#include "model/PushSpeechResult.h" #include "model/QueryAppDeviceListRequest.h" #include "model/QueryAppDeviceListResult.h" #include "model/QueryBatchRegisterDeviceStatusRequest.h" @@ -446,6 +460,26 @@ #include "model/QueryProductTopicResult.h" #include "model/QuerySceneRuleRequest.h" #include "model/QuerySceneRuleResult.h" +#include "model/QuerySolutionDeviceGroupPageRequest.h" +#include "model/QuerySolutionDeviceGroupPageResult.h" +#include "model/QuerySpeechRequest.h" +#include "model/QuerySpeechResult.h" +#include "model/QuerySpeechListRequest.h" +#include "model/QuerySpeechListResult.h" +#include "model/QuerySpeechPushJobRequest.h" +#include "model/QuerySpeechPushJobResult.h" +#include "model/QuerySpeechPushJobDeviceRequest.h" +#include "model/QuerySpeechPushJobDeviceResult.h" +#include "model/QuerySpeechPushJobSpeechRequest.h" +#include "model/QuerySpeechPushJobSpeechResult.h" +#include "model/QueryStudioAppDomainListOpenRequest.h" +#include "model/QueryStudioAppDomainListOpenResult.h" +#include "model/QueryStudioAppListRequest.h" +#include "model/QueryStudioAppListResult.h" +#include "model/QueryStudioAppPageListOpenRequest.h" +#include "model/QueryStudioAppPageListOpenResult.h" +#include "model/QueryStudioProjectListRequest.h" +#include "model/QueryStudioProjectListResult.h" #include "model/QuerySubscribeRelationRequest.h" #include "model/QuerySubscribeRelationResult.h" #include "model/QuerySummarySceneRuleLogRequest.h" @@ -470,6 +504,8 @@ #include "model/RRpcResult.h" #include "model/RefreshDeviceTunnelSharePasswordRequest.h" #include "model/RefreshDeviceTunnelSharePasswordResult.h" +#include "model/RefreshStudioAppTokenOpenRequest.h" +#include "model/RefreshStudioAppTokenOpenResult.h" #include "model/RegisterDeviceRequest.h" #include "model/RegisterDeviceResult.h" #include "model/ReleaseEdgeDriverVersionRequest.h" @@ -498,6 +534,10 @@ #include "model/SetEdgeInstanceDriverConfigsResult.h" #include "model/SetProductCertInfoRequest.h" #include "model/SetProductCertInfoResult.h" +#include "model/SetStudioProjectCooperationRequest.h" +#include "model/SetStudioProjectCooperationResult.h" +#include "model/SetupStudioAppAuthModeOpenRequest.h" +#include "model/SetupStudioAppAuthModeOpenResult.h" #include "model/SpeechByCombinationRequest.h" #include "model/SpeechByCombinationResult.h" #include "model/StartRuleRequest.h" @@ -506,6 +546,8 @@ #include "model/StopRuleResult.h" #include "model/SyncSpeechByCombinationRequest.h" #include "model/SyncSpeechByCombinationResult.h" +#include "model/TestSpeechRequest.h" +#include "model/TestSpeechResult.h" #include "model/TriggerSceneRuleRequest.h" #include "model/TriggerSceneRuleResult.h" #include "model/UnbindApplicationFromEdgeInstanceRequest.h" @@ -548,6 +590,8 @@ #include "model/UpdateRuleActionResult.h" #include "model/UpdateSceneRuleRequest.h" #include "model/UpdateSceneRuleResult.h" +#include "model/UpdateSpeechRequest.h" +#include "model/UpdateSpeechResult.h" #include "model/UpdateSubscribeRelationRequest.h" #include "model/UpdateSubscribeRelationResult.h" #include "model/UpdateThingModelRequest.h" @@ -766,6 +810,12 @@ namespace AlibabaCloud typedef Outcome CreateSceneRuleOutcome; typedef std::future CreateSceneRuleOutcomeCallable; typedef std::function&)> CreateSceneRuleAsyncHandler; + typedef Outcome CreateSpeechOutcome; + typedef std::future CreateSpeechOutcomeCallable; + typedef std::function&)> CreateSpeechAsyncHandler; + typedef Outcome CreateStudioAppDomainOpenOutcome; + typedef std::future CreateStudioAppDomainOpenOutcomeCallable; + typedef std::function&)> CreateStudioAppDomainOpenAsyncHandler; typedef Outcome CreateSubscribeRelationOutcome; typedef std::future CreateSubscribeRelationOutcomeCallable; typedef std::function&)> CreateSubscribeRelationAsyncHandler; @@ -841,6 +891,9 @@ namespace AlibabaCloud typedef Outcome DeleteSpeechOutcome; typedef std::future DeleteSpeechOutcomeCallable; typedef std::function&)> DeleteSpeechAsyncHandler; + typedef Outcome DeleteStudioAppDomainOpenOutcome; + typedef std::future DeleteStudioAppDomainOpenOutcomeCallable; + typedef std::function&)> DeleteStudioAppDomainOpenAsyncHandler; typedef Outcome DeleteSubscribeRelationOutcome; typedef std::future DeleteSubscribeRelationOutcomeCallable; typedef std::function&)> DeleteSubscribeRelationAsyncHandler; @@ -928,6 +981,12 @@ namespace AlibabaCloud typedef Outcome GetSceneRuleOutcome; typedef std::future GetSceneRuleOutcomeCallable; typedef std::function&)> GetSceneRuleAsyncHandler; + typedef Outcome GetSpeechVoiceOutcome; + typedef std::future GetSpeechVoiceOutcomeCallable; + typedef std::function&)> GetSpeechVoiceAsyncHandler; + typedef Outcome GetStudioAppTokenOpenOutcome; + typedef std::future GetStudioAppTokenOpenOutcomeCallable; + typedef std::function&)> GetStudioAppTokenOpenAsyncHandler; typedef Outcome GetThingModelTslOutcome; typedef std::future GetThingModelTslOutcomeCallable; typedef std::function&)> GetThingModelTslAsyncHandler; @@ -1027,9 +1086,15 @@ namespace AlibabaCloud typedef Outcome PubBroadcastOutcome; typedef std::future PubBroadcastOutcomeCallable; typedef std::function&)> PubBroadcastAsyncHandler; + typedef Outcome PublishStudioAppOutcome; + typedef std::future PublishStudioAppOutcomeCallable; + typedef std::function&)> PublishStudioAppAsyncHandler; typedef Outcome PublishThingModelOutcome; typedef std::future PublishThingModelOutcomeCallable; typedef std::function&)> PublishThingModelAsyncHandler; + typedef Outcome PushSpeechOutcome; + typedef std::future PushSpeechOutcomeCallable; + typedef std::function&)> PushSpeechAsyncHandler; typedef Outcome QueryAppDeviceListOutcome; typedef std::future QueryAppDeviceListOutcomeCallable; typedef std::function&)> QueryAppDeviceListAsyncHandler; @@ -1201,6 +1266,36 @@ namespace AlibabaCloud typedef Outcome QuerySceneRuleOutcome; typedef std::future QuerySceneRuleOutcomeCallable; typedef std::function&)> QuerySceneRuleAsyncHandler; + typedef Outcome QuerySolutionDeviceGroupPageOutcome; + typedef std::future QuerySolutionDeviceGroupPageOutcomeCallable; + typedef std::function&)> QuerySolutionDeviceGroupPageAsyncHandler; + typedef Outcome QuerySpeechOutcome; + typedef std::future QuerySpeechOutcomeCallable; + typedef std::function&)> QuerySpeechAsyncHandler; + typedef Outcome QuerySpeechListOutcome; + typedef std::future QuerySpeechListOutcomeCallable; + typedef std::function&)> QuerySpeechListAsyncHandler; + typedef Outcome QuerySpeechPushJobOutcome; + typedef std::future QuerySpeechPushJobOutcomeCallable; + typedef std::function&)> QuerySpeechPushJobAsyncHandler; + typedef Outcome QuerySpeechPushJobDeviceOutcome; + typedef std::future QuerySpeechPushJobDeviceOutcomeCallable; + typedef std::function&)> QuerySpeechPushJobDeviceAsyncHandler; + typedef Outcome QuerySpeechPushJobSpeechOutcome; + typedef std::future QuerySpeechPushJobSpeechOutcomeCallable; + typedef std::function&)> QuerySpeechPushJobSpeechAsyncHandler; + typedef Outcome QueryStudioAppDomainListOpenOutcome; + typedef std::future QueryStudioAppDomainListOpenOutcomeCallable; + typedef std::function&)> QueryStudioAppDomainListOpenAsyncHandler; + typedef Outcome QueryStudioAppListOutcome; + typedef std::future QueryStudioAppListOutcomeCallable; + typedef std::function&)> QueryStudioAppListAsyncHandler; + typedef Outcome QueryStudioAppPageListOpenOutcome; + typedef std::future QueryStudioAppPageListOpenOutcomeCallable; + typedef std::function&)> QueryStudioAppPageListOpenAsyncHandler; + typedef Outcome QueryStudioProjectListOutcome; + typedef std::future QueryStudioProjectListOutcomeCallable; + typedef std::function&)> QueryStudioProjectListAsyncHandler; typedef Outcome QuerySubscribeRelationOutcome; typedef std::future QuerySubscribeRelationOutcomeCallable; typedef std::function&)> QuerySubscribeRelationAsyncHandler; @@ -1237,6 +1332,9 @@ namespace AlibabaCloud typedef Outcome RefreshDeviceTunnelSharePasswordOutcome; typedef std::future RefreshDeviceTunnelSharePasswordOutcomeCallable; typedef std::function&)> RefreshDeviceTunnelSharePasswordAsyncHandler; + typedef Outcome RefreshStudioAppTokenOpenOutcome; + typedef std::future RefreshStudioAppTokenOpenOutcomeCallable; + typedef std::function&)> RefreshStudioAppTokenOpenAsyncHandler; typedef Outcome RegisterDeviceOutcome; typedef std::future RegisterDeviceOutcomeCallable; typedef std::function&)> RegisterDeviceAsyncHandler; @@ -1279,6 +1377,12 @@ namespace AlibabaCloud typedef Outcome SetProductCertInfoOutcome; typedef std::future SetProductCertInfoOutcomeCallable; typedef std::function&)> SetProductCertInfoAsyncHandler; + typedef Outcome SetStudioProjectCooperationOutcome; + typedef std::future SetStudioProjectCooperationOutcomeCallable; + typedef std::function&)> SetStudioProjectCooperationAsyncHandler; + typedef Outcome SetupStudioAppAuthModeOpenOutcome; + typedef std::future SetupStudioAppAuthModeOpenOutcomeCallable; + typedef std::function&)> SetupStudioAppAuthModeOpenAsyncHandler; typedef Outcome SpeechByCombinationOutcome; typedef std::future SpeechByCombinationOutcomeCallable; typedef std::function&)> SpeechByCombinationAsyncHandler; @@ -1291,6 +1395,9 @@ namespace AlibabaCloud typedef Outcome SyncSpeechByCombinationOutcome; typedef std::future SyncSpeechByCombinationOutcomeCallable; typedef std::function&)> SyncSpeechByCombinationAsyncHandler; + typedef Outcome TestSpeechOutcome; + typedef std::future TestSpeechOutcomeCallable; + typedef std::function&)> TestSpeechAsyncHandler; typedef Outcome TriggerSceneRuleOutcome; typedef std::future TriggerSceneRuleOutcomeCallable; typedef std::function&)> TriggerSceneRuleAsyncHandler; @@ -1354,6 +1461,9 @@ namespace AlibabaCloud typedef Outcome UpdateSceneRuleOutcome; typedef std::future UpdateSceneRuleOutcomeCallable; typedef std::function&)> UpdateSceneRuleAsyncHandler; + typedef Outcome UpdateSpeechOutcome; + typedef std::future UpdateSpeechOutcomeCallable; + typedef std::function&)> UpdateSpeechAsyncHandler; typedef Outcome UpdateSubscribeRelationOutcome; typedef std::future UpdateSubscribeRelationOutcomeCallable; typedef std::function&)> UpdateSubscribeRelationAsyncHandler; @@ -1572,6 +1682,12 @@ namespace AlibabaCloud 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; + CreateSpeechOutcome createSpeech(const Model::CreateSpeechRequest &request)const; + void createSpeechAsync(const Model::CreateSpeechRequest& request, const CreateSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSpeechOutcomeCallable createSpeechCallable(const Model::CreateSpeechRequest& request) const; + CreateStudioAppDomainOpenOutcome createStudioAppDomainOpen(const Model::CreateStudioAppDomainOpenRequest &request)const; + void createStudioAppDomainOpenAsync(const Model::CreateStudioAppDomainOpenRequest& request, const CreateStudioAppDomainOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStudioAppDomainOpenOutcomeCallable createStudioAppDomainOpenCallable(const Model::CreateStudioAppDomainOpenRequest& request) const; CreateSubscribeRelationOutcome createSubscribeRelation(const Model::CreateSubscribeRelationRequest &request)const; void createSubscribeRelationAsync(const Model::CreateSubscribeRelationRequest& request, const CreateSubscribeRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSubscribeRelationOutcomeCallable createSubscribeRelationCallable(const Model::CreateSubscribeRelationRequest& request) const; @@ -1647,6 +1763,9 @@ namespace AlibabaCloud DeleteSpeechOutcome deleteSpeech(const Model::DeleteSpeechRequest &request)const; void deleteSpeechAsync(const Model::DeleteSpeechRequest& request, const DeleteSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSpeechOutcomeCallable deleteSpeechCallable(const Model::DeleteSpeechRequest& request) const; + DeleteStudioAppDomainOpenOutcome deleteStudioAppDomainOpen(const Model::DeleteStudioAppDomainOpenRequest &request)const; + void deleteStudioAppDomainOpenAsync(const Model::DeleteStudioAppDomainOpenRequest& request, const DeleteStudioAppDomainOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteStudioAppDomainOpenOutcomeCallable deleteStudioAppDomainOpenCallable(const Model::DeleteStudioAppDomainOpenRequest& request) const; DeleteSubscribeRelationOutcome deleteSubscribeRelation(const Model::DeleteSubscribeRelationRequest &request)const; void deleteSubscribeRelationAsync(const Model::DeleteSubscribeRelationRequest& request, const DeleteSubscribeRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSubscribeRelationOutcomeCallable deleteSubscribeRelationCallable(const Model::DeleteSubscribeRelationRequest& request) const; @@ -1734,6 +1853,12 @@ namespace AlibabaCloud GetSceneRuleOutcome getSceneRule(const Model::GetSceneRuleRequest &request)const; void getSceneRuleAsync(const Model::GetSceneRuleRequest& request, const GetSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSceneRuleOutcomeCallable getSceneRuleCallable(const Model::GetSceneRuleRequest& request) const; + GetSpeechVoiceOutcome getSpeechVoice(const Model::GetSpeechVoiceRequest &request)const; + void getSpeechVoiceAsync(const Model::GetSpeechVoiceRequest& request, const GetSpeechVoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSpeechVoiceOutcomeCallable getSpeechVoiceCallable(const Model::GetSpeechVoiceRequest& request) const; + GetStudioAppTokenOpenOutcome getStudioAppTokenOpen(const Model::GetStudioAppTokenOpenRequest &request)const; + void getStudioAppTokenOpenAsync(const Model::GetStudioAppTokenOpenRequest& request, const GetStudioAppTokenOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStudioAppTokenOpenOutcomeCallable getStudioAppTokenOpenCallable(const Model::GetStudioAppTokenOpenRequest& request) const; GetThingModelTslOutcome getThingModelTsl(const Model::GetThingModelTslRequest &request)const; void getThingModelTslAsync(const Model::GetThingModelTslRequest& request, const GetThingModelTslAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetThingModelTslOutcomeCallable getThingModelTslCallable(const Model::GetThingModelTslRequest& request) const; @@ -1833,9 +1958,15 @@ namespace AlibabaCloud PubBroadcastOutcome pubBroadcast(const Model::PubBroadcastRequest &request)const; void pubBroadcastAsync(const Model::PubBroadcastRequest& request, const PubBroadcastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PubBroadcastOutcomeCallable pubBroadcastCallable(const Model::PubBroadcastRequest& request) const; + PublishStudioAppOutcome publishStudioApp(const Model::PublishStudioAppRequest &request)const; + void publishStudioAppAsync(const Model::PublishStudioAppRequest& request, const PublishStudioAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishStudioAppOutcomeCallable publishStudioAppCallable(const Model::PublishStudioAppRequest& request) const; PublishThingModelOutcome publishThingModel(const Model::PublishThingModelRequest &request)const; void publishThingModelAsync(const Model::PublishThingModelRequest& request, const PublishThingModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishThingModelOutcomeCallable publishThingModelCallable(const Model::PublishThingModelRequest& request) const; + PushSpeechOutcome pushSpeech(const Model::PushSpeechRequest &request)const; + void pushSpeechAsync(const Model::PushSpeechRequest& request, const PushSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PushSpeechOutcomeCallable pushSpeechCallable(const Model::PushSpeechRequest& request) const; QueryAppDeviceListOutcome queryAppDeviceList(const Model::QueryAppDeviceListRequest &request)const; void queryAppDeviceListAsync(const Model::QueryAppDeviceListRequest& request, const QueryAppDeviceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryAppDeviceListOutcomeCallable queryAppDeviceListCallable(const Model::QueryAppDeviceListRequest& request) const; @@ -2007,6 +2138,36 @@ namespace AlibabaCloud QuerySceneRuleOutcome querySceneRule(const Model::QuerySceneRuleRequest &request)const; void querySceneRuleAsync(const Model::QuerySceneRuleRequest& request, const QuerySceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySceneRuleOutcomeCallable querySceneRuleCallable(const Model::QuerySceneRuleRequest& request) const; + QuerySolutionDeviceGroupPageOutcome querySolutionDeviceGroupPage(const Model::QuerySolutionDeviceGroupPageRequest &request)const; + void querySolutionDeviceGroupPageAsync(const Model::QuerySolutionDeviceGroupPageRequest& request, const QuerySolutionDeviceGroupPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySolutionDeviceGroupPageOutcomeCallable querySolutionDeviceGroupPageCallable(const Model::QuerySolutionDeviceGroupPageRequest& request) const; + QuerySpeechOutcome querySpeech(const Model::QuerySpeechRequest &request)const; + void querySpeechAsync(const Model::QuerySpeechRequest& request, const QuerySpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechOutcomeCallable querySpeechCallable(const Model::QuerySpeechRequest& request) const; + QuerySpeechListOutcome querySpeechList(const Model::QuerySpeechListRequest &request)const; + void querySpeechListAsync(const Model::QuerySpeechListRequest& request, const QuerySpeechListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechListOutcomeCallable querySpeechListCallable(const Model::QuerySpeechListRequest& request) const; + QuerySpeechPushJobOutcome querySpeechPushJob(const Model::QuerySpeechPushJobRequest &request)const; + void querySpeechPushJobAsync(const Model::QuerySpeechPushJobRequest& request, const QuerySpeechPushJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechPushJobOutcomeCallable querySpeechPushJobCallable(const Model::QuerySpeechPushJobRequest& request) const; + QuerySpeechPushJobDeviceOutcome querySpeechPushJobDevice(const Model::QuerySpeechPushJobDeviceRequest &request)const; + void querySpeechPushJobDeviceAsync(const Model::QuerySpeechPushJobDeviceRequest& request, const QuerySpeechPushJobDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechPushJobDeviceOutcomeCallable querySpeechPushJobDeviceCallable(const Model::QuerySpeechPushJobDeviceRequest& request) const; + QuerySpeechPushJobSpeechOutcome querySpeechPushJobSpeech(const Model::QuerySpeechPushJobSpeechRequest &request)const; + void querySpeechPushJobSpeechAsync(const Model::QuerySpeechPushJobSpeechRequest& request, const QuerySpeechPushJobSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechPushJobSpeechOutcomeCallable querySpeechPushJobSpeechCallable(const Model::QuerySpeechPushJobSpeechRequest& request) const; + QueryStudioAppDomainListOpenOutcome queryStudioAppDomainListOpen(const Model::QueryStudioAppDomainListOpenRequest &request)const; + void queryStudioAppDomainListOpenAsync(const Model::QueryStudioAppDomainListOpenRequest& request, const QueryStudioAppDomainListOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryStudioAppDomainListOpenOutcomeCallable queryStudioAppDomainListOpenCallable(const Model::QueryStudioAppDomainListOpenRequest& request) const; + QueryStudioAppListOutcome queryStudioAppList(const Model::QueryStudioAppListRequest &request)const; + void queryStudioAppListAsync(const Model::QueryStudioAppListRequest& request, const QueryStudioAppListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryStudioAppListOutcomeCallable queryStudioAppListCallable(const Model::QueryStudioAppListRequest& request) const; + QueryStudioAppPageListOpenOutcome queryStudioAppPageListOpen(const Model::QueryStudioAppPageListOpenRequest &request)const; + void queryStudioAppPageListOpenAsync(const Model::QueryStudioAppPageListOpenRequest& request, const QueryStudioAppPageListOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryStudioAppPageListOpenOutcomeCallable queryStudioAppPageListOpenCallable(const Model::QueryStudioAppPageListOpenRequest& request) const; + QueryStudioProjectListOutcome queryStudioProjectList(const Model::QueryStudioProjectListRequest &request)const; + void queryStudioProjectListAsync(const Model::QueryStudioProjectListRequest& request, const QueryStudioProjectListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryStudioProjectListOutcomeCallable queryStudioProjectListCallable(const Model::QueryStudioProjectListRequest& request) const; QuerySubscribeRelationOutcome querySubscribeRelation(const Model::QuerySubscribeRelationRequest &request)const; void querySubscribeRelationAsync(const Model::QuerySubscribeRelationRequest& request, const QuerySubscribeRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySubscribeRelationOutcomeCallable querySubscribeRelationCallable(const Model::QuerySubscribeRelationRequest& request) const; @@ -2043,6 +2204,9 @@ namespace AlibabaCloud RefreshDeviceTunnelSharePasswordOutcome refreshDeviceTunnelSharePassword(const Model::RefreshDeviceTunnelSharePasswordRequest &request)const; void refreshDeviceTunnelSharePasswordAsync(const Model::RefreshDeviceTunnelSharePasswordRequest& request, const RefreshDeviceTunnelSharePasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefreshDeviceTunnelSharePasswordOutcomeCallable refreshDeviceTunnelSharePasswordCallable(const Model::RefreshDeviceTunnelSharePasswordRequest& request) const; + RefreshStudioAppTokenOpenOutcome refreshStudioAppTokenOpen(const Model::RefreshStudioAppTokenOpenRequest &request)const; + void refreshStudioAppTokenOpenAsync(const Model::RefreshStudioAppTokenOpenRequest& request, const RefreshStudioAppTokenOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshStudioAppTokenOpenOutcomeCallable refreshStudioAppTokenOpenCallable(const Model::RefreshStudioAppTokenOpenRequest& request) const; RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const; void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const; @@ -2085,6 +2249,12 @@ namespace AlibabaCloud SetProductCertInfoOutcome setProductCertInfo(const Model::SetProductCertInfoRequest &request)const; void setProductCertInfoAsync(const Model::SetProductCertInfoRequest& request, const SetProductCertInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetProductCertInfoOutcomeCallable setProductCertInfoCallable(const Model::SetProductCertInfoRequest& request) const; + SetStudioProjectCooperationOutcome setStudioProjectCooperation(const Model::SetStudioProjectCooperationRequest &request)const; + void setStudioProjectCooperationAsync(const Model::SetStudioProjectCooperationRequest& request, const SetStudioProjectCooperationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetStudioProjectCooperationOutcomeCallable setStudioProjectCooperationCallable(const Model::SetStudioProjectCooperationRequest& request) const; + SetupStudioAppAuthModeOpenOutcome setupStudioAppAuthModeOpen(const Model::SetupStudioAppAuthModeOpenRequest &request)const; + void setupStudioAppAuthModeOpenAsync(const Model::SetupStudioAppAuthModeOpenRequest& request, const SetupStudioAppAuthModeOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetupStudioAppAuthModeOpenOutcomeCallable setupStudioAppAuthModeOpenCallable(const Model::SetupStudioAppAuthModeOpenRequest& request) const; SpeechByCombinationOutcome speechByCombination(const Model::SpeechByCombinationRequest &request)const; void speechByCombinationAsync(const Model::SpeechByCombinationRequest& request, const SpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SpeechByCombinationOutcomeCallable speechByCombinationCallable(const Model::SpeechByCombinationRequest& request) const; @@ -2097,6 +2267,9 @@ namespace AlibabaCloud 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; + TestSpeechOutcome testSpeech(const Model::TestSpeechRequest &request)const; + void testSpeechAsync(const Model::TestSpeechRequest& request, const TestSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TestSpeechOutcomeCallable testSpeechCallable(const Model::TestSpeechRequest& 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; @@ -2160,6 +2333,9 @@ namespace AlibabaCloud UpdateSceneRuleOutcome updateSceneRule(const Model::UpdateSceneRuleRequest &request)const; void updateSceneRuleAsync(const Model::UpdateSceneRuleRequest& request, const UpdateSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSceneRuleOutcomeCallable updateSceneRuleCallable(const Model::UpdateSceneRuleRequest& request) const; + UpdateSpeechOutcome updateSpeech(const Model::UpdateSpeechRequest &request)const; + void updateSpeechAsync(const Model::UpdateSpeechRequest& request, const UpdateSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSpeechOutcomeCallable updateSpeechCallable(const Model::UpdateSpeechRequest& request) const; UpdateSubscribeRelationOutcome updateSubscribeRelation(const Model::UpdateSubscribeRelationRequest &request)const; void updateSubscribeRelationAsync(const Model::UpdateSubscribeRelationRequest& request, const UpdateSubscribeRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSubscribeRelationOutcomeCallable updateSubscribeRelationCallable(const Model::UpdateSubscribeRelationRequest& request) const; diff --git a/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h b/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h new file mode 100644 index 000000000..21b75d6ff --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_CREATESPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATESPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateSpeechRequest : public RpcServiceRequest + { + + public: + CreateSpeechRequest(); + ~CreateSpeechRequest(); + + std::string getVoice()const; + void setVoice(const std::string& voice); + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getText()const; + void setText(const std::string& text); + std::string getSpeechType()const; + void setSpeechType(const std::string& speechType); + int getVolume()const; + void setVolume(int volume); + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getSpeechRate()const; + void setSpeechRate(int speechRate); + + private: + std::string voice_; + std::string projectCode_; + std::string iotInstanceId_; + std::string text_; + std::string speechType_; + int volume_; + std::string bizCode_; + std::string apiProduct_; + std::string apiRevision_; + int speechRate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATESPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateSpeechResult.h b/iot/include/alibabacloud/iot/model/CreateSpeechResult.h new file mode 100644 index 000000000..0516d9642 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateSpeechResult.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_CREATESPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATESPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateSpeechResult : public ServiceResult + { + public: + + + CreateSpeechResult(); + explicit CreateSpeechResult(const std::string &payload); + ~CreateSpeechResult(); + 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_CREATESPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenRequest.h b/iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenRequest.h new file mode 100644 index 000000000..9b371d602 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenRequest.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_CREATESTUDIOAPPDOMAINOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATESTUDIOAPPDOMAINOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateStudioAppDomainOpenRequest : public RpcServiceRequest + { + + public: + CreateStudioAppDomainOpenRequest(); + ~CreateStudioAppDomainOpenRequest(); + + std::string getProtocol()const; + void setProtocol(const std::string& protocol); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getHost()const; + void setHost(const std::string& host); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string protocol_; + std::string iotInstanceId_; + std::string host_; + std::string projectId_; + std::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATESTUDIOAPPDOMAINOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenResult.h b/iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenResult.h new file mode 100644 index 000000000..6236a2c8a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/CreateStudioAppDomainOpenResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_CREATESTUDIOAPPDOMAINOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_CREATESTUDIOAPPDOMAINOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT CreateStudioAppDomainOpenResult : public ServiceResult + { + public: + struct Data + { + std::string tenantId; + std::string appId; + std::string projectId; + std::string host; + int id; + std::string isBeian; + std::string protocol; + }; + + + CreateStudioAppDomainOpenResult(); + explicit CreateStudioAppDomainOpenResult(const std::string &payload); + ~CreateStudioAppDomainOpenResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_CREATESTUDIOAPPDOMAINOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenRequest.h b/iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenRequest.h new file mode 100644 index 000000000..540d35d4a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_DELETESTUDIOAPPDOMAINOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETESTUDIOAPPDOMAINOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteStudioAppDomainOpenRequest : public RpcServiceRequest + { + + public: + DeleteStudioAppDomainOpenRequest(); + ~DeleteStudioAppDomainOpenRequest(); + + int getDomainId()const; + void setDomainId(int domainId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + int domainId_; + std::string iotInstanceId_; + std::string projectId_; + std::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETESTUDIOAPPDOMAINOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenResult.h b/iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenResult.h new file mode 100644 index 000000000..450951c1d --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteStudioAppDomainOpenResult.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_DELETESTUDIOAPPDOMAINOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETESTUDIOAPPDOMAINOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteStudioAppDomainOpenResult : public ServiceResult + { + public: + + + DeleteStudioAppDomainOpenResult(); + explicit DeleteStudioAppDomainOpenResult(const std::string &payload); + ~DeleteStudioAppDomainOpenResult(); + bool getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETESTUDIOAPPDOMAINOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetSpeechVoiceRequest.h b/iot/include/alibabacloud/iot/model/GetSpeechVoiceRequest.h new file mode 100644 index 000000000..4d786b072 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetSpeechVoiceRequest.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_GETSPEECHVOICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSPEECHVOICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetSpeechVoiceRequest : public RpcServiceRequest + { + + public: + GetSpeechVoiceRequest(); + ~GetSpeechVoiceRequest(); + + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSPEECHVOICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetSpeechVoiceResult.h b/iot/include/alibabacloud/iot/model/GetSpeechVoiceResult.h new file mode 100644 index 000000000..0cd2294d8 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetSpeechVoiceResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_GETSPEECHVOICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSPEECHVOICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetSpeechVoiceResult : public ServiceResult + { + public: + struct Items + { + struct Items1 + { + std::string value; + std::string label; + }; + std::vector voiceList; + std::string value; + std::string label; + }; + + + GetSpeechVoiceResult(); + explicit GetSpeechVoiceResult(const std::string &payload); + ~GetSpeechVoiceResult(); + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSPEECHVOICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h b/iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h new file mode 100644 index 000000000..6a247dba8 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.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_GETSTUDIOAPPTOKENOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSTUDIOAPPTOKENOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetStudioAppTokenOpenRequest : public RpcServiceRequest + { + + public: + GetStudioAppTokenOpenRequest(); + ~GetStudioAppTokenOpenRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getAppId()const; + void setAppId(const std::string& appId); + 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::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSTUDIOAPPTOKENOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenResult.h b/iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenResult.h new file mode 100644 index 000000000..8c405b6b1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetStudioAppTokenOpenResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_GETSTUDIOAPPTOKENOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSTUDIOAPPTOKENOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetStudioAppTokenOpenResult : public ServiceResult + { + public: + struct Data + { + std::string isEnable; + std::string type; + std::string bizType; + std::string token; + std::string bizId; + }; + + + GetStudioAppTokenOpenResult(); + explicit GetStudioAppTokenOpenResult(const std::string &payload); + ~GetStudioAppTokenOpenResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSTUDIOAPPTOKENOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishStudioAppRequest.h b/iot/include/alibabacloud/iot/model/PublishStudioAppRequest.h new file mode 100644 index 000000000..5ce88559a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishStudioAppRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_PUBLISHSTUDIOAPPREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHSTUDIOAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishStudioAppRequest : public RpcServiceRequest + { + + public: + PublishStudioAppRequest(); + ~PublishStudioAppRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string description_; + std::string iotInstanceId_; + std::string projectId_; + std::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHSTUDIOAPPREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PublishStudioAppResult.h b/iot/include/alibabacloud/iot/model/PublishStudioAppResult.h new file mode 100644 index 000000000..87b677f7f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PublishStudioAppResult.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_PUBLISHSTUDIOAPPRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_PUBLISHSTUDIOAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PublishStudioAppResult : public ServiceResult + { + public: + + + PublishStudioAppResult(); + explicit PublishStudioAppResult(const std::string &payload); + ~PublishStudioAppResult(); + bool getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUBLISHSTUDIOAPPRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PushSpeechRequest.h b/iot/include/alibabacloud/iot/model/PushSpeechRequest.h new file mode 100644 index 000000000..9545446f4 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PushSpeechRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_PUSHSPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_PUSHSPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PushSpeechRequest : public RpcServiceRequest + { + + public: + PushSpeechRequest(); + ~PushSpeechRequest(); + + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getPushMode()const; + void setPushMode(const std::string& pushMode); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::vector getSpeechCodeList()const; + void setSpeechCodeList(const std::vector& speechCodeList); + 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 projectCode_; + std::string iotId_; + std::string iotInstanceId_; + std::string pushMode_; + std::string groupId_; + std::vector speechCodeList_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PUSHSPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PushSpeechResult.h b/iot/include/alibabacloud/iot/model/PushSpeechResult.h new file mode 100644 index 000000000..b0ccfed80 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PushSpeechResult.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_PUSHSPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_PUSHSPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PushSpeechResult : public ServiceResult + { + public: + + + PushSpeechResult(); + explicit PushSpeechResult(const std::string &payload); + ~PushSpeechResult(); + 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_PUSHSPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageRequest.h b/iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageRequest.h new file mode 100644 index 000000000..fbfd32d95 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageRequest.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_QUERYSOLUTIONDEVICEGROUPPAGEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSOLUTIONDEVICEGROUPPAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySolutionDeviceGroupPageRequest : public RpcServiceRequest + { + + public: + QuerySolutionDeviceGroupPageRequest(); + ~QuerySolutionDeviceGroupPageRequest(); + + std::string getFuzzyGroupName()const; + void setFuzzyGroupName(const std::string& fuzzyGroupName); + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + int getPageId()const; + void setPageId(int pageId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string fuzzyGroupName_; + std::string projectCode_; + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSOLUTIONDEVICEGROUPPAGEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h b/iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h new file mode 100644 index 000000000..9331f41fc --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSOLUTIONDEVICEGROUPPAGERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSOLUTIONDEVICEGROUPPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySolutionDeviceGroupPageResult : public ServiceResult + { + public: + struct Data + { + struct ItemName + { + std::string groupName; + long gmtCreate; + std::string groupDesc; + long gmtModified; + std::string groupId; + long deviceCount; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QuerySolutionDeviceGroupPageResult(); + explicit QuerySolutionDeviceGroupPageResult(const std::string &payload); + ~QuerySolutionDeviceGroupPageResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSOLUTIONDEVICEGROUPPAGERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechListRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechListRequest.h new file mode 100644 index 000000000..d8ac7510b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechListRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLISTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechListRequest : public RpcServiceRequest + { + + public: + QuerySpeechListRequest(); + ~QuerySpeechListRequest(); + + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + int getPageId()const; + void setPageId(int pageId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string projectCode_; + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLISTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h new file mode 100644 index 000000000..02df48f62 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLISTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechListResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + struct Items1 + { + std::string speechCode; + std::string text; + std::string voice; + std::string bizCode; + }; + std::string speechType; + std::vector speechList; + std::string speechCode; + std::string text; + std::string voice; + std::string bizCode; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QuerySpeechListResult(); + explicit QuerySpeechListResult(const std::string &payload); + ~QuerySpeechListResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLISTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceRequest.h new file mode 100644 index 000000000..87c9a4857 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBDEVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechPushJobDeviceRequest : public RpcServiceRequest + { + + public: + QuerySpeechPushJobDeviceRequest(); + ~QuerySpeechPushJobDeviceRequest(); + + int getPageId()const; + void setPageId(int pageId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getJobCode()const; + void setJobCode(const std::string& jobCode); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string apiProduct_; + std::string jobCode_; + std::string apiRevision_; + std::string deviceName_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBDEVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceResult.h new file mode 100644 index 000000000..6029a00d2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobDeviceResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBDEVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechPushJobDeviceResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + std::string status; + long gmtModified; + std::string errorCode; + std::string errorMessage; + std::string deviceName; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QuerySpeechPushJobDeviceResult(); + explicit QuerySpeechPushJobDeviceResult(const std::string &payload); + ~QuerySpeechPushJobDeviceResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBDEVICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h new file mode 100644 index 000000000..57ec67dc0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechPushJobRequest : public RpcServiceRequest + { + + public: + QuerySpeechPushJobRequest(); + ~QuerySpeechPushJobRequest(); + + std::vector getStatusList()const; + void setStatusList(const std::vector& statusList); + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + int getPageId()const; + void setPageId(int pageId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getPushMode()const; + void setPushMode(const std::string& pushMode); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getJobCode()const; + void setJobCode(const std::string& jobCode); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::vector statusList_; + std::string projectCode_; + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string pushMode_; + std::string apiProduct_; + std::string jobCode_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechPushJobResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobResult.h new file mode 100644 index 000000000..44d20a942 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechPushJobResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + std::string status; + std::string groupName; + int speechNum; + long createdTime; + int totalDeviceNum; + int successDeviceNum; + int runningDeviceNum; + std::string code; + int failDeviceNum; + std::string pushMode; + std::string groupId; + std::string iotId; + long expiredTime; + bool speechStatus; + std::string productKey; + std::string deviceName; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QuerySpeechPushJobResult(); + explicit QuerySpeechPushJobResult(const std::string &payload); + ~QuerySpeechPushJobResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechRequest.h new file mode 100644 index 000000000..d5f7bb9e0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBSPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBSPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechPushJobSpeechRequest : public RpcServiceRequest + { + + public: + QuerySpeechPushJobSpeechRequest(); + ~QuerySpeechPushJobSpeechRequest(); + + int getPageId()const; + void setPageId(int pageId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getJobCode()const; + void setJobCode(const std::string& jobCode); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string apiProduct_; + std::string jobCode_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBSPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechResult.h new file mode 100644 index 000000000..3f4f39221 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechPushJobSpeechResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBSPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBSPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechPushJobSpeechResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + struct Items1 + { + std::string text; + std::string voice; + std::string bizCode; + }; + std::string speechType; + std::vector speechList; + std::string text; + std::string voice; + std::string bizCode; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QuerySpeechPushJobSpeechResult(); + explicit QuerySpeechPushJobSpeechResult(const std::string &payload); + ~QuerySpeechPushJobSpeechResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHPUSHJOBSPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechRequest.h new file mode 100644 index 000000000..6800a9e94 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechRequest.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_QUERYSPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechRequest : public RpcServiceRequest + { + + public: + QuerySpeechRequest(); + ~QuerySpeechRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getSpeechCode()const; + void setSpeechCode(const std::string& speechCode); + + private: + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + std::string speechCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechResult.h new file mode 100644 index 000000000..63a29f9c9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechResult : public ServiceResult + { + public: + struct Data + { + std::string speechType; + int volume; + std::string speechCode; + std::string text; + std::string audioFormat; + std::string voice; + int speechRate; + std::string bizCode; + }; + + + QuerySpeechResult(); + explicit QuerySpeechResult(const std::string &payload); + ~QuerySpeechResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenRequest.h b/iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenRequest.h new file mode 100644 index 000000000..4463cffb1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenRequest.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_QUERYSTUDIOAPPDOMAINLISTOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPDOMAINLISTOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioAppDomainListOpenRequest : public RpcServiceRequest + { + + public: + QueryStudioAppDomainListOpenRequest(); + ~QueryStudioAppDomainListOpenRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getAppId()const; + void setAppId(const std::string& appId); + 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::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPDOMAINLISTOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenResult.h b/iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenResult.h new file mode 100644 index 000000000..f1f5991f0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioAppDomainListOpenResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYSTUDIOAPPDOMAINLISTOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPDOMAINLISTOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioAppDomainListOpenResult : public ServiceResult + { + public: + struct Data + { + struct DomainInfo + { + std::string tenantId; + std::string gmtCreate; + std::string appId; + std::string projectId; + std::string gmtModified; + std::string host; + int id; + std::string isBeian; + std::string protocol; + }; + int pageSize; + int totalPage; + int total; + std::vector list; + int pageNo; + }; + + + QueryStudioAppDomainListOpenResult(); + explicit QueryStudioAppDomainListOpenResult(const std::string &payload); + ~QueryStudioAppDomainListOpenResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPDOMAINLISTOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioAppListRequest.h b/iot/include/alibabacloud/iot/model/QueryStudioAppListRequest.h new file mode 100644 index 000000000..9e5401cc9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioAppListRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPLISTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioAppListRequest : public RpcServiceRequest + { + + public: + QueryStudioAppListRequest(); + ~QueryStudioAppListRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::vector getTypes()const; + void setTypes(const std::vector& types); + std::string getFuzzyName()const; + void setFuzzyName(const std::string& fuzzyName); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + int pageSize_; + std::string projectId_; + std::vector types_; + std::string fuzzyName_; + int pageNo_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPLISTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioAppListResult.h b/iot/include/alibabacloud/iot/model/QueryStudioAppListResult.h new file mode 100644 index 000000000..fea537d87 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioAppListResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPLISTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioAppListResult : public ServiceResult + { + public: + struct Data + { + struct AppInfo + { + std::string type; + std::string gmtCreate; + std::string description; + std::string appId; + std::string appKey; + std::string projectId; + std::string gmtModified; + std::string gmtRelease; + std::string appSecret; + std::string name; + }; + int pageSize; + int totalPage; + int total; + std::vector list; + int pageNo; + }; + + + QueryStudioAppListResult(); + explicit QueryStudioAppListResult(const std::string &payload); + ~QueryStudioAppListResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPLISTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenRequest.h b/iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenRequest.h new file mode 100644 index 000000000..cb02e8f89 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPPAGELISTOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPPAGELISTOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioAppPageListOpenRequest : public RpcServiceRequest + { + + public: + QueryStudioAppPageListOpenRequest(); + ~QueryStudioAppPageListOpenRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + bool getIsRelease()const; + void setIsRelease(bool isRelease); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + int pageSize_; + std::string projectId_; + bool isRelease_; + int pageNo_; + std::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPPAGELISTOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenResult.h b/iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenResult.h new file mode 100644 index 000000000..f127b2553 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioAppPageListOpenResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_QUERYSTUDIOAPPPAGELISTOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPPAGELISTOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioAppPageListOpenResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + std::string pageId; + std::string path; + int isHidden; + int isHome; + std::string gmtCreate; + int isLoginPage; + std::string gmtModified; + int id; + std::string name; + }; + int pageSize; + int totalPage; + int total; + std::vector list; + int pageNo; + }; + + + QueryStudioAppPageListOpenResult(); + explicit QueryStudioAppPageListOpenResult(const std::string &payload); + ~QueryStudioAppPageListOpenResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOAPPPAGELISTOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioProjectListRequest.h b/iot/include/alibabacloud/iot/model/QueryStudioProjectListRequest.h new file mode 100644 index 000000000..d02151761 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioProjectListRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOPROJECTLISTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOPROJECTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioProjectListRequest : public RpcServiceRequest + { + + public: + QueryStudioProjectListRequest(); + ~QueryStudioProjectListRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getName()const; + void setName(const std::string& name); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + int pageSize_; + int pageNo_; + std::string apiProduct_; + std::string name_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOPROJECTLISTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryStudioProjectListResult.h b/iot/include/alibabacloud/iot/model/QueryStudioProjectListResult.h new file mode 100644 index 000000000..dce1d0227 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryStudioProjectListResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOPROJECTLISTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOPROJECTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryStudioProjectListResult : public ServiceResult + { + public: + struct Data + { + struct ProjectInfo + { + long gmtCreate; + std::string description; + long gmtModified; + std::string projectId; + std::string name; + }; + int pageSize; + int totalPage; + int total; + std::vector list; + int pageNo; + }; + + + QueryStudioProjectListResult(); + explicit QueryStudioProjectListResult(const std::string &payload); + ~QueryStudioProjectListResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSTUDIOPROJECTLISTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenRequest.h b/iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenRequest.h new file mode 100644 index 000000000..6852ea4e5 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenRequest.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_REFRESHSTUDIOAPPTOKENOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_REFRESHSTUDIOAPPTOKENOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT RefreshStudioAppTokenOpenRequest : public RpcServiceRequest + { + + public: + RefreshStudioAppTokenOpenRequest(); + ~RefreshStudioAppTokenOpenRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + std::string getAppId()const; + void setAppId(const std::string& appId); + 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::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_REFRESHSTUDIOAPPTOKENOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenResult.h b/iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenResult.h new file mode 100644 index 000000000..c6885946c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/RefreshStudioAppTokenOpenResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_REFRESHSTUDIOAPPTOKENOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_REFRESHSTUDIOAPPTOKENOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT RefreshStudioAppTokenOpenResult : public ServiceResult + { + public: + struct Data + { + std::string isEnable; + std::string type; + std::string bizType; + std::string token; + std::string bizId; + }; + + + RefreshStudioAppTokenOpenResult(); + explicit RefreshStudioAppTokenOpenResult(const std::string &payload); + ~RefreshStudioAppTokenOpenResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_REFRESHSTUDIOAPPTOKENOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SetStudioProjectCooperationRequest.h b/iot/include/alibabacloud/iot/model/SetStudioProjectCooperationRequest.h new file mode 100644 index 000000000..ebe81c999 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SetStudioProjectCooperationRequest.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_SETSTUDIOPROJECTCOOPERATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SETSTUDIOPROJECTCOOPERATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SetStudioProjectCooperationRequest : public RpcServiceRequest + { + + public: + SetStudioProjectCooperationRequest(); + ~SetStudioProjectCooperationRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SETSTUDIOPROJECTCOOPERATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SetStudioProjectCooperationResult.h b/iot/include/alibabacloud/iot/model/SetStudioProjectCooperationResult.h new file mode 100644 index 000000000..b42ed7258 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SetStudioProjectCooperationResult.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_SETSTUDIOPROJECTCOOPERATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SETSTUDIOPROJECTCOOPERATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SetStudioProjectCooperationResult : public ServiceResult + { + public: + + + SetStudioProjectCooperationResult(); + explicit SetStudioProjectCooperationResult(const std::string &payload); + ~SetStudioProjectCooperationResult(); + bool getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SETSTUDIOPROJECTCOOPERATIONRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenRequest.h b/iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenRequest.h new file mode 100644 index 000000000..24f76d13c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_SETUPSTUDIOAPPAUTHMODEOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SETUPSTUDIOAPPAUTHMODEOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SetupStudioAppAuthModeOpenRequest : public RpcServiceRequest + { + + public: + SetupStudioAppAuthModeOpenRequest(); + ~SetupStudioAppAuthModeOpenRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + int getAuthMode()const; + void setAuthMode(int authMode); + std::string getAppId()const; + void setAppId(const std::string& appId); + 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_; + int authMode_; + std::string appId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SETUPSTUDIOAPPAUTHMODEOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenResult.h b/iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenResult.h new file mode 100644 index 000000000..0b7ef1995 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_SETUPSTUDIOAPPAUTHMODEOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SETUPSTUDIOAPPAUTHMODEOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SetupStudioAppAuthModeOpenResult : public ServiceResult + { + public: + struct Data + { + struct TokenInfo + { + std::string isEnable; + std::string type; + std::string bizType; + std::string token; + std::string bizId; + }; + TokenInfo tokenInfo; + int authMode; + }; + + + SetupStudioAppAuthModeOpenResult(); + explicit SetupStudioAppAuthModeOpenResult(const std::string &payload); + ~SetupStudioAppAuthModeOpenResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SETUPSTUDIOAPPAUTHMODEOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TestSpeechRequest.h b/iot/include/alibabacloud/iot/model/TestSpeechRequest.h new file mode 100644 index 000000000..b77d59ef6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/TestSpeechRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_TESTSPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_TESTSPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT TestSpeechRequest : public RpcServiceRequest + { + + public: + TestSpeechRequest(); + ~TestSpeechRequest(); + + std::string getVoice()const; + void setVoice(const std::string& voice); + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getText()const; + void setText(const std::string& text); + std::string getSpeechType()const; + void setSpeechType(const std::string& speechType); + int getVolume()const; + void setVolume(int volume); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getSpeechRate()const; + void setSpeechRate(int speechRate); + + private: + std::string voice_; + std::string projectCode_; + std::string iotInstanceId_; + std::string text_; + std::string speechType_; + int volume_; + std::string apiProduct_; + std::string apiRevision_; + int speechRate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_TESTSPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TestSpeechResult.h b/iot/include/alibabacloud/iot/model/TestSpeechResult.h new file mode 100644 index 000000000..161365e1f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/TestSpeechResult.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_TESTSPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_TESTSPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT TestSpeechResult : public ServiceResult + { + public: + + + TestSpeechResult(); + explicit TestSpeechResult(const std::string &payload); + ~TestSpeechResult(); + std::vector getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_TESTSPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateSpeechRequest.h b/iot/include/alibabacloud/iot/model/UpdateSpeechRequest.h new file mode 100644 index 000000000..afdf8ea4d --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateSpeechRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_UPDATESPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATESPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateSpeechRequest : public RpcServiceRequest + { + + public: + UpdateSpeechRequest(); + ~UpdateSpeechRequest(); + + std::string getVoice()const; + void setVoice(const std::string& voice); + std::string getProjectCode()const; + void setProjectCode(const std::string& projectCode); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getVolume()const; + void setVolume(int volume); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + int getSpeechRate()const; + void setSpeechRate(int speechRate); + std::string getSpeechCode()const; + void setSpeechCode(const std::string& speechCode); + + private: + std::string voice_; + std::string projectCode_; + std::string iotInstanceId_; + int volume_; + std::string apiProduct_; + std::string apiRevision_; + int speechRate_; + std::string speechCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATESPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/UpdateSpeechResult.h b/iot/include/alibabacloud/iot/model/UpdateSpeechResult.h new file mode 100644 index 000000000..4d95c36d9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/UpdateSpeechResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_UPDATESPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_UPDATESPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT UpdateSpeechResult : public ServiceResult + { + public: + + + UpdateSpeechResult(); + explicit UpdateSpeechResult(const std::string &payload); + ~UpdateSpeechResult(); + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_UPDATESPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index b77220312..083d08cab 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -31,21 +31,21 @@ IotClient::IotClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::IotClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::IotClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "iot"); } IotClient::~IotClient() @@ -2463,6 +2463,78 @@ IotClient::CreateSceneRuleOutcomeCallable IotClient::createSceneRuleCallable(con return task->get_future(); } +IotClient::CreateSpeechOutcome IotClient::createSpeech(const CreateSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSpeechOutcome(CreateSpeechResult(outcome.result())); + else + return CreateSpeechOutcome(outcome.error()); +} + +void IotClient::createSpeechAsync(const CreateSpeechRequest& request, const CreateSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateSpeechOutcomeCallable IotClient::createSpeechCallable(const CreateSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::CreateStudioAppDomainOpenOutcome IotClient::createStudioAppDomainOpen(const CreateStudioAppDomainOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStudioAppDomainOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStudioAppDomainOpenOutcome(CreateStudioAppDomainOpenResult(outcome.result())); + else + return CreateStudioAppDomainOpenOutcome(outcome.error()); +} + +void IotClient::createStudioAppDomainOpenAsync(const CreateStudioAppDomainOpenRequest& request, const CreateStudioAppDomainOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStudioAppDomainOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::CreateStudioAppDomainOpenOutcomeCallable IotClient::createStudioAppDomainOpenCallable(const CreateStudioAppDomainOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStudioAppDomainOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::CreateSubscribeRelationOutcome IotClient::createSubscribeRelation(const CreateSubscribeRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3363,6 +3435,42 @@ IotClient::DeleteSpeechOutcomeCallable IotClient::deleteSpeechCallable(const Del return task->get_future(); } +IotClient::DeleteStudioAppDomainOpenOutcome IotClient::deleteStudioAppDomainOpen(const DeleteStudioAppDomainOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStudioAppDomainOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStudioAppDomainOpenOutcome(DeleteStudioAppDomainOpenResult(outcome.result())); + else + return DeleteStudioAppDomainOpenOutcome(outcome.error()); +} + +void IotClient::deleteStudioAppDomainOpenAsync(const DeleteStudioAppDomainOpenRequest& request, const DeleteStudioAppDomainOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStudioAppDomainOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteStudioAppDomainOpenOutcomeCallable IotClient::deleteStudioAppDomainOpenCallable(const DeleteStudioAppDomainOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStudioAppDomainOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteSubscribeRelationOutcome IotClient::deleteSubscribeRelation(const DeleteSubscribeRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,6 +4515,78 @@ IotClient::GetSceneRuleOutcomeCallable IotClient::getSceneRuleCallable(const Get return task->get_future(); } +IotClient::GetSpeechVoiceOutcome IotClient::getSpeechVoice(const GetSpeechVoiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSpeechVoiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSpeechVoiceOutcome(GetSpeechVoiceResult(outcome.result())); + else + return GetSpeechVoiceOutcome(outcome.error()); +} + +void IotClient::getSpeechVoiceAsync(const GetSpeechVoiceRequest& request, const GetSpeechVoiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSpeechVoice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetSpeechVoiceOutcomeCallable IotClient::getSpeechVoiceCallable(const GetSpeechVoiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSpeechVoice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::GetStudioAppTokenOpenOutcome IotClient::getStudioAppTokenOpen(const GetStudioAppTokenOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStudioAppTokenOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStudioAppTokenOpenOutcome(GetStudioAppTokenOpenResult(outcome.result())); + else + return GetStudioAppTokenOpenOutcome(outcome.error()); +} + +void IotClient::getStudioAppTokenOpenAsync(const GetStudioAppTokenOpenRequest& request, const GetStudioAppTokenOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStudioAppTokenOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetStudioAppTokenOpenOutcomeCallable IotClient::getStudioAppTokenOpenCallable(const GetStudioAppTokenOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStudioAppTokenOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetThingModelTslOutcome IotClient::getThingModelTsl(const GetThingModelTslRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5595,6 +5775,42 @@ IotClient::PubBroadcastOutcomeCallable IotClient::pubBroadcastCallable(const Pub return task->get_future(); } +IotClient::PublishStudioAppOutcome IotClient::publishStudioApp(const PublishStudioAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishStudioAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishStudioAppOutcome(PublishStudioAppResult(outcome.result())); + else + return PublishStudioAppOutcome(outcome.error()); +} + +void IotClient::publishStudioAppAsync(const PublishStudioAppRequest& request, const PublishStudioAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishStudioApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::PublishStudioAppOutcomeCallable IotClient::publishStudioAppCallable(const PublishStudioAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishStudioApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::PublishThingModelOutcome IotClient::publishThingModel(const PublishThingModelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5631,6 +5847,42 @@ IotClient::PublishThingModelOutcomeCallable IotClient::publishThingModelCallable return task->get_future(); } +IotClient::PushSpeechOutcome IotClient::pushSpeech(const PushSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushSpeechOutcome(PushSpeechResult(outcome.result())); + else + return PushSpeechOutcome(outcome.error()); +} + +void IotClient::pushSpeechAsync(const PushSpeechRequest& request, const PushSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::PushSpeechOutcomeCallable IotClient::pushSpeechCallable(const PushSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryAppDeviceListOutcome IotClient::queryAppDeviceList(const QueryAppDeviceListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7683,6 +7935,366 @@ IotClient::QuerySceneRuleOutcomeCallable IotClient::querySceneRuleCallable(const return task->get_future(); } +IotClient::QuerySolutionDeviceGroupPageOutcome IotClient::querySolutionDeviceGroupPage(const QuerySolutionDeviceGroupPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySolutionDeviceGroupPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySolutionDeviceGroupPageOutcome(QuerySolutionDeviceGroupPageResult(outcome.result())); + else + return QuerySolutionDeviceGroupPageOutcome(outcome.error()); +} + +void IotClient::querySolutionDeviceGroupPageAsync(const QuerySolutionDeviceGroupPageRequest& request, const QuerySolutionDeviceGroupPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySolutionDeviceGroupPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySolutionDeviceGroupPageOutcomeCallable IotClient::querySolutionDeviceGroupPageCallable(const QuerySolutionDeviceGroupPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySolutionDeviceGroupPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QuerySpeechOutcome IotClient::querySpeech(const QuerySpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechOutcome(QuerySpeechResult(outcome.result())); + else + return QuerySpeechOutcome(outcome.error()); +} + +void IotClient::querySpeechAsync(const QuerySpeechRequest& request, const QuerySpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechOutcomeCallable IotClient::querySpeechCallable(const QuerySpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QuerySpeechListOutcome IotClient::querySpeechList(const QuerySpeechListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechListOutcome(QuerySpeechListResult(outcome.result())); + else + return QuerySpeechListOutcome(outcome.error()); +} + +void IotClient::querySpeechListAsync(const QuerySpeechListRequest& request, const QuerySpeechListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeechList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechListOutcomeCallable IotClient::querySpeechListCallable(const QuerySpeechListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeechList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QuerySpeechPushJobOutcome IotClient::querySpeechPushJob(const QuerySpeechPushJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechPushJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechPushJobOutcome(QuerySpeechPushJobResult(outcome.result())); + else + return QuerySpeechPushJobOutcome(outcome.error()); +} + +void IotClient::querySpeechPushJobAsync(const QuerySpeechPushJobRequest& request, const QuerySpeechPushJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeechPushJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechPushJobOutcomeCallable IotClient::querySpeechPushJobCallable(const QuerySpeechPushJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeechPushJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QuerySpeechPushJobDeviceOutcome IotClient::querySpeechPushJobDevice(const QuerySpeechPushJobDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechPushJobDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechPushJobDeviceOutcome(QuerySpeechPushJobDeviceResult(outcome.result())); + else + return QuerySpeechPushJobDeviceOutcome(outcome.error()); +} + +void IotClient::querySpeechPushJobDeviceAsync(const QuerySpeechPushJobDeviceRequest& request, const QuerySpeechPushJobDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeechPushJobDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechPushJobDeviceOutcomeCallable IotClient::querySpeechPushJobDeviceCallable(const QuerySpeechPushJobDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeechPushJobDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QuerySpeechPushJobSpeechOutcome IotClient::querySpeechPushJobSpeech(const QuerySpeechPushJobSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechPushJobSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechPushJobSpeechOutcome(QuerySpeechPushJobSpeechResult(outcome.result())); + else + return QuerySpeechPushJobSpeechOutcome(outcome.error()); +} + +void IotClient::querySpeechPushJobSpeechAsync(const QuerySpeechPushJobSpeechRequest& request, const QuerySpeechPushJobSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeechPushJobSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechPushJobSpeechOutcomeCallable IotClient::querySpeechPushJobSpeechCallable(const QuerySpeechPushJobSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeechPushJobSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryStudioAppDomainListOpenOutcome IotClient::queryStudioAppDomainListOpen(const QueryStudioAppDomainListOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStudioAppDomainListOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStudioAppDomainListOpenOutcome(QueryStudioAppDomainListOpenResult(outcome.result())); + else + return QueryStudioAppDomainListOpenOutcome(outcome.error()); +} + +void IotClient::queryStudioAppDomainListOpenAsync(const QueryStudioAppDomainListOpenRequest& request, const QueryStudioAppDomainListOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStudioAppDomainListOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryStudioAppDomainListOpenOutcomeCallable IotClient::queryStudioAppDomainListOpenCallable(const QueryStudioAppDomainListOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStudioAppDomainListOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryStudioAppListOutcome IotClient::queryStudioAppList(const QueryStudioAppListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStudioAppListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStudioAppListOutcome(QueryStudioAppListResult(outcome.result())); + else + return QueryStudioAppListOutcome(outcome.error()); +} + +void IotClient::queryStudioAppListAsync(const QueryStudioAppListRequest& request, const QueryStudioAppListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStudioAppList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryStudioAppListOutcomeCallable IotClient::queryStudioAppListCallable(const QueryStudioAppListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStudioAppList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryStudioAppPageListOpenOutcome IotClient::queryStudioAppPageListOpen(const QueryStudioAppPageListOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStudioAppPageListOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStudioAppPageListOpenOutcome(QueryStudioAppPageListOpenResult(outcome.result())); + else + return QueryStudioAppPageListOpenOutcome(outcome.error()); +} + +void IotClient::queryStudioAppPageListOpenAsync(const QueryStudioAppPageListOpenRequest& request, const QueryStudioAppPageListOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStudioAppPageListOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryStudioAppPageListOpenOutcomeCallable IotClient::queryStudioAppPageListOpenCallable(const QueryStudioAppPageListOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStudioAppPageListOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::QueryStudioProjectListOutcome IotClient::queryStudioProjectList(const QueryStudioProjectListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryStudioProjectListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryStudioProjectListOutcome(QueryStudioProjectListResult(outcome.result())); + else + return QueryStudioProjectListOutcome(outcome.error()); +} + +void IotClient::queryStudioProjectListAsync(const QueryStudioProjectListRequest& request, const QueryStudioProjectListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryStudioProjectList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryStudioProjectListOutcomeCallable IotClient::queryStudioProjectListCallable(const QueryStudioProjectListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryStudioProjectList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QuerySubscribeRelationOutcome IotClient::querySubscribeRelation(const QuerySubscribeRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8115,6 +8727,42 @@ IotClient::RefreshDeviceTunnelSharePasswordOutcomeCallable IotClient::refreshDev return task->get_future(); } +IotClient::RefreshStudioAppTokenOpenOutcome IotClient::refreshStudioAppTokenOpen(const RefreshStudioAppTokenOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshStudioAppTokenOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshStudioAppTokenOpenOutcome(RefreshStudioAppTokenOpenResult(outcome.result())); + else + return RefreshStudioAppTokenOpenOutcome(outcome.error()); +} + +void IotClient::refreshStudioAppTokenOpenAsync(const RefreshStudioAppTokenOpenRequest& request, const RefreshStudioAppTokenOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshStudioAppTokenOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::RefreshStudioAppTokenOpenOutcomeCallable IotClient::refreshStudioAppTokenOpenCallable(const RefreshStudioAppTokenOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshStudioAppTokenOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::RegisterDeviceOutcome IotClient::registerDevice(const RegisterDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8619,6 +9267,78 @@ IotClient::SetProductCertInfoOutcomeCallable IotClient::setProductCertInfoCallab return task->get_future(); } +IotClient::SetStudioProjectCooperationOutcome IotClient::setStudioProjectCooperation(const SetStudioProjectCooperationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetStudioProjectCooperationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetStudioProjectCooperationOutcome(SetStudioProjectCooperationResult(outcome.result())); + else + return SetStudioProjectCooperationOutcome(outcome.error()); +} + +void IotClient::setStudioProjectCooperationAsync(const SetStudioProjectCooperationRequest& request, const SetStudioProjectCooperationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setStudioProjectCooperation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::SetStudioProjectCooperationOutcomeCallable IotClient::setStudioProjectCooperationCallable(const SetStudioProjectCooperationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setStudioProjectCooperation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IotClient::SetupStudioAppAuthModeOpenOutcome IotClient::setupStudioAppAuthModeOpen(const SetupStudioAppAuthModeOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetupStudioAppAuthModeOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetupStudioAppAuthModeOpenOutcome(SetupStudioAppAuthModeOpenResult(outcome.result())); + else + return SetupStudioAppAuthModeOpenOutcome(outcome.error()); +} + +void IotClient::setupStudioAppAuthModeOpenAsync(const SetupStudioAppAuthModeOpenRequest& request, const SetupStudioAppAuthModeOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setupStudioAppAuthModeOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::SetupStudioAppAuthModeOpenOutcomeCallable IotClient::setupStudioAppAuthModeOpenCallable(const SetupStudioAppAuthModeOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setupStudioAppAuthModeOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::SpeechByCombinationOutcome IotClient::speechByCombination(const SpeechByCombinationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8763,6 +9483,42 @@ IotClient::SyncSpeechByCombinationOutcomeCallable IotClient::syncSpeechByCombina return task->get_future(); } +IotClient::TestSpeechOutcome IotClient::testSpeech(const TestSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TestSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TestSpeechOutcome(TestSpeechResult(outcome.result())); + else + return TestSpeechOutcome(outcome.error()); +} + +void IotClient::testSpeechAsync(const TestSpeechRequest& request, const TestSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, testSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::TestSpeechOutcomeCallable IotClient::testSpeechCallable(const TestSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->testSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::TriggerSceneRuleOutcome IotClient::triggerSceneRule(const TriggerSceneRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9519,6 +10275,42 @@ IotClient::UpdateSceneRuleOutcomeCallable IotClient::updateSceneRuleCallable(con return task->get_future(); } +IotClient::UpdateSpeechOutcome IotClient::updateSpeech(const UpdateSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSpeechOutcome(UpdateSpeechResult(outcome.result())); + else + return UpdateSpeechOutcome(outcome.error()); +} + +void IotClient::updateSpeechAsync(const UpdateSpeechRequest& request, const UpdateSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::UpdateSpeechOutcomeCallable IotClient::updateSpeechCallable(const UpdateSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::UpdateSubscribeRelationOutcome IotClient::updateSubscribeRelation(const UpdateSubscribeRelationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/iot/src/model/CreateSpeechRequest.cc b/iot/src/model/CreateSpeechRequest.cc new file mode 100644 index 000000000..65d2742de --- /dev/null +++ b/iot/src/model/CreateSpeechRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::CreateSpeechRequest; + +CreateSpeechRequest::CreateSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSpeechRequest::~CreateSpeechRequest() +{} + +std::string CreateSpeechRequest::getVoice()const +{ + return voice_; +} + +void CreateSpeechRequest::setVoice(const std::string& voice) +{ + voice_ = voice; + setBodyParameter("Voice", voice); +} + +std::string CreateSpeechRequest::getProjectCode()const +{ + return projectCode_; +} + +void CreateSpeechRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +std::string CreateSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateSpeechRequest::getText()const +{ + return text_; +} + +void CreateSpeechRequest::setText(const std::string& text) +{ + text_ = text; + setBodyParameter("Text", text); +} + +std::string CreateSpeechRequest::getSpeechType()const +{ + return speechType_; +} + +void CreateSpeechRequest::setSpeechType(const std::string& speechType) +{ + speechType_ = speechType; + setBodyParameter("SpeechType", speechType); +} + +int CreateSpeechRequest::getVolume()const +{ + return volume_; +} + +void CreateSpeechRequest::setVolume(int volume) +{ + volume_ = volume; + setBodyParameter("Volume", std::to_string(volume)); +} + +std::string CreateSpeechRequest::getBizCode()const +{ + return bizCode_; +} + +void CreateSpeechRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setBodyParameter("BizCode", bizCode); +} + +std::string CreateSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int CreateSpeechRequest::getSpeechRate()const +{ + return speechRate_; +} + +void CreateSpeechRequest::setSpeechRate(int speechRate) +{ + speechRate_ = speechRate; + setBodyParameter("SpeechRate", std::to_string(speechRate)); +} + diff --git a/iot/src/model/CreateSpeechResult.cc b/iot/src/model/CreateSpeechResult.cc new file mode 100644 index 000000000..cb122cf6e --- /dev/null +++ b/iot/src/model/CreateSpeechResult.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; + +CreateSpeechResult::CreateSpeechResult() : + ServiceResult() +{} + +CreateSpeechResult::CreateSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSpeechResult::~CreateSpeechResult() +{} + +void CreateSpeechResult::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 CreateSpeechResult::getData()const +{ + return data_; +} + +std::string CreateSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateSpeechResult::getCode()const +{ + return code_; +} + +bool CreateSpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/CreateStudioAppDomainOpenRequest.cc b/iot/src/model/CreateStudioAppDomainOpenRequest.cc new file mode 100644 index 000000000..4918c9267 --- /dev/null +++ b/iot/src/model/CreateStudioAppDomainOpenRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::CreateStudioAppDomainOpenRequest; + +CreateStudioAppDomainOpenRequest::CreateStudioAppDomainOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "CreateStudioAppDomainOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateStudioAppDomainOpenRequest::~CreateStudioAppDomainOpenRequest() +{} + +std::string CreateStudioAppDomainOpenRequest::getProtocol()const +{ + return protocol_; +} + +void CreateStudioAppDomainOpenRequest::setProtocol(const std::string& protocol) +{ + protocol_ = protocol; + setBodyParameter("Protocol", protocol); +} + +std::string CreateStudioAppDomainOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void CreateStudioAppDomainOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string CreateStudioAppDomainOpenRequest::getHost()const +{ + return host_; +} + +void CreateStudioAppDomainOpenRequest::setHost(const std::string& host) +{ + host_ = host; + setBodyParameter("Host", host); +} + +std::string CreateStudioAppDomainOpenRequest::getProjectId()const +{ + return projectId_; +} + +void CreateStudioAppDomainOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string CreateStudioAppDomainOpenRequest::getAppId()const +{ + return appId_; +} + +void CreateStudioAppDomainOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string CreateStudioAppDomainOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void CreateStudioAppDomainOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string CreateStudioAppDomainOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void CreateStudioAppDomainOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/CreateStudioAppDomainOpenResult.cc b/iot/src/model/CreateStudioAppDomainOpenResult.cc new file mode 100644 index 000000000..2ec996b4e --- /dev/null +++ b/iot/src/model/CreateStudioAppDomainOpenResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +CreateStudioAppDomainOpenResult::CreateStudioAppDomainOpenResult() : + ServiceResult() +{} + +CreateStudioAppDomainOpenResult::CreateStudioAppDomainOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStudioAppDomainOpenResult::~CreateStudioAppDomainOpenResult() +{} + +void CreateStudioAppDomainOpenResult::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["TenantId"].isNull()) + data_.tenantId = dataNode["TenantId"].asString(); + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["ProjectId"].isNull()) + data_.projectId = dataNode["ProjectId"].asString(); + if(!dataNode["Host"].isNull()) + data_.host = dataNode["Host"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stoi(dataNode["Id"].asString()); + if(!dataNode["IsBeian"].isNull()) + data_.isBeian = dataNode["IsBeian"].asString(); + if(!dataNode["Protocol"].isNull()) + data_.protocol = dataNode["Protocol"].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(); + +} + +CreateStudioAppDomainOpenResult::Data CreateStudioAppDomainOpenResult::getData()const +{ + return data_; +} + +std::string CreateStudioAppDomainOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateStudioAppDomainOpenResult::getCode()const +{ + return code_; +} + +bool CreateStudioAppDomainOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteStudioAppDomainOpenRequest.cc b/iot/src/model/DeleteStudioAppDomainOpenRequest.cc new file mode 100644 index 000000000..27799f9cc --- /dev/null +++ b/iot/src/model/DeleteStudioAppDomainOpenRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteStudioAppDomainOpenRequest; + +DeleteStudioAppDomainOpenRequest::DeleteStudioAppDomainOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteStudioAppDomainOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteStudioAppDomainOpenRequest::~DeleteStudioAppDomainOpenRequest() +{} + +int DeleteStudioAppDomainOpenRequest::getDomainId()const +{ + return domainId_; +} + +void DeleteStudioAppDomainOpenRequest::setDomainId(int domainId) +{ + domainId_ = domainId; + setBodyParameter("DomainId", std::to_string(domainId)); +} + +std::string DeleteStudioAppDomainOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteStudioAppDomainOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteStudioAppDomainOpenRequest::getProjectId()const +{ + return projectId_; +} + +void DeleteStudioAppDomainOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string DeleteStudioAppDomainOpenRequest::getAppId()const +{ + return appId_; +} + +void DeleteStudioAppDomainOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string DeleteStudioAppDomainOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteStudioAppDomainOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteStudioAppDomainOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteStudioAppDomainOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteStudioAppDomainOpenResult.cc b/iot/src/model/DeleteStudioAppDomainOpenResult.cc new file mode 100644 index 000000000..6ed037e32 --- /dev/null +++ b/iot/src/model/DeleteStudioAppDomainOpenResult.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; + +DeleteStudioAppDomainOpenResult::DeleteStudioAppDomainOpenResult() : + ServiceResult() +{} + +DeleteStudioAppDomainOpenResult::DeleteStudioAppDomainOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStudioAppDomainOpenResult::~DeleteStudioAppDomainOpenResult() +{} + +void DeleteStudioAppDomainOpenResult::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() == "true"; + +} + +bool DeleteStudioAppDomainOpenResult::getData()const +{ + return data_; +} + +std::string DeleteStudioAppDomainOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteStudioAppDomainOpenResult::getCode()const +{ + return code_; +} + +bool DeleteStudioAppDomainOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetSpeechVoiceRequest.cc b/iot/src/model/GetSpeechVoiceRequest.cc new file mode 100644 index 000000000..9b1fe6c94 --- /dev/null +++ b/iot/src/model/GetSpeechVoiceRequest.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 + +using AlibabaCloud::Iot::Model::GetSpeechVoiceRequest; + +GetSpeechVoiceRequest::GetSpeechVoiceRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetSpeechVoice") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSpeechVoiceRequest::~GetSpeechVoiceRequest() +{} + +std::string GetSpeechVoiceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetSpeechVoiceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetSpeechVoiceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetSpeechVoiceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetSpeechVoiceResult.cc b/iot/src/model/GetSpeechVoiceResult.cc new file mode 100644 index 000000000..60ce95681 --- /dev/null +++ b/iot/src/model/GetSpeechVoiceResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetSpeechVoiceResult::GetSpeechVoiceResult() : + ServiceResult() +{} + +GetSpeechVoiceResult::GetSpeechVoiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSpeechVoiceResult::~GetSpeechVoiceResult() +{} + +void GetSpeechVoiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Items"]; + for (auto valueDataItems : allDataNode) + { + Items dataObject; + if(!valueDataItems["Value"].isNull()) + dataObject.value = valueDataItems["Value"].asString(); + if(!valueDataItems["Label"].isNull()) + dataObject.label = valueDataItems["Label"].asString(); + auto allVoiceListNode = valueDataItems["VoiceList"]["Items"]; + for (auto valueDataItemsVoiceListItems : allVoiceListNode) + { + Items::Items1 voiceListObject; + if(!valueDataItemsVoiceListItems["Value"].isNull()) + voiceListObject.value = valueDataItemsVoiceListItems["Value"].asString(); + if(!valueDataItemsVoiceListItems["Label"].isNull()) + voiceListObject.label = valueDataItemsVoiceListItems["Label"].asString(); + dataObject.voiceList.push_back(voiceListObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector GetSpeechVoiceResult::getData()const +{ + return data_; +} + +std::string GetSpeechVoiceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetSpeechVoiceResult::getCode()const +{ + return code_; +} + +bool GetSpeechVoiceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetStudioAppTokenOpenRequest.cc b/iot/src/model/GetStudioAppTokenOpenRequest.cc new file mode 100644 index 000000000..674963647 --- /dev/null +++ b/iot/src/model/GetStudioAppTokenOpenRequest.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::GetStudioAppTokenOpenRequest; + +GetStudioAppTokenOpenRequest::GetStudioAppTokenOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetStudioAppTokenOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +GetStudioAppTokenOpenRequest::~GetStudioAppTokenOpenRequest() +{} + +std::string GetStudioAppTokenOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetStudioAppTokenOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string GetStudioAppTokenOpenRequest::getProjectId()const +{ + return projectId_; +} + +void GetStudioAppTokenOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string GetStudioAppTokenOpenRequest::getAppId()const +{ + return appId_; +} + +void GetStudioAppTokenOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string GetStudioAppTokenOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetStudioAppTokenOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetStudioAppTokenOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetStudioAppTokenOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetStudioAppTokenOpenResult.cc b/iot/src/model/GetStudioAppTokenOpenResult.cc new file mode 100644 index 000000000..1fc45060c --- /dev/null +++ b/iot/src/model/GetStudioAppTokenOpenResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetStudioAppTokenOpenResult::GetStudioAppTokenOpenResult() : + ServiceResult() +{} + +GetStudioAppTokenOpenResult::GetStudioAppTokenOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStudioAppTokenOpenResult::~GetStudioAppTokenOpenResult() +{} + +void GetStudioAppTokenOpenResult::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["IsEnable"].isNull()) + data_.isEnable = dataNode["IsEnable"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["BizType"].isNull()) + data_.bizType = dataNode["BizType"].asString(); + if(!dataNode["Token"].isNull()) + data_.token = dataNode["Token"].asString(); + if(!dataNode["BizId"].isNull()) + data_.bizId = dataNode["BizId"].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(); + +} + +GetStudioAppTokenOpenResult::Data GetStudioAppTokenOpenResult::getData()const +{ + return data_; +} + +std::string GetStudioAppTokenOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetStudioAppTokenOpenResult::getCode()const +{ + return code_; +} + +bool GetStudioAppTokenOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/PublishStudioAppRequest.cc b/iot/src/model/PublishStudioAppRequest.cc new file mode 100644 index 000000000..6bb9d9fbe --- /dev/null +++ b/iot/src/model/PublishStudioAppRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::PublishStudioAppRequest; + +PublishStudioAppRequest::PublishStudioAppRequest() : + RpcServiceRequest("iot", "2018-01-20", "PublishStudioApp") +{ + setMethod(HttpRequest::Method::Post); +} + +PublishStudioAppRequest::~PublishStudioAppRequest() +{} + +std::string PublishStudioAppRequest::getDescription()const +{ + return description_; +} + +void PublishStudioAppRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string PublishStudioAppRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void PublishStudioAppRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string PublishStudioAppRequest::getProjectId()const +{ + return projectId_; +} + +void PublishStudioAppRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string PublishStudioAppRequest::getAppId()const +{ + return appId_; +} + +void PublishStudioAppRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string PublishStudioAppRequest::getApiProduct()const +{ + return apiProduct_; +} + +void PublishStudioAppRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string PublishStudioAppRequest::getApiRevision()const +{ + return apiRevision_; +} + +void PublishStudioAppRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/PublishStudioAppResult.cc b/iot/src/model/PublishStudioAppResult.cc new file mode 100644 index 000000000..96f014b35 --- /dev/null +++ b/iot/src/model/PublishStudioAppResult.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; + +PublishStudioAppResult::PublishStudioAppResult() : + ServiceResult() +{} + +PublishStudioAppResult::PublishStudioAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishStudioAppResult::~PublishStudioAppResult() +{} + +void PublishStudioAppResult::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() == "true"; + +} + +bool PublishStudioAppResult::getData()const +{ + return data_; +} + +std::string PublishStudioAppResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string PublishStudioAppResult::getCode()const +{ + return code_; +} + +bool PublishStudioAppResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/PushSpeechRequest.cc b/iot/src/model/PushSpeechRequest.cc new file mode 100644 index 000000000..0c975e4eb --- /dev/null +++ b/iot/src/model/PushSpeechRequest.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::PushSpeechRequest; + +PushSpeechRequest::PushSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "PushSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +PushSpeechRequest::~PushSpeechRequest() +{} + +std::string PushSpeechRequest::getProjectCode()const +{ + return projectCode_; +} + +void PushSpeechRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +std::string PushSpeechRequest::getIotId()const +{ + return iotId_; +} + +void PushSpeechRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::string PushSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void PushSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string PushSpeechRequest::getPushMode()const +{ + return pushMode_; +} + +void PushSpeechRequest::setPushMode(const std::string& pushMode) +{ + pushMode_ = pushMode; + setBodyParameter("PushMode", pushMode); +} + +std::string PushSpeechRequest::getGroupId()const +{ + return groupId_; +} + +void PushSpeechRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::vector PushSpeechRequest::getSpeechCodeList()const +{ + return speechCodeList_; +} + +void PushSpeechRequest::setSpeechCodeList(const std::vector& speechCodeList) +{ + speechCodeList_ = speechCodeList; + for(int dep1 = 0; dep1!= speechCodeList.size(); dep1++) { + setBodyParameter("SpeechCodeList."+ std::to_string(dep1), speechCodeList.at(dep1)); + } +} + +std::string PushSpeechRequest::getProductKey()const +{ + return productKey_; +} + +void PushSpeechRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string PushSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void PushSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string PushSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void PushSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string PushSpeechRequest::getDeviceName()const +{ + return deviceName_; +} + +void PushSpeechRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/PushSpeechResult.cc b/iot/src/model/PushSpeechResult.cc new file mode 100644 index 000000000..d130516b8 --- /dev/null +++ b/iot/src/model/PushSpeechResult.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; + +PushSpeechResult::PushSpeechResult() : + ServiceResult() +{} + +PushSpeechResult::PushSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PushSpeechResult::~PushSpeechResult() +{} + +void PushSpeechResult::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 PushSpeechResult::getData()const +{ + return data_; +} + +std::string PushSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string PushSpeechResult::getCode()const +{ + return code_; +} + +bool PushSpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySolutionDeviceGroupPageRequest.cc b/iot/src/model/QuerySolutionDeviceGroupPageRequest.cc new file mode 100644 index 000000000..8c801e4ff --- /dev/null +++ b/iot/src/model/QuerySolutionDeviceGroupPageRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QuerySolutionDeviceGroupPageRequest; + +QuerySolutionDeviceGroupPageRequest::QuerySolutionDeviceGroupPageRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySolutionDeviceGroupPage") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySolutionDeviceGroupPageRequest::~QuerySolutionDeviceGroupPageRequest() +{} + +std::string QuerySolutionDeviceGroupPageRequest::getFuzzyGroupName()const +{ + return fuzzyGroupName_; +} + +void QuerySolutionDeviceGroupPageRequest::setFuzzyGroupName(const std::string& fuzzyGroupName) +{ + fuzzyGroupName_ = fuzzyGroupName; + setParameter("FuzzyGroupName", fuzzyGroupName); +} + +std::string QuerySolutionDeviceGroupPageRequest::getProjectCode()const +{ + return projectCode_; +} + +void QuerySolutionDeviceGroupPageRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setParameter("ProjectCode", projectCode); +} + +int QuerySolutionDeviceGroupPageRequest::getPageId()const +{ + return pageId_; +} + +void QuerySolutionDeviceGroupPageRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setParameter("PageId", std::to_string(pageId)); +} + +std::string QuerySolutionDeviceGroupPageRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySolutionDeviceGroupPageRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int QuerySolutionDeviceGroupPageRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySolutionDeviceGroupPageRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySolutionDeviceGroupPageRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySolutionDeviceGroupPageRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySolutionDeviceGroupPageRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySolutionDeviceGroupPageRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QuerySolutionDeviceGroupPageResult.cc b/iot/src/model/QuerySolutionDeviceGroupPageResult.cc new file mode 100644 index 000000000..955fbd519 --- /dev/null +++ b/iot/src/model/QuerySolutionDeviceGroupPageResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QuerySolutionDeviceGroupPageResult::QuerySolutionDeviceGroupPageResult() : + ServiceResult() +{} + +QuerySolutionDeviceGroupPageResult::QuerySolutionDeviceGroupPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySolutionDeviceGroupPageResult::~QuerySolutionDeviceGroupPageResult() +{} + +void QuerySolutionDeviceGroupPageResult::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["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allListNode = dataNode["List"]["itemName"]; + for (auto dataNodeListitemName : allListNode) + { + Data::ItemName itemNameObject; + if(!dataNodeListitemName["GmtCreate"].isNull()) + itemNameObject.gmtCreate = std::stol(dataNodeListitemName["GmtCreate"].asString()); + if(!dataNodeListitemName["GmtModified"].isNull()) + itemNameObject.gmtModified = std::stol(dataNodeListitemName["GmtModified"].asString()); + if(!dataNodeListitemName["GroupId"].isNull()) + itemNameObject.groupId = dataNodeListitemName["GroupId"].asString(); + if(!dataNodeListitemName["GroupName"].isNull()) + itemNameObject.groupName = dataNodeListitemName["GroupName"].asString(); + if(!dataNodeListitemName["GroupDesc"].isNull()) + itemNameObject.groupDesc = dataNodeListitemName["GroupDesc"].asString(); + if(!dataNodeListitemName["DeviceCount"].isNull()) + itemNameObject.deviceCount = std::stol(dataNodeListitemName["DeviceCount"].asString()); + data_.list.push_back(itemNameObject); + } + 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(); + +} + +QuerySolutionDeviceGroupPageResult::Data QuerySolutionDeviceGroupPageResult::getData()const +{ + return data_; +} + +std::string QuerySolutionDeviceGroupPageResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySolutionDeviceGroupPageResult::getCode()const +{ + return code_; +} + +bool QuerySolutionDeviceGroupPageResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechListRequest.cc b/iot/src/model/QuerySpeechListRequest.cc new file mode 100644 index 000000000..8845d5a2a --- /dev/null +++ b/iot/src/model/QuerySpeechListRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QuerySpeechListRequest; + +QuerySpeechListRequest::QuerySpeechListRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeechList") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechListRequest::~QuerySpeechListRequest() +{} + +std::string QuerySpeechListRequest::getProjectCode()const +{ + return projectCode_; +} + +void QuerySpeechListRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +int QuerySpeechListRequest::getPageId()const +{ + return pageId_; +} + +void QuerySpeechListRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QuerySpeechListRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechListRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QuerySpeechListRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySpeechListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySpeechListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QuerySpeechListResult.cc b/iot/src/model/QuerySpeechListResult.cc new file mode 100644 index 000000000..8b283ed2c --- /dev/null +++ b/iot/src/model/QuerySpeechListResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QuerySpeechListResult::QuerySpeechListResult() : + ServiceResult() +{} + +QuerySpeechListResult::QuerySpeechListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechListResult::~QuerySpeechListResult() +{} + +void QuerySpeechListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allListNode = dataNode["List"]["Items"]; + for (auto dataNodeListItems : allListNode) + { + Data::Items itemsObject; + if(!dataNodeListItems["SpeechCode"].isNull()) + itemsObject.speechCode = dataNodeListItems["SpeechCode"].asString(); + if(!dataNodeListItems["BizCode"].isNull()) + itemsObject.bizCode = dataNodeListItems["BizCode"].asString(); + if(!dataNodeListItems["Text"].isNull()) + itemsObject.text = dataNodeListItems["Text"].asString(); + if(!dataNodeListItems["Voice"].isNull()) + itemsObject.voice = dataNodeListItems["Voice"].asString(); + if(!dataNodeListItems["SpeechType"].isNull()) + itemsObject.speechType = dataNodeListItems["SpeechType"].asString(); + auto allSpeechListNode = dataNodeListItems["SpeechList"]["Items"]; + for (auto dataNodeListItemsSpeechListItems : allSpeechListNode) + { + Data::Items::Items1 speechListObject; + if(!dataNodeListItemsSpeechListItems["SpeechCode"].isNull()) + speechListObject.speechCode = dataNodeListItemsSpeechListItems["SpeechCode"].asString(); + if(!dataNodeListItemsSpeechListItems["BizCode"].isNull()) + speechListObject.bizCode = dataNodeListItemsSpeechListItems["BizCode"].asString(); + if(!dataNodeListItemsSpeechListItems["Text"].isNull()) + speechListObject.text = dataNodeListItemsSpeechListItems["Text"].asString(); + if(!dataNodeListItemsSpeechListItems["Voice"].isNull()) + speechListObject.voice = dataNodeListItemsSpeechListItems["Voice"].asString(); + itemsObject.speechList.push_back(speechListObject); + } + data_.list.push_back(itemsObject); + } + 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(); + +} + +QuerySpeechListResult::Data QuerySpeechListResult::getData()const +{ + return data_; +} + +std::string QuerySpeechListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechListResult::getCode()const +{ + return code_; +} + +bool QuerySpeechListResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechPushJobDeviceRequest.cc b/iot/src/model/QuerySpeechPushJobDeviceRequest.cc new file mode 100644 index 000000000..8305871d7 --- /dev/null +++ b/iot/src/model/QuerySpeechPushJobDeviceRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QuerySpeechPushJobDeviceRequest; + +QuerySpeechPushJobDeviceRequest::QuerySpeechPushJobDeviceRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeechPushJobDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechPushJobDeviceRequest::~QuerySpeechPushJobDeviceRequest() +{} + +int QuerySpeechPushJobDeviceRequest::getPageId()const +{ + return pageId_; +} + +void QuerySpeechPushJobDeviceRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QuerySpeechPushJobDeviceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechPushJobDeviceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QuerySpeechPushJobDeviceRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySpeechPushJobDeviceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySpeechPushJobDeviceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechPushJobDeviceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechPushJobDeviceRequest::getJobCode()const +{ + return jobCode_; +} + +void QuerySpeechPushJobDeviceRequest::setJobCode(const std::string& jobCode) +{ + jobCode_ = jobCode; + setBodyParameter("JobCode", jobCode); +} + +std::string QuerySpeechPushJobDeviceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechPushJobDeviceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QuerySpeechPushJobDeviceRequest::getDeviceName()const +{ + return deviceName_; +} + +void QuerySpeechPushJobDeviceRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + +std::string QuerySpeechPushJobDeviceRequest::getStatus()const +{ + return status_; +} + +void QuerySpeechPushJobDeviceRequest::setStatus(const std::string& status) +{ + status_ = status; + setBodyParameter("Status", status); +} + diff --git a/iot/src/model/QuerySpeechPushJobDeviceResult.cc b/iot/src/model/QuerySpeechPushJobDeviceResult.cc new file mode 100644 index 000000000..72444bdc1 --- /dev/null +++ b/iot/src/model/QuerySpeechPushJobDeviceResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QuerySpeechPushJobDeviceResult::QuerySpeechPushJobDeviceResult() : + ServiceResult() +{} + +QuerySpeechPushJobDeviceResult::QuerySpeechPushJobDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechPushJobDeviceResult::~QuerySpeechPushJobDeviceResult() +{} + +void QuerySpeechPushJobDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allListNode = dataNode["List"]["Items"]; + for (auto dataNodeListItems : allListNode) + { + Data::Items itemsObject; + if(!dataNodeListItems["GmtModified"].isNull()) + itemsObject.gmtModified = std::stol(dataNodeListItems["GmtModified"].asString()); + if(!dataNodeListItems["Status"].isNull()) + itemsObject.status = dataNodeListItems["Status"].asString(); + if(!dataNodeListItems["DeviceName"].isNull()) + itemsObject.deviceName = dataNodeListItems["DeviceName"].asString(); + if(!dataNodeListItems["ErrorCode"].isNull()) + itemsObject.errorCode = dataNodeListItems["ErrorCode"].asString(); + if(!dataNodeListItems["ErrorMessage"].isNull()) + itemsObject.errorMessage = dataNodeListItems["ErrorMessage"].asString(); + data_.list.push_back(itemsObject); + } + 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(); + +} + +QuerySpeechPushJobDeviceResult::Data QuerySpeechPushJobDeviceResult::getData()const +{ + return data_; +} + +std::string QuerySpeechPushJobDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechPushJobDeviceResult::getCode()const +{ + return code_; +} + +bool QuerySpeechPushJobDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechPushJobRequest.cc b/iot/src/model/QuerySpeechPushJobRequest.cc new file mode 100644 index 000000000..67b4b9c53 --- /dev/null +++ b/iot/src/model/QuerySpeechPushJobRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::QuerySpeechPushJobRequest; + +QuerySpeechPushJobRequest::QuerySpeechPushJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeechPushJob") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechPushJobRequest::~QuerySpeechPushJobRequest() +{} + +std::vector QuerySpeechPushJobRequest::getStatusList()const +{ + return statusList_; +} + +void QuerySpeechPushJobRequest::setStatusList(const std::vector& statusList) +{ + statusList_ = statusList; + for(int dep1 = 0; dep1!= statusList.size(); dep1++) { + setBodyParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1)); + } +} + +std::string QuerySpeechPushJobRequest::getProjectCode()const +{ + return projectCode_; +} + +void QuerySpeechPushJobRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +int QuerySpeechPushJobRequest::getPageId()const +{ + return pageId_; +} + +void QuerySpeechPushJobRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QuerySpeechPushJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechPushJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QuerySpeechPushJobRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySpeechPushJobRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySpeechPushJobRequest::getPushMode()const +{ + return pushMode_; +} + +void QuerySpeechPushJobRequest::setPushMode(const std::string& pushMode) +{ + pushMode_ = pushMode; + setBodyParameter("PushMode", pushMode); +} + +std::string QuerySpeechPushJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechPushJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechPushJobRequest::getJobCode()const +{ + return jobCode_; +} + +void QuerySpeechPushJobRequest::setJobCode(const std::string& jobCode) +{ + jobCode_ = jobCode; + setParameter("JobCode", jobCode); +} + +std::string QuerySpeechPushJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechPushJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QuerySpeechPushJobResult.cc b/iot/src/model/QuerySpeechPushJobResult.cc new file mode 100644 index 000000000..20551eab7 --- /dev/null +++ b/iot/src/model/QuerySpeechPushJobResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QuerySpeechPushJobResult::QuerySpeechPushJobResult() : + ServiceResult() +{} + +QuerySpeechPushJobResult::QuerySpeechPushJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechPushJobResult::~QuerySpeechPushJobResult() +{} + +void QuerySpeechPushJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allListNode = dataNode["List"]["Items"]; + for (auto dataNodeListItems : allListNode) + { + Data::Items itemsObject; + if(!dataNodeListItems["Code"].isNull()) + itemsObject.code = dataNodeListItems["Code"].asString(); + if(!dataNodeListItems["ExpiredTime"].isNull()) + itemsObject.expiredTime = std::stol(dataNodeListItems["ExpiredTime"].asString()); + if(!dataNodeListItems["PushMode"].isNull()) + itemsObject.pushMode = dataNodeListItems["PushMode"].asString(); + if(!dataNodeListItems["IotId"].isNull()) + itemsObject.iotId = dataNodeListItems["IotId"].asString(); + if(!dataNodeListItems["Status"].isNull()) + itemsObject.status = dataNodeListItems["Status"].asString(); + if(!dataNodeListItems["CreatedTime"].isNull()) + itemsObject.createdTime = std::stol(dataNodeListItems["CreatedTime"].asString()); + if(!dataNodeListItems["TotalDeviceNum"].isNull()) + itemsObject.totalDeviceNum = std::stoi(dataNodeListItems["TotalDeviceNum"].asString()); + if(!dataNodeListItems["SuccessDeviceNum"].isNull()) + itemsObject.successDeviceNum = std::stoi(dataNodeListItems["SuccessDeviceNum"].asString()); + if(!dataNodeListItems["SpeechStatus"].isNull()) + itemsObject.speechStatus = dataNodeListItems["SpeechStatus"].asString() == "true"; + if(!dataNodeListItems["FailDeviceNum"].isNull()) + itemsObject.failDeviceNum = std::stoi(dataNodeListItems["FailDeviceNum"].asString()); + if(!dataNodeListItems["SpeechNum"].isNull()) + itemsObject.speechNum = std::stoi(dataNodeListItems["SpeechNum"].asString()); + if(!dataNodeListItems["RunningDeviceNum"].isNull()) + itemsObject.runningDeviceNum = std::stoi(dataNodeListItems["RunningDeviceNum"].asString()); + if(!dataNodeListItems["GroupId"].isNull()) + itemsObject.groupId = dataNodeListItems["GroupId"].asString(); + if(!dataNodeListItems["GroupName"].isNull()) + itemsObject.groupName = dataNodeListItems["GroupName"].asString(); + if(!dataNodeListItems["ProductKey"].isNull()) + itemsObject.productKey = dataNodeListItems["ProductKey"].asString(); + if(!dataNodeListItems["DeviceName"].isNull()) + itemsObject.deviceName = dataNodeListItems["DeviceName"].asString(); + data_.list.push_back(itemsObject); + } + 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(); + +} + +QuerySpeechPushJobResult::Data QuerySpeechPushJobResult::getData()const +{ + return data_; +} + +std::string QuerySpeechPushJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechPushJobResult::getCode()const +{ + return code_; +} + +bool QuerySpeechPushJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechPushJobSpeechRequest.cc b/iot/src/model/QuerySpeechPushJobSpeechRequest.cc new file mode 100644 index 000000000..38efccb99 --- /dev/null +++ b/iot/src/model/QuerySpeechPushJobSpeechRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QuerySpeechPushJobSpeechRequest; + +QuerySpeechPushJobSpeechRequest::QuerySpeechPushJobSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeechPushJobSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechPushJobSpeechRequest::~QuerySpeechPushJobSpeechRequest() +{} + +int QuerySpeechPushJobSpeechRequest::getPageId()const +{ + return pageId_; +} + +void QuerySpeechPushJobSpeechRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QuerySpeechPushJobSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechPushJobSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QuerySpeechPushJobSpeechRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySpeechPushJobSpeechRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySpeechPushJobSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechPushJobSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechPushJobSpeechRequest::getJobCode()const +{ + return jobCode_; +} + +void QuerySpeechPushJobSpeechRequest::setJobCode(const std::string& jobCode) +{ + jobCode_ = jobCode; + setBodyParameter("JobCode", jobCode); +} + +std::string QuerySpeechPushJobSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechPushJobSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QuerySpeechPushJobSpeechResult.cc b/iot/src/model/QuerySpeechPushJobSpeechResult.cc new file mode 100644 index 000000000..dad760bfe --- /dev/null +++ b/iot/src/model/QuerySpeechPushJobSpeechResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QuerySpeechPushJobSpeechResult::QuerySpeechPushJobSpeechResult() : + ServiceResult() +{} + +QuerySpeechPushJobSpeechResult::QuerySpeechPushJobSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechPushJobSpeechResult::~QuerySpeechPushJobSpeechResult() +{} + +void QuerySpeechPushJobSpeechResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allListNode = dataNode["List"]["Items"]; + for (auto dataNodeListItems : allListNode) + { + Data::Items itemsObject; + if(!dataNodeListItems["BizCode"].isNull()) + itemsObject.bizCode = dataNodeListItems["BizCode"].asString(); + if(!dataNodeListItems["Text"].isNull()) + itemsObject.text = dataNodeListItems["Text"].asString(); + if(!dataNodeListItems["Voice"].isNull()) + itemsObject.voice = dataNodeListItems["Voice"].asString(); + if(!dataNodeListItems["SpeechType"].isNull()) + itemsObject.speechType = dataNodeListItems["SpeechType"].asString(); + auto allSpeechListNode = dataNodeListItems["SpeechList"]["Items"]; + for (auto dataNodeListItemsSpeechListItems : allSpeechListNode) + { + Data::Items::Items1 speechListObject; + if(!dataNodeListItemsSpeechListItems["BizCode"].isNull()) + speechListObject.bizCode = dataNodeListItemsSpeechListItems["BizCode"].asString(); + if(!dataNodeListItemsSpeechListItems["Text"].isNull()) + speechListObject.text = dataNodeListItemsSpeechListItems["Text"].asString(); + if(!dataNodeListItemsSpeechListItems["Voice"].isNull()) + speechListObject.voice = dataNodeListItemsSpeechListItems["Voice"].asString(); + itemsObject.speechList.push_back(speechListObject); + } + data_.list.push_back(itemsObject); + } + 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(); + +} + +QuerySpeechPushJobSpeechResult::Data QuerySpeechPushJobSpeechResult::getData()const +{ + return data_; +} + +std::string QuerySpeechPushJobSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechPushJobSpeechResult::getCode()const +{ + return code_; +} + +bool QuerySpeechPushJobSpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechRequest.cc b/iot/src/model/QuerySpeechRequest.cc new file mode 100644 index 000000000..85e4ff6b2 --- /dev/null +++ b/iot/src/model/QuerySpeechRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QuerySpeechRequest; + +QuerySpeechRequest::QuerySpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechRequest::~QuerySpeechRequest() +{} + +std::string QuerySpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string QuerySpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QuerySpeechRequest::getSpeechCode()const +{ + return speechCode_; +} + +void QuerySpeechRequest::setSpeechCode(const std::string& speechCode) +{ + speechCode_ = speechCode; + setBodyParameter("SpeechCode", speechCode); +} + diff --git a/iot/src/model/QuerySpeechResult.cc b/iot/src/model/QuerySpeechResult.cc new file mode 100644 index 000000000..480f28dcd --- /dev/null +++ b/iot/src/model/QuerySpeechResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QuerySpeechResult::QuerySpeechResult() : + ServiceResult() +{} + +QuerySpeechResult::QuerySpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechResult::~QuerySpeechResult() +{} + +void QuerySpeechResult::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["SpeechCode"].isNull()) + data_.speechCode = dataNode["SpeechCode"].asString(); + if(!dataNode["BizCode"].isNull()) + data_.bizCode = dataNode["BizCode"].asString(); + if(!dataNode["Voice"].isNull()) + data_.voice = dataNode["Voice"].asString(); + if(!dataNode["Volume"].isNull()) + data_.volume = std::stoi(dataNode["Volume"].asString()); + if(!dataNode["SpeechRate"].isNull()) + data_.speechRate = std::stoi(dataNode["SpeechRate"].asString()); + if(!dataNode["Text"].isNull()) + data_.text = dataNode["Text"].asString(); + if(!dataNode["AudioFormat"].isNull()) + data_.audioFormat = dataNode["AudioFormat"].asString(); + if(!dataNode["SpeechType"].isNull()) + data_.speechType = dataNode["SpeechType"].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(); + +} + +QuerySpeechResult::Data QuerySpeechResult::getData()const +{ + return data_; +} + +std::string QuerySpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechResult::getCode()const +{ + return code_; +} + +bool QuerySpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryStudioAppDomainListOpenRequest.cc b/iot/src/model/QueryStudioAppDomainListOpenRequest.cc new file mode 100644 index 000000000..efa365b6d --- /dev/null +++ b/iot/src/model/QueryStudioAppDomainListOpenRequest.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::QueryStudioAppDomainListOpenRequest; + +QueryStudioAppDomainListOpenRequest::QueryStudioAppDomainListOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryStudioAppDomainListOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryStudioAppDomainListOpenRequest::~QueryStudioAppDomainListOpenRequest() +{} + +std::string QueryStudioAppDomainListOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryStudioAppDomainListOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryStudioAppDomainListOpenRequest::getProjectId()const +{ + return projectId_; +} + +void QueryStudioAppDomainListOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string QueryStudioAppDomainListOpenRequest::getAppId()const +{ + return appId_; +} + +void QueryStudioAppDomainListOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string QueryStudioAppDomainListOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryStudioAppDomainListOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryStudioAppDomainListOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryStudioAppDomainListOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryStudioAppDomainListOpenResult.cc b/iot/src/model/QueryStudioAppDomainListOpenResult.cc new file mode 100644 index 000000000..8cedaa996 --- /dev/null +++ b/iot/src/model/QueryStudioAppDomainListOpenResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryStudioAppDomainListOpenResult::QueryStudioAppDomainListOpenResult() : + ServiceResult() +{} + +QueryStudioAppDomainListOpenResult::QueryStudioAppDomainListOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStudioAppDomainListOpenResult::~QueryStudioAppDomainListOpenResult() +{} + +void QueryStudioAppDomainListOpenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNo"].isNull()) + data_.pageNo = std::stoi(dataNode["PageNo"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stoi(dataNode["TotalPage"].asString()); + auto allListNode = dataNode["List"]["DomainInfo"]; + for (auto dataNodeListDomainInfo : allListNode) + { + Data::DomainInfo domainInfoObject; + if(!dataNodeListDomainInfo["TenantId"].isNull()) + domainInfoObject.tenantId = dataNodeListDomainInfo["TenantId"].asString(); + if(!dataNodeListDomainInfo["AppId"].isNull()) + domainInfoObject.appId = dataNodeListDomainInfo["AppId"].asString(); + if(!dataNodeListDomainInfo["ProjectId"].isNull()) + domainInfoObject.projectId = dataNodeListDomainInfo["ProjectId"].asString(); + if(!dataNodeListDomainInfo["Host"].isNull()) + domainInfoObject.host = dataNodeListDomainInfo["Host"].asString(); + if(!dataNodeListDomainInfo["Id"].isNull()) + domainInfoObject.id = std::stoi(dataNodeListDomainInfo["Id"].asString()); + if(!dataNodeListDomainInfo["IsBeian"].isNull()) + domainInfoObject.isBeian = dataNodeListDomainInfo["IsBeian"].asString(); + if(!dataNodeListDomainInfo["Protocol"].isNull()) + domainInfoObject.protocol = dataNodeListDomainInfo["Protocol"].asString(); + if(!dataNodeListDomainInfo["GmtCreate"].isNull()) + domainInfoObject.gmtCreate = dataNodeListDomainInfo["GmtCreate"].asString(); + if(!dataNodeListDomainInfo["GmtModified"].isNull()) + domainInfoObject.gmtModified = dataNodeListDomainInfo["GmtModified"].asString(); + data_.list.push_back(domainInfoObject); + } + 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(); + +} + +QueryStudioAppDomainListOpenResult::Data QueryStudioAppDomainListOpenResult::getData()const +{ + return data_; +} + +std::string QueryStudioAppDomainListOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryStudioAppDomainListOpenResult::getCode()const +{ + return code_; +} + +bool QueryStudioAppDomainListOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryStudioAppListRequest.cc b/iot/src/model/QueryStudioAppListRequest.cc new file mode 100644 index 000000000..dd391777a --- /dev/null +++ b/iot/src/model/QueryStudioAppListRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QueryStudioAppListRequest; + +QueryStudioAppListRequest::QueryStudioAppListRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryStudioAppList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryStudioAppListRequest::~QueryStudioAppListRequest() +{} + +std::string QueryStudioAppListRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryStudioAppListRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QueryStudioAppListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryStudioAppListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryStudioAppListRequest::getProjectId()const +{ + return projectId_; +} + +void QueryStudioAppListRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::vector QueryStudioAppListRequest::getTypes()const +{ + return types_; +} + +void QueryStudioAppListRequest::setTypes(const std::vector& types) +{ + types_ = types; + for(int dep1 = 0; dep1!= types.size(); dep1++) { + setBodyParameter("Types."+ std::to_string(dep1), types.at(dep1)); + } +} + +std::string QueryStudioAppListRequest::getFuzzyName()const +{ + return fuzzyName_; +} + +void QueryStudioAppListRequest::setFuzzyName(const std::string& fuzzyName) +{ + fuzzyName_ = fuzzyName; + setBodyParameter("FuzzyName", fuzzyName); +} + +int QueryStudioAppListRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryStudioAppListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setBodyParameter("PageNo", std::to_string(pageNo)); +} + +std::string QueryStudioAppListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryStudioAppListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryStudioAppListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryStudioAppListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryStudioAppListResult.cc b/iot/src/model/QueryStudioAppListResult.cc new file mode 100644 index 000000000..3e612a038 --- /dev/null +++ b/iot/src/model/QueryStudioAppListResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryStudioAppListResult::QueryStudioAppListResult() : + ServiceResult() +{} + +QueryStudioAppListResult::QueryStudioAppListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStudioAppListResult::~QueryStudioAppListResult() +{} + +void QueryStudioAppListResult::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["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageNo"].isNull()) + data_.pageNo = std::stoi(dataNode["PageNo"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stoi(dataNode["TotalPage"].asString()); + auto allListNode = dataNode["List"]["AppInfo"]; + for (auto dataNodeListAppInfo : allListNode) + { + Data::AppInfo appInfoObject; + if(!dataNodeListAppInfo["Name"].isNull()) + appInfoObject.name = dataNodeListAppInfo["Name"].asString(); + if(!dataNodeListAppInfo["AppId"].isNull()) + appInfoObject.appId = dataNodeListAppInfo["AppId"].asString(); + if(!dataNodeListAppInfo["AppKey"].isNull()) + appInfoObject.appKey = dataNodeListAppInfo["AppKey"].asString(); + if(!dataNodeListAppInfo["AppSecret"].isNull()) + appInfoObject.appSecret = dataNodeListAppInfo["AppSecret"].asString(); + if(!dataNodeListAppInfo["ProjectId"].isNull()) + appInfoObject.projectId = dataNodeListAppInfo["ProjectId"].asString(); + if(!dataNodeListAppInfo["Type"].isNull()) + appInfoObject.type = dataNodeListAppInfo["Type"].asString(); + if(!dataNodeListAppInfo["Description"].isNull()) + appInfoObject.description = dataNodeListAppInfo["Description"].asString(); + if(!dataNodeListAppInfo["GmtCreate"].isNull()) + appInfoObject.gmtCreate = dataNodeListAppInfo["GmtCreate"].asString(); + if(!dataNodeListAppInfo["GmtModified"].isNull()) + appInfoObject.gmtModified = dataNodeListAppInfo["GmtModified"].asString(); + if(!dataNodeListAppInfo["GmtRelease"].isNull()) + appInfoObject.gmtRelease = dataNodeListAppInfo["GmtRelease"].asString(); + data_.list.push_back(appInfoObject); + } + 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(); + +} + +QueryStudioAppListResult::Data QueryStudioAppListResult::getData()const +{ + return data_; +} + +std::string QueryStudioAppListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryStudioAppListResult::getCode()const +{ + return code_; +} + +bool QueryStudioAppListResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryStudioAppPageListOpenRequest.cc b/iot/src/model/QueryStudioAppPageListOpenRequest.cc new file mode 100644 index 000000000..f55b7fff4 --- /dev/null +++ b/iot/src/model/QueryStudioAppPageListOpenRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QueryStudioAppPageListOpenRequest; + +QueryStudioAppPageListOpenRequest::QueryStudioAppPageListOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryStudioAppPageListOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryStudioAppPageListOpenRequest::~QueryStudioAppPageListOpenRequest() +{} + +std::string QueryStudioAppPageListOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryStudioAppPageListOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QueryStudioAppPageListOpenRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryStudioAppPageListOpenRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryStudioAppPageListOpenRequest::getProjectId()const +{ + return projectId_; +} + +void QueryStudioAppPageListOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +bool QueryStudioAppPageListOpenRequest::getIsRelease()const +{ + return isRelease_; +} + +void QueryStudioAppPageListOpenRequest::setIsRelease(bool isRelease) +{ + isRelease_ = isRelease; + setBodyParameter("IsRelease", isRelease ? "true" : "false"); +} + +int QueryStudioAppPageListOpenRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryStudioAppPageListOpenRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setBodyParameter("PageNo", std::to_string(pageNo)); +} + +std::string QueryStudioAppPageListOpenRequest::getAppId()const +{ + return appId_; +} + +void QueryStudioAppPageListOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string QueryStudioAppPageListOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryStudioAppPageListOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryStudioAppPageListOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryStudioAppPageListOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryStudioAppPageListOpenResult.cc b/iot/src/model/QueryStudioAppPageListOpenResult.cc new file mode 100644 index 000000000..9254f94f1 --- /dev/null +++ b/iot/src/model/QueryStudioAppPageListOpenResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryStudioAppPageListOpenResult::QueryStudioAppPageListOpenResult() : + ServiceResult() +{} + +QueryStudioAppPageListOpenResult::QueryStudioAppPageListOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStudioAppPageListOpenResult::~QueryStudioAppPageListOpenResult() +{} + +void QueryStudioAppPageListOpenResult::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["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageNo"].isNull()) + data_.pageNo = std::stoi(dataNode["PageNo"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stoi(dataNode["TotalPage"].asString()); + auto allListNode = dataNode["List"]["PageInfo"]; + for (auto dataNodeListPageInfo : allListNode) + { + Data::PageInfo pageInfoObject; + if(!dataNodeListPageInfo["Id"].isNull()) + pageInfoObject.id = std::stoi(dataNodeListPageInfo["Id"].asString()); + if(!dataNodeListPageInfo["PageId"].isNull()) + pageInfoObject.pageId = dataNodeListPageInfo["PageId"].asString(); + if(!dataNodeListPageInfo["Path"].isNull()) + pageInfoObject.path = dataNodeListPageInfo["Path"].asString(); + if(!dataNodeListPageInfo["IsHidden"].isNull()) + pageInfoObject.isHidden = std::stoi(dataNodeListPageInfo["IsHidden"].asString()); + if(!dataNodeListPageInfo["IsHome"].isNull()) + pageInfoObject.isHome = std::stoi(dataNodeListPageInfo["IsHome"].asString()); + if(!dataNodeListPageInfo["IsLoginPage"].isNull()) + pageInfoObject.isLoginPage = std::stoi(dataNodeListPageInfo["IsLoginPage"].asString()); + if(!dataNodeListPageInfo["Name"].isNull()) + pageInfoObject.name = dataNodeListPageInfo["Name"].asString(); + if(!dataNodeListPageInfo["GmtCreate"].isNull()) + pageInfoObject.gmtCreate = dataNodeListPageInfo["GmtCreate"].asString(); + if(!dataNodeListPageInfo["GmtModified"].isNull()) + pageInfoObject.gmtModified = dataNodeListPageInfo["GmtModified"].asString(); + data_.list.push_back(pageInfoObject); + } + 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(); + +} + +QueryStudioAppPageListOpenResult::Data QueryStudioAppPageListOpenResult::getData()const +{ + return data_; +} + +std::string QueryStudioAppPageListOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryStudioAppPageListOpenResult::getCode()const +{ + return code_; +} + +bool QueryStudioAppPageListOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryStudioProjectListRequest.cc b/iot/src/model/QueryStudioProjectListRequest.cc new file mode 100644 index 000000000..6aedf5cab --- /dev/null +++ b/iot/src/model/QueryStudioProjectListRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QueryStudioProjectListRequest; + +QueryStudioProjectListRequest::QueryStudioProjectListRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryStudioProjectList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryStudioProjectListRequest::~QueryStudioProjectListRequest() +{} + +std::string QueryStudioProjectListRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryStudioProjectListRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QueryStudioProjectListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryStudioProjectListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +int QueryStudioProjectListRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryStudioProjectListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setBodyParameter("PageNo", std::to_string(pageNo)); +} + +std::string QueryStudioProjectListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryStudioProjectListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryStudioProjectListRequest::getName()const +{ + return name_; +} + +void QueryStudioProjectListRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string QueryStudioProjectListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryStudioProjectListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryStudioProjectListResult.cc b/iot/src/model/QueryStudioProjectListResult.cc new file mode 100644 index 000000000..cac41f723 --- /dev/null +++ b/iot/src/model/QueryStudioProjectListResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryStudioProjectListResult::QueryStudioProjectListResult() : + ServiceResult() +{} + +QueryStudioProjectListResult::QueryStudioProjectListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStudioProjectListResult::~QueryStudioProjectListResult() +{} + +void QueryStudioProjectListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNo"].isNull()) + data_.pageNo = std::stoi(dataNode["PageNo"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stoi(dataNode["TotalPage"].asString()); + auto allListNode = dataNode["List"]["ProjectInfo"]; + for (auto dataNodeListProjectInfo : allListNode) + { + Data::ProjectInfo projectInfoObject; + if(!dataNodeListProjectInfo["GmtCreate"].isNull()) + projectInfoObject.gmtCreate = std::stol(dataNodeListProjectInfo["GmtCreate"].asString()); + if(!dataNodeListProjectInfo["GmtModified"].isNull()) + projectInfoObject.gmtModified = std::stol(dataNodeListProjectInfo["GmtModified"].asString()); + if(!dataNodeListProjectInfo["Name"].isNull()) + projectInfoObject.name = dataNodeListProjectInfo["Name"].asString(); + if(!dataNodeListProjectInfo["ProjectId"].isNull()) + projectInfoObject.projectId = dataNodeListProjectInfo["ProjectId"].asString(); + if(!dataNodeListProjectInfo["Description"].isNull()) + projectInfoObject.description = dataNodeListProjectInfo["Description"].asString(); + data_.list.push_back(projectInfoObject); + } + 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(); + +} + +QueryStudioProjectListResult::Data QueryStudioProjectListResult::getData()const +{ + return data_; +} + +std::string QueryStudioProjectListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryStudioProjectListResult::getCode()const +{ + return code_; +} + +bool QueryStudioProjectListResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/RefreshStudioAppTokenOpenRequest.cc b/iot/src/model/RefreshStudioAppTokenOpenRequest.cc new file mode 100644 index 000000000..a8b7abc44 --- /dev/null +++ b/iot/src/model/RefreshStudioAppTokenOpenRequest.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::RefreshStudioAppTokenOpenRequest; + +RefreshStudioAppTokenOpenRequest::RefreshStudioAppTokenOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "RefreshStudioAppTokenOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +RefreshStudioAppTokenOpenRequest::~RefreshStudioAppTokenOpenRequest() +{} + +std::string RefreshStudioAppTokenOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void RefreshStudioAppTokenOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string RefreshStudioAppTokenOpenRequest::getProjectId()const +{ + return projectId_; +} + +void RefreshStudioAppTokenOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +std::string RefreshStudioAppTokenOpenRequest::getAppId()const +{ + return appId_; +} + +void RefreshStudioAppTokenOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string RefreshStudioAppTokenOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void RefreshStudioAppTokenOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string RefreshStudioAppTokenOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void RefreshStudioAppTokenOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/RefreshStudioAppTokenOpenResult.cc b/iot/src/model/RefreshStudioAppTokenOpenResult.cc new file mode 100644 index 000000000..7b9f15d12 --- /dev/null +++ b/iot/src/model/RefreshStudioAppTokenOpenResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +RefreshStudioAppTokenOpenResult::RefreshStudioAppTokenOpenResult() : + ServiceResult() +{} + +RefreshStudioAppTokenOpenResult::RefreshStudioAppTokenOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefreshStudioAppTokenOpenResult::~RefreshStudioAppTokenOpenResult() +{} + +void RefreshStudioAppTokenOpenResult::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["IsEnable"].isNull()) + data_.isEnable = dataNode["IsEnable"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["BizType"].isNull()) + data_.bizType = dataNode["BizType"].asString(); + if(!dataNode["Token"].isNull()) + data_.token = dataNode["Token"].asString(); + if(!dataNode["BizId"].isNull()) + data_.bizId = dataNode["BizId"].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(); + +} + +RefreshStudioAppTokenOpenResult::Data RefreshStudioAppTokenOpenResult::getData()const +{ + return data_; +} + +std::string RefreshStudioAppTokenOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string RefreshStudioAppTokenOpenResult::getCode()const +{ + return code_; +} + +bool RefreshStudioAppTokenOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/SetStudioProjectCooperationRequest.cc b/iot/src/model/SetStudioProjectCooperationRequest.cc new file mode 100644 index 000000000..51a05ed5c --- /dev/null +++ b/iot/src/model/SetStudioProjectCooperationRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::SetStudioProjectCooperationRequest; + +SetStudioProjectCooperationRequest::SetStudioProjectCooperationRequest() : + RpcServiceRequest("iot", "2018-01-20", "SetStudioProjectCooperation") +{ + setMethod(HttpRequest::Method::Post); +} + +SetStudioProjectCooperationRequest::~SetStudioProjectCooperationRequest() +{} + +std::string SetStudioProjectCooperationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void SetStudioProjectCooperationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string SetStudioProjectCooperationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void SetStudioProjectCooperationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string SetStudioProjectCooperationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void SetStudioProjectCooperationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string SetStudioProjectCooperationRequest::getStatus()const +{ + return status_; +} + +void SetStudioProjectCooperationRequest::setStatus(const std::string& status) +{ + status_ = status; + setBodyParameter("Status", status); +} + diff --git a/iot/src/model/SetStudioProjectCooperationResult.cc b/iot/src/model/SetStudioProjectCooperationResult.cc new file mode 100644 index 000000000..5e659edf7 --- /dev/null +++ b/iot/src/model/SetStudioProjectCooperationResult.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; + +SetStudioProjectCooperationResult::SetStudioProjectCooperationResult() : + ServiceResult() +{} + +SetStudioProjectCooperationResult::SetStudioProjectCooperationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetStudioProjectCooperationResult::~SetStudioProjectCooperationResult() +{} + +void SetStudioProjectCooperationResult::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() == "true"; + +} + +bool SetStudioProjectCooperationResult::getData()const +{ + return data_; +} + +std::string SetStudioProjectCooperationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string SetStudioProjectCooperationResult::getCode()const +{ + return code_; +} + +bool SetStudioProjectCooperationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/SetupStudioAppAuthModeOpenRequest.cc b/iot/src/model/SetupStudioAppAuthModeOpenRequest.cc new file mode 100644 index 000000000..d8bb7bc8e --- /dev/null +++ b/iot/src/model/SetupStudioAppAuthModeOpenRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::SetupStudioAppAuthModeOpenRequest; + +SetupStudioAppAuthModeOpenRequest::SetupStudioAppAuthModeOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "SetupStudioAppAuthModeOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +SetupStudioAppAuthModeOpenRequest::~SetupStudioAppAuthModeOpenRequest() +{} + +std::string SetupStudioAppAuthModeOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void SetupStudioAppAuthModeOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string SetupStudioAppAuthModeOpenRequest::getProjectId()const +{ + return projectId_; +} + +void SetupStudioAppAuthModeOpenRequest::setProjectId(const std::string& projectId) +{ + projectId_ = projectId; + setBodyParameter("ProjectId", projectId); +} + +int SetupStudioAppAuthModeOpenRequest::getAuthMode()const +{ + return authMode_; +} + +void SetupStudioAppAuthModeOpenRequest::setAuthMode(int authMode) +{ + authMode_ = authMode; + setBodyParameter("AuthMode", std::to_string(authMode)); +} + +std::string SetupStudioAppAuthModeOpenRequest::getAppId()const +{ + return appId_; +} + +void SetupStudioAppAuthModeOpenRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setBodyParameter("AppId", appId); +} + +std::string SetupStudioAppAuthModeOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void SetupStudioAppAuthModeOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string SetupStudioAppAuthModeOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void SetupStudioAppAuthModeOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/SetupStudioAppAuthModeOpenResult.cc b/iot/src/model/SetupStudioAppAuthModeOpenResult.cc new file mode 100644 index 000000000..42955ef0b --- /dev/null +++ b/iot/src/model/SetupStudioAppAuthModeOpenResult.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 +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +SetupStudioAppAuthModeOpenResult::SetupStudioAppAuthModeOpenResult() : + ServiceResult() +{} + +SetupStudioAppAuthModeOpenResult::SetupStudioAppAuthModeOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetupStudioAppAuthModeOpenResult::~SetupStudioAppAuthModeOpenResult() +{} + +void SetupStudioAppAuthModeOpenResult::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["AuthMode"].isNull()) + data_.authMode = std::stoi(dataNode["AuthMode"].asString()); + auto tokenInfoNode = dataNode["TokenInfo"]; + if(!tokenInfoNode["IsEnable"].isNull()) + data_.tokenInfo.isEnable = tokenInfoNode["IsEnable"].asString(); + if(!tokenInfoNode["Type"].isNull()) + data_.tokenInfo.type = tokenInfoNode["Type"].asString(); + if(!tokenInfoNode["BizType"].isNull()) + data_.tokenInfo.bizType = tokenInfoNode["BizType"].asString(); + if(!tokenInfoNode["Token"].isNull()) + data_.tokenInfo.token = tokenInfoNode["Token"].asString(); + if(!tokenInfoNode["BizId"].isNull()) + data_.tokenInfo.bizId = tokenInfoNode["BizId"].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(); + +} + +SetupStudioAppAuthModeOpenResult::Data SetupStudioAppAuthModeOpenResult::getData()const +{ + return data_; +} + +std::string SetupStudioAppAuthModeOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string SetupStudioAppAuthModeOpenResult::getCode()const +{ + return code_; +} + +bool SetupStudioAppAuthModeOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/TestSpeechRequest.cc b/iot/src/model/TestSpeechRequest.cc new file mode 100644 index 000000000..a25967688 --- /dev/null +++ b/iot/src/model/TestSpeechRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::TestSpeechRequest; + +TestSpeechRequest::TestSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "TestSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +TestSpeechRequest::~TestSpeechRequest() +{} + +std::string TestSpeechRequest::getVoice()const +{ + return voice_; +} + +void TestSpeechRequest::setVoice(const std::string& voice) +{ + voice_ = voice; + setBodyParameter("Voice", voice); +} + +std::string TestSpeechRequest::getProjectCode()const +{ + return projectCode_; +} + +void TestSpeechRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +std::string TestSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void TestSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string TestSpeechRequest::getText()const +{ + return text_; +} + +void TestSpeechRequest::setText(const std::string& text) +{ + text_ = text; + setBodyParameter("Text", text); +} + +std::string TestSpeechRequest::getSpeechType()const +{ + return speechType_; +} + +void TestSpeechRequest::setSpeechType(const std::string& speechType) +{ + speechType_ = speechType; + setBodyParameter("SpeechType", speechType); +} + +int TestSpeechRequest::getVolume()const +{ + return volume_; +} + +void TestSpeechRequest::setVolume(int volume) +{ + volume_ = volume; + setBodyParameter("Volume", std::to_string(volume)); +} + +std::string TestSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void TestSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string TestSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void TestSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int TestSpeechRequest::getSpeechRate()const +{ + return speechRate_; +} + +void TestSpeechRequest::setSpeechRate(int speechRate) +{ + speechRate_ = speechRate; + setBodyParameter("SpeechRate", std::to_string(speechRate)); +} + diff --git a/iot/src/model/TestSpeechResult.cc b/iot/src/model/TestSpeechResult.cc new file mode 100644 index 000000000..a44a93e59 --- /dev/null +++ b/iot/src/model/TestSpeechResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +TestSpeechResult::TestSpeechResult() : + ServiceResult() +{} + +TestSpeechResult::TestSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TestSpeechResult::~TestSpeechResult() +{} + +void TestSpeechResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["items"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::vector TestSpeechResult::getData()const +{ + return data_; +} + +std::string TestSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string TestSpeechResult::getCode()const +{ + return code_; +} + +bool TestSpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/UpdateSpeechRequest.cc b/iot/src/model/UpdateSpeechRequest.cc new file mode 100644 index 000000000..6faeab0b7 --- /dev/null +++ b/iot/src/model/UpdateSpeechRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::UpdateSpeechRequest; + +UpdateSpeechRequest::UpdateSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "UpdateSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateSpeechRequest::~UpdateSpeechRequest() +{} + +std::string UpdateSpeechRequest::getVoice()const +{ + return voice_; +} + +void UpdateSpeechRequest::setVoice(const std::string& voice) +{ + voice_ = voice; + setBodyParameter("Voice", voice); +} + +std::string UpdateSpeechRequest::getProjectCode()const +{ + return projectCode_; +} + +void UpdateSpeechRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +std::string UpdateSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void UpdateSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int UpdateSpeechRequest::getVolume()const +{ + return volume_; +} + +void UpdateSpeechRequest::setVolume(int volume) +{ + volume_ = volume; + setBodyParameter("Volume", std::to_string(volume)); +} + +std::string UpdateSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void UpdateSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string UpdateSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void UpdateSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +int UpdateSpeechRequest::getSpeechRate()const +{ + return speechRate_; +} + +void UpdateSpeechRequest::setSpeechRate(int speechRate) +{ + speechRate_ = speechRate; + setBodyParameter("SpeechRate", std::to_string(speechRate)); +} + +std::string UpdateSpeechRequest::getSpeechCode()const +{ + return speechCode_; +} + +void UpdateSpeechRequest::setSpeechCode(const std::string& speechCode) +{ + speechCode_ = speechCode; + setBodyParameter("SpeechCode", speechCode); +} + diff --git a/iot/src/model/UpdateSpeechResult.cc b/iot/src/model/UpdateSpeechResult.cc new file mode 100644 index 000000000..8b16fdab4 --- /dev/null +++ b/iot/src/model/UpdateSpeechResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +UpdateSpeechResult::UpdateSpeechResult() : + ServiceResult() +{} + +UpdateSpeechResult::UpdateSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSpeechResult::~UpdateSpeechResult() +{} + +void UpdateSpeechResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string UpdateSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateSpeechResult::getCode()const +{ + return code_; +} + +bool UpdateSpeechResult::getSuccess()const +{ + return success_; +} +