diff --git a/CHANGELOG b/CHANGELOG index bcf5f52d8..d6f5c2d4e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-09-06 Version: 1.36.868 +- Update LinkSpeech API, including SpeechByCombination, SyncSpeechByCombination. + 2021-09-01 Version: 1.36.867 - SubmitURLUploadJob, support S3 Storage. diff --git a/VERSION b/VERSION index e18d73e64..14eb3ed51 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.867 \ No newline at end of file +1.36.868 \ No newline at end of file diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index 565e0fcfb..b154e0e05 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -169,6 +169,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/CreateThingScriptResult.h include/alibabacloud/iot/model/CreateTopicRouteTableRequest.h include/alibabacloud/iot/model/CreateTopicRouteTableResult.h + include/alibabacloud/iot/model/DeleteClientIdsRequest.h + include/alibabacloud/iot/model/DeleteClientIdsResult.h include/alibabacloud/iot/model/DeleteConsumerGroupRequest.h include/alibabacloud/iot/model/DeleteConsumerGroupResult.h include/alibabacloud/iot/model/DeleteConsumerGroupSubscribeRelationRequest.h @@ -183,6 +185,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteDeviceGroupResult.h include/alibabacloud/iot/model/DeleteDevicePropRequest.h include/alibabacloud/iot/model/DeleteDevicePropResult.h + include/alibabacloud/iot/model/DeleteDeviceSpeechRequest.h + include/alibabacloud/iot/model/DeleteDeviceSpeechResult.h include/alibabacloud/iot/model/DeleteEdgeDriverRequest.h include/alibabacloud/iot/model/DeleteEdgeDriverResult.h include/alibabacloud/iot/model/DeleteEdgeDriverVersionRequest.h @@ -271,6 +275,8 @@ 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/GetSpeechDeviceDetailRequest.h + include/alibabacloud/iot/model/GetSpeechDeviceDetailResult.h include/alibabacloud/iot/model/GetSpeechVoiceRequest.h include/alibabacloud/iot/model/GetSpeechVoiceResult.h include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h @@ -355,6 +361,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryBatchRegisterDeviceStatusResult.h include/alibabacloud/iot/model/QueryCertUrlByApplyIdRequest.h include/alibabacloud/iot/model/QueryCertUrlByApplyIdResult.h + include/alibabacloud/iot/model/QueryClientIdsRequest.h + include/alibabacloud/iot/model/QueryClientIdsResult.h include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdRequest.h include/alibabacloud/iot/model/QueryConsumerGroupByGroupIdResult.h include/alibabacloud/iot/model/QueryConsumerGroupListRequest.h @@ -419,6 +427,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryDevicePropertyStatusResult.h include/alibabacloud/iot/model/QueryDeviceServiceDataRequest.h include/alibabacloud/iot/model/QueryDeviceServiceDataResult.h + include/alibabacloud/iot/model/QueryDeviceSpeechRequest.h + include/alibabacloud/iot/model/QueryDeviceSpeechResult.h include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h include/alibabacloud/iot/model/QueryDeviceStatisticsResult.h include/alibabacloud/iot/model/QueryEdgeDriverRequest.h @@ -449,6 +459,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryJobStatisticsResult.h include/alibabacloud/iot/model/QueryLoRaJoinPermissionsRequest.h include/alibabacloud/iot/model/QueryLoRaJoinPermissionsResult.h + include/alibabacloud/iot/model/QueryMessageInfoRequest.h + include/alibabacloud/iot/model/QueryMessageInfoResult.h include/alibabacloud/iot/model/QueryOTAFirmwareRequest.h include/alibabacloud/iot/model/QueryOTAFirmwareResult.h include/alibabacloud/iot/model/QueryOTAJobRequest.h @@ -469,6 +481,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h include/alibabacloud/iot/model/QuerySpeechRequest.h include/alibabacloud/iot/model/QuerySpeechResult.h + include/alibabacloud/iot/model/QuerySpeechDeviceRequest.h + include/alibabacloud/iot/model/QuerySpeechDeviceResult.h include/alibabacloud/iot/model/QuerySpeechListRequest.h include/alibabacloud/iot/model/QuerySpeechListResult.h include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h @@ -521,6 +535,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/RemoveThingTopoResult.h include/alibabacloud/iot/model/ReplaceEdgeInstanceGatewayRequest.h include/alibabacloud/iot/model/ReplaceEdgeInstanceGatewayResult.h + include/alibabacloud/iot/model/RerunJobRequest.h + include/alibabacloud/iot/model/RerunJobResult.h include/alibabacloud/iot/model/ResetConsumerGroupPositionRequest.h include/alibabacloud/iot/model/ResetConsumerGroupPositionResult.h include/alibabacloud/iot/model/ResetThingRequest.h @@ -549,10 +565,14 @@ set(iot_public_header_model include/alibabacloud/iot/model/StartRuleResult.h include/alibabacloud/iot/model/StopRuleRequest.h include/alibabacloud/iot/model/StopRuleResult.h + include/alibabacloud/iot/model/SubscribeTopicRequest.h + include/alibabacloud/iot/model/SubscribeTopicResult.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/TransformClientIdRequest.h + include/alibabacloud/iot/model/TransformClientIdResult.h include/alibabacloud/iot/model/TriggerSceneRuleRequest.h include/alibabacloud/iot/model/TriggerSceneRuleResult.h include/alibabacloud/iot/model/UnbindApplicationFromEdgeInstanceRequest.h @@ -756,6 +776,8 @@ set(iot_src src/model/CreateThingScriptResult.cc src/model/CreateTopicRouteTableRequest.cc src/model/CreateTopicRouteTableResult.cc + src/model/DeleteClientIdsRequest.cc + src/model/DeleteClientIdsResult.cc src/model/DeleteConsumerGroupRequest.cc src/model/DeleteConsumerGroupResult.cc src/model/DeleteConsumerGroupSubscribeRelationRequest.cc @@ -770,6 +792,8 @@ set(iot_src src/model/DeleteDeviceGroupResult.cc src/model/DeleteDevicePropRequest.cc src/model/DeleteDevicePropResult.cc + src/model/DeleteDeviceSpeechRequest.cc + src/model/DeleteDeviceSpeechResult.cc src/model/DeleteEdgeDriverRequest.cc src/model/DeleteEdgeDriverResult.cc src/model/DeleteEdgeDriverVersionRequest.cc @@ -858,6 +882,8 @@ set(iot_src src/model/GetRuleActionResult.cc src/model/GetSceneRuleRequest.cc src/model/GetSceneRuleResult.cc + src/model/GetSpeechDeviceDetailRequest.cc + src/model/GetSpeechDeviceDetailResult.cc src/model/GetSpeechVoiceRequest.cc src/model/GetSpeechVoiceResult.cc src/model/GetStudioAppTokenOpenRequest.cc @@ -942,6 +968,8 @@ set(iot_src src/model/QueryBatchRegisterDeviceStatusResult.cc src/model/QueryCertUrlByApplyIdRequest.cc src/model/QueryCertUrlByApplyIdResult.cc + src/model/QueryClientIdsRequest.cc + src/model/QueryClientIdsResult.cc src/model/QueryConsumerGroupByGroupIdRequest.cc src/model/QueryConsumerGroupByGroupIdResult.cc src/model/QueryConsumerGroupListRequest.cc @@ -1006,6 +1034,8 @@ set(iot_src src/model/QueryDevicePropertyStatusResult.cc src/model/QueryDeviceServiceDataRequest.cc src/model/QueryDeviceServiceDataResult.cc + src/model/QueryDeviceSpeechRequest.cc + src/model/QueryDeviceSpeechResult.cc src/model/QueryDeviceStatisticsRequest.cc src/model/QueryDeviceStatisticsResult.cc src/model/QueryEdgeDriverRequest.cc @@ -1036,6 +1066,8 @@ set(iot_src src/model/QueryJobStatisticsResult.cc src/model/QueryLoRaJoinPermissionsRequest.cc src/model/QueryLoRaJoinPermissionsResult.cc + src/model/QueryMessageInfoRequest.cc + src/model/QueryMessageInfoResult.cc src/model/QueryOTAFirmwareRequest.cc src/model/QueryOTAFirmwareResult.cc src/model/QueryOTAJobRequest.cc @@ -1056,6 +1088,8 @@ set(iot_src src/model/QuerySolutionDeviceGroupPageResult.cc src/model/QuerySpeechRequest.cc src/model/QuerySpeechResult.cc + src/model/QuerySpeechDeviceRequest.cc + src/model/QuerySpeechDeviceResult.cc src/model/QuerySpeechListRequest.cc src/model/QuerySpeechListResult.cc src/model/QuerySpeechPushJobRequest.cc @@ -1108,6 +1142,8 @@ set(iot_src src/model/RemoveThingTopoResult.cc src/model/ReplaceEdgeInstanceGatewayRequest.cc src/model/ReplaceEdgeInstanceGatewayResult.cc + src/model/RerunJobRequest.cc + src/model/RerunJobResult.cc src/model/ResetConsumerGroupPositionRequest.cc src/model/ResetConsumerGroupPositionResult.cc src/model/ResetThingRequest.cc @@ -1136,10 +1172,14 @@ set(iot_src src/model/StartRuleResult.cc src/model/StopRuleRequest.cc src/model/StopRuleResult.cc + src/model/SubscribeTopicRequest.cc + src/model/SubscribeTopicResult.cc src/model/SyncSpeechByCombinationRequest.cc src/model/SyncSpeechByCombinationResult.cc src/model/TestSpeechRequest.cc src/model/TestSpeechResult.cc + src/model/TransformClientIdRequest.cc + src/model/TransformClientIdResult.cc src/model/TriggerSceneRuleRequest.cc src/model/TriggerSceneRuleResult.cc src/model/UnbindApplicationFromEdgeInstanceRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index 57b4659d9..46cb87075 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -170,6 +170,8 @@ #include "model/CreateThingScriptResult.h" #include "model/CreateTopicRouteTableRequest.h" #include "model/CreateTopicRouteTableResult.h" +#include "model/DeleteClientIdsRequest.h" +#include "model/DeleteClientIdsResult.h" #include "model/DeleteConsumerGroupRequest.h" #include "model/DeleteConsumerGroupResult.h" #include "model/DeleteConsumerGroupSubscribeRelationRequest.h" @@ -184,6 +186,8 @@ #include "model/DeleteDeviceGroupResult.h" #include "model/DeleteDevicePropRequest.h" #include "model/DeleteDevicePropResult.h" +#include "model/DeleteDeviceSpeechRequest.h" +#include "model/DeleteDeviceSpeechResult.h" #include "model/DeleteEdgeDriverRequest.h" #include "model/DeleteEdgeDriverResult.h" #include "model/DeleteEdgeDriverVersionRequest.h" @@ -272,6 +276,8 @@ #include "model/GetRuleActionResult.h" #include "model/GetSceneRuleRequest.h" #include "model/GetSceneRuleResult.h" +#include "model/GetSpeechDeviceDetailRequest.h" +#include "model/GetSpeechDeviceDetailResult.h" #include "model/GetSpeechVoiceRequest.h" #include "model/GetSpeechVoiceResult.h" #include "model/GetStudioAppTokenOpenRequest.h" @@ -356,6 +362,8 @@ #include "model/QueryBatchRegisterDeviceStatusResult.h" #include "model/QueryCertUrlByApplyIdRequest.h" #include "model/QueryCertUrlByApplyIdResult.h" +#include "model/QueryClientIdsRequest.h" +#include "model/QueryClientIdsResult.h" #include "model/QueryConsumerGroupByGroupIdRequest.h" #include "model/QueryConsumerGroupByGroupIdResult.h" #include "model/QueryConsumerGroupListRequest.h" @@ -420,6 +428,8 @@ #include "model/QueryDevicePropertyStatusResult.h" #include "model/QueryDeviceServiceDataRequest.h" #include "model/QueryDeviceServiceDataResult.h" +#include "model/QueryDeviceSpeechRequest.h" +#include "model/QueryDeviceSpeechResult.h" #include "model/QueryDeviceStatisticsRequest.h" #include "model/QueryDeviceStatisticsResult.h" #include "model/QueryEdgeDriverRequest.h" @@ -450,6 +460,8 @@ #include "model/QueryJobStatisticsResult.h" #include "model/QueryLoRaJoinPermissionsRequest.h" #include "model/QueryLoRaJoinPermissionsResult.h" +#include "model/QueryMessageInfoRequest.h" +#include "model/QueryMessageInfoResult.h" #include "model/QueryOTAFirmwareRequest.h" #include "model/QueryOTAFirmwareResult.h" #include "model/QueryOTAJobRequest.h" @@ -470,6 +482,8 @@ #include "model/QuerySolutionDeviceGroupPageResult.h" #include "model/QuerySpeechRequest.h" #include "model/QuerySpeechResult.h" +#include "model/QuerySpeechDeviceRequest.h" +#include "model/QuerySpeechDeviceResult.h" #include "model/QuerySpeechListRequest.h" #include "model/QuerySpeechListResult.h" #include "model/QuerySpeechPushJobRequest.h" @@ -522,6 +536,8 @@ #include "model/RemoveThingTopoResult.h" #include "model/ReplaceEdgeInstanceGatewayRequest.h" #include "model/ReplaceEdgeInstanceGatewayResult.h" +#include "model/RerunJobRequest.h" +#include "model/RerunJobResult.h" #include "model/ResetConsumerGroupPositionRequest.h" #include "model/ResetConsumerGroupPositionResult.h" #include "model/ResetThingRequest.h" @@ -550,10 +566,14 @@ #include "model/StartRuleResult.h" #include "model/StopRuleRequest.h" #include "model/StopRuleResult.h" +#include "model/SubscribeTopicRequest.h" +#include "model/SubscribeTopicResult.h" #include "model/SyncSpeechByCombinationRequest.h" #include "model/SyncSpeechByCombinationResult.h" #include "model/TestSpeechRequest.h" #include "model/TestSpeechResult.h" +#include "model/TransformClientIdRequest.h" +#include "model/TransformClientIdResult.h" #include "model/TriggerSceneRuleRequest.h" #include "model/TriggerSceneRuleResult.h" #include "model/UnbindApplicationFromEdgeInstanceRequest.h" @@ -837,6 +857,9 @@ namespace AlibabaCloud typedef Outcome CreateTopicRouteTableOutcome; typedef std::future CreateTopicRouteTableOutcomeCallable; typedef std::function&)> CreateTopicRouteTableAsyncHandler; + typedef Outcome DeleteClientIdsOutcome; + typedef std::future DeleteClientIdsOutcomeCallable; + typedef std::function&)> DeleteClientIdsAsyncHandler; typedef Outcome DeleteConsumerGroupOutcome; typedef std::future DeleteConsumerGroupOutcomeCallable; typedef std::function&)> DeleteConsumerGroupAsyncHandler; @@ -858,6 +881,9 @@ namespace AlibabaCloud typedef Outcome DeleteDevicePropOutcome; typedef std::future DeleteDevicePropOutcomeCallable; typedef std::function&)> DeleteDevicePropAsyncHandler; + typedef Outcome DeleteDeviceSpeechOutcome; + typedef std::future DeleteDeviceSpeechOutcomeCallable; + typedef std::function&)> DeleteDeviceSpeechAsyncHandler; typedef Outcome DeleteEdgeDriverOutcome; typedef std::future DeleteEdgeDriverOutcomeCallable; typedef std::function&)> DeleteEdgeDriverAsyncHandler; @@ -990,6 +1016,9 @@ namespace AlibabaCloud typedef Outcome GetSceneRuleOutcome; typedef std::future GetSceneRuleOutcomeCallable; typedef std::function&)> GetSceneRuleAsyncHandler; + typedef Outcome GetSpeechDeviceDetailOutcome; + typedef std::future GetSpeechDeviceDetailOutcomeCallable; + typedef std::function&)> GetSpeechDeviceDetailAsyncHandler; typedef Outcome GetSpeechVoiceOutcome; typedef std::future GetSpeechVoiceOutcomeCallable; typedef std::function&)> GetSpeechVoiceAsyncHandler; @@ -1116,6 +1145,9 @@ namespace AlibabaCloud typedef Outcome QueryCertUrlByApplyIdOutcome; typedef std::future QueryCertUrlByApplyIdOutcomeCallable; typedef std::function&)> QueryCertUrlByApplyIdAsyncHandler; + typedef Outcome QueryClientIdsOutcome; + typedef std::future QueryClientIdsOutcomeCallable; + typedef std::function&)> QueryClientIdsAsyncHandler; typedef Outcome QueryConsumerGroupByGroupIdOutcome; typedef std::future QueryConsumerGroupByGroupIdOutcomeCallable; typedef std::function&)> QueryConsumerGroupByGroupIdAsyncHandler; @@ -1212,6 +1244,9 @@ namespace AlibabaCloud typedef Outcome QueryDeviceServiceDataOutcome; typedef std::future QueryDeviceServiceDataOutcomeCallable; typedef std::function&)> QueryDeviceServiceDataAsyncHandler; + typedef Outcome QueryDeviceSpeechOutcome; + typedef std::future QueryDeviceSpeechOutcomeCallable; + typedef std::function&)> QueryDeviceSpeechAsyncHandler; typedef Outcome QueryDeviceStatisticsOutcome; typedef std::future QueryDeviceStatisticsOutcomeCallable; typedef std::function&)> QueryDeviceStatisticsAsyncHandler; @@ -1257,6 +1292,9 @@ namespace AlibabaCloud typedef Outcome QueryLoRaJoinPermissionsOutcome; typedef std::future QueryLoRaJoinPermissionsOutcomeCallable; typedef std::function&)> QueryLoRaJoinPermissionsAsyncHandler; + typedef Outcome QueryMessageInfoOutcome; + typedef std::future QueryMessageInfoOutcomeCallable; + typedef std::function&)> QueryMessageInfoAsyncHandler; typedef Outcome QueryOTAFirmwareOutcome; typedef std::future QueryOTAFirmwareOutcomeCallable; typedef std::function&)> QueryOTAFirmwareAsyncHandler; @@ -1287,6 +1325,9 @@ namespace AlibabaCloud typedef Outcome QuerySpeechOutcome; typedef std::future QuerySpeechOutcomeCallable; typedef std::function&)> QuerySpeechAsyncHandler; + typedef Outcome QuerySpeechDeviceOutcome; + typedef std::future QuerySpeechDeviceOutcomeCallable; + typedef std::function&)> QuerySpeechDeviceAsyncHandler; typedef Outcome QuerySpeechListOutcome; typedef std::future QuerySpeechListOutcomeCallable; typedef std::function&)> QuerySpeechListAsyncHandler; @@ -1365,6 +1406,9 @@ namespace AlibabaCloud typedef Outcome ReplaceEdgeInstanceGatewayOutcome; typedef std::future ReplaceEdgeInstanceGatewayOutcomeCallable; typedef std::function&)> ReplaceEdgeInstanceGatewayAsyncHandler; + typedef Outcome RerunJobOutcome; + typedef std::future RerunJobOutcomeCallable; + typedef std::function&)> RerunJobAsyncHandler; typedef Outcome ResetConsumerGroupPositionOutcome; typedef std::future ResetConsumerGroupPositionOutcomeCallable; typedef std::function&)> ResetConsumerGroupPositionAsyncHandler; @@ -1407,12 +1451,18 @@ namespace AlibabaCloud typedef Outcome StopRuleOutcome; typedef std::future StopRuleOutcomeCallable; typedef std::function&)> StopRuleAsyncHandler; + typedef Outcome SubscribeTopicOutcome; + typedef std::future SubscribeTopicOutcomeCallable; + typedef std::function&)> SubscribeTopicAsyncHandler; typedef Outcome SyncSpeechByCombinationOutcome; typedef std::future SyncSpeechByCombinationOutcomeCallable; typedef std::function&)> SyncSpeechByCombinationAsyncHandler; typedef Outcome TestSpeechOutcome; typedef std::future TestSpeechOutcomeCallable; typedef std::function&)> TestSpeechAsyncHandler; + typedef Outcome TransformClientIdOutcome; + typedef std::future TransformClientIdOutcomeCallable; + typedef std::function&)> TransformClientIdAsyncHandler; typedef Outcome TriggerSceneRuleOutcome; typedef std::future TriggerSceneRuleOutcomeCallable; typedef std::function&)> TriggerSceneRuleAsyncHandler; @@ -1718,6 +1768,9 @@ namespace AlibabaCloud CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const; void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const; + DeleteClientIdsOutcome deleteClientIds(const Model::DeleteClientIdsRequest &request)const; + void deleteClientIdsAsync(const Model::DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClientIdsOutcomeCallable deleteClientIdsCallable(const Model::DeleteClientIdsRequest& request) const; DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const; void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const; @@ -1739,6 +1792,9 @@ namespace AlibabaCloud DeleteDevicePropOutcome deleteDeviceProp(const Model::DeleteDevicePropRequest &request)const; void deleteDevicePropAsync(const Model::DeleteDevicePropRequest& request, const DeleteDevicePropAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDevicePropOutcomeCallable deleteDevicePropCallable(const Model::DeleteDevicePropRequest& request) const; + DeleteDeviceSpeechOutcome deleteDeviceSpeech(const Model::DeleteDeviceSpeechRequest &request)const; + void deleteDeviceSpeechAsync(const Model::DeleteDeviceSpeechRequest& request, const DeleteDeviceSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeviceSpeechOutcomeCallable deleteDeviceSpeechCallable(const Model::DeleteDeviceSpeechRequest& request) const; DeleteEdgeDriverOutcome deleteEdgeDriver(const Model::DeleteEdgeDriverRequest &request)const; void deleteEdgeDriverAsync(const Model::DeleteEdgeDriverRequest& request, const DeleteEdgeDriverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEdgeDriverOutcomeCallable deleteEdgeDriverCallable(const Model::DeleteEdgeDriverRequest& request) const; @@ -1871,6 +1927,9 @@ 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; + GetSpeechDeviceDetailOutcome getSpeechDeviceDetail(const Model::GetSpeechDeviceDetailRequest &request)const; + void getSpeechDeviceDetailAsync(const Model::GetSpeechDeviceDetailRequest& request, const GetSpeechDeviceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSpeechDeviceDetailOutcomeCallable getSpeechDeviceDetailCallable(const Model::GetSpeechDeviceDetailRequest& 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; @@ -1997,6 +2056,9 @@ namespace AlibabaCloud QueryCertUrlByApplyIdOutcome queryCertUrlByApplyId(const Model::QueryCertUrlByApplyIdRequest &request)const; void queryCertUrlByApplyIdAsync(const Model::QueryCertUrlByApplyIdRequest& request, const QueryCertUrlByApplyIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryCertUrlByApplyIdOutcomeCallable queryCertUrlByApplyIdCallable(const Model::QueryCertUrlByApplyIdRequest& request) const; + QueryClientIdsOutcome queryClientIds(const Model::QueryClientIdsRequest &request)const; + void queryClientIdsAsync(const Model::QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryClientIdsOutcomeCallable queryClientIdsCallable(const Model::QueryClientIdsRequest& request) const; QueryConsumerGroupByGroupIdOutcome queryConsumerGroupByGroupId(const Model::QueryConsumerGroupByGroupIdRequest &request)const; void queryConsumerGroupByGroupIdAsync(const Model::QueryConsumerGroupByGroupIdRequest& request, const QueryConsumerGroupByGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryConsumerGroupByGroupIdOutcomeCallable queryConsumerGroupByGroupIdCallable(const Model::QueryConsumerGroupByGroupIdRequest& request) const; @@ -2093,6 +2155,9 @@ namespace AlibabaCloud QueryDeviceServiceDataOutcome queryDeviceServiceData(const Model::QueryDeviceServiceDataRequest &request)const; void queryDeviceServiceDataAsync(const Model::QueryDeviceServiceDataRequest& request, const QueryDeviceServiceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceServiceDataOutcomeCallable queryDeviceServiceDataCallable(const Model::QueryDeviceServiceDataRequest& request) const; + QueryDeviceSpeechOutcome queryDeviceSpeech(const Model::QueryDeviceSpeechRequest &request)const; + void queryDeviceSpeechAsync(const Model::QueryDeviceSpeechRequest& request, const QueryDeviceSpeechAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDeviceSpeechOutcomeCallable queryDeviceSpeechCallable(const Model::QueryDeviceSpeechRequest& request) const; QueryDeviceStatisticsOutcome queryDeviceStatistics(const Model::QueryDeviceStatisticsRequest &request)const; void queryDeviceStatisticsAsync(const Model::QueryDeviceStatisticsRequest& request, const QueryDeviceStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryDeviceStatisticsOutcomeCallable queryDeviceStatisticsCallable(const Model::QueryDeviceStatisticsRequest& request) const; @@ -2138,6 +2203,9 @@ namespace AlibabaCloud QueryLoRaJoinPermissionsOutcome queryLoRaJoinPermissions(const Model::QueryLoRaJoinPermissionsRequest &request)const; void queryLoRaJoinPermissionsAsync(const Model::QueryLoRaJoinPermissionsRequest& request, const QueryLoRaJoinPermissionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryLoRaJoinPermissionsOutcomeCallable queryLoRaJoinPermissionsCallable(const Model::QueryLoRaJoinPermissionsRequest& request) const; + QueryMessageInfoOutcome queryMessageInfo(const Model::QueryMessageInfoRequest &request)const; + void queryMessageInfoAsync(const Model::QueryMessageInfoRequest& request, const QueryMessageInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMessageInfoOutcomeCallable queryMessageInfoCallable(const Model::QueryMessageInfoRequest& request) const; QueryOTAFirmwareOutcome queryOTAFirmware(const Model::QueryOTAFirmwareRequest &request)const; void queryOTAFirmwareAsync(const Model::QueryOTAFirmwareRequest& request, const QueryOTAFirmwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryOTAFirmwareOutcomeCallable queryOTAFirmwareCallable(const Model::QueryOTAFirmwareRequest& request) const; @@ -2168,6 +2236,9 @@ namespace AlibabaCloud 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; + QuerySpeechDeviceOutcome querySpeechDevice(const Model::QuerySpeechDeviceRequest &request)const; + void querySpeechDeviceAsync(const Model::QuerySpeechDeviceRequest& request, const QuerySpeechDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechDeviceOutcomeCallable querySpeechDeviceCallable(const Model::QuerySpeechDeviceRequest& 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; @@ -2246,6 +2317,9 @@ namespace AlibabaCloud ReplaceEdgeInstanceGatewayOutcome replaceEdgeInstanceGateway(const Model::ReplaceEdgeInstanceGatewayRequest &request)const; void replaceEdgeInstanceGatewayAsync(const Model::ReplaceEdgeInstanceGatewayRequest& request, const ReplaceEdgeInstanceGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReplaceEdgeInstanceGatewayOutcomeCallable replaceEdgeInstanceGatewayCallable(const Model::ReplaceEdgeInstanceGatewayRequest& request) const; + RerunJobOutcome rerunJob(const Model::RerunJobRequest &request)const; + void rerunJobAsync(const Model::RerunJobRequest& request, const RerunJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RerunJobOutcomeCallable rerunJobCallable(const Model::RerunJobRequest& request) const; ResetConsumerGroupPositionOutcome resetConsumerGroupPosition(const Model::ResetConsumerGroupPositionRequest &request)const; void resetConsumerGroupPositionAsync(const Model::ResetConsumerGroupPositionRequest& request, const ResetConsumerGroupPositionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetConsumerGroupPositionOutcomeCallable resetConsumerGroupPositionCallable(const Model::ResetConsumerGroupPositionRequest& request) const; @@ -2288,12 +2362,18 @@ namespace AlibabaCloud StopRuleOutcome stopRule(const Model::StopRuleRequest &request)const; void stopRuleAsync(const Model::StopRuleRequest& request, const StopRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopRuleOutcomeCallable stopRuleCallable(const Model::StopRuleRequest& request) const; + SubscribeTopicOutcome subscribeTopic(const Model::SubscribeTopicRequest &request)const; + void subscribeTopicAsync(const Model::SubscribeTopicRequest& request, const SubscribeTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeTopicOutcomeCallable subscribeTopicCallable(const Model::SubscribeTopicRequest& request) const; SyncSpeechByCombinationOutcome syncSpeechByCombination(const Model::SyncSpeechByCombinationRequest &request)const; void syncSpeechByCombinationAsync(const Model::SyncSpeechByCombinationRequest& request, const SyncSpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncSpeechByCombinationOutcomeCallable syncSpeechByCombinationCallable(const Model::SyncSpeechByCombinationRequest& request) const; 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; + TransformClientIdOutcome transformClientId(const Model::TransformClientIdRequest &request)const; + void transformClientIdAsync(const Model::TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransformClientIdOutcomeCallable transformClientIdCallable(const Model::TransformClientIdRequest& request) const; TriggerSceneRuleOutcome triggerSceneRule(const Model::TriggerSceneRuleRequest &request)const; void triggerSceneRuleAsync(const Model::TriggerSceneRuleRequest& request, const TriggerSceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TriggerSceneRuleOutcomeCallable triggerSceneRuleCallable(const Model::TriggerSceneRuleRequest& request) const; diff --git a/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h b/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h index 009751b76..98d80723e 100644 --- a/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateOTAFirmwareRequest.h @@ -30,6 +30,15 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT CreateOTAFirmwareRequest : public RpcServiceRequest { + public: + struct MultiFiles + { + int size; + std::string name; + std::string signValue; + std::string fileMd5; + std::string url; + }; public: CreateOTAFirmwareRequest(); @@ -37,6 +46,8 @@ namespace AlibabaCloud std::string getSignMethod()const; void setSignMethod(const std::string& signMethod); + std::vector getMultiFiles()const; + void setMultiFiles(const std::vector& multiFiles); bool getNeedToVerify()const; void setNeedToVerify(bool needToVerify); int getType()const; @@ -65,11 +76,14 @@ namespace AlibabaCloud void setApiProduct(const std::string& apiProduct); std::string getApiRevision()const; void setApiRevision(const std::string& apiRevision); + std::string getUdi()const; + void setUdi(const std::string& udi); std::string getDestVersion()const; void setDestVersion(const std::string& destVersion); private: std::string signMethod_; + std::vector multiFiles_; bool needToVerify_; int type_; std::string firmwareUrl_; @@ -84,6 +98,7 @@ namespace AlibabaCloud std::string srcVersion_; std::string apiProduct_; std::string apiRevision_; + std::string udi_; std::string destVersion_; }; diff --git a/iot/include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h b/iot/include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h index c16c04153..bbf6257c5 100644 --- a/iot/include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateOTAVerifyJobRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_IOT_EXPORT CreateOTAVerifyJobRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: CreateOTAVerifyJobRequest(); @@ -45,6 +51,8 @@ namespace AlibabaCloud void setNeedPush(bool needPush); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getFirmwareId()const; void setFirmwareId(const std::string& firmwareId); std::string getProductKey()const; @@ -62,6 +70,7 @@ namespace AlibabaCloud std::string accessKeyId_; bool needPush_; std::string iotInstanceId_; + std::vector tag_; std::string firmwareId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h b/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h index 21b75d6ff..91dd01f46 100644 --- a/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h +++ b/iot/include/alibabacloud/iot/model/CreateSpeechRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setVoice(const std::string& voice); std::string getProjectCode()const; void setProjectCode(const std::string& projectCode); + std::string getAudioFormat()const; + void setAudioFormat(const std::string& audioFormat); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getText()const; @@ -59,6 +61,7 @@ namespace AlibabaCloud private: std::string voice_; std::string projectCode_; + std::string audioFormat_; std::string iotInstanceId_; std::string text_; std::string speechType_; diff --git a/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h b/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h new file mode 100644 index 000000000..216442488 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteClientIdsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsRequest : public RpcServiceRequest + { + + public: + DeleteClientIdsRequest(); + ~DeleteClientIdsRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h b/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h new file mode 100644 index 000000000..07debde20 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteClientIdsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteClientIdsResult : public ServiceResult + { + public: + + + DeleteClientIdsResult(); + explicit DeleteClientIdsResult(const std::string &payload); + ~DeleteClientIdsResult(); + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETECLIENTIDSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteDeviceSpeechRequest.h b/iot/include/alibabacloud/iot/model/DeleteDeviceSpeechRequest.h new file mode 100644 index 000000000..91faee0e9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteDeviceSpeechRequest.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_DELETEDEVICESPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEDEVICESPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteDeviceSpeechRequest : public RpcServiceRequest + { + public: + struct DeviceSpeechList + { + std::string bizCode; + std::string audioFormat; + }; + + public: + DeleteDeviceSpeechRequest(); + ~DeleteDeviceSpeechRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::vector getDeviceSpeechList()const; + void setDeviceSpeechList(const std::vector& deviceSpeechList); + + private: + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + std::vector deviceSpeechList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETEDEVICESPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteDeviceSpeechResult.h b/iot/include/alibabacloud/iot/model/DeleteDeviceSpeechResult.h new file mode 100644 index 000000000..69f3e0edc --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteDeviceSpeechResult.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_DELETEDEVICESPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETEDEVICESPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteDeviceSpeechResult : public ServiceResult + { + public: + + + DeleteDeviceSpeechResult(); + explicit DeleteDeviceSpeechResult(const std::string &payload); + ~DeleteDeviceSpeechResult(); + 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_DELETEDEVICESPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h b/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h index d1f032e9f..4c72898f1 100644 --- a/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/DeleteThingModelRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setResourceGroupId(const std::string& resourceGroupId); std::vector getPropertyIdentifier()const; void setPropertyIdentifier(const std::vector& propertyIdentifier); + std::string getDTModelId()const; + void setDTModelId(const std::string& dTModelId); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::vector getServiceIdentifier()const; @@ -69,6 +71,7 @@ namespace AlibabaCloud std::string realTripartiteKey_; std::string resourceGroupId_; std::vector propertyIdentifier_; + std::string dTModelId_; std::string iotInstanceId_; std::vector serviceIdentifier_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/GetGatewayBySubDeviceRequest.h b/iot/include/alibabacloud/iot/model/GetGatewayBySubDeviceRequest.h index 7184cb108..7c02f6c6e 100644 --- a/iot/include/alibabacloud/iot/model/GetGatewayBySubDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/GetGatewayBySubDeviceRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud GetGatewayBySubDeviceRequest(); ~GetGatewayBySubDeviceRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotId()const; void setIotId(const std::string& iotId); std::string getIotInstanceId()const; @@ -51,7 +55,9 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotId_; std::string iotInstanceId_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/GetSpeechDeviceDetailRequest.h b/iot/include/alibabacloud/iot/model/GetSpeechDeviceDetailRequest.h new file mode 100644 index 000000000..9db92a1a6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetSpeechDeviceDetailRequest.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_GETSPEECHDEVICEDETAILREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSPEECHDEVICEDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetSpeechDeviceDetailRequest : public RpcServiceRequest + { + + public: + GetSpeechDeviceDetailRequest(); + ~GetSpeechDeviceDetailRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSPEECHDEVICEDETAILREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetSpeechDeviceDetailResult.h b/iot/include/alibabacloud/iot/model/GetSpeechDeviceDetailResult.h new file mode 100644 index 000000000..f537df996 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetSpeechDeviceDetailResult.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_GETSPEECHDEVICEDETAILRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSPEECHDEVICEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetSpeechDeviceDetailResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string iotId; + float availableSpace; + long speechListUpdateTime; + float totalSpace; + std::string productKey; + std::string deviceName; + }; + + + GetSpeechDeviceDetailResult(); + explicit GetSpeechDeviceDetailResult(const std::string &payload); + ~GetSpeechDeviceDetailResult(); + 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_GETSPEECHDEVICEDETAILRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h b/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h index 9ec53768c..d54aadc5b 100644 --- a/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h +++ b/iot/include/alibabacloud/iot/model/GetThingModelTslRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getRealTripartiteKey()const; void setRealTripartiteKey(const std::string& realTripartiteKey); + std::string getDTModelId()const; + void setDTModelId(const std::string& dTModelId); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud bool simple_; std::string accessKeyId_; std::string realTripartiteKey_; + std::string dTModelId_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/ListThingModelVersionRequest.h b/iot/include/alibabacloud/iot/model/ListThingModelVersionRequest.h index b0e6cbaa4..54c35cbee 100644 --- a/iot/include/alibabacloud/iot/model/ListThingModelVersionRequest.h +++ b/iot/include/alibabacloud/iot/model/ListThingModelVersionRequest.h @@ -35,8 +35,12 @@ namespace AlibabaCloud ListThingModelVersionRequest(); ~ListThingModelVersionRequest(); + std::string getRealTenantId()const; + void setRealTenantId(const std::string& realTenantId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getRealTripartiteKey()const; + void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -47,7 +51,9 @@ namespace AlibabaCloud void setApiRevision(const std::string& apiRevision); private: + std::string realTenantId_; std::string accessKeyId_; + std::string realTripartiteKey_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h b/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h new file mode 100644 index 000000000..ff564debd --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryClientIdsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryClientIdsRequest : public RpcServiceRequest + { + + public: + QueryClientIdsRequest(); + ~QueryClientIdsRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h b/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h new file mode 100644 index 000000000..0965edb4f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryClientIdsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryClientIdsResult : public ServiceResult + { + public: + struct Data + { + struct DynamicRegClientId + { + long createTime; + std::string clientId; + }; + std::vector dynamicRegClientIds; + std::string iotId; + }; + + + QueryClientIdsResult(); + explicit QueryClientIdsResult(const std::string &payload); + ~QueryClientIdsResult(); + Data getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYCLIENTIDSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceSpeechRequest.h b/iot/include/alibabacloud/iot/model/QueryDeviceSpeechRequest.h new file mode 100644 index 000000000..ec69b9d00 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceSpeechRequest.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_QUERYDEVICESPEECHREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESPEECHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceSpeechRequest : public RpcServiceRequest + { + + public: + QueryDeviceSpeechRequest(); + ~QueryDeviceSpeechRequest(); + + int getPageId()const; + void setPageId(int pageId); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + int pageId_; + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESPEECHREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryDeviceSpeechResult.h b/iot/include/alibabacloud/iot/model/QueryDeviceSpeechResult.h new file mode 100644 index 000000000..c34e75bf0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryDeviceSpeechResult.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_QUERYDEVICESPEECHRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESPEECHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryDeviceSpeechResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + float size; + std::string audioFormat; + std::string bizCode; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QueryDeviceSpeechResult(); + explicit QueryDeviceSpeechResult(const std::string &payload); + ~QueryDeviceSpeechResult(); + 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_QUERYDEVICESPEECHRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryEdgeDriverResult.h b/iot/include/alibabacloud/iot/model/QueryEdgeDriverResult.h index d0c5e18ac..b2d99df31 100644 --- a/iot/include/alibabacloud/iot/model/QueryEdgeDriverResult.h +++ b/iot/include/alibabacloud/iot/model/QueryEdgeDriverResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud int type; long gmtCreateTimestamp; std::string driverName; + bool isApply; long gmtModifiedTimestamp; std::string cpuArch; bool isBuiltIn; diff --git a/iot/include/alibabacloud/iot/model/QueryMessageInfoRequest.h b/iot/include/alibabacloud/iot/model/QueryMessageInfoRequest.h new file mode 100644 index 000000000..18af89cc9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryMessageInfoRequest.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_QUERYMESSAGEINFOREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYMESSAGEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryMessageInfoRequest : public RpcServiceRequest + { + + public: + QueryMessageInfoRequest(); + ~QueryMessageInfoRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getUniMsgId()const; + void setUniMsgId(const std::string& uniMsgId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string accessKeyId_; + std::string uniMsgId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYMESSAGEINFOREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.h b/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.h new file mode 100644 index 000000000..948bd6e20 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryMessageInfoResult.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_QUERYMESSAGEINFORESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYMESSAGEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryMessageInfoResult : public ServiceResult + { + public: + struct Message + { + struct UserProperty + { + std::string value; + std::string key; + }; + std::string messageContent; + std::vector userProperties; + long generateTime; + std::string uniMsgId; + std::string topicFullName; + }; + + + QueryMessageInfoResult(); + explicit QueryMessageInfoResult(const std::string &payload); + ~QueryMessageInfoResult(); + Message getMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Message message_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYMESSAGEINFORESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryOTAFirmwareResult.h b/iot/include/alibabacloud/iot/model/QueryOTAFirmwareResult.h index fe24acaef..2e623fd29 100644 --- a/iot/include/alibabacloud/iot/model/QueryOTAFirmwareResult.h +++ b/iot/include/alibabacloud/iot/model/QueryOTAFirmwareResult.h @@ -34,6 +34,14 @@ namespace AlibabaCloud public: struct FirmwareInfo { + struct OtaPackageFileDTO + { + std::string fileMd5; + int size; + std::string url; + std::string name; + std::string signValue; + }; int status; int verifyProgress; int firmwareSize; @@ -45,10 +53,12 @@ namespace AlibabaCloud int type; std::string utcCreate; std::string firmwareDesc; + std::vector multiFiles; std::string firmwareUrl; std::string utcModified; std::string firmwareName; std::string destVersion; + std::string udi; std::string productKey; std::string srcVersion; }; diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechDeviceRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechDeviceRequest.h new file mode 100644 index 000000000..8eefd57cc --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechDeviceRequest.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_QUERYSPEECHDEVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechDeviceRequest : public RpcServiceRequest + { + + public: + QuerySpeechDeviceRequest(); + ~QuerySpeechDeviceRequest(); + + std::string getAvailableSpaceScope()const; + void setAvailableSpaceScope(const std::string& availableSpaceScope); + 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 getAvailableSpace()const; + void setAvailableSpace(const std::string& availableSpace); + 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 availableSpaceScope_; + std::string projectCode_; + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string availableSpace_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHDEVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechDeviceResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechDeviceResult.h new file mode 100644 index 000000000..184b6bbd2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechDeviceResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHDEVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechDeviceResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + std::string iotId; + float availableSpace; + std::string productKey; + std::string deviceName; + }; + int pageId; + int pageSize; + int total; + std::vector list; + }; + + + QuerySpeechDeviceResult(); + explicit QuerySpeechDeviceResult(const std::string &payload); + ~QuerySpeechDeviceResult(); + 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_QUERYSPEECHDEVICERESULT_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 index d8ac7510b..88c330860 100644 --- a/iot/include/alibabacloud/iot/model/QuerySpeechListRequest.h +++ b/iot/include/alibabacloud/iot/model/QuerySpeechListRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setProjectCode(const std::string& projectCode); int getPageId()const; void setPageId(int pageId); + std::string getAudioFormat()const; + void setAudioFormat(const std::string& audioFormat); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); int getPageSize()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string projectCode_; int pageId_; + std::string audioFormat_; std::string iotInstanceId_; int pageSize_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h index 02df48f62..8c8607118 100644 --- a/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h +++ b/iot/include/alibabacloud/iot/model/QuerySpeechListResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud std::vector speechList; std::string speechCode; std::string text; + std::string audioFormat; std::string voice; std::string bizCode; }; diff --git a/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h b/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h index 85c579eca..2b5871c07 100644 --- a/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h +++ b/iot/include/alibabacloud/iot/model/QueryThingModelRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setRealTripartiteKey(const std::string& realTripartiteKey); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); + std::string getDTModelId()const; + void setDTModelId(const std::string& dTModelId); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getProductKey()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud std::string accessKeyId_; std::string realTripartiteKey_; std::string resourceGroupId_; + std::string dTModelId_; std::string iotInstanceId_; std::string productKey_; std::string apiProduct_; diff --git a/iot/include/alibabacloud/iot/model/RerunJobRequest.h b/iot/include/alibabacloud/iot/model/RerunJobRequest.h new file mode 100644 index 000000000..15af46ca9 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/RerunJobRequest.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_RERUNJOBREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_RERUNJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT RerunJobRequest : public RpcServiceRequest + { + + public: + RerunJobRequest(); + ~RerunJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string jobId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_RERUNJOBREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/RerunJobResult.h b/iot/include/alibabacloud/iot/model/RerunJobResult.h new file mode 100644 index 000000000..93b7f6864 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/RerunJobResult.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_RERUNJOBRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_RERUNJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT RerunJobResult : public ServiceResult + { + public: + + + RerunJobResult(); + explicit RerunJobResult(const std::string &payload); + ~RerunJobResult(); + 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_RERUNJOBRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h index 25e02650a..1a6428087 100644 --- a/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h +++ b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h @@ -35,6 +35,10 @@ namespace AlibabaCloud SpeechByCombinationRequest(); ~SpeechByCombinationRequest(); + std::string getSpeechId()const; + void setSpeechId(const std::string& speechId); + std::string getAudioFormat()const; + void setAudioFormat(const std::string& audioFormat); std::string getIotId()const; void setIotId(const std::string& iotId); std::vector getCombinationList()const; @@ -51,6 +55,8 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string speechId_; + std::string audioFormat_; std::string iotId_; std::vector combinationList_; std::string iotInstanceId_; diff --git a/iot/include/alibabacloud/iot/model/SubscribeTopicRequest.h b/iot/include/alibabacloud/iot/model/SubscribeTopicRequest.h new file mode 100644 index 000000000..6725e2c25 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SubscribeTopicRequest.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_SUBSCRIBETOPICREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SUBSCRIBETOPICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SubscribeTopicRequest : public RpcServiceRequest + { + + public: + SubscribeTopicRequest(); + ~SubscribeTopicRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::vector getTopic()const; + void setTopic(const std::vector& topic); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::vector topic_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SUBSCRIBETOPICREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SubscribeTopicResult.h b/iot/include/alibabacloud/iot/model/SubscribeTopicResult.h new file mode 100644 index 000000000..1bf3106f1 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/SubscribeTopicResult.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_SUBSCRIBETOPICRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SUBSCRIBETOPICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT SubscribeTopicResult : public ServiceResult + { + public: + + + SubscribeTopicResult(); + explicit SubscribeTopicResult(const std::string &payload); + ~SubscribeTopicResult(); + 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_SUBSCRIBETOPICRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h index 6c911b156..c549bad4c 100644 --- a/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h +++ b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h @@ -35,6 +35,10 @@ namespace AlibabaCloud SyncSpeechByCombinationRequest(); ~SyncSpeechByCombinationRequest(); + std::string getSpeechId()const; + void setSpeechId(const std::string& speechId); + std::string getAudioFormat()const; + void setAudioFormat(const std::string& audioFormat); std::string getIotId()const; void setIotId(const std::string& iotId); std::vector getCombinationList()const; @@ -51,6 +55,8 @@ namespace AlibabaCloud void setDeviceName(const std::string& deviceName); private: + std::string speechId_; + std::string audioFormat_; std::string iotId_; std::vector combinationList_; std::string iotInstanceId_; diff --git a/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h index 16932de5f..dec4b0734 100644 --- a/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h +++ b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string deviceErrorCode; std::string deviceErrorMessage; bool success; + std::string detail; }; diff --git a/iot/include/alibabacloud/iot/model/TestSpeechRequest.h b/iot/include/alibabacloud/iot/model/TestSpeechRequest.h index b77d59ef6..78e8a8171 100644 --- a/iot/include/alibabacloud/iot/model/TestSpeechRequest.h +++ b/iot/include/alibabacloud/iot/model/TestSpeechRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setVoice(const std::string& voice); std::string getProjectCode()const; void setProjectCode(const std::string& projectCode); + std::string getAudioFormat()const; + void setAudioFormat(const std::string& audioFormat); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::string getText()const; @@ -57,6 +59,7 @@ namespace AlibabaCloud private: std::string voice_; std::string projectCode_; + std::string audioFormat_; std::string iotInstanceId_; std::string text_; std::string speechType_; diff --git a/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h b/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h new file mode 100644 index 000000000..22058c76a --- /dev/null +++ b/iot/include/alibabacloud/iot/model/TransformClientIdRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT TransformClientIdRequest : public RpcServiceRequest + { + + public: + TransformClientIdRequest(); + ~TransformClientIdRequest(); + + std::string getAuthConfig()const; + void setAuthConfig(const std::string& authConfig); + std::string getClientId()const; + void setClientId(const std::string& clientId); + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string authConfig_; + std::string clientId_; + std::string iotId_; + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/TransformClientIdResult.h b/iot/include/alibabacloud/iot/model/TransformClientIdResult.h new file mode 100644 index 000000000..adfc7091b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/TransformClientIdResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT TransformClientIdResult : public ServiceResult + { + public: + + + TransformClientIdResult(); + explicit TransformClientIdResult(const std::string &payload); + ~TransformClientIdResult(); + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_TRANSFORMCLIENTIDRESULT_H_ \ No newline at end of file diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index bd99f93c4..23c94862a 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -2715,6 +2715,42 @@ IotClient::CreateTopicRouteTableOutcomeCallable IotClient::createTopicRouteTable return task->get_future(); } +IotClient::DeleteClientIdsOutcome IotClient::deleteClientIds(const DeleteClientIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClientIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClientIdsOutcome(DeleteClientIdsResult(outcome.result())); + else + return DeleteClientIdsOutcome(outcome.error()); +} + +void IotClient::deleteClientIdsAsync(const DeleteClientIdsRequest& request, const DeleteClientIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteClientIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteClientIdsOutcomeCallable IotClient::deleteClientIdsCallable(const DeleteClientIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteClientIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteConsumerGroupOutcome IotClient::deleteConsumerGroup(const DeleteConsumerGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,6 +3003,42 @@ IotClient::DeleteDevicePropOutcomeCallable IotClient::deleteDevicePropCallable(c return task->get_future(); } +IotClient::DeleteDeviceSpeechOutcome IotClient::deleteDeviceSpeech(const DeleteDeviceSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeviceSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeviceSpeechOutcome(DeleteDeviceSpeechResult(outcome.result())); + else + return DeleteDeviceSpeechOutcome(outcome.error()); +} + +void IotClient::deleteDeviceSpeechAsync(const DeleteDeviceSpeechRequest& request, const DeleteDeviceSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeviceSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteDeviceSpeechOutcomeCallable IotClient::deleteDeviceSpeechCallable(const DeleteDeviceSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeviceSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteEdgeDriverOutcome IotClient::deleteEdgeDriver(const DeleteEdgeDriverRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +4623,42 @@ IotClient::GetSceneRuleOutcomeCallable IotClient::getSceneRuleCallable(const Get return task->get_future(); } +IotClient::GetSpeechDeviceDetailOutcome IotClient::getSpeechDeviceDetail(const GetSpeechDeviceDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSpeechDeviceDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSpeechDeviceDetailOutcome(GetSpeechDeviceDetailResult(outcome.result())); + else + return GetSpeechDeviceDetailOutcome(outcome.error()); +} + +void IotClient::getSpeechDeviceDetailAsync(const GetSpeechDeviceDetailRequest& request, const GetSpeechDeviceDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSpeechDeviceDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetSpeechDeviceDetailOutcomeCallable IotClient::getSpeechDeviceDetailCallable(const GetSpeechDeviceDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSpeechDeviceDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetSpeechVoiceOutcome IotClient::getSpeechVoice(const GetSpeechVoiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6063,6 +6171,42 @@ IotClient::QueryCertUrlByApplyIdOutcomeCallable IotClient::queryCertUrlByApplyId return task->get_future(); } +IotClient::QueryClientIdsOutcome IotClient::queryClientIds(const QueryClientIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryClientIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryClientIdsOutcome(QueryClientIdsResult(outcome.result())); + else + return QueryClientIdsOutcome(outcome.error()); +} + +void IotClient::queryClientIdsAsync(const QueryClientIdsRequest& request, const QueryClientIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryClientIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryClientIdsOutcomeCallable IotClient::queryClientIdsCallable(const QueryClientIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryClientIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryConsumerGroupByGroupIdOutcome IotClient::queryConsumerGroupByGroupId(const QueryConsumerGroupByGroupIdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7215,6 +7359,42 @@ IotClient::QueryDeviceServiceDataOutcomeCallable IotClient::queryDeviceServiceDa return task->get_future(); } +IotClient::QueryDeviceSpeechOutcome IotClient::queryDeviceSpeech(const QueryDeviceSpeechRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDeviceSpeechOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDeviceSpeechOutcome(QueryDeviceSpeechResult(outcome.result())); + else + return QueryDeviceSpeechOutcome(outcome.error()); +} + +void IotClient::queryDeviceSpeechAsync(const QueryDeviceSpeechRequest& request, const QueryDeviceSpeechAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDeviceSpeech(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryDeviceSpeechOutcomeCallable IotClient::queryDeviceSpeechCallable(const QueryDeviceSpeechRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDeviceSpeech(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryDeviceStatisticsOutcome IotClient::queryDeviceStatistics(const QueryDeviceStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7755,6 +7935,42 @@ IotClient::QueryLoRaJoinPermissionsOutcomeCallable IotClient::queryLoRaJoinPermi return task->get_future(); } +IotClient::QueryMessageInfoOutcome IotClient::queryMessageInfo(const QueryMessageInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMessageInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMessageInfoOutcome(QueryMessageInfoResult(outcome.result())); + else + return QueryMessageInfoOutcome(outcome.error()); +} + +void IotClient::queryMessageInfoAsync(const QueryMessageInfoRequest& request, const QueryMessageInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMessageInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryMessageInfoOutcomeCallable IotClient::queryMessageInfoCallable(const QueryMessageInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMessageInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QueryOTAFirmwareOutcome IotClient::queryOTAFirmware(const QueryOTAFirmwareRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8115,6 +8331,42 @@ IotClient::QuerySpeechOutcomeCallable IotClient::querySpeechCallable(const Query return task->get_future(); } +IotClient::QuerySpeechDeviceOutcome IotClient::querySpeechDevice(const QuerySpeechDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechDeviceOutcome(QuerySpeechDeviceResult(outcome.result())); + else + return QuerySpeechDeviceOutcome(outcome.error()); +} + +void IotClient::querySpeechDeviceAsync(const QuerySpeechDeviceRequest& request, const QuerySpeechDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeechDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechDeviceOutcomeCallable IotClient::querySpeechDeviceCallable(const QuerySpeechDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeechDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QuerySpeechListOutcome IotClient::querySpeechList(const QuerySpeechListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9051,6 +9303,42 @@ IotClient::ReplaceEdgeInstanceGatewayOutcomeCallable IotClient::replaceEdgeInsta return task->get_future(); } +IotClient::RerunJobOutcome IotClient::rerunJob(const RerunJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RerunJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RerunJobOutcome(RerunJobResult(outcome.result())); + else + return RerunJobOutcome(outcome.error()); +} + +void IotClient::rerunJobAsync(const RerunJobRequest& request, const RerunJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rerunJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::RerunJobOutcomeCallable IotClient::rerunJobCallable(const RerunJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rerunJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::ResetConsumerGroupPositionOutcome IotClient::resetConsumerGroupPosition(const ResetConsumerGroupPositionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9555,6 +9843,42 @@ IotClient::StopRuleOutcomeCallable IotClient::stopRuleCallable(const StopRuleReq return task->get_future(); } +IotClient::SubscribeTopicOutcome IotClient::subscribeTopic(const SubscribeTopicRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubscribeTopicOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubscribeTopicOutcome(SubscribeTopicResult(outcome.result())); + else + return SubscribeTopicOutcome(outcome.error()); +} + +void IotClient::subscribeTopicAsync(const SubscribeTopicRequest& request, const SubscribeTopicAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, subscribeTopic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::SubscribeTopicOutcomeCallable IotClient::subscribeTopicCallable(const SubscribeTopicRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->subscribeTopic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::SyncSpeechByCombinationOutcome IotClient::syncSpeechByCombination(const SyncSpeechByCombinationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9627,6 +9951,42 @@ IotClient::TestSpeechOutcomeCallable IotClient::testSpeechCallable(const TestSpe return task->get_future(); } +IotClient::TransformClientIdOutcome IotClient::transformClientId(const TransformClientIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransformClientIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransformClientIdOutcome(TransformClientIdResult(outcome.result())); + else + return TransformClientIdOutcome(outcome.error()); +} + +void IotClient::transformClientIdAsync(const TransformClientIdRequest& request, const TransformClientIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transformClientId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::TransformClientIdOutcomeCallable IotClient::transformClientIdCallable(const TransformClientIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transformClientId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::TriggerSceneRuleOutcome IotClient::triggerSceneRule(const TriggerSceneRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/iot/src/model/CreateOTAFirmwareRequest.cc b/iot/src/model/CreateOTAFirmwareRequest.cc index 04f7a49ba..32f76cf2e 100644 --- a/iot/src/model/CreateOTAFirmwareRequest.cc +++ b/iot/src/model/CreateOTAFirmwareRequest.cc @@ -38,6 +38,25 @@ void CreateOTAFirmwareRequest::setSignMethod(const std::string& signMethod) setParameter("SignMethod", signMethod); } +std::vector CreateOTAFirmwareRequest::getMultiFiles()const +{ + return multiFiles_; +} + +void CreateOTAFirmwareRequest::setMultiFiles(const std::vector& multiFiles) +{ + multiFiles_ = multiFiles; + for(int dep1 = 0; dep1!= multiFiles.size(); dep1++) { + auto multiFilesObj = multiFiles.at(dep1); + std::string multiFilesObjStr = "MultiFiles." + std::to_string(dep1 + 1); + setParameter(multiFilesObjStr + ".Size", std::to_string(multiFilesObj.size)); + setParameter(multiFilesObjStr + ".Name", multiFilesObj.name); + setParameter(multiFilesObjStr + ".SignValue", multiFilesObj.signValue); + setParameter(multiFilesObjStr + ".FileMd5", multiFilesObj.fileMd5); + setParameter(multiFilesObjStr + ".Url", multiFilesObj.url); + } +} + bool CreateOTAFirmwareRequest::getNeedToVerify()const { return needToVerify_; @@ -192,6 +211,17 @@ void CreateOTAFirmwareRequest::setApiRevision(const std::string& apiRevision) setBodyParameter("ApiRevision", apiRevision); } +std::string CreateOTAFirmwareRequest::getUdi()const +{ + return udi_; +} + +void CreateOTAFirmwareRequest::setUdi(const std::string& udi) +{ + udi_ = udi; + setParameter("Udi", udi); +} + std::string CreateOTAFirmwareRequest::getDestVersion()const { return destVersion_; diff --git a/iot/src/model/CreateOTAVerifyJobRequest.cc b/iot/src/model/CreateOTAVerifyJobRequest.cc index aa17d13af..c8479aad4 100644 --- a/iot/src/model/CreateOTAVerifyJobRequest.cc +++ b/iot/src/model/CreateOTAVerifyJobRequest.cc @@ -82,6 +82,22 @@ void CreateOTAVerifyJobRequest::setIotInstanceId(const std::string& iotInstanceI setParameter("IotInstanceId", iotInstanceId); } +std::vector CreateOTAVerifyJobRequest::getTag()const +{ + return tag_; +} + +void CreateOTAVerifyJobRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateOTAVerifyJobRequest::getFirmwareId()const { return firmwareId_; diff --git a/iot/src/model/CreateSpeechRequest.cc b/iot/src/model/CreateSpeechRequest.cc index 65d2742de..237995bd8 100644 --- a/iot/src/model/CreateSpeechRequest.cc +++ b/iot/src/model/CreateSpeechRequest.cc @@ -49,6 +49,17 @@ void CreateSpeechRequest::setProjectCode(const std::string& projectCode) setBodyParameter("ProjectCode", projectCode); } +std::string CreateSpeechRequest::getAudioFormat()const +{ + return audioFormat_; +} + +void CreateSpeechRequest::setAudioFormat(const std::string& audioFormat) +{ + audioFormat_ = audioFormat; + setBodyParameter("AudioFormat", audioFormat); +} + std::string CreateSpeechRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/DeleteClientIdsRequest.cc b/iot/src/model/DeleteClientIdsRequest.cc new file mode 100644 index 000000000..75b0ecd2b --- /dev/null +++ b/iot/src/model/DeleteClientIdsRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteClientIdsRequest; + +DeleteClientIdsRequest::DeleteClientIdsRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteClientIds") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteClientIdsRequest::~DeleteClientIdsRequest() +{} + +std::string DeleteClientIdsRequest::getAuthConfig()const +{ + return authConfig_; +} + +void DeleteClientIdsRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string DeleteClientIdsRequest::getIotId()const +{ + return iotId_; +} + +void DeleteClientIdsRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string DeleteClientIdsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteClientIdsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteClientIdsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteClientIdsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteClientIdsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteClientIdsResult.cc b/iot/src/model/DeleteClientIdsResult.cc new file mode 100644 index 000000000..e374d7232 --- /dev/null +++ b/iot/src/model/DeleteClientIdsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DeleteClientIdsResult::DeleteClientIdsResult() : + ServiceResult() +{} + +DeleteClientIdsResult::DeleteClientIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClientIdsResult::~DeleteClientIdsResult() +{} + +void DeleteClientIdsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string DeleteClientIdsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteClientIdsResult::getCode()const +{ + return code_; +} + +bool DeleteClientIdsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteDeviceSpeechRequest.cc b/iot/src/model/DeleteDeviceSpeechRequest.cc new file mode 100644 index 000000000..d374c0f59 --- /dev/null +++ b/iot/src/model/DeleteDeviceSpeechRequest.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteDeviceSpeechRequest; + +DeleteDeviceSpeechRequest::DeleteDeviceSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteDeviceSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDeviceSpeechRequest::~DeleteDeviceSpeechRequest() +{} + +std::string DeleteDeviceSpeechRequest::getIotId()const +{ + return iotId_; +} + +void DeleteDeviceSpeechRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::string DeleteDeviceSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteDeviceSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string DeleteDeviceSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteDeviceSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteDeviceSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteDeviceSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::vector DeleteDeviceSpeechRequest::getDeviceSpeechList()const +{ + return deviceSpeechList_; +} + +void DeleteDeviceSpeechRequest::setDeviceSpeechList(const std::vector& deviceSpeechList) +{ + deviceSpeechList_ = deviceSpeechList; + for(int dep1 = 0; dep1!= deviceSpeechList.size(); dep1++) { + auto deviceSpeechListObj = deviceSpeechList.at(dep1); + std::string deviceSpeechListObjStr = "DeviceSpeechList." + std::to_string(dep1 + 1); + setParameter(deviceSpeechListObjStr + ".BizCode", deviceSpeechListObj.bizCode); + setParameter(deviceSpeechListObjStr + ".AudioFormat", deviceSpeechListObj.audioFormat); + } +} + diff --git a/iot/src/model/DeleteDeviceSpeechResult.cc b/iot/src/model/DeleteDeviceSpeechResult.cc new file mode 100644 index 000000000..42b657dc9 --- /dev/null +++ b/iot/src/model/DeleteDeviceSpeechResult.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; + +DeleteDeviceSpeechResult::DeleteDeviceSpeechResult() : + ServiceResult() +{} + +DeleteDeviceSpeechResult::DeleteDeviceSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeviceSpeechResult::~DeleteDeviceSpeechResult() +{} + +void DeleteDeviceSpeechResult::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 DeleteDeviceSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteDeviceSpeechResult::getCode()const +{ + return code_; +} + +bool DeleteDeviceSpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/DeleteThingModelRequest.cc b/iot/src/model/DeleteThingModelRequest.cc index 351f82748..de0bc572a 100644 --- a/iot/src/model/DeleteThingModelRequest.cc +++ b/iot/src/model/DeleteThingModelRequest.cc @@ -95,6 +95,17 @@ void DeleteThingModelRequest::setPropertyIdentifier(const std::vector + +using AlibabaCloud::Iot::Model::GetSpeechDeviceDetailRequest; + +GetSpeechDeviceDetailRequest::GetSpeechDeviceDetailRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetSpeechDeviceDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSpeechDeviceDetailRequest::~GetSpeechDeviceDetailRequest() +{} + +std::string GetSpeechDeviceDetailRequest::getIotId()const +{ + return iotId_; +} + +void GetSpeechDeviceDetailRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::string GetSpeechDeviceDetailRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetSpeechDeviceDetailRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string GetSpeechDeviceDetailRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetSpeechDeviceDetailRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetSpeechDeviceDetailRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetSpeechDeviceDetailRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetSpeechDeviceDetailResult.cc b/iot/src/model/GetSpeechDeviceDetailResult.cc new file mode 100644 index 000000000..6b9d72366 --- /dev/null +++ b/iot/src/model/GetSpeechDeviceDetailResult.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; + +GetSpeechDeviceDetailResult::GetSpeechDeviceDetailResult() : + ServiceResult() +{} + +GetSpeechDeviceDetailResult::GetSpeechDeviceDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSpeechDeviceDetailResult::~GetSpeechDeviceDetailResult() +{} + +void GetSpeechDeviceDetailResult::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["ProductKey"].isNull()) + data_.productKey = dataNode["ProductKey"].asString(); + if(!dataNode["DeviceName"].isNull()) + data_.deviceName = dataNode["DeviceName"].asString(); + if(!dataNode["IotId"].isNull()) + data_.iotId = dataNode["IotId"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["AvailableSpace"].isNull()) + data_.availableSpace = std::stof(dataNode["AvailableSpace"].asString()); + if(!dataNode["TotalSpace"].isNull()) + data_.totalSpace = std::stof(dataNode["TotalSpace"].asString()); + if(!dataNode["SpeechListUpdateTime"].isNull()) + data_.speechListUpdateTime = std::stol(dataNode["SpeechListUpdateTime"].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(); + +} + +GetSpeechDeviceDetailResult::Data GetSpeechDeviceDetailResult::getData()const +{ + return data_; +} + +std::string GetSpeechDeviceDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetSpeechDeviceDetailResult::getCode()const +{ + return code_; +} + +bool GetSpeechDeviceDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetThingModelTslRequest.cc b/iot/src/model/GetThingModelTslRequest.cc index cb2477bbe..38f59c031 100644 --- a/iot/src/model/GetThingModelTslRequest.cc +++ b/iot/src/model/GetThingModelTslRequest.cc @@ -71,6 +71,17 @@ void GetThingModelTslRequest::setRealTripartiteKey(const std::string& realTripar setParameter("RealTripartiteKey", realTripartiteKey); } +std::string GetThingModelTslRequest::getDTModelId()const +{ + return dTModelId_; +} + +void GetThingModelTslRequest::setDTModelId(const std::string& dTModelId) +{ + dTModelId_ = dTModelId; + setParameter("DTModelId", dTModelId); +} + std::string GetThingModelTslRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/ListThingModelVersionRequest.cc b/iot/src/model/ListThingModelVersionRequest.cc index b876a083e..bf7eb8ced 100644 --- a/iot/src/model/ListThingModelVersionRequest.cc +++ b/iot/src/model/ListThingModelVersionRequest.cc @@ -27,6 +27,17 @@ ListThingModelVersionRequest::ListThingModelVersionRequest() : ListThingModelVersionRequest::~ListThingModelVersionRequest() {} +std::string ListThingModelVersionRequest::getRealTenantId()const +{ + return realTenantId_; +} + +void ListThingModelVersionRequest::setRealTenantId(const std::string& realTenantId) +{ + realTenantId_ = realTenantId; + setParameter("RealTenantId", realTenantId); +} + std::string ListThingModelVersionRequest::getAccessKeyId()const { return accessKeyId_; @@ -38,6 +49,17 @@ void ListThingModelVersionRequest::setAccessKeyId(const std::string& accessKeyId setParameter("AccessKeyId", accessKeyId); } +std::string ListThingModelVersionRequest::getRealTripartiteKey()const +{ + return realTripartiteKey_; +} + +void ListThingModelVersionRequest::setRealTripartiteKey(const std::string& realTripartiteKey) +{ + realTripartiteKey_ = realTripartiteKey; + setParameter("RealTripartiteKey", realTripartiteKey); +} + std::string ListThingModelVersionRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QueryClientIdsRequest.cc b/iot/src/model/QueryClientIdsRequest.cc new file mode 100644 index 000000000..c432484c9 --- /dev/null +++ b/iot/src/model/QueryClientIdsRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QueryClientIdsRequest; + +QueryClientIdsRequest::QueryClientIdsRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryClientIds") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryClientIdsRequest::~QueryClientIdsRequest() +{} + +std::string QueryClientIdsRequest::getAuthConfig()const +{ + return authConfig_; +} + +void QueryClientIdsRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string QueryClientIdsRequest::getIotId()const +{ + return iotId_; +} + +void QueryClientIdsRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string QueryClientIdsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryClientIdsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryClientIdsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryClientIdsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryClientIdsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryClientIdsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryClientIdsResult.cc b/iot/src/model/QueryClientIdsResult.cc new file mode 100644 index 000000000..23db3f479 --- /dev/null +++ b/iot/src/model/QueryClientIdsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryClientIdsResult::QueryClientIdsResult() : + ServiceResult() +{} + +QueryClientIdsResult::QueryClientIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryClientIdsResult::~QueryClientIdsResult() +{} + +void QueryClientIdsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IotId"].isNull()) + data_.iotId = dataNode["IotId"].asString(); + auto allDynamicRegClientIdsNode = dataNode["DynamicRegClientIds"]["DynamicRegClientId"]; + for (auto dataNodeDynamicRegClientIdsDynamicRegClientId : allDynamicRegClientIdsNode) + { + Data::DynamicRegClientId dynamicRegClientIdObject; + if(!dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].isNull()) + dynamicRegClientIdObject.clientId = dataNodeDynamicRegClientIdsDynamicRegClientId["ClientId"].asString(); + if(!dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].isNull()) + dynamicRegClientIdObject.createTime = std::stol(dataNodeDynamicRegClientIdsDynamicRegClientId["CreateTime"].asString()); + data_.dynamicRegClientIds.push_back(dynamicRegClientIdObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +QueryClientIdsResult::Data QueryClientIdsResult::getData()const +{ + return data_; +} + +std::string QueryClientIdsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryClientIdsResult::getCode()const +{ + return code_; +} + +bool QueryClientIdsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryDeviceSpeechRequest.cc b/iot/src/model/QueryDeviceSpeechRequest.cc new file mode 100644 index 000000000..ad5c4d525 --- /dev/null +++ b/iot/src/model/QueryDeviceSpeechRequest.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::QueryDeviceSpeechRequest; + +QueryDeviceSpeechRequest::QueryDeviceSpeechRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryDeviceSpeech") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDeviceSpeechRequest::~QueryDeviceSpeechRequest() +{} + +int QueryDeviceSpeechRequest::getPageId()const +{ + return pageId_; +} + +void QueryDeviceSpeechRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QueryDeviceSpeechRequest::getIotId()const +{ + return iotId_; +} + +void QueryDeviceSpeechRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::string QueryDeviceSpeechRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryDeviceSpeechRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QueryDeviceSpeechRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDeviceSpeechRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryDeviceSpeechRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryDeviceSpeechRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryDeviceSpeechRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryDeviceSpeechRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryDeviceSpeechResult.cc b/iot/src/model/QueryDeviceSpeechResult.cc new file mode 100644 index 000000000..0f9270292 --- /dev/null +++ b/iot/src/model/QueryDeviceSpeechResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryDeviceSpeechResult::QueryDeviceSpeechResult() : + ServiceResult() +{} + +QueryDeviceSpeechResult::QueryDeviceSpeechResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDeviceSpeechResult::~QueryDeviceSpeechResult() +{} + +void QueryDeviceSpeechResult::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["Size"].isNull()) + itemsObject.size = std::stof(dataNodeListItems["Size"].asString()); + if(!dataNodeListItems["AudioFormat"].isNull()) + itemsObject.audioFormat = dataNodeListItems["AudioFormat"].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(); + +} + +QueryDeviceSpeechResult::Data QueryDeviceSpeechResult::getData()const +{ + return data_; +} + +std::string QueryDeviceSpeechResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryDeviceSpeechResult::getCode()const +{ + return code_; +} + +bool QueryDeviceSpeechResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryEdgeDriverResult.cc b/iot/src/model/QueryEdgeDriverResult.cc index 452d38b5b..0f54bb3ec 100644 --- a/iot/src/model/QueryEdgeDriverResult.cc +++ b/iot/src/model/QueryEdgeDriverResult.cc @@ -68,6 +68,8 @@ void QueryEdgeDriverResult::parse(const std::string &payload) driverObject.gmtCreateTimestamp = std::stol(dataNodeDriverListDriver["GmtCreateTimestamp"].asString()); if(!dataNodeDriverListDriver["GmtModifiedTimestamp"].isNull()) driverObject.gmtModifiedTimestamp = std::stol(dataNodeDriverListDriver["GmtModifiedTimestamp"].asString()); + if(!dataNodeDriverListDriver["IsApply"].isNull()) + driverObject.isApply = dataNodeDriverListDriver["IsApply"].asString() == "true"; data_.driverList.push_back(driverObject); } if(!value["Success"].isNull()) diff --git a/iot/src/model/QueryMessageInfoRequest.cc b/iot/src/model/QueryMessageInfoRequest.cc new file mode 100644 index 000000000..c795b23c2 --- /dev/null +++ b/iot/src/model/QueryMessageInfoRequest.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::QueryMessageInfoRequest; + +QueryMessageInfoRequest::QueryMessageInfoRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryMessageInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryMessageInfoRequest::~QueryMessageInfoRequest() +{} + +std::string QueryMessageInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryMessageInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QueryMessageInfoRequest::getUniMsgId()const +{ + return uniMsgId_; +} + +void QueryMessageInfoRequest::setUniMsgId(const std::string& uniMsgId) +{ + uniMsgId_ = uniMsgId; + setParameter("UniMsgId", uniMsgId); +} + +std::string QueryMessageInfoRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryMessageInfoRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string QueryMessageInfoRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryMessageInfoRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryMessageInfoRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryMessageInfoRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/QueryMessageInfoResult.cc b/iot/src/model/QueryMessageInfoResult.cc new file mode 100644 index 000000000..5f3ba4a51 --- /dev/null +++ b/iot/src/model/QueryMessageInfoResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QueryMessageInfoResult::QueryMessageInfoResult() : + ServiceResult() +{} + +QueryMessageInfoResult::QueryMessageInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMessageInfoResult::~QueryMessageInfoResult() +{} + +void QueryMessageInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto messageNode = value["Message"]; + if(!messageNode["UniMsgId"].isNull()) + message_.uniMsgId = messageNode["UniMsgId"].asString(); + if(!messageNode["TopicFullName"].isNull()) + message_.topicFullName = messageNode["TopicFullName"].asString(); + if(!messageNode["MessageContent"].isNull()) + message_.messageContent = messageNode["MessageContent"].asString(); + if(!messageNode["GenerateTime"].isNull()) + message_.generateTime = std::stol(messageNode["GenerateTime"].asString()); + auto allUserPropertiesNode = messageNode["UserProperties"]["UserProperty"]; + for (auto messageNodeUserPropertiesUserProperty : allUserPropertiesNode) + { + Message::UserProperty userPropertyObject; + if(!messageNodeUserPropertiesUserProperty["Key"].isNull()) + userPropertyObject.key = messageNodeUserPropertiesUserProperty["Key"].asString(); + if(!messageNodeUserPropertiesUserProperty["Value"].isNull()) + userPropertyObject.value = messageNodeUserPropertiesUserProperty["Value"].asString(); + message_.userProperties.push_back(userPropertyObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +QueryMessageInfoResult::Message QueryMessageInfoResult::getMessage()const +{ + return message_; +} + +std::string QueryMessageInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryMessageInfoResult::getCode()const +{ + return code_; +} + +bool QueryMessageInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryOTAFirmwareResult.cc b/iot/src/model/QueryOTAFirmwareResult.cc index b195f1c8a..5bb97be65 100644 --- a/iot/src/model/QueryOTAFirmwareResult.cc +++ b/iot/src/model/QueryOTAFirmwareResult.cc @@ -74,6 +74,24 @@ void QueryOTAFirmwareResult::parse(const std::string &payload) firmwareInfo_.verifyProgress = std::stoi(firmwareInfoNode["VerifyProgress"].asString()); if(!firmwareInfoNode["ModuleName"].isNull()) firmwareInfo_.moduleName = firmwareInfoNode["ModuleName"].asString(); + if(!firmwareInfoNode["Udi"].isNull()) + firmwareInfo_.udi = firmwareInfoNode["Udi"].asString(); + auto allMultiFilesNode = firmwareInfoNode["MultiFiles"]["OtaPackageFileDTO"]; + for (auto firmwareInfoNodeMultiFilesOtaPackageFileDTO : allMultiFilesNode) + { + FirmwareInfo::OtaPackageFileDTO otaPackageFileDTOObject; + if(!firmwareInfoNodeMultiFilesOtaPackageFileDTO["Name"].isNull()) + otaPackageFileDTOObject.name = firmwareInfoNodeMultiFilesOtaPackageFileDTO["Name"].asString(); + if(!firmwareInfoNodeMultiFilesOtaPackageFileDTO["Size"].isNull()) + otaPackageFileDTOObject.size = std::stoi(firmwareInfoNodeMultiFilesOtaPackageFileDTO["Size"].asString()); + if(!firmwareInfoNodeMultiFilesOtaPackageFileDTO["Url"].isNull()) + otaPackageFileDTOObject.url = firmwareInfoNodeMultiFilesOtaPackageFileDTO["Url"].asString(); + if(!firmwareInfoNodeMultiFilesOtaPackageFileDTO["SignValue"].isNull()) + otaPackageFileDTOObject.signValue = firmwareInfoNodeMultiFilesOtaPackageFileDTO["SignValue"].asString(); + if(!firmwareInfoNodeMultiFilesOtaPackageFileDTO["FileMd5"].isNull()) + otaPackageFileDTOObject.fileMd5 = firmwareInfoNodeMultiFilesOtaPackageFileDTO["FileMd5"].asString(); + firmwareInfo_.multiFiles.push_back(otaPackageFileDTOObject); + } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/iot/src/model/QuerySpeechDeviceRequest.cc b/iot/src/model/QuerySpeechDeviceRequest.cc new file mode 100644 index 000000000..7798001b3 --- /dev/null +++ b/iot/src/model/QuerySpeechDeviceRequest.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::QuerySpeechDeviceRequest; + +QuerySpeechDeviceRequest::QuerySpeechDeviceRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeechDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechDeviceRequest::~QuerySpeechDeviceRequest() +{} + +std::string QuerySpeechDeviceRequest::getAvailableSpaceScope()const +{ + return availableSpaceScope_; +} + +void QuerySpeechDeviceRequest::setAvailableSpaceScope(const std::string& availableSpaceScope) +{ + availableSpaceScope_ = availableSpaceScope; + setBodyParameter("AvailableSpaceScope", availableSpaceScope); +} + +std::string QuerySpeechDeviceRequest::getProjectCode()const +{ + return projectCode_; +} + +void QuerySpeechDeviceRequest::setProjectCode(const std::string& projectCode) +{ + projectCode_ = projectCode; + setBodyParameter("ProjectCode", projectCode); +} + +int QuerySpeechDeviceRequest::getPageId()const +{ + return pageId_; +} + +void QuerySpeechDeviceRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QuerySpeechDeviceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechDeviceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QuerySpeechDeviceRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySpeechDeviceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySpeechDeviceRequest::getAvailableSpace()const +{ + return availableSpace_; +} + +void QuerySpeechDeviceRequest::setAvailableSpace(const std::string& availableSpace) +{ + availableSpace_ = availableSpace; + setBodyParameter("AvailableSpace", availableSpace); +} + +std::string QuerySpeechDeviceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechDeviceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechDeviceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechDeviceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QuerySpeechDeviceRequest::getDeviceName()const +{ + return deviceName_; +} + +void QuerySpeechDeviceRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QuerySpeechDeviceResult.cc b/iot/src/model/QuerySpeechDeviceResult.cc new file mode 100644 index 000000000..21c5e2546 --- /dev/null +++ b/iot/src/model/QuerySpeechDeviceResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +QuerySpeechDeviceResult::QuerySpeechDeviceResult() : + ServiceResult() +{} + +QuerySpeechDeviceResult::QuerySpeechDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechDeviceResult::~QuerySpeechDeviceResult() +{} + +void QuerySpeechDeviceResult::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["ProductKey"].isNull()) + itemsObject.productKey = dataNodeListItems["ProductKey"].asString(); + if(!dataNodeListItems["DeviceName"].isNull()) + itemsObject.deviceName = dataNodeListItems["DeviceName"].asString(); + if(!dataNodeListItems["IotId"].isNull()) + itemsObject.iotId = dataNodeListItems["IotId"].asString(); + if(!dataNodeListItems["AvailableSpace"].isNull()) + itemsObject.availableSpace = std::stof(dataNodeListItems["AvailableSpace"].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(); + +} + +QuerySpeechDeviceResult::Data QuerySpeechDeviceResult::getData()const +{ + return data_; +} + +std::string QuerySpeechDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechDeviceResult::getCode()const +{ + return code_; +} + +bool QuerySpeechDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechListRequest.cc b/iot/src/model/QuerySpeechListRequest.cc index 8845d5a2a..15a457daf 100644 --- a/iot/src/model/QuerySpeechListRequest.cc +++ b/iot/src/model/QuerySpeechListRequest.cc @@ -49,6 +49,17 @@ void QuerySpeechListRequest::setPageId(int pageId) setBodyParameter("PageId", std::to_string(pageId)); } +std::string QuerySpeechListRequest::getAudioFormat()const +{ + return audioFormat_; +} + +void QuerySpeechListRequest::setAudioFormat(const std::string& audioFormat) +{ + audioFormat_ = audioFormat; + setBodyParameter("AudioFormat", audioFormat); +} + std::string QuerySpeechListRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/QuerySpeechListResult.cc b/iot/src/model/QuerySpeechListResult.cc index 8b283ed2c..900f86719 100644 --- a/iot/src/model/QuerySpeechListResult.cc +++ b/iot/src/model/QuerySpeechListResult.cc @@ -60,6 +60,8 @@ void QuerySpeechListResult::parse(const std::string &payload) itemsObject.voice = dataNodeListItems["Voice"].asString(); if(!dataNodeListItems["SpeechType"].isNull()) itemsObject.speechType = dataNodeListItems["SpeechType"].asString(); + if(!dataNodeListItems["AudioFormat"].isNull()) + itemsObject.audioFormat = dataNodeListItems["AudioFormat"].asString(); auto allSpeechListNode = dataNodeListItems["SpeechList"]["Items"]; for (auto dataNodeListItemsSpeechListItems : allSpeechListNode) { diff --git a/iot/src/model/QueryThingModelRequest.cc b/iot/src/model/QueryThingModelRequest.cc index a3d43c5d2..e94c2dbf4 100644 --- a/iot/src/model/QueryThingModelRequest.cc +++ b/iot/src/model/QueryThingModelRequest.cc @@ -71,6 +71,17 @@ void QueryThingModelRequest::setResourceGroupId(const std::string& resourceGroup setParameter("ResourceGroupId", resourceGroupId); } +std::string QueryThingModelRequest::getDTModelId()const +{ + return dTModelId_; +} + +void QueryThingModelRequest::setDTModelId(const std::string& dTModelId) +{ + dTModelId_ = dTModelId; + setParameter("DTModelId", dTModelId); +} + std::string QueryThingModelRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/RerunJobRequest.cc b/iot/src/model/RerunJobRequest.cc new file mode 100644 index 000000000..7f4ed56bb --- /dev/null +++ b/iot/src/model/RerunJobRequest.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::RerunJobRequest; + +RerunJobRequest::RerunJobRequest() : + RpcServiceRequest("iot", "2018-01-20", "RerunJob") +{ + setMethod(HttpRequest::Method::Post); +} + +RerunJobRequest::~RerunJobRequest() +{} + +std::string RerunJobRequest::getJobId()const +{ + return jobId_; +} + +void RerunJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string RerunJobRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void RerunJobRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string RerunJobRequest::getApiProduct()const +{ + return apiProduct_; +} + +void RerunJobRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string RerunJobRequest::getApiRevision()const +{ + return apiRevision_; +} + +void RerunJobRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/RerunJobResult.cc b/iot/src/model/RerunJobResult.cc new file mode 100644 index 000000000..be15fcbd9 --- /dev/null +++ b/iot/src/model/RerunJobResult.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; + +RerunJobResult::RerunJobResult() : + ServiceResult() +{} + +RerunJobResult::RerunJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RerunJobResult::~RerunJobResult() +{} + +void RerunJobResult::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 RerunJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string RerunJobResult::getCode()const +{ + return code_; +} + +bool RerunJobResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/SpeechByCombinationRequest.cc b/iot/src/model/SpeechByCombinationRequest.cc index 161e5eacf..b5f71f5e7 100644 --- a/iot/src/model/SpeechByCombinationRequest.cc +++ b/iot/src/model/SpeechByCombinationRequest.cc @@ -27,6 +27,28 @@ SpeechByCombinationRequest::SpeechByCombinationRequest() : SpeechByCombinationRequest::~SpeechByCombinationRequest() {} +std::string SpeechByCombinationRequest::getSpeechId()const +{ + return speechId_; +} + +void SpeechByCombinationRequest::setSpeechId(const std::string& speechId) +{ + speechId_ = speechId; + setBodyParameter("SpeechId", speechId); +} + +std::string SpeechByCombinationRequest::getAudioFormat()const +{ + return audioFormat_; +} + +void SpeechByCombinationRequest::setAudioFormat(const std::string& audioFormat) +{ + audioFormat_ = audioFormat; + setBodyParameter("AudioFormat", audioFormat); +} + std::string SpeechByCombinationRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/SubscribeTopicRequest.cc b/iot/src/model/SubscribeTopicRequest.cc new file mode 100644 index 000000000..ffce187ff --- /dev/null +++ b/iot/src/model/SubscribeTopicRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::SubscribeTopicRequest; + +SubscribeTopicRequest::SubscribeTopicRequest() : + RpcServiceRequest("iot", "2018-01-20", "SubscribeTopic") +{ + setMethod(HttpRequest::Method::Post); +} + +SubscribeTopicRequest::~SubscribeTopicRequest() +{} + +std::string SubscribeTopicRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void SubscribeTopicRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string SubscribeTopicRequest::getProductKey()const +{ + return productKey_; +} + +void SubscribeTopicRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string SubscribeTopicRequest::getApiProduct()const +{ + return apiProduct_; +} + +void SubscribeTopicRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::vector SubscribeTopicRequest::getTopic()const +{ + return topic_; +} + +void SubscribeTopicRequest::setTopic(const std::vector& topic) +{ + topic_ = topic; + for(int dep1 = 0; dep1!= topic.size(); dep1++) { + setParameter("Topic."+ std::to_string(dep1), topic.at(dep1)); + } +} + +std::string SubscribeTopicRequest::getApiRevision()const +{ + return apiRevision_; +} + +void SubscribeTopicRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string SubscribeTopicRequest::getDeviceName()const +{ + return deviceName_; +} + +void SubscribeTopicRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/SubscribeTopicResult.cc b/iot/src/model/SubscribeTopicResult.cc new file mode 100644 index 000000000..37e7c5bc6 --- /dev/null +++ b/iot/src/model/SubscribeTopicResult.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; + +SubscribeTopicResult::SubscribeTopicResult() : + ServiceResult() +{} + +SubscribeTopicResult::SubscribeTopicResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubscribeTopicResult::~SubscribeTopicResult() +{} + +void SubscribeTopicResult::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 SubscribeTopicResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string SubscribeTopicResult::getCode()const +{ + return code_; +} + +bool SubscribeTopicResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/SyncSpeechByCombinationRequest.cc b/iot/src/model/SyncSpeechByCombinationRequest.cc index f3722fc3c..07cee042c 100644 --- a/iot/src/model/SyncSpeechByCombinationRequest.cc +++ b/iot/src/model/SyncSpeechByCombinationRequest.cc @@ -27,6 +27,28 @@ SyncSpeechByCombinationRequest::SyncSpeechByCombinationRequest() : SyncSpeechByCombinationRequest::~SyncSpeechByCombinationRequest() {} +std::string SyncSpeechByCombinationRequest::getSpeechId()const +{ + return speechId_; +} + +void SyncSpeechByCombinationRequest::setSpeechId(const std::string& speechId) +{ + speechId_ = speechId; + setBodyParameter("SpeechId", speechId); +} + +std::string SyncSpeechByCombinationRequest::getAudioFormat()const +{ + return audioFormat_; +} + +void SyncSpeechByCombinationRequest::setAudioFormat(const std::string& audioFormat) +{ + audioFormat_ = audioFormat; + setBodyParameter("AudioFormat", audioFormat); +} + std::string SyncSpeechByCombinationRequest::getIotId()const { return iotId_; diff --git a/iot/src/model/SyncSpeechByCombinationResult.cc b/iot/src/model/SyncSpeechByCombinationResult.cc index b3d4f7369..e67e175d2 100644 --- a/iot/src/model/SyncSpeechByCombinationResult.cc +++ b/iot/src/model/SyncSpeechByCombinationResult.cc @@ -52,6 +52,8 @@ void SyncSpeechByCombinationResult::parse(const std::string &payload) data_.deviceErrorCode = dataNode["DeviceErrorCode"].asString(); if(!dataNode["DeviceErrorMessage"].isNull()) data_.deviceErrorMessage = dataNode["DeviceErrorMessage"].asString(); + if(!dataNode["Detail"].isNull()) + data_.detail = dataNode["Detail"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/iot/src/model/TestSpeechRequest.cc b/iot/src/model/TestSpeechRequest.cc index a25967688..d15373eee 100644 --- a/iot/src/model/TestSpeechRequest.cc +++ b/iot/src/model/TestSpeechRequest.cc @@ -49,6 +49,17 @@ void TestSpeechRequest::setProjectCode(const std::string& projectCode) setBodyParameter("ProjectCode", projectCode); } +std::string TestSpeechRequest::getAudioFormat()const +{ + return audioFormat_; +} + +void TestSpeechRequest::setAudioFormat(const std::string& audioFormat) +{ + audioFormat_ = audioFormat; + setBodyParameter("AudioFormat", audioFormat); +} + std::string TestSpeechRequest::getIotInstanceId()const { return iotInstanceId_; diff --git a/iot/src/model/TransformClientIdRequest.cc b/iot/src/model/TransformClientIdRequest.cc new file mode 100644 index 000000000..cb0ba9273 --- /dev/null +++ b/iot/src/model/TransformClientIdRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::TransformClientIdRequest; + +TransformClientIdRequest::TransformClientIdRequest() : + RpcServiceRequest("iot", "2018-01-20", "TransformClientId") +{ + setMethod(HttpRequest::Method::Post); +} + +TransformClientIdRequest::~TransformClientIdRequest() +{} + +std::string TransformClientIdRequest::getAuthConfig()const +{ + return authConfig_; +} + +void TransformClientIdRequest::setAuthConfig(const std::string& authConfig) +{ + authConfig_ = authConfig; + setParameter("AuthConfig", authConfig); +} + +std::string TransformClientIdRequest::getClientId()const +{ + return clientId_; +} + +void TransformClientIdRequest::setClientId(const std::string& clientId) +{ + clientId_ = clientId; + setParameter("ClientId", clientId); +} + +std::string TransformClientIdRequest::getIotId()const +{ + return iotId_; +} + +void TransformClientIdRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setParameter("IotId", iotId); +} + +std::string TransformClientIdRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void TransformClientIdRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string TransformClientIdRequest::getApiProduct()const +{ + return apiProduct_; +} + +void TransformClientIdRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string TransformClientIdRequest::getApiRevision()const +{ + return apiRevision_; +} + +void TransformClientIdRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/TransformClientIdResult.cc b/iot/src/model/TransformClientIdResult.cc new file mode 100644 index 000000000..0da4c4201 --- /dev/null +++ b/iot/src/model/TransformClientIdResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +TransformClientIdResult::TransformClientIdResult() : + ServiceResult() +{} + +TransformClientIdResult::TransformClientIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransformClientIdResult::~TransformClientIdResult() +{} + +void TransformClientIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string TransformClientIdResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string TransformClientIdResult::getCode()const +{ + return code_; +} + +bool TransformClientIdResult::getSuccess()const +{ + return success_; +} +