diff --git a/VERSION b/VERSION index b2867ae03..d7f1f2a21 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1248 \ No newline at end of file +1.36.1249 \ No newline at end of file diff --git a/iot/CMakeLists.txt b/iot/CMakeLists.txt index 4fb70ab04..07a5174d7 100644 --- a/iot/CMakeLists.txt +++ b/iot/CMakeLists.txt @@ -23,6 +23,8 @@ set(iot_public_header set(iot_public_header_model include/alibabacloud/iot/model/AddDataForApiSourceRequest.h include/alibabacloud/iot/model/AddDataForApiSourceResult.h + include/alibabacloud/iot/model/AddShareTaskDeviceRequest.h + include/alibabacloud/iot/model/AddShareTaskDeviceResult.h include/alibabacloud/iot/model/AttachDestinationRequest.h include/alibabacloud/iot/model/AttachDestinationResult.h include/alibabacloud/iot/model/AttachParserDataSourceRequest.h @@ -271,6 +273,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/DeleteSceneRuleResult.h include/alibabacloud/iot/model/DeleteSchedulePeriodRequest.h include/alibabacloud/iot/model/DeleteSchedulePeriodResult.h + include/alibabacloud/iot/model/DeleteShareTaskDeviceRequest.h + include/alibabacloud/iot/model/DeleteShareTaskDeviceResult.h include/alibabacloud/iot/model/DeleteSoundCodeRequest.h include/alibabacloud/iot/model/DeleteSoundCodeResult.h include/alibabacloud/iot/model/DeleteSoundCodeLabelRequest.h @@ -349,12 +353,16 @@ 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/GetShareTaskByDeviceOpenRequest.h + include/alibabacloud/iot/model/GetShareTaskByDeviceOpenResult.h include/alibabacloud/iot/model/GetSoundCodeAudioRequest.h include/alibabacloud/iot/model/GetSoundCodeAudioResult.h include/alibabacloud/iot/model/GetSoundCodeScheduleRequest.h include/alibabacloud/iot/model/GetSoundCodeScheduleResult.h include/alibabacloud/iot/model/GetSpeechDeviceDetailRequest.h include/alibabacloud/iot/model/GetSpeechDeviceDetailResult.h + include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsRequest.h + include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsResult.h include/alibabacloud/iot/model/GetSpeechVoiceRequest.h include/alibabacloud/iot/model/GetSpeechVoiceResult.h include/alibabacloud/iot/model/GetStudioAppTokenOpenRequest.h @@ -437,6 +445,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/OpenIotServiceResult.h include/alibabacloud/iot/model/PackageSoundCodeLabelBatchAudioRequest.h include/alibabacloud/iot/model/PackageSoundCodeLabelBatchAudioResult.h + include/alibabacloud/iot/model/PageQuerySharedSpeechOpenRequest.h + include/alibabacloud/iot/model/PageQuerySharedSpeechOpenResult.h include/alibabacloud/iot/model/PrintByTemplateRequest.h include/alibabacloud/iot/model/PrintByTemplateResult.h include/alibabacloud/iot/model/PubRequest.h @@ -579,10 +589,14 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryProductListResult.h include/alibabacloud/iot/model/QueryProductTopicRequest.h include/alibabacloud/iot/model/QueryProductTopicResult.h + include/alibabacloud/iot/model/QueryProjectShareDeviceListRequest.h + include/alibabacloud/iot/model/QueryProjectShareDeviceListResult.h include/alibabacloud/iot/model/QuerySceneRuleRequest.h include/alibabacloud/iot/model/QuerySceneRuleResult.h include/alibabacloud/iot/model/QuerySchedulePeriodListRequest.h include/alibabacloud/iot/model/QuerySchedulePeriodListResult.h + include/alibabacloud/iot/model/QueryShareTaskDeviceListRequest.h + include/alibabacloud/iot/model/QueryShareTaskDeviceListResult.h include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageRequest.h include/alibabacloud/iot/model/QuerySolutionDeviceGroupPageResult.h include/alibabacloud/iot/model/QuerySoundCodeLabelBatchFailedResultRequest.h @@ -599,6 +613,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QuerySpeechResult.h include/alibabacloud/iot/model/QuerySpeechDeviceRequest.h include/alibabacloud/iot/model/QuerySpeechDeviceResult.h + include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListRequest.h + include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListResult.h include/alibabacloud/iot/model/QuerySpeechListRequest.h include/alibabacloud/iot/model/QuerySpeechListResult.h include/alibabacloud/iot/model/QuerySpeechPushJobRequest.h @@ -637,6 +653,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/QueryTopicRouteTableResult.h include/alibabacloud/iot/model/RRpcRequest.h include/alibabacloud/iot/model/RRpcResult.h + include/alibabacloud/iot/model/ReBindLicenseDeviceRequest.h + include/alibabacloud/iot/model/ReBindLicenseDeviceResult.h include/alibabacloud/iot/model/RecognizeCarNumRequest.h include/alibabacloud/iot/model/RecognizeCarNumResult.h include/alibabacloud/iot/model/RecognizePictureGeneralRequest.h @@ -685,6 +703,8 @@ set(iot_public_header_model include/alibabacloud/iot/model/SetStudioProjectCooperationResult.h include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenRequest.h include/alibabacloud/iot/model/SetupStudioAppAuthModeOpenResult.h + include/alibabacloud/iot/model/ShareSpeechByCombinationRequest.h + include/alibabacloud/iot/model/ShareSpeechByCombinationResult.h include/alibabacloud/iot/model/SpeechByCombinationRequest.h include/alibabacloud/iot/model/SpeechByCombinationResult.h include/alibabacloud/iot/model/SpeechBySynthesisRequest.h @@ -776,6 +796,8 @@ set(iot_src src/IotClient.cc src/model/AddDataForApiSourceRequest.cc src/model/AddDataForApiSourceResult.cc + src/model/AddShareTaskDeviceRequest.cc + src/model/AddShareTaskDeviceResult.cc src/model/AttachDestinationRequest.cc src/model/AttachDestinationResult.cc src/model/AttachParserDataSourceRequest.cc @@ -1024,6 +1046,8 @@ set(iot_src src/model/DeleteSceneRuleResult.cc src/model/DeleteSchedulePeriodRequest.cc src/model/DeleteSchedulePeriodResult.cc + src/model/DeleteShareTaskDeviceRequest.cc + src/model/DeleteShareTaskDeviceResult.cc src/model/DeleteSoundCodeRequest.cc src/model/DeleteSoundCodeResult.cc src/model/DeleteSoundCodeLabelRequest.cc @@ -1102,12 +1126,16 @@ set(iot_src src/model/GetRuleActionResult.cc src/model/GetSceneRuleRequest.cc src/model/GetSceneRuleResult.cc + src/model/GetShareTaskByDeviceOpenRequest.cc + src/model/GetShareTaskByDeviceOpenResult.cc src/model/GetSoundCodeAudioRequest.cc src/model/GetSoundCodeAudioResult.cc src/model/GetSoundCodeScheduleRequest.cc src/model/GetSoundCodeScheduleResult.cc src/model/GetSpeechDeviceDetailRequest.cc src/model/GetSpeechDeviceDetailResult.cc + src/model/GetSpeechLicenseDeviceStatisticsRequest.cc + src/model/GetSpeechLicenseDeviceStatisticsResult.cc src/model/GetSpeechVoiceRequest.cc src/model/GetSpeechVoiceResult.cc src/model/GetStudioAppTokenOpenRequest.cc @@ -1190,6 +1218,8 @@ set(iot_src src/model/OpenIotServiceResult.cc src/model/PackageSoundCodeLabelBatchAudioRequest.cc src/model/PackageSoundCodeLabelBatchAudioResult.cc + src/model/PageQuerySharedSpeechOpenRequest.cc + src/model/PageQuerySharedSpeechOpenResult.cc src/model/PrintByTemplateRequest.cc src/model/PrintByTemplateResult.cc src/model/PubRequest.cc @@ -1332,10 +1362,14 @@ set(iot_src src/model/QueryProductListResult.cc src/model/QueryProductTopicRequest.cc src/model/QueryProductTopicResult.cc + src/model/QueryProjectShareDeviceListRequest.cc + src/model/QueryProjectShareDeviceListResult.cc src/model/QuerySceneRuleRequest.cc src/model/QuerySceneRuleResult.cc src/model/QuerySchedulePeriodListRequest.cc src/model/QuerySchedulePeriodListResult.cc + src/model/QueryShareTaskDeviceListRequest.cc + src/model/QueryShareTaskDeviceListResult.cc src/model/QuerySolutionDeviceGroupPageRequest.cc src/model/QuerySolutionDeviceGroupPageResult.cc src/model/QuerySoundCodeLabelBatchFailedResultRequest.cc @@ -1352,6 +1386,8 @@ set(iot_src src/model/QuerySpeechResult.cc src/model/QuerySpeechDeviceRequest.cc src/model/QuerySpeechDeviceResult.cc + src/model/QuerySpeechLicenseDeviceListRequest.cc + src/model/QuerySpeechLicenseDeviceListResult.cc src/model/QuerySpeechListRequest.cc src/model/QuerySpeechListResult.cc src/model/QuerySpeechPushJobRequest.cc @@ -1390,6 +1426,8 @@ set(iot_src src/model/QueryTopicRouteTableResult.cc src/model/RRpcRequest.cc src/model/RRpcResult.cc + src/model/ReBindLicenseDeviceRequest.cc + src/model/ReBindLicenseDeviceResult.cc src/model/RecognizeCarNumRequest.cc src/model/RecognizeCarNumResult.cc src/model/RecognizePictureGeneralRequest.cc @@ -1438,6 +1476,8 @@ set(iot_src src/model/SetStudioProjectCooperationResult.cc src/model/SetupStudioAppAuthModeOpenRequest.cc src/model/SetupStudioAppAuthModeOpenResult.cc + src/model/ShareSpeechByCombinationRequest.cc + src/model/ShareSpeechByCombinationResult.cc src/model/SpeechByCombinationRequest.cc src/model/SpeechByCombinationResult.cc src/model/SpeechBySynthesisRequest.cc diff --git a/iot/include/alibabacloud/iot/IotClient.h b/iot/include/alibabacloud/iot/IotClient.h index d5ab8bd77..c5ad6dfa4 100644 --- a/iot/include/alibabacloud/iot/IotClient.h +++ b/iot/include/alibabacloud/iot/IotClient.h @@ -24,6 +24,8 @@ #include "IotExport.h" #include "model/AddDataForApiSourceRequest.h" #include "model/AddDataForApiSourceResult.h" +#include "model/AddShareTaskDeviceRequest.h" +#include "model/AddShareTaskDeviceResult.h" #include "model/AttachDestinationRequest.h" #include "model/AttachDestinationResult.h" #include "model/AttachParserDataSourceRequest.h" @@ -272,6 +274,8 @@ #include "model/DeleteSceneRuleResult.h" #include "model/DeleteSchedulePeriodRequest.h" #include "model/DeleteSchedulePeriodResult.h" +#include "model/DeleteShareTaskDeviceRequest.h" +#include "model/DeleteShareTaskDeviceResult.h" #include "model/DeleteSoundCodeRequest.h" #include "model/DeleteSoundCodeResult.h" #include "model/DeleteSoundCodeLabelRequest.h" @@ -350,12 +354,16 @@ #include "model/GetRuleActionResult.h" #include "model/GetSceneRuleRequest.h" #include "model/GetSceneRuleResult.h" +#include "model/GetShareTaskByDeviceOpenRequest.h" +#include "model/GetShareTaskByDeviceOpenResult.h" #include "model/GetSoundCodeAudioRequest.h" #include "model/GetSoundCodeAudioResult.h" #include "model/GetSoundCodeScheduleRequest.h" #include "model/GetSoundCodeScheduleResult.h" #include "model/GetSpeechDeviceDetailRequest.h" #include "model/GetSpeechDeviceDetailResult.h" +#include "model/GetSpeechLicenseDeviceStatisticsRequest.h" +#include "model/GetSpeechLicenseDeviceStatisticsResult.h" #include "model/GetSpeechVoiceRequest.h" #include "model/GetSpeechVoiceResult.h" #include "model/GetStudioAppTokenOpenRequest.h" @@ -438,6 +446,8 @@ #include "model/OpenIotServiceResult.h" #include "model/PackageSoundCodeLabelBatchAudioRequest.h" #include "model/PackageSoundCodeLabelBatchAudioResult.h" +#include "model/PageQuerySharedSpeechOpenRequest.h" +#include "model/PageQuerySharedSpeechOpenResult.h" #include "model/PrintByTemplateRequest.h" #include "model/PrintByTemplateResult.h" #include "model/PubRequest.h" @@ -580,10 +590,14 @@ #include "model/QueryProductListResult.h" #include "model/QueryProductTopicRequest.h" #include "model/QueryProductTopicResult.h" +#include "model/QueryProjectShareDeviceListRequest.h" +#include "model/QueryProjectShareDeviceListResult.h" #include "model/QuerySceneRuleRequest.h" #include "model/QuerySceneRuleResult.h" #include "model/QuerySchedulePeriodListRequest.h" #include "model/QuerySchedulePeriodListResult.h" +#include "model/QueryShareTaskDeviceListRequest.h" +#include "model/QueryShareTaskDeviceListResult.h" #include "model/QuerySolutionDeviceGroupPageRequest.h" #include "model/QuerySolutionDeviceGroupPageResult.h" #include "model/QuerySoundCodeLabelBatchFailedResultRequest.h" @@ -600,6 +614,8 @@ #include "model/QuerySpeechResult.h" #include "model/QuerySpeechDeviceRequest.h" #include "model/QuerySpeechDeviceResult.h" +#include "model/QuerySpeechLicenseDeviceListRequest.h" +#include "model/QuerySpeechLicenseDeviceListResult.h" #include "model/QuerySpeechListRequest.h" #include "model/QuerySpeechListResult.h" #include "model/QuerySpeechPushJobRequest.h" @@ -638,6 +654,8 @@ #include "model/QueryTopicRouteTableResult.h" #include "model/RRpcRequest.h" #include "model/RRpcResult.h" +#include "model/ReBindLicenseDeviceRequest.h" +#include "model/ReBindLicenseDeviceResult.h" #include "model/RecognizeCarNumRequest.h" #include "model/RecognizeCarNumResult.h" #include "model/RecognizePictureGeneralRequest.h" @@ -686,6 +704,8 @@ #include "model/SetStudioProjectCooperationResult.h" #include "model/SetupStudioAppAuthModeOpenRequest.h" #include "model/SetupStudioAppAuthModeOpenResult.h" +#include "model/ShareSpeechByCombinationRequest.h" +#include "model/ShareSpeechByCombinationResult.h" #include "model/SpeechByCombinationRequest.h" #include "model/SpeechByCombinationResult.h" #include "model/SpeechBySynthesisRequest.h" @@ -784,6 +804,9 @@ namespace AlibabaCloud typedef Outcome AddDataForApiSourceOutcome; typedef std::future AddDataForApiSourceOutcomeCallable; typedef std::function&)> AddDataForApiSourceAsyncHandler; + typedef Outcome AddShareTaskDeviceOutcome; + typedef std::future AddShareTaskDeviceOutcomeCallable; + typedef std::function&)> AddShareTaskDeviceAsyncHandler; typedef Outcome AttachDestinationOutcome; typedef std::future AttachDestinationOutcomeCallable; typedef std::function&)> AttachDestinationAsyncHandler; @@ -1156,6 +1179,9 @@ namespace AlibabaCloud typedef Outcome DeleteSchedulePeriodOutcome; typedef std::future DeleteSchedulePeriodOutcomeCallable; typedef std::function&)> DeleteSchedulePeriodAsyncHandler; + typedef Outcome DeleteShareTaskDeviceOutcome; + typedef std::future DeleteShareTaskDeviceOutcomeCallable; + typedef std::function&)> DeleteShareTaskDeviceAsyncHandler; typedef Outcome DeleteSoundCodeOutcome; typedef std::future DeleteSoundCodeOutcomeCallable; typedef std::function&)> DeleteSoundCodeAsyncHandler; @@ -1273,6 +1299,9 @@ namespace AlibabaCloud typedef Outcome GetSceneRuleOutcome; typedef std::future GetSceneRuleOutcomeCallable; typedef std::function&)> GetSceneRuleAsyncHandler; + typedef Outcome GetShareTaskByDeviceOpenOutcome; + typedef std::future GetShareTaskByDeviceOpenOutcomeCallable; + typedef std::function&)> GetShareTaskByDeviceOpenAsyncHandler; typedef Outcome GetSoundCodeAudioOutcome; typedef std::future GetSoundCodeAudioOutcomeCallable; typedef std::function&)> GetSoundCodeAudioAsyncHandler; @@ -1282,6 +1311,9 @@ namespace AlibabaCloud typedef Outcome GetSpeechDeviceDetailOutcome; typedef std::future GetSpeechDeviceDetailOutcomeCallable; typedef std::function&)> GetSpeechDeviceDetailAsyncHandler; + typedef Outcome GetSpeechLicenseDeviceStatisticsOutcome; + typedef std::future GetSpeechLicenseDeviceStatisticsOutcomeCallable; + typedef std::function&)> GetSpeechLicenseDeviceStatisticsAsyncHandler; typedef Outcome GetSpeechVoiceOutcome; typedef std::future GetSpeechVoiceOutcomeCallable; typedef std::function&)> GetSpeechVoiceAsyncHandler; @@ -1405,6 +1437,9 @@ namespace AlibabaCloud typedef Outcome PackageSoundCodeLabelBatchAudioOutcome; typedef std::future PackageSoundCodeLabelBatchAudioOutcomeCallable; typedef std::function&)> PackageSoundCodeLabelBatchAudioAsyncHandler; + typedef Outcome PageQuerySharedSpeechOpenOutcome; + typedef std::future PageQuerySharedSpeechOpenOutcomeCallable; + typedef std::function&)> PageQuerySharedSpeechOpenAsyncHandler; typedef Outcome PrintByTemplateOutcome; typedef std::future PrintByTemplateOutcomeCallable; typedef std::function&)> PrintByTemplateAsyncHandler; @@ -1618,12 +1653,18 @@ namespace AlibabaCloud typedef Outcome QueryProductTopicOutcome; typedef std::future QueryProductTopicOutcomeCallable; typedef std::function&)> QueryProductTopicAsyncHandler; + typedef Outcome QueryProjectShareDeviceListOutcome; + typedef std::future QueryProjectShareDeviceListOutcomeCallable; + typedef std::function&)> QueryProjectShareDeviceListAsyncHandler; typedef Outcome QuerySceneRuleOutcome; typedef std::future QuerySceneRuleOutcomeCallable; typedef std::function&)> QuerySceneRuleAsyncHandler; typedef Outcome QuerySchedulePeriodListOutcome; typedef std::future QuerySchedulePeriodListOutcomeCallable; typedef std::function&)> QuerySchedulePeriodListAsyncHandler; + typedef Outcome QueryShareTaskDeviceListOutcome; + typedef std::future QueryShareTaskDeviceListOutcomeCallable; + typedef std::function&)> QueryShareTaskDeviceListAsyncHandler; typedef Outcome QuerySolutionDeviceGroupPageOutcome; typedef std::future QuerySolutionDeviceGroupPageOutcomeCallable; typedef std::function&)> QuerySolutionDeviceGroupPageAsyncHandler; @@ -1648,6 +1689,9 @@ namespace AlibabaCloud typedef Outcome QuerySpeechDeviceOutcome; typedef std::future QuerySpeechDeviceOutcomeCallable; typedef std::function&)> QuerySpeechDeviceAsyncHandler; + typedef Outcome QuerySpeechLicenseDeviceListOutcome; + typedef std::future QuerySpeechLicenseDeviceListOutcomeCallable; + typedef std::function&)> QuerySpeechLicenseDeviceListAsyncHandler; typedef Outcome QuerySpeechListOutcome; typedef std::future QuerySpeechListOutcomeCallable; typedef std::function&)> QuerySpeechListAsyncHandler; @@ -1705,6 +1749,9 @@ namespace AlibabaCloud typedef Outcome RRpcOutcome; typedef std::future RRpcOutcomeCallable; typedef std::function&)> RRpcAsyncHandler; + typedef Outcome ReBindLicenseDeviceOutcome; + typedef std::future ReBindLicenseDeviceOutcomeCallable; + typedef std::function&)> ReBindLicenseDeviceAsyncHandler; typedef Outcome RecognizeCarNumOutcome; typedef std::future RecognizeCarNumOutcomeCallable; typedef std::function&)> RecognizeCarNumAsyncHandler; @@ -1777,6 +1824,9 @@ namespace AlibabaCloud typedef Outcome SetupStudioAppAuthModeOpenOutcome; typedef std::future SetupStudioAppAuthModeOpenOutcomeCallable; typedef std::function&)> SetupStudioAppAuthModeOpenAsyncHandler; + typedef Outcome ShareSpeechByCombinationOutcome; + typedef std::future ShareSpeechByCombinationOutcomeCallable; + typedef std::function&)> ShareSpeechByCombinationAsyncHandler; typedef Outcome SpeechByCombinationOutcome; typedef std::future SpeechByCombinationOutcomeCallable; typedef std::function&)> SpeechByCombinationAsyncHandler; @@ -1914,6 +1964,9 @@ namespace AlibabaCloud AddDataForApiSourceOutcome addDataForApiSource(const Model::AddDataForApiSourceRequest &request)const; void addDataForApiSourceAsync(const Model::AddDataForApiSourceRequest& request, const AddDataForApiSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDataForApiSourceOutcomeCallable addDataForApiSourceCallable(const Model::AddDataForApiSourceRequest& request) const; + AddShareTaskDeviceOutcome addShareTaskDevice(const Model::AddShareTaskDeviceRequest &request)const; + void addShareTaskDeviceAsync(const Model::AddShareTaskDeviceRequest& request, const AddShareTaskDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddShareTaskDeviceOutcomeCallable addShareTaskDeviceCallable(const Model::AddShareTaskDeviceRequest& request) const; AttachDestinationOutcome attachDestination(const Model::AttachDestinationRequest &request)const; void attachDestinationAsync(const Model::AttachDestinationRequest& request, const AttachDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachDestinationOutcomeCallable attachDestinationCallable(const Model::AttachDestinationRequest& request) const; @@ -2286,6 +2339,9 @@ namespace AlibabaCloud DeleteSchedulePeriodOutcome deleteSchedulePeriod(const Model::DeleteSchedulePeriodRequest &request)const; void deleteSchedulePeriodAsync(const Model::DeleteSchedulePeriodRequest& request, const DeleteSchedulePeriodAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSchedulePeriodOutcomeCallable deleteSchedulePeriodCallable(const Model::DeleteSchedulePeriodRequest& request) const; + DeleteShareTaskDeviceOutcome deleteShareTaskDevice(const Model::DeleteShareTaskDeviceRequest &request)const; + void deleteShareTaskDeviceAsync(const Model::DeleteShareTaskDeviceRequest& request, const DeleteShareTaskDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteShareTaskDeviceOutcomeCallable deleteShareTaskDeviceCallable(const Model::DeleteShareTaskDeviceRequest& request) const; DeleteSoundCodeOutcome deleteSoundCode(const Model::DeleteSoundCodeRequest &request)const; void deleteSoundCodeAsync(const Model::DeleteSoundCodeRequest& request, const DeleteSoundCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSoundCodeOutcomeCallable deleteSoundCodeCallable(const Model::DeleteSoundCodeRequest& request) const; @@ -2403,6 +2459,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; + GetShareTaskByDeviceOpenOutcome getShareTaskByDeviceOpen(const Model::GetShareTaskByDeviceOpenRequest &request)const; + void getShareTaskByDeviceOpenAsync(const Model::GetShareTaskByDeviceOpenRequest& request, const GetShareTaskByDeviceOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetShareTaskByDeviceOpenOutcomeCallable getShareTaskByDeviceOpenCallable(const Model::GetShareTaskByDeviceOpenRequest& request) const; GetSoundCodeAudioOutcome getSoundCodeAudio(const Model::GetSoundCodeAudioRequest &request)const; void getSoundCodeAudioAsync(const Model::GetSoundCodeAudioRequest& request, const GetSoundCodeAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSoundCodeAudioOutcomeCallable getSoundCodeAudioCallable(const Model::GetSoundCodeAudioRequest& request) const; @@ -2412,6 +2471,9 @@ namespace AlibabaCloud 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; + GetSpeechLicenseDeviceStatisticsOutcome getSpeechLicenseDeviceStatistics(const Model::GetSpeechLicenseDeviceStatisticsRequest &request)const; + void getSpeechLicenseDeviceStatisticsAsync(const Model::GetSpeechLicenseDeviceStatisticsRequest& request, const GetSpeechLicenseDeviceStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSpeechLicenseDeviceStatisticsOutcomeCallable getSpeechLicenseDeviceStatisticsCallable(const Model::GetSpeechLicenseDeviceStatisticsRequest& 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; @@ -2535,6 +2597,9 @@ namespace AlibabaCloud PackageSoundCodeLabelBatchAudioOutcome packageSoundCodeLabelBatchAudio(const Model::PackageSoundCodeLabelBatchAudioRequest &request)const; void packageSoundCodeLabelBatchAudioAsync(const Model::PackageSoundCodeLabelBatchAudioRequest& request, const PackageSoundCodeLabelBatchAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PackageSoundCodeLabelBatchAudioOutcomeCallable packageSoundCodeLabelBatchAudioCallable(const Model::PackageSoundCodeLabelBatchAudioRequest& request) const; + PageQuerySharedSpeechOpenOutcome pageQuerySharedSpeechOpen(const Model::PageQuerySharedSpeechOpenRequest &request)const; + void pageQuerySharedSpeechOpenAsync(const Model::PageQuerySharedSpeechOpenRequest& request, const PageQuerySharedSpeechOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageQuerySharedSpeechOpenOutcomeCallable pageQuerySharedSpeechOpenCallable(const Model::PageQuerySharedSpeechOpenRequest& request) const; PrintByTemplateOutcome printByTemplate(const Model::PrintByTemplateRequest &request)const; void printByTemplateAsync(const Model::PrintByTemplateRequest& request, const PrintByTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PrintByTemplateOutcomeCallable printByTemplateCallable(const Model::PrintByTemplateRequest& request) const; @@ -2748,12 +2813,18 @@ namespace AlibabaCloud QueryProductTopicOutcome queryProductTopic(const Model::QueryProductTopicRequest &request)const; void queryProductTopicAsync(const Model::QueryProductTopicRequest& request, const QueryProductTopicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryProductTopicOutcomeCallable queryProductTopicCallable(const Model::QueryProductTopicRequest& request) const; + QueryProjectShareDeviceListOutcome queryProjectShareDeviceList(const Model::QueryProjectShareDeviceListRequest &request)const; + void queryProjectShareDeviceListAsync(const Model::QueryProjectShareDeviceListRequest& request, const QueryProjectShareDeviceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryProjectShareDeviceListOutcomeCallable queryProjectShareDeviceListCallable(const Model::QueryProjectShareDeviceListRequest& request) const; QuerySceneRuleOutcome querySceneRule(const Model::QuerySceneRuleRequest &request)const; void querySceneRuleAsync(const Model::QuerySceneRuleRequest& request, const QuerySceneRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySceneRuleOutcomeCallable querySceneRuleCallable(const Model::QuerySceneRuleRequest& request) const; QuerySchedulePeriodListOutcome querySchedulePeriodList(const Model::QuerySchedulePeriodListRequest &request)const; void querySchedulePeriodListAsync(const Model::QuerySchedulePeriodListRequest& request, const QuerySchedulePeriodListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySchedulePeriodListOutcomeCallable querySchedulePeriodListCallable(const Model::QuerySchedulePeriodListRequest& request) const; + QueryShareTaskDeviceListOutcome queryShareTaskDeviceList(const Model::QueryShareTaskDeviceListRequest &request)const; + void queryShareTaskDeviceListAsync(const Model::QueryShareTaskDeviceListRequest& request, const QueryShareTaskDeviceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryShareTaskDeviceListOutcomeCallable queryShareTaskDeviceListCallable(const Model::QueryShareTaskDeviceListRequest& request) const; QuerySolutionDeviceGroupPageOutcome querySolutionDeviceGroupPage(const Model::QuerySolutionDeviceGroupPageRequest &request)const; void querySolutionDeviceGroupPageAsync(const Model::QuerySolutionDeviceGroupPageRequest& request, const QuerySolutionDeviceGroupPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySolutionDeviceGroupPageOutcomeCallable querySolutionDeviceGroupPageCallable(const Model::QuerySolutionDeviceGroupPageRequest& request) const; @@ -2778,6 +2849,9 @@ namespace AlibabaCloud 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; + QuerySpeechLicenseDeviceListOutcome querySpeechLicenseDeviceList(const Model::QuerySpeechLicenseDeviceListRequest &request)const; + void querySpeechLicenseDeviceListAsync(const Model::QuerySpeechLicenseDeviceListRequest& request, const QuerySpeechLicenseDeviceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySpeechLicenseDeviceListOutcomeCallable querySpeechLicenseDeviceListCallable(const Model::QuerySpeechLicenseDeviceListRequest& 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; @@ -2835,6 +2909,9 @@ namespace AlibabaCloud RRpcOutcome rRpc(const Model::RRpcRequest &request)const; void rRpcAsync(const Model::RRpcRequest& request, const RRpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RRpcOutcomeCallable rRpcCallable(const Model::RRpcRequest& request) const; + ReBindLicenseDeviceOutcome reBindLicenseDevice(const Model::ReBindLicenseDeviceRequest &request)const; + void reBindLicenseDeviceAsync(const Model::ReBindLicenseDeviceRequest& request, const ReBindLicenseDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReBindLicenseDeviceOutcomeCallable reBindLicenseDeviceCallable(const Model::ReBindLicenseDeviceRequest& request) const; RecognizeCarNumOutcome recognizeCarNum(const Model::RecognizeCarNumRequest &request)const; void recognizeCarNumAsync(const Model::RecognizeCarNumRequest& request, const RecognizeCarNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RecognizeCarNumOutcomeCallable recognizeCarNumCallable(const Model::RecognizeCarNumRequest& request) const; @@ -2907,6 +2984,9 @@ namespace AlibabaCloud SetupStudioAppAuthModeOpenOutcome setupStudioAppAuthModeOpen(const Model::SetupStudioAppAuthModeOpenRequest &request)const; void setupStudioAppAuthModeOpenAsync(const Model::SetupStudioAppAuthModeOpenRequest& request, const SetupStudioAppAuthModeOpenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetupStudioAppAuthModeOpenOutcomeCallable setupStudioAppAuthModeOpenCallable(const Model::SetupStudioAppAuthModeOpenRequest& request) const; + ShareSpeechByCombinationOutcome shareSpeechByCombination(const Model::ShareSpeechByCombinationRequest &request)const; + void shareSpeechByCombinationAsync(const Model::ShareSpeechByCombinationRequest& request, const ShareSpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ShareSpeechByCombinationOutcomeCallable shareSpeechByCombinationCallable(const Model::ShareSpeechByCombinationRequest& request) const; SpeechByCombinationOutcome speechByCombination(const Model::SpeechByCombinationRequest &request)const; void speechByCombinationAsync(const Model::SpeechByCombinationRequest& request, const SpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SpeechByCombinationOutcomeCallable speechByCombinationCallable(const Model::SpeechByCombinationRequest& request) const; diff --git a/iot/include/alibabacloud/iot/model/AddShareTaskDeviceRequest.h b/iot/include/alibabacloud/iot/model/AddShareTaskDeviceRequest.h new file mode 100644 index 000000000..74df2aaa2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AddShareTaskDeviceRequest.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_ADDSHARETASKDEVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_ADDSHARETASKDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AddShareTaskDeviceRequest : public RpcServiceRequest + { + + public: + AddShareTaskDeviceRequest(); + ~AddShareTaskDeviceRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::vector getIotIdList()const; + void setIotIdList(const std::vector& iotIdList); + std::string getShareTaskId()const; + void setShareTaskId(const std::string& shareTaskId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::vector iotIdList_; + std::string shareTaskId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_ADDSHARETASKDEVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/AddShareTaskDeviceResult.h b/iot/include/alibabacloud/iot/model/AddShareTaskDeviceResult.h new file mode 100644 index 000000000..3e6219475 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/AddShareTaskDeviceResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_ADDSHARETASKDEVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_ADDSHARETASKDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT AddShareTaskDeviceResult : public ServiceResult + { + public: + struct Data + { + int progress; + std::string progressId; + }; + + + AddShareTaskDeviceResult(); + explicit AddShareTaskDeviceResult(const std::string &payload); + ~AddShareTaskDeviceResult(); + 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_ADDSHARETASKDEVICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/BindLicenseDeviceRequest.h b/iot/include/alibabacloud/iot/model/BindLicenseDeviceRequest.h index 09c08ff08..cd1334a14 100644 --- a/iot/include/alibabacloud/iot/model/BindLicenseDeviceRequest.h +++ b/iot/include/alibabacloud/iot/model/BindLicenseDeviceRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud BindLicenseDeviceRequest(); ~BindLicenseDeviceRequest(); + std::vector getDeviceNameList()const; + void setDeviceNameList(const std::vector& deviceNameList); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); std::vector getIotIdList()const; @@ -49,6 +51,7 @@ namespace AlibabaCloud void setLicenseCode(const std::string& licenseCode); private: + std::vector deviceNameList_; std::string iotInstanceId_; std::vector iotIdList_; std::string productKey_; diff --git a/iot/include/alibabacloud/iot/model/DeleteShareTaskDeviceRequest.h b/iot/include/alibabacloud/iot/model/DeleteShareTaskDeviceRequest.h new file mode 100644 index 000000000..68eb6ec5b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteShareTaskDeviceRequest.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_DELETESHARETASKDEVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETESHARETASKDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteShareTaskDeviceRequest : public RpcServiceRequest + { + + public: + DeleteShareTaskDeviceRequest(); + ~DeleteShareTaskDeviceRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::vector getIotIdList()const; + void setIotIdList(const std::vector& iotIdList); + std::string getShareTaskId()const; + void setShareTaskId(const std::string& shareTaskId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::vector iotIdList_; + std::string shareTaskId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_DELETESHARETASKDEVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/DeleteShareTaskDeviceResult.h b/iot/include/alibabacloud/iot/model/DeleteShareTaskDeviceResult.h new file mode 100644 index 000000000..cf24d1f81 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/DeleteShareTaskDeviceResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_DELETESHARETASKDEVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_DELETESHARETASKDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT DeleteShareTaskDeviceResult : public ServiceResult + { + public: + struct Data + { + int progress; + std::string progressId; + }; + + + DeleteShareTaskDeviceResult(); + explicit DeleteShareTaskDeviceResult(const std::string &payload); + ~DeleteShareTaskDeviceResult(); + 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_DELETESHARETASKDEVICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetShareTaskByDeviceOpenRequest.h b/iot/include/alibabacloud/iot/model/GetShareTaskByDeviceOpenRequest.h new file mode 100644 index 000000000..1c0b80bc2 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetShareTaskByDeviceOpenRequest.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_GETSHARETASKBYDEVICEOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSHARETASKBYDEVICEOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetShareTaskByDeviceOpenRequest : public RpcServiceRequest + { + + public: + GetShareTaskByDeviceOpenRequest(); + ~GetShareTaskByDeviceOpenRequest(); + + std::string getIotId()const; + void setIotId(const std::string& iotId); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string iotId_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSHARETASKBYDEVICEOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetShareTaskByDeviceOpenResult.h b/iot/include/alibabacloud/iot/model/GetShareTaskByDeviceOpenResult.h new file mode 100644 index 000000000..c6f451ad5 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetShareTaskByDeviceOpenResult.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_GETSHARETASKBYDEVICEOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSHARETASKBYDEVICEOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetShareTaskByDeviceOpenResult : public ServiceResult + { + public: + + + GetShareTaskByDeviceOpenResult(); + explicit GetShareTaskByDeviceOpenResult(const std::string &payload); + ~GetShareTaskByDeviceOpenResult(); + std::string getData()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSHARETASKBYDEVICEOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsRequest.h b/iot/include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsRequest.h new file mode 100644 index 000000000..affcf6421 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_GETSPEECHLICENSEDEVICESTATISTICSREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSPEECHLICENSEDEVICESTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetSpeechLicenseDeviceStatisticsRequest : public RpcServiceRequest + { + + public: + GetSpeechLicenseDeviceStatisticsRequest(); + ~GetSpeechLicenseDeviceStatisticsRequest(); + + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + + private: + std::string iotInstanceId_; + std::string apiProduct_; + std::string apiRevision_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_GETSPEECHLICENSEDEVICESTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsResult.h b/iot/include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsResult.h new file mode 100644 index 000000000..50878b57c --- /dev/null +++ b/iot/include/alibabacloud/iot/model/GetSpeechLicenseDeviceStatisticsResult.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_GETSPEECHLICENSEDEVICESTATISTICSRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_GETSPEECHLICENSEDEVICESTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT GetSpeechLicenseDeviceStatisticsResult : public ServiceResult + { + public: + struct Data + { + int expiredQuota; + int expiringQuota; + int availableQuota; + }; + + + GetSpeechLicenseDeviceStatisticsResult(); + explicit GetSpeechLicenseDeviceStatisticsResult(const std::string &payload); + ~GetSpeechLicenseDeviceStatisticsResult(); + 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_GETSPEECHLICENSEDEVICESTATISTICSRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PageQuerySharedSpeechOpenRequest.h b/iot/include/alibabacloud/iot/model/PageQuerySharedSpeechOpenRequest.h new file mode 100644 index 000000000..036b7ae50 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PageQuerySharedSpeechOpenRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_PAGEQUERYSHAREDSPEECHOPENREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_PAGEQUERYSHAREDSPEECHOPENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PageQuerySharedSpeechOpenRequest : public RpcServiceRequest + { + + public: + PageQuerySharedSpeechOpenRequest(); + ~PageQuerySharedSpeechOpenRequest(); + + 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 getShareTaskCode()const; + void setShareTaskCode(const std::string& shareTaskCode); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + int getStatus()const; + void setStatus(int status); + + private: + int pageId_; + std::string iotId_; + std::string iotInstanceId_; + int pageSize_; + std::string shareTaskCode_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_PAGEQUERYSHAREDSPEECHOPENREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/PageQuerySharedSpeechOpenResult.h b/iot/include/alibabacloud/iot/model/PageQuerySharedSpeechOpenResult.h new file mode 100644 index 000000000..3c3871b06 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/PageQuerySharedSpeechOpenResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_PAGEQUERYSHAREDSPEECHOPENRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_PAGEQUERYSHAREDSPEECHOPENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT PageQuerySharedSpeechOpenResult : public ServiceResult + { + public: + struct Data + { + struct Data1 + { + int status; + int volume; + std::string text; + std::string audioFormat; + std::string code; + std::string voice; + int speechRate; + std::string bizCode; + }; + int pageId; + std::vector resultData; + int pageSize; + int total; + }; + + + PageQuerySharedSpeechOpenResult(); + explicit PageQuerySharedSpeechOpenResult(const std::string &payload); + ~PageQuerySharedSpeechOpenResult(); + 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_PAGEQUERYSHAREDSPEECHOPENRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryProjectShareDeviceListRequest.h b/iot/include/alibabacloud/iot/model/QueryProjectShareDeviceListRequest.h new file mode 100644 index 000000000..b459795a0 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryProjectShareDeviceListRequest.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_QUERYPROJECTSHAREDEVICELISTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYPROJECTSHAREDEVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryProjectShareDeviceListRequest : public RpcServiceRequest + { + + public: + QueryProjectShareDeviceListRequest(); + ~QueryProjectShareDeviceListRequest(); + + 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 getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYPROJECTSHAREDEVICELISTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryProjectShareDeviceListResult.h b/iot/include/alibabacloud/iot/model/QueryProjectShareDeviceListResult.h new file mode 100644 index 000000000..9997e20ea --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryProjectShareDeviceListResult.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_QUERYPROJECTSHAREDEVICELISTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYPROJECTSHAREDEVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryProjectShareDeviceListResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + std::string iotId; + long sharable; + std::string productKey; + std::string deviceName; + }; + int pageId; + int pageSize; + int total; + std::vector deviceList; + }; + + + QueryProjectShareDeviceListResult(); + explicit QueryProjectShareDeviceListResult(const std::string &payload); + ~QueryProjectShareDeviceListResult(); + 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_QUERYPROJECTSHAREDEVICELISTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryShareTaskDeviceListRequest.h b/iot/include/alibabacloud/iot/model/QueryShareTaskDeviceListRequest.h new file mode 100644 index 000000000..0fe05abe3 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryShareTaskDeviceListRequest.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_QUERYSHARETASKDEVICELISTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSHARETASKDEVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryShareTaskDeviceListRequest : public RpcServiceRequest + { + + public: + QueryShareTaskDeviceListRequest(); + ~QueryShareTaskDeviceListRequest(); + + 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 getShareTaskId()const; + void setShareTaskId(const std::string& shareTaskId); + 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: + int pageId_; + std::string iotInstanceId_; + int pageSize_; + std::string shareTaskId_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSHARETASKDEVICELISTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QueryShareTaskDeviceListResult.h b/iot/include/alibabacloud/iot/model/QueryShareTaskDeviceListResult.h new file mode 100644 index 000000000..5ccb4bdb6 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QueryShareTaskDeviceListResult.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_QUERYSHARETASKDEVICELISTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSHARETASKDEVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QueryShareTaskDeviceListResult : public ServiceResult + { + public: + struct Data + { + struct Items + { + std::string iotId; + long gmtAdded; + std::string productKey; + std::string deviceName; + }; + int pageId; + int pageSize; + int total; + std::vector deviceList; + }; + + + QueryShareTaskDeviceListResult(); + explicit QueryShareTaskDeviceListResult(const std::string &payload); + ~QueryShareTaskDeviceListResult(); + 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_QUERYSHARETASKDEVICELISTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListRequest.h b/iot/include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListRequest.h new file mode 100644 index 000000000..35f19ed9b --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListRequest.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_QUERYSPEECHLICENSEDEVICELISTREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEDEVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechLicenseDeviceListRequest : public RpcServiceRequest + { + + public: + QuerySpeechLicenseDeviceListRequest(); + ~QuerySpeechLicenseDeviceListRequest(); + + int getPageId()const; + void setPageId(int pageId); + std::vector getLicenseStatusList()const; + void setLicenseStatusList(const std::vector& licenseStatusList); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getCheckGroupId()const; + void setCheckGroupId(const std::string& checkGroupId); + 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: + int pageId_; + std::vector licenseStatusList_; + std::string iotInstanceId_; + int pageSize_; + std::string productKey_; + std::string checkGroupId_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEDEVICELISTREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListResult.h b/iot/include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListResult.h new file mode 100644 index 000000000..53001ab7f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/QuerySpeechLicenseDeviceListResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEDEVICELISTRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEDEVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT QuerySpeechLicenseDeviceListResult : public ServiceResult + { + public: + struct Data + { + struct Item + { + std::string iotId; + std::string productName; + std::string licenseStatus; + long expiryTime; + std::string deviceStatus; + bool inSpecifiedGroup; + std::string productKey; + std::string deviceName; + }; + int pageId; + int pageSize; + int total; + std::vector deviceList; + }; + + + QuerySpeechLicenseDeviceListResult(); + explicit QuerySpeechLicenseDeviceListResult(const std::string &payload); + ~QuerySpeechLicenseDeviceListResult(); + 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_QUERYSPEECHLICENSEDEVICELISTRESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ReBindLicenseDeviceRequest.h b/iot/include/alibabacloud/iot/model/ReBindLicenseDeviceRequest.h new file mode 100644 index 000000000..65f9526c8 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ReBindLicenseDeviceRequest.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_REBINDLICENSEDEVICEREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_REBINDLICENSEDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ReBindLicenseDeviceRequest : public RpcServiceRequest + { + + public: + ReBindLicenseDeviceRequest(); + ~ReBindLicenseDeviceRequest(); + + std::vector getDeviceNameList()const; + void setDeviceNameList(const std::vector& deviceNameList); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getLicenseCode()const; + void setLicenseCode(const std::string& licenseCode); + + private: + std::vector deviceNameList_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string licenseCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_REBINDLICENSEDEVICEREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ReBindLicenseDeviceResult.h b/iot/include/alibabacloud/iot/model/ReBindLicenseDeviceResult.h new file mode 100644 index 000000000..40ea4146f --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ReBindLicenseDeviceResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IOT_MODEL_REBINDLICENSEDEVICERESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_REBINDLICENSEDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ReBindLicenseDeviceResult : public ServiceResult + { + public: + struct Data + { + std::string checkProgressId; + int progress; + std::string resultCsvFile; + long failSum; + long successSum; + }; + + + ReBindLicenseDeviceResult(); + explicit ReBindLicenseDeviceResult(const std::string &payload); + ~ReBindLicenseDeviceResult(); + 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_REBINDLICENSEDEVICERESULT_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ShareSpeechByCombinationRequest.h b/iot/include/alibabacloud/iot/model/ShareSpeechByCombinationRequest.h new file mode 100644 index 000000000..42bd7ffe7 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ShareSpeechByCombinationRequest.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_SHARESPEECHBYCOMBINATIONREQUEST_H_ +#define ALIBABACLOUD_IOT_MODEL_SHARESPEECHBYCOMBINATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ShareSpeechByCombinationRequest : public RpcServiceRequest + { + + public: + ShareSpeechByCombinationRequest(); + ~ShareSpeechByCombinationRequest(); + + 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; + void setCombinationList(const std::vector& combinationList); + std::string getIotInstanceId()const; + void setIotInstanceId(const std::string& iotInstanceId); + std::string getProductKey()const; + void setProductKey(const std::string& productKey); + std::string getApiProduct()const; + void setApiProduct(const std::string& apiProduct); + std::string getApiRevision()const; + void setApiRevision(const std::string& apiRevision); + std::string getDeviceName()const; + void setDeviceName(const std::string& deviceName); + + private: + std::string speechId_; + std::string audioFormat_; + std::string iotId_; + std::vector combinationList_; + std::string iotInstanceId_; + std::string productKey_; + std::string apiProduct_; + std::string apiRevision_; + std::string deviceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IOT_MODEL_SHARESPEECHBYCOMBINATIONREQUEST_H_ \ No newline at end of file diff --git a/iot/include/alibabacloud/iot/model/ShareSpeechByCombinationResult.h b/iot/include/alibabacloud/iot/model/ShareSpeechByCombinationResult.h new file mode 100644 index 000000000..da47e4828 --- /dev/null +++ b/iot/include/alibabacloud/iot/model/ShareSpeechByCombinationResult.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_SHARESPEECHBYCOMBINATIONRESULT_H_ +#define ALIBABACLOUD_IOT_MODEL_SHARESPEECHBYCOMBINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Iot + { + namespace Model + { + class ALIBABACLOUD_IOT_EXPORT ShareSpeechByCombinationResult : public ServiceResult + { + public: + + + ShareSpeechByCombinationResult(); + explicit ShareSpeechByCombinationResult(const std::string &payload); + ~ShareSpeechByCombinationResult(); + 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_SHARESPEECHBYCOMBINATIONRESULT_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 1a6428087..fba33db9d 100644 --- a/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h +++ b/iot/include/alibabacloud/iot/model/SpeechByCombinationRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setCombinationList(const std::vector& combinationList); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + bool getEnforceFlag()const; + void setEnforceFlag(bool enforceFlag); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -60,6 +62,7 @@ namespace AlibabaCloud std::string iotId_; std::vector combinationList_; std::string iotInstanceId_; + bool enforceFlag_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; diff --git a/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h index c549bad4c..25b6db54d 100644 --- a/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h +++ b/iot/include/alibabacloud/iot/model/SyncSpeechByCombinationRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setCombinationList(const std::vector& combinationList); std::string getIotInstanceId()const; void setIotInstanceId(const std::string& iotInstanceId); + bool getEnforceFlag()const; + void setEnforceFlag(bool enforceFlag); std::string getProductKey()const; void setProductKey(const std::string& productKey); std::string getApiProduct()const; @@ -60,6 +62,7 @@ namespace AlibabaCloud std::string iotId_; std::vector combinationList_; std::string iotInstanceId_; + bool enforceFlag_; std::string productKey_; std::string apiProduct_; std::string apiRevision_; diff --git a/iot/src/IotClient.cc b/iot/src/IotClient.cc index a00cf86d7..b8f8a2aae 100644 --- a/iot/src/IotClient.cc +++ b/iot/src/IotClient.cc @@ -87,6 +87,42 @@ IotClient::AddDataForApiSourceOutcomeCallable IotClient::addDataForApiSourceCall return task->get_future(); } +IotClient::AddShareTaskDeviceOutcome IotClient::addShareTaskDevice(const AddShareTaskDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddShareTaskDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddShareTaskDeviceOutcome(AddShareTaskDeviceResult(outcome.result())); + else + return AddShareTaskDeviceOutcome(outcome.error()); +} + +void IotClient::addShareTaskDeviceAsync(const AddShareTaskDeviceRequest& request, const AddShareTaskDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addShareTaskDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::AddShareTaskDeviceOutcomeCallable IotClient::addShareTaskDeviceCallable(const AddShareTaskDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addShareTaskDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::AttachDestinationOutcome IotClient::attachDestination(const AttachDestinationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +4587,42 @@ IotClient::DeleteSchedulePeriodOutcomeCallable IotClient::deleteSchedulePeriodCa return task->get_future(); } +IotClient::DeleteShareTaskDeviceOutcome IotClient::deleteShareTaskDevice(const DeleteShareTaskDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteShareTaskDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteShareTaskDeviceOutcome(DeleteShareTaskDeviceResult(outcome.result())); + else + return DeleteShareTaskDeviceOutcome(outcome.error()); +} + +void IotClient::deleteShareTaskDeviceAsync(const DeleteShareTaskDeviceRequest& request, const DeleteShareTaskDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteShareTaskDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::DeleteShareTaskDeviceOutcomeCallable IotClient::deleteShareTaskDeviceCallable(const DeleteShareTaskDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteShareTaskDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::DeleteSoundCodeOutcome IotClient::deleteSoundCode(const DeleteSoundCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5955,6 +6027,42 @@ IotClient::GetSceneRuleOutcomeCallable IotClient::getSceneRuleCallable(const Get return task->get_future(); } +IotClient::GetShareTaskByDeviceOpenOutcome IotClient::getShareTaskByDeviceOpen(const GetShareTaskByDeviceOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetShareTaskByDeviceOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetShareTaskByDeviceOpenOutcome(GetShareTaskByDeviceOpenResult(outcome.result())); + else + return GetShareTaskByDeviceOpenOutcome(outcome.error()); +} + +void IotClient::getShareTaskByDeviceOpenAsync(const GetShareTaskByDeviceOpenRequest& request, const GetShareTaskByDeviceOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getShareTaskByDeviceOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetShareTaskByDeviceOpenOutcomeCallable IotClient::getShareTaskByDeviceOpenCallable(const GetShareTaskByDeviceOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getShareTaskByDeviceOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetSoundCodeAudioOutcome IotClient::getSoundCodeAudio(const GetSoundCodeAudioRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6063,6 +6171,42 @@ IotClient::GetSpeechDeviceDetailOutcomeCallable IotClient::getSpeechDeviceDetail return task->get_future(); } +IotClient::GetSpeechLicenseDeviceStatisticsOutcome IotClient::getSpeechLicenseDeviceStatistics(const GetSpeechLicenseDeviceStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSpeechLicenseDeviceStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSpeechLicenseDeviceStatisticsOutcome(GetSpeechLicenseDeviceStatisticsResult(outcome.result())); + else + return GetSpeechLicenseDeviceStatisticsOutcome(outcome.error()); +} + +void IotClient::getSpeechLicenseDeviceStatisticsAsync(const GetSpeechLicenseDeviceStatisticsRequest& request, const GetSpeechLicenseDeviceStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSpeechLicenseDeviceStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::GetSpeechLicenseDeviceStatisticsOutcomeCallable IotClient::getSpeechLicenseDeviceStatisticsCallable(const GetSpeechLicenseDeviceStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSpeechLicenseDeviceStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::GetSpeechVoiceOutcome IotClient::getSpeechVoice(const GetSpeechVoiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7539,6 +7683,42 @@ IotClient::PackageSoundCodeLabelBatchAudioOutcomeCallable IotClient::packageSoun return task->get_future(); } +IotClient::PageQuerySharedSpeechOpenOutcome IotClient::pageQuerySharedSpeechOpen(const PageQuerySharedSpeechOpenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageQuerySharedSpeechOpenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageQuerySharedSpeechOpenOutcome(PageQuerySharedSpeechOpenResult(outcome.result())); + else + return PageQuerySharedSpeechOpenOutcome(outcome.error()); +} + +void IotClient::pageQuerySharedSpeechOpenAsync(const PageQuerySharedSpeechOpenRequest& request, const PageQuerySharedSpeechOpenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageQuerySharedSpeechOpen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::PageQuerySharedSpeechOpenOutcomeCallable IotClient::pageQuerySharedSpeechOpenCallable(const PageQuerySharedSpeechOpenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageQuerySharedSpeechOpen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::PrintByTemplateOutcome IotClient::printByTemplate(const PrintByTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10095,6 +10275,42 @@ IotClient::QueryProductTopicOutcomeCallable IotClient::queryProductTopicCallable return task->get_future(); } +IotClient::QueryProjectShareDeviceListOutcome IotClient::queryProjectShareDeviceList(const QueryProjectShareDeviceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryProjectShareDeviceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryProjectShareDeviceListOutcome(QueryProjectShareDeviceListResult(outcome.result())); + else + return QueryProjectShareDeviceListOutcome(outcome.error()); +} + +void IotClient::queryProjectShareDeviceListAsync(const QueryProjectShareDeviceListRequest& request, const QueryProjectShareDeviceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryProjectShareDeviceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryProjectShareDeviceListOutcomeCallable IotClient::queryProjectShareDeviceListCallable(const QueryProjectShareDeviceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryProjectShareDeviceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QuerySceneRuleOutcome IotClient::querySceneRule(const QuerySceneRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10167,6 +10383,42 @@ IotClient::QuerySchedulePeriodListOutcomeCallable IotClient::querySchedulePeriod return task->get_future(); } +IotClient::QueryShareTaskDeviceListOutcome IotClient::queryShareTaskDeviceList(const QueryShareTaskDeviceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryShareTaskDeviceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryShareTaskDeviceListOutcome(QueryShareTaskDeviceListResult(outcome.result())); + else + return QueryShareTaskDeviceListOutcome(outcome.error()); +} + +void IotClient::queryShareTaskDeviceListAsync(const QueryShareTaskDeviceListRequest& request, const QueryShareTaskDeviceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryShareTaskDeviceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QueryShareTaskDeviceListOutcomeCallable IotClient::queryShareTaskDeviceListCallable(const QueryShareTaskDeviceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryShareTaskDeviceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QuerySolutionDeviceGroupPageOutcome IotClient::querySolutionDeviceGroupPage(const QuerySolutionDeviceGroupPageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10455,6 +10707,42 @@ IotClient::QuerySpeechDeviceOutcomeCallable IotClient::querySpeechDeviceCallable return task->get_future(); } +IotClient::QuerySpeechLicenseDeviceListOutcome IotClient::querySpeechLicenseDeviceList(const QuerySpeechLicenseDeviceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySpeechLicenseDeviceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySpeechLicenseDeviceListOutcome(QuerySpeechLicenseDeviceListResult(outcome.result())); + else + return QuerySpeechLicenseDeviceListOutcome(outcome.error()); +} + +void IotClient::querySpeechLicenseDeviceListAsync(const QuerySpeechLicenseDeviceListRequest& request, const QuerySpeechLicenseDeviceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySpeechLicenseDeviceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::QuerySpeechLicenseDeviceListOutcomeCallable IotClient::querySpeechLicenseDeviceListCallable(const QuerySpeechLicenseDeviceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySpeechLicenseDeviceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::QuerySpeechListOutcome IotClient::querySpeechList(const QuerySpeechListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11139,6 +11427,42 @@ IotClient::RRpcOutcomeCallable IotClient::rRpcCallable(const RRpcRequest &reques return task->get_future(); } +IotClient::ReBindLicenseDeviceOutcome IotClient::reBindLicenseDevice(const ReBindLicenseDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReBindLicenseDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReBindLicenseDeviceOutcome(ReBindLicenseDeviceResult(outcome.result())); + else + return ReBindLicenseDeviceOutcome(outcome.error()); +} + +void IotClient::reBindLicenseDeviceAsync(const ReBindLicenseDeviceRequest& request, const ReBindLicenseDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reBindLicenseDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ReBindLicenseDeviceOutcomeCallable IotClient::reBindLicenseDeviceCallable(const ReBindLicenseDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reBindLicenseDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::RecognizeCarNumOutcome IotClient::recognizeCarNum(const RecognizeCarNumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12003,6 +12327,42 @@ IotClient::SetupStudioAppAuthModeOpenOutcomeCallable IotClient::setupStudioAppAu return task->get_future(); } +IotClient::ShareSpeechByCombinationOutcome IotClient::shareSpeechByCombination(const ShareSpeechByCombinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ShareSpeechByCombinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ShareSpeechByCombinationOutcome(ShareSpeechByCombinationResult(outcome.result())); + else + return ShareSpeechByCombinationOutcome(outcome.error()); +} + +void IotClient::shareSpeechByCombinationAsync(const ShareSpeechByCombinationRequest& request, const ShareSpeechByCombinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, shareSpeechByCombination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IotClient::ShareSpeechByCombinationOutcomeCallable IotClient::shareSpeechByCombinationCallable(const ShareSpeechByCombinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->shareSpeechByCombination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + IotClient::SpeechByCombinationOutcome IotClient::speechByCombination(const SpeechByCombinationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/iot/src/model/AddShareTaskDeviceRequest.cc b/iot/src/model/AddShareTaskDeviceRequest.cc new file mode 100644 index 000000000..2005bfaf8 --- /dev/null +++ b/iot/src/model/AddShareTaskDeviceRequest.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::AddShareTaskDeviceRequest; + +AddShareTaskDeviceRequest::AddShareTaskDeviceRequest() : + RpcServiceRequest("iot", "2018-01-20", "AddShareTaskDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +AddShareTaskDeviceRequest::~AddShareTaskDeviceRequest() +{} + +std::string AddShareTaskDeviceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void AddShareTaskDeviceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::vector AddShareTaskDeviceRequest::getIotIdList()const +{ + return iotIdList_; +} + +void AddShareTaskDeviceRequest::setIotIdList(const std::vector& iotIdList) +{ + iotIdList_ = iotIdList; + for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) { + setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1)); + } +} + +std::string AddShareTaskDeviceRequest::getShareTaskId()const +{ + return shareTaskId_; +} + +void AddShareTaskDeviceRequest::setShareTaskId(const std::string& shareTaskId) +{ + shareTaskId_ = shareTaskId; + setBodyParameter("ShareTaskId", shareTaskId); +} + +std::string AddShareTaskDeviceRequest::getProductKey()const +{ + return productKey_; +} + +void AddShareTaskDeviceRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string AddShareTaskDeviceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void AddShareTaskDeviceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string AddShareTaskDeviceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void AddShareTaskDeviceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/AddShareTaskDeviceResult.cc b/iot/src/model/AddShareTaskDeviceResult.cc new file mode 100644 index 000000000..e60a40417 --- /dev/null +++ b/iot/src/model/AddShareTaskDeviceResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +AddShareTaskDeviceResult::AddShareTaskDeviceResult() : + ServiceResult() +{} + +AddShareTaskDeviceResult::AddShareTaskDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddShareTaskDeviceResult::~AddShareTaskDeviceResult() +{} + +void AddShareTaskDeviceResult::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["Progress"].isNull()) + data_.progress = std::stoi(dataNode["Progress"].asString()); + if(!dataNode["ProgressId"].isNull()) + data_.progressId = dataNode["ProgressId"].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(); + +} + +AddShareTaskDeviceResult::Data AddShareTaskDeviceResult::getData()const +{ + return data_; +} + +std::string AddShareTaskDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AddShareTaskDeviceResult::getCode()const +{ + return code_; +} + +bool AddShareTaskDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/BindLicenseDeviceRequest.cc b/iot/src/model/BindLicenseDeviceRequest.cc index 3d58a4a2a..7e660b4ce 100644 --- a/iot/src/model/BindLicenseDeviceRequest.cc +++ b/iot/src/model/BindLicenseDeviceRequest.cc @@ -27,6 +27,19 @@ BindLicenseDeviceRequest::BindLicenseDeviceRequest() : BindLicenseDeviceRequest::~BindLicenseDeviceRequest() {} +std::vector BindLicenseDeviceRequest::getDeviceNameList()const +{ + return deviceNameList_; +} + +void BindLicenseDeviceRequest::setDeviceNameList(const std::vector& deviceNameList) +{ + deviceNameList_ = deviceNameList; + for(int dep1 = 0; dep1!= deviceNameList.size(); dep1++) { + setBodyParameter("DeviceNameList."+ std::to_string(dep1), deviceNameList.at(dep1)); + } +} + std::string BindLicenseDeviceRequest::getIotInstanceId()const { return iotInstanceId_; @@ -47,7 +60,7 @@ void BindLicenseDeviceRequest::setIotIdList(const std::vector& iotI { iotIdList_ = iotIdList; for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) { - setParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1)); + setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1)); } } diff --git a/iot/src/model/DeleteShareTaskDeviceRequest.cc b/iot/src/model/DeleteShareTaskDeviceRequest.cc new file mode 100644 index 000000000..42e05eee5 --- /dev/null +++ b/iot/src/model/DeleteShareTaskDeviceRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::DeleteShareTaskDeviceRequest; + +DeleteShareTaskDeviceRequest::DeleteShareTaskDeviceRequest() : + RpcServiceRequest("iot", "2018-01-20", "DeleteShareTaskDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteShareTaskDeviceRequest::~DeleteShareTaskDeviceRequest() +{} + +std::string DeleteShareTaskDeviceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void DeleteShareTaskDeviceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::vector DeleteShareTaskDeviceRequest::getIotIdList()const +{ + return iotIdList_; +} + +void DeleteShareTaskDeviceRequest::setIotIdList(const std::vector& iotIdList) +{ + iotIdList_ = iotIdList; + for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) { + setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1)); + } +} + +std::string DeleteShareTaskDeviceRequest::getShareTaskId()const +{ + return shareTaskId_; +} + +void DeleteShareTaskDeviceRequest::setShareTaskId(const std::string& shareTaskId) +{ + shareTaskId_ = shareTaskId; + setBodyParameter("ShareTaskId", shareTaskId); +} + +std::string DeleteShareTaskDeviceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void DeleteShareTaskDeviceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string DeleteShareTaskDeviceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void DeleteShareTaskDeviceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/DeleteShareTaskDeviceResult.cc b/iot/src/model/DeleteShareTaskDeviceResult.cc new file mode 100644 index 000000000..11b52d282 --- /dev/null +++ b/iot/src/model/DeleteShareTaskDeviceResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +DeleteShareTaskDeviceResult::DeleteShareTaskDeviceResult() : + ServiceResult() +{} + +DeleteShareTaskDeviceResult::DeleteShareTaskDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteShareTaskDeviceResult::~DeleteShareTaskDeviceResult() +{} + +void DeleteShareTaskDeviceResult::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["Progress"].isNull()) + data_.progress = std::stoi(dataNode["Progress"].asString()); + if(!dataNode["ProgressId"].isNull()) + data_.progressId = dataNode["ProgressId"].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(); + +} + +DeleteShareTaskDeviceResult::Data DeleteShareTaskDeviceResult::getData()const +{ + return data_; +} + +std::string DeleteShareTaskDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteShareTaskDeviceResult::getCode()const +{ + return code_; +} + +bool DeleteShareTaskDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetShareTaskByDeviceOpenRequest.cc b/iot/src/model/GetShareTaskByDeviceOpenRequest.cc new file mode 100644 index 000000000..fdbc1a4c8 --- /dev/null +++ b/iot/src/model/GetShareTaskByDeviceOpenRequest.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::GetShareTaskByDeviceOpenRequest; + +GetShareTaskByDeviceOpenRequest::GetShareTaskByDeviceOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetShareTaskByDeviceOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +GetShareTaskByDeviceOpenRequest::~GetShareTaskByDeviceOpenRequest() +{} + +std::string GetShareTaskByDeviceOpenRequest::getIotId()const +{ + return iotId_; +} + +void GetShareTaskByDeviceOpenRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::string GetShareTaskByDeviceOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetShareTaskByDeviceOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string GetShareTaskByDeviceOpenRequest::getProductKey()const +{ + return productKey_; +} + +void GetShareTaskByDeviceOpenRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string GetShareTaskByDeviceOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetShareTaskByDeviceOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetShareTaskByDeviceOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetShareTaskByDeviceOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string GetShareTaskByDeviceOpenRequest::getDeviceName()const +{ + return deviceName_; +} + +void GetShareTaskByDeviceOpenRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/GetShareTaskByDeviceOpenResult.cc b/iot/src/model/GetShareTaskByDeviceOpenResult.cc new file mode 100644 index 000000000..edbbb4f33 --- /dev/null +++ b/iot/src/model/GetShareTaskByDeviceOpenResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetShareTaskByDeviceOpenResult::GetShareTaskByDeviceOpenResult() : + ServiceResult() +{} + +GetShareTaskByDeviceOpenResult::GetShareTaskByDeviceOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetShareTaskByDeviceOpenResult::~GetShareTaskByDeviceOpenResult() +{} + +void GetShareTaskByDeviceOpenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetShareTaskByDeviceOpenResult::getData()const +{ + return data_; +} + +std::string GetShareTaskByDeviceOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetShareTaskByDeviceOpenResult::getCode()const +{ + return code_; +} + +bool GetShareTaskByDeviceOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/GetSpeechLicenseDeviceStatisticsRequest.cc b/iot/src/model/GetSpeechLicenseDeviceStatisticsRequest.cc new file mode 100644 index 000000000..73eda062e --- /dev/null +++ b/iot/src/model/GetSpeechLicenseDeviceStatisticsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::GetSpeechLicenseDeviceStatisticsRequest; + +GetSpeechLicenseDeviceStatisticsRequest::GetSpeechLicenseDeviceStatisticsRequest() : + RpcServiceRequest("iot", "2018-01-20", "GetSpeechLicenseDeviceStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSpeechLicenseDeviceStatisticsRequest::~GetSpeechLicenseDeviceStatisticsRequest() +{} + +std::string GetSpeechLicenseDeviceStatisticsRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void GetSpeechLicenseDeviceStatisticsRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string GetSpeechLicenseDeviceStatisticsRequest::getApiProduct()const +{ + return apiProduct_; +} + +void GetSpeechLicenseDeviceStatisticsRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string GetSpeechLicenseDeviceStatisticsRequest::getApiRevision()const +{ + return apiRevision_; +} + +void GetSpeechLicenseDeviceStatisticsRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + diff --git a/iot/src/model/GetSpeechLicenseDeviceStatisticsResult.cc b/iot/src/model/GetSpeechLicenseDeviceStatisticsResult.cc new file mode 100644 index 000000000..55ffaa2b0 --- /dev/null +++ b/iot/src/model/GetSpeechLicenseDeviceStatisticsResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +GetSpeechLicenseDeviceStatisticsResult::GetSpeechLicenseDeviceStatisticsResult() : + ServiceResult() +{} + +GetSpeechLicenseDeviceStatisticsResult::GetSpeechLicenseDeviceStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSpeechLicenseDeviceStatisticsResult::~GetSpeechLicenseDeviceStatisticsResult() +{} + +void GetSpeechLicenseDeviceStatisticsResult::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["AvailableQuota"].isNull()) + data_.availableQuota = std::stoi(dataNode["AvailableQuota"].asString()); + if(!dataNode["ExpiredQuota"].isNull()) + data_.expiredQuota = std::stoi(dataNode["ExpiredQuota"].asString()); + if(!dataNode["ExpiringQuota"].isNull()) + data_.expiringQuota = std::stoi(dataNode["ExpiringQuota"].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(); + +} + +GetSpeechLicenseDeviceStatisticsResult::Data GetSpeechLicenseDeviceStatisticsResult::getData()const +{ + return data_; +} + +std::string GetSpeechLicenseDeviceStatisticsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetSpeechLicenseDeviceStatisticsResult::getCode()const +{ + return code_; +} + +bool GetSpeechLicenseDeviceStatisticsResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/PageQuerySharedSpeechOpenRequest.cc b/iot/src/model/PageQuerySharedSpeechOpenRequest.cc new file mode 100644 index 000000000..ea508abc3 --- /dev/null +++ b/iot/src/model/PageQuerySharedSpeechOpenRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::PageQuerySharedSpeechOpenRequest; + +PageQuerySharedSpeechOpenRequest::PageQuerySharedSpeechOpenRequest() : + RpcServiceRequest("iot", "2018-01-20", "PageQuerySharedSpeechOpen") +{ + setMethod(HttpRequest::Method::Post); +} + +PageQuerySharedSpeechOpenRequest::~PageQuerySharedSpeechOpenRequest() +{} + +int PageQuerySharedSpeechOpenRequest::getPageId()const +{ + return pageId_; +} + +void PageQuerySharedSpeechOpenRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string PageQuerySharedSpeechOpenRequest::getIotId()const +{ + return iotId_; +} + +void PageQuerySharedSpeechOpenRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::string PageQuerySharedSpeechOpenRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void PageQuerySharedSpeechOpenRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int PageQuerySharedSpeechOpenRequest::getPageSize()const +{ + return pageSize_; +} + +void PageQuerySharedSpeechOpenRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string PageQuerySharedSpeechOpenRequest::getShareTaskCode()const +{ + return shareTaskCode_; +} + +void PageQuerySharedSpeechOpenRequest::setShareTaskCode(const std::string& shareTaskCode) +{ + shareTaskCode_ = shareTaskCode; + setBodyParameter("ShareTaskCode", shareTaskCode); +} + +std::string PageQuerySharedSpeechOpenRequest::getProductKey()const +{ + return productKey_; +} + +void PageQuerySharedSpeechOpenRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string PageQuerySharedSpeechOpenRequest::getApiProduct()const +{ + return apiProduct_; +} + +void PageQuerySharedSpeechOpenRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string PageQuerySharedSpeechOpenRequest::getApiRevision()const +{ + return apiRevision_; +} + +void PageQuerySharedSpeechOpenRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string PageQuerySharedSpeechOpenRequest::getDeviceName()const +{ + return deviceName_; +} + +void PageQuerySharedSpeechOpenRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + +int PageQuerySharedSpeechOpenRequest::getStatus()const +{ + return status_; +} + +void PageQuerySharedSpeechOpenRequest::setStatus(int status) +{ + status_ = status; + setBodyParameter("Status", std::to_string(status)); +} + diff --git a/iot/src/model/PageQuerySharedSpeechOpenResult.cc b/iot/src/model/PageQuerySharedSpeechOpenResult.cc new file mode 100644 index 000000000..4db62ed76 --- /dev/null +++ b/iot/src/model/PageQuerySharedSpeechOpenResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +PageQuerySharedSpeechOpenResult::PageQuerySharedSpeechOpenResult() : + ServiceResult() +{} + +PageQuerySharedSpeechOpenResult::PageQuerySharedSpeechOpenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageQuerySharedSpeechOpenResult::~PageQuerySharedSpeechOpenResult() +{} + +void PageQuerySharedSpeechOpenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allResultDataNode = dataNode["ResultData"]["Data"]; + for (auto dataNodeResultDataData : allResultDataNode) + { + Data::Data1 data1Object; + if(!dataNodeResultDataData["Code"].isNull()) + data1Object.code = dataNodeResultDataData["Code"].asString(); + if(!dataNodeResultDataData["BizCode"].isNull()) + data1Object.bizCode = dataNodeResultDataData["BizCode"].asString(); + if(!dataNodeResultDataData["Text"].isNull()) + data1Object.text = dataNodeResultDataData["Text"].asString(); + if(!dataNodeResultDataData["Voice"].isNull()) + data1Object.voice = dataNodeResultDataData["Voice"].asString(); + if(!dataNodeResultDataData["SpeechRate"].isNull()) + data1Object.speechRate = std::stoi(dataNodeResultDataData["SpeechRate"].asString()); + if(!dataNodeResultDataData["Volume"].isNull()) + data1Object.volume = std::stoi(dataNodeResultDataData["Volume"].asString()); + if(!dataNodeResultDataData["AudioFormat"].isNull()) + data1Object.audioFormat = dataNodeResultDataData["AudioFormat"].asString(); + if(!dataNodeResultDataData["Status"].isNull()) + data1Object.status = std::stoi(dataNodeResultDataData["Status"].asString()); + data_.resultData.push_back(data1Object); + } + 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(); + +} + +PageQuerySharedSpeechOpenResult::Data PageQuerySharedSpeechOpenResult::getData()const +{ + return data_; +} + +std::string PageQuerySharedSpeechOpenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string PageQuerySharedSpeechOpenResult::getCode()const +{ + return code_; +} + +bool PageQuerySharedSpeechOpenResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryProjectShareDeviceListRequest.cc b/iot/src/model/QueryProjectShareDeviceListRequest.cc new file mode 100644 index 000000000..7730baa5c --- /dev/null +++ b/iot/src/model/QueryProjectShareDeviceListRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QueryProjectShareDeviceListRequest; + +QueryProjectShareDeviceListRequest::QueryProjectShareDeviceListRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryProjectShareDeviceList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryProjectShareDeviceListRequest::~QueryProjectShareDeviceListRequest() +{} + +int QueryProjectShareDeviceListRequest::getPageId()const +{ + return pageId_; +} + +void QueryProjectShareDeviceListRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QueryProjectShareDeviceListRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryProjectShareDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QueryProjectShareDeviceListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryProjectShareDeviceListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryProjectShareDeviceListRequest::getProductKey()const +{ + return productKey_; +} + +void QueryProjectShareDeviceListRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string QueryProjectShareDeviceListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryProjectShareDeviceListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryProjectShareDeviceListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryProjectShareDeviceListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryProjectShareDeviceListRequest::getDeviceName()const +{ + return deviceName_; +} + +void QueryProjectShareDeviceListRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryProjectShareDeviceListResult.cc b/iot/src/model/QueryProjectShareDeviceListResult.cc new file mode 100644 index 000000000..29c63aeea --- /dev/null +++ b/iot/src/model/QueryProjectShareDeviceListResult.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; + +QueryProjectShareDeviceListResult::QueryProjectShareDeviceListResult() : + ServiceResult() +{} + +QueryProjectShareDeviceListResult::QueryProjectShareDeviceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryProjectShareDeviceListResult::~QueryProjectShareDeviceListResult() +{} + +void QueryProjectShareDeviceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allDeviceListNode = dataNode["DeviceList"]["items"]; + for (auto dataNodeDeviceListitems : allDeviceListNode) + { + Data::Items itemsObject; + if(!dataNodeDeviceListitems["ProductKey"].isNull()) + itemsObject.productKey = dataNodeDeviceListitems["ProductKey"].asString(); + if(!dataNodeDeviceListitems["DeviceName"].isNull()) + itemsObject.deviceName = dataNodeDeviceListitems["DeviceName"].asString(); + if(!dataNodeDeviceListitems["Sharable"].isNull()) + itemsObject.sharable = std::stol(dataNodeDeviceListitems["Sharable"].asString()); + if(!dataNodeDeviceListitems["IotId"].isNull()) + itemsObject.iotId = dataNodeDeviceListitems["IotId"].asString(); + data_.deviceList.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(); + +} + +QueryProjectShareDeviceListResult::Data QueryProjectShareDeviceListResult::getData()const +{ + return data_; +} + +std::string QueryProjectShareDeviceListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryProjectShareDeviceListResult::getCode()const +{ + return code_; +} + +bool QueryProjectShareDeviceListResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QueryShareTaskDeviceListRequest.cc b/iot/src/model/QueryShareTaskDeviceListRequest.cc new file mode 100644 index 000000000..c0b635672 --- /dev/null +++ b/iot/src/model/QueryShareTaskDeviceListRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QueryShareTaskDeviceListRequest; + +QueryShareTaskDeviceListRequest::QueryShareTaskDeviceListRequest() : + RpcServiceRequest("iot", "2018-01-20", "QueryShareTaskDeviceList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryShareTaskDeviceListRequest::~QueryShareTaskDeviceListRequest() +{} + +int QueryShareTaskDeviceListRequest::getPageId()const +{ + return pageId_; +} + +void QueryShareTaskDeviceListRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setBodyParameter("PageId", std::to_string(pageId)); +} + +std::string QueryShareTaskDeviceListRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QueryShareTaskDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +int QueryShareTaskDeviceListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryShareTaskDeviceListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryShareTaskDeviceListRequest::getShareTaskId()const +{ + return shareTaskId_; +} + +void QueryShareTaskDeviceListRequest::setShareTaskId(const std::string& shareTaskId) +{ + shareTaskId_ = shareTaskId; + setBodyParameter("ShareTaskId", shareTaskId); +} + +std::string QueryShareTaskDeviceListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QueryShareTaskDeviceListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QueryShareTaskDeviceListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QueryShareTaskDeviceListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QueryShareTaskDeviceListRequest::getDeviceName()const +{ + return deviceName_; +} + +void QueryShareTaskDeviceListRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QueryShareTaskDeviceListResult.cc b/iot/src/model/QueryShareTaskDeviceListResult.cc new file mode 100644 index 000000000..e2b439eba --- /dev/null +++ b/iot/src/model/QueryShareTaskDeviceListResult.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; + +QueryShareTaskDeviceListResult::QueryShareTaskDeviceListResult() : + ServiceResult() +{} + +QueryShareTaskDeviceListResult::QueryShareTaskDeviceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryShareTaskDeviceListResult::~QueryShareTaskDeviceListResult() +{} + +void QueryShareTaskDeviceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allDeviceListNode = dataNode["DeviceList"]["items"]; + for (auto dataNodeDeviceListitems : allDeviceListNode) + { + Data::Items itemsObject; + if(!dataNodeDeviceListitems["ProductKey"].isNull()) + itemsObject.productKey = dataNodeDeviceListitems["ProductKey"].asString(); + if(!dataNodeDeviceListitems["DeviceName"].isNull()) + itemsObject.deviceName = dataNodeDeviceListitems["DeviceName"].asString(); + if(!dataNodeDeviceListitems["GmtAdded"].isNull()) + itemsObject.gmtAdded = std::stol(dataNodeDeviceListitems["GmtAdded"].asString()); + if(!dataNodeDeviceListitems["IotId"].isNull()) + itemsObject.iotId = dataNodeDeviceListitems["IotId"].asString(); + data_.deviceList.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(); + +} + +QueryShareTaskDeviceListResult::Data QueryShareTaskDeviceListResult::getData()const +{ + return data_; +} + +std::string QueryShareTaskDeviceListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QueryShareTaskDeviceListResult::getCode()const +{ + return code_; +} + +bool QueryShareTaskDeviceListResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/QuerySpeechLicenseDeviceListRequest.cc b/iot/src/model/QuerySpeechLicenseDeviceListRequest.cc new file mode 100644 index 000000000..fa83187e6 --- /dev/null +++ b/iot/src/model/QuerySpeechLicenseDeviceListRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::QuerySpeechLicenseDeviceListRequest; + +QuerySpeechLicenseDeviceListRequest::QuerySpeechLicenseDeviceListRequest() : + RpcServiceRequest("iot", "2018-01-20", "QuerySpeechLicenseDeviceList") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySpeechLicenseDeviceListRequest::~QuerySpeechLicenseDeviceListRequest() +{} + +int QuerySpeechLicenseDeviceListRequest::getPageId()const +{ + return pageId_; +} + +void QuerySpeechLicenseDeviceListRequest::setPageId(int pageId) +{ + pageId_ = pageId; + setParameter("PageId", std::to_string(pageId)); +} + +std::vector QuerySpeechLicenseDeviceListRequest::getLicenseStatusList()const +{ + return licenseStatusList_; +} + +void QuerySpeechLicenseDeviceListRequest::setLicenseStatusList(const std::vector& licenseStatusList) +{ + licenseStatusList_ = licenseStatusList; + for(int dep1 = 0; dep1!= licenseStatusList.size(); dep1++) { + setBodyParameter("LicenseStatusList."+ std::to_string(dep1), licenseStatusList.at(dep1)); + } +} + +std::string QuerySpeechLicenseDeviceListRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void QuerySpeechLicenseDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +int QuerySpeechLicenseDeviceListRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySpeechLicenseDeviceListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySpeechLicenseDeviceListRequest::getProductKey()const +{ + return productKey_; +} + +void QuerySpeechLicenseDeviceListRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string QuerySpeechLicenseDeviceListRequest::getCheckGroupId()const +{ + return checkGroupId_; +} + +void QuerySpeechLicenseDeviceListRequest::setCheckGroupId(const std::string& checkGroupId) +{ + checkGroupId_ = checkGroupId; + setBodyParameter("CheckGroupId", checkGroupId); +} + +std::string QuerySpeechLicenseDeviceListRequest::getApiProduct()const +{ + return apiProduct_; +} + +void QuerySpeechLicenseDeviceListRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string QuerySpeechLicenseDeviceListRequest::getApiRevision()const +{ + return apiRevision_; +} + +void QuerySpeechLicenseDeviceListRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string QuerySpeechLicenseDeviceListRequest::getDeviceName()const +{ + return deviceName_; +} + +void QuerySpeechLicenseDeviceListRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/QuerySpeechLicenseDeviceListResult.cc b/iot/src/model/QuerySpeechLicenseDeviceListResult.cc new file mode 100644 index 000000000..ab04f8e3a --- /dev/null +++ b/iot/src/model/QuerySpeechLicenseDeviceListResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +QuerySpeechLicenseDeviceListResult::QuerySpeechLicenseDeviceListResult() : + ServiceResult() +{} + +QuerySpeechLicenseDeviceListResult::QuerySpeechLicenseDeviceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySpeechLicenseDeviceListResult::~QuerySpeechLicenseDeviceListResult() +{} + +void QuerySpeechLicenseDeviceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageId"].isNull()) + data_.pageId = std::stoi(dataNode["PageId"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allDeviceListNode = dataNode["DeviceList"]["item"]; + for (auto dataNodeDeviceListitem : allDeviceListNode) + { + Data::Item itemObject; + if(!dataNodeDeviceListitem["ProductName"].isNull()) + itemObject.productName = dataNodeDeviceListitem["ProductName"].asString(); + if(!dataNodeDeviceListitem["ProductKey"].isNull()) + itemObject.productKey = dataNodeDeviceListitem["ProductKey"].asString(); + if(!dataNodeDeviceListitem["DeviceName"].isNull()) + itemObject.deviceName = dataNodeDeviceListitem["DeviceName"].asString(); + if(!dataNodeDeviceListitem["ExpiryTime"].isNull()) + itemObject.expiryTime = std::stol(dataNodeDeviceListitem["ExpiryTime"].asString()); + if(!dataNodeDeviceListitem["IotId"].isNull()) + itemObject.iotId = dataNodeDeviceListitem["IotId"].asString(); + if(!dataNodeDeviceListitem["LicenseStatus"].isNull()) + itemObject.licenseStatus = dataNodeDeviceListitem["LicenseStatus"].asString(); + if(!dataNodeDeviceListitem["DeviceStatus"].isNull()) + itemObject.deviceStatus = dataNodeDeviceListitem["DeviceStatus"].asString(); + if(!dataNodeDeviceListitem["InSpecifiedGroup"].isNull()) + itemObject.inSpecifiedGroup = dataNodeDeviceListitem["InSpecifiedGroup"].asString() == "true"; + data_.deviceList.push_back(itemObject); + } + 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(); + +} + +QuerySpeechLicenseDeviceListResult::Data QuerySpeechLicenseDeviceListResult::getData()const +{ + return data_; +} + +std::string QuerySpeechLicenseDeviceListResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string QuerySpeechLicenseDeviceListResult::getCode()const +{ + return code_; +} + +bool QuerySpeechLicenseDeviceListResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ReBindLicenseDeviceRequest.cc b/iot/src/model/ReBindLicenseDeviceRequest.cc new file mode 100644 index 000000000..5da42fb22 --- /dev/null +++ b/iot/src/model/ReBindLicenseDeviceRequest.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::ReBindLicenseDeviceRequest; + +ReBindLicenseDeviceRequest::ReBindLicenseDeviceRequest() : + RpcServiceRequest("iot", "2018-01-20", "ReBindLicenseDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +ReBindLicenseDeviceRequest::~ReBindLicenseDeviceRequest() +{} + +std::vector ReBindLicenseDeviceRequest::getDeviceNameList()const +{ + return deviceNameList_; +} + +void ReBindLicenseDeviceRequest::setDeviceNameList(const std::vector& deviceNameList) +{ + deviceNameList_ = deviceNameList; + for(int dep1 = 0; dep1!= deviceNameList.size(); dep1++) { + setBodyParameter("DeviceNameList."+ std::to_string(dep1), deviceNameList.at(dep1)); + } +} + +std::string ReBindLicenseDeviceRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ReBindLicenseDeviceRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setParameter("IotInstanceId", iotInstanceId); +} + +std::string ReBindLicenseDeviceRequest::getProductKey()const +{ + return productKey_; +} + +void ReBindLicenseDeviceRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setParameter("ProductKey", productKey); +} + +std::string ReBindLicenseDeviceRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ReBindLicenseDeviceRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ReBindLicenseDeviceRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ReBindLicenseDeviceRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string ReBindLicenseDeviceRequest::getLicenseCode()const +{ + return licenseCode_; +} + +void ReBindLicenseDeviceRequest::setLicenseCode(const std::string& licenseCode) +{ + licenseCode_ = licenseCode; + setParameter("LicenseCode", licenseCode); +} + diff --git a/iot/src/model/ReBindLicenseDeviceResult.cc b/iot/src/model/ReBindLicenseDeviceResult.cc new file mode 100644 index 000000000..61ad1fd76 --- /dev/null +++ b/iot/src/model/ReBindLicenseDeviceResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Iot; +using namespace AlibabaCloud::Iot::Model; + +ReBindLicenseDeviceResult::ReBindLicenseDeviceResult() : + ServiceResult() +{} + +ReBindLicenseDeviceResult::ReBindLicenseDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReBindLicenseDeviceResult::~ReBindLicenseDeviceResult() +{} + +void ReBindLicenseDeviceResult::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["SuccessSum"].isNull()) + data_.successSum = std::stol(dataNode["SuccessSum"].asString()); + if(!dataNode["FailSum"].isNull()) + data_.failSum = std::stol(dataNode["FailSum"].asString()); + if(!dataNode["ResultCsvFile"].isNull()) + data_.resultCsvFile = dataNode["ResultCsvFile"].asString(); + if(!dataNode["Progress"].isNull()) + data_.progress = std::stoi(dataNode["Progress"].asString()); + if(!dataNode["CheckProgressId"].isNull()) + data_.checkProgressId = dataNode["CheckProgressId"].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(); + +} + +ReBindLicenseDeviceResult::Data ReBindLicenseDeviceResult::getData()const +{ + return data_; +} + +std::string ReBindLicenseDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ReBindLicenseDeviceResult::getCode()const +{ + return code_; +} + +bool ReBindLicenseDeviceResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/ShareSpeechByCombinationRequest.cc b/iot/src/model/ShareSpeechByCombinationRequest.cc new file mode 100644 index 000000000..562f30e7d --- /dev/null +++ b/iot/src/model/ShareSpeechByCombinationRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Iot::Model::ShareSpeechByCombinationRequest; + +ShareSpeechByCombinationRequest::ShareSpeechByCombinationRequest() : + RpcServiceRequest("iot", "2018-01-20", "ShareSpeechByCombination") +{ + setMethod(HttpRequest::Method::Post); +} + +ShareSpeechByCombinationRequest::~ShareSpeechByCombinationRequest() +{} + +std::string ShareSpeechByCombinationRequest::getSpeechId()const +{ + return speechId_; +} + +void ShareSpeechByCombinationRequest::setSpeechId(const std::string& speechId) +{ + speechId_ = speechId; + setBodyParameter("SpeechId", speechId); +} + +std::string ShareSpeechByCombinationRequest::getAudioFormat()const +{ + return audioFormat_; +} + +void ShareSpeechByCombinationRequest::setAudioFormat(const std::string& audioFormat) +{ + audioFormat_ = audioFormat; + setBodyParameter("AudioFormat", audioFormat); +} + +std::string ShareSpeechByCombinationRequest::getIotId()const +{ + return iotId_; +} + +void ShareSpeechByCombinationRequest::setIotId(const std::string& iotId) +{ + iotId_ = iotId; + setBodyParameter("IotId", iotId); +} + +std::vector ShareSpeechByCombinationRequest::getCombinationList()const +{ + return combinationList_; +} + +void ShareSpeechByCombinationRequest::setCombinationList(const std::vector& combinationList) +{ + combinationList_ = combinationList; + for(int dep1 = 0; dep1!= combinationList.size(); dep1++) { + setBodyParameter("CombinationList."+ std::to_string(dep1), combinationList.at(dep1)); + } +} + +std::string ShareSpeechByCombinationRequest::getIotInstanceId()const +{ + return iotInstanceId_; +} + +void ShareSpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId) +{ + iotInstanceId_ = iotInstanceId; + setBodyParameter("IotInstanceId", iotInstanceId); +} + +std::string ShareSpeechByCombinationRequest::getProductKey()const +{ + return productKey_; +} + +void ShareSpeechByCombinationRequest::setProductKey(const std::string& productKey) +{ + productKey_ = productKey; + setBodyParameter("ProductKey", productKey); +} + +std::string ShareSpeechByCombinationRequest::getApiProduct()const +{ + return apiProduct_; +} + +void ShareSpeechByCombinationRequest::setApiProduct(const std::string& apiProduct) +{ + apiProduct_ = apiProduct; + setBodyParameter("ApiProduct", apiProduct); +} + +std::string ShareSpeechByCombinationRequest::getApiRevision()const +{ + return apiRevision_; +} + +void ShareSpeechByCombinationRequest::setApiRevision(const std::string& apiRevision) +{ + apiRevision_ = apiRevision; + setBodyParameter("ApiRevision", apiRevision); +} + +std::string ShareSpeechByCombinationRequest::getDeviceName()const +{ + return deviceName_; +} + +void ShareSpeechByCombinationRequest::setDeviceName(const std::string& deviceName) +{ + deviceName_ = deviceName; + setBodyParameter("DeviceName", deviceName); +} + diff --git a/iot/src/model/ShareSpeechByCombinationResult.cc b/iot/src/model/ShareSpeechByCombinationResult.cc new file mode 100644 index 000000000..87770920e --- /dev/null +++ b/iot/src/model/ShareSpeechByCombinationResult.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; + +ShareSpeechByCombinationResult::ShareSpeechByCombinationResult() : + ServiceResult() +{} + +ShareSpeechByCombinationResult::ShareSpeechByCombinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ShareSpeechByCombinationResult::~ShareSpeechByCombinationResult() +{} + +void ShareSpeechByCombinationResult::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 ShareSpeechByCombinationResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ShareSpeechByCombinationResult::getCode()const +{ + return code_; +} + +bool ShareSpeechByCombinationResult::getSuccess()const +{ + return success_; +} + diff --git a/iot/src/model/SpeechByCombinationRequest.cc b/iot/src/model/SpeechByCombinationRequest.cc index b5f71f5e7..c618c7cdd 100644 --- a/iot/src/model/SpeechByCombinationRequest.cc +++ b/iot/src/model/SpeechByCombinationRequest.cc @@ -84,6 +84,17 @@ void SpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstance setBodyParameter("IotInstanceId", iotInstanceId); } +bool SpeechByCombinationRequest::getEnforceFlag()const +{ + return enforceFlag_; +} + +void SpeechByCombinationRequest::setEnforceFlag(bool enforceFlag) +{ + enforceFlag_ = enforceFlag; + setBodyParameter("EnforceFlag", enforceFlag ? "true" : "false"); +} + std::string SpeechByCombinationRequest::getProductKey()const { return productKey_; diff --git a/iot/src/model/SyncSpeechByCombinationRequest.cc b/iot/src/model/SyncSpeechByCombinationRequest.cc index 07cee042c..f51c99278 100644 --- a/iot/src/model/SyncSpeechByCombinationRequest.cc +++ b/iot/src/model/SyncSpeechByCombinationRequest.cc @@ -84,6 +84,17 @@ void SyncSpeechByCombinationRequest::setIotInstanceId(const std::string& iotInst setBodyParameter("IotInstanceId", iotInstanceId); } +bool SyncSpeechByCombinationRequest::getEnforceFlag()const +{ + return enforceFlag_; +} + +void SyncSpeechByCombinationRequest::setEnforceFlag(bool enforceFlag) +{ + enforceFlag_ = enforceFlag; + setBodyParameter("EnforceFlag", enforceFlag ? "true" : "false"); +} + std::string SyncSpeechByCombinationRequest::getProductKey()const { return productKey_;