From fe3d15f4589c7edf61cfc7f58eba4030786ac641 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 26 Mar 2021 06:38:23 +0000 Subject: [PATCH] Update api. --- CHANGELOG | 3 + VERSION | 2 +- qualitycheck/CMakeLists.txt | 36 -- .../qualitycheck/QualitycheckClient.h | 72 ---- .../qualitycheck/model/CloseServiceRequest.h | 54 --- .../qualitycheck/model/CloseServiceResult.h | 55 --- .../model/GetDataSetListRequest.h | 54 --- .../qualitycheck/model/GetDataSetListResult.h | 73 ---- .../model/GetRecognizeResultRequest.h | 54 --- .../model/GetRecognizeResultResult.h | 75 ---- .../qualitycheck/model/GetResultResult.h | 4 + .../model/ListSkillGroupConfigResult.h | 9 + .../qualitycheck/model/OpenServiceRequest.h | 54 --- .../qualitycheck/model/OpenServiceResult.h | 55 --- .../model/RegisterNoticeRequest.h | 54 --- .../qualitycheck/model/RegisterNoticeResult.h | 55 --- .../model/RetrySubmitAsrRequest.h | 54 --- .../qualitycheck/model/RetrySubmitAsrResult.h | 57 --- .../model/SubmitModelTestTaskRequest.h | 54 --- .../model/SubmitModelTestTaskResult.h | 62 ---- .../model/UpdateRuleForAntRequest.h | 54 --- .../model/UpdateRuleForAntResult.h | 57 --- .../model/ValidateRoleSetRequest.h | 54 --- .../model/ValidateRoleSetResult.h | 67 ---- qualitycheck/src/QualitycheckClient.cc | 324 ------------------ qualitycheck/src/model/CloseServiceRequest.cc | 62 ---- qualitycheck/src/model/CloseServiceResult.cc | 65 ---- .../src/model/GetDataSetListRequest.cc | 62 ---- .../src/model/GetDataSetListResult.cc | 105 ------ .../src/model/GetRecognizeResultRequest.cc | 62 ---- .../src/model/GetRecognizeResultResult.cc | 99 ------ qualitycheck/src/model/GetResultResult.cc | 8 + .../src/model/ListSkillGroupConfigResult.cc | 16 + qualitycheck/src/model/OpenServiceRequest.cc | 62 ---- qualitycheck/src/model/OpenServiceResult.cc | 65 ---- .../src/model/RegisterNoticeRequest.cc | 62 ---- .../src/model/RegisterNoticeResult.cc | 65 ---- .../src/model/RetrySubmitAsrRequest.cc | 62 ---- .../src/model/RetrySubmitAsrResult.cc | 72 ---- .../src/model/SubmitModelTestTaskRequest.cc | 62 ---- .../src/model/SubmitModelTestTaskResult.cc | 75 ---- .../src/model/UpdateRuleForAntRequest.cc | 62 ---- .../src/model/UpdateRuleForAntResult.cc | 73 ---- .../src/model/ValidateRoleSetRequest.cc | 62 ---- .../src/model/ValidateRoleSetResult.cc | 90 ----- 45 files changed, 41 insertions(+), 2742 deletions(-) delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntResult.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetRequest.h delete mode 100644 qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetResult.h delete mode 100644 qualitycheck/src/model/CloseServiceRequest.cc delete mode 100644 qualitycheck/src/model/CloseServiceResult.cc delete mode 100644 qualitycheck/src/model/GetDataSetListRequest.cc delete mode 100644 qualitycheck/src/model/GetDataSetListResult.cc delete mode 100644 qualitycheck/src/model/GetRecognizeResultRequest.cc delete mode 100644 qualitycheck/src/model/GetRecognizeResultResult.cc delete mode 100644 qualitycheck/src/model/OpenServiceRequest.cc delete mode 100644 qualitycheck/src/model/OpenServiceResult.cc delete mode 100644 qualitycheck/src/model/RegisterNoticeRequest.cc delete mode 100644 qualitycheck/src/model/RegisterNoticeResult.cc delete mode 100644 qualitycheck/src/model/RetrySubmitAsrRequest.cc delete mode 100644 qualitycheck/src/model/RetrySubmitAsrResult.cc delete mode 100644 qualitycheck/src/model/SubmitModelTestTaskRequest.cc delete mode 100644 qualitycheck/src/model/SubmitModelTestTaskResult.cc delete mode 100644 qualitycheck/src/model/UpdateRuleForAntRequest.cc delete mode 100644 qualitycheck/src/model/UpdateRuleForAntResult.cc delete mode 100644 qualitycheck/src/model/ValidateRoleSetRequest.cc delete mode 100644 qualitycheck/src/model/ValidateRoleSetResult.cc diff --git a/CHANGELOG b/CHANGELOG index bdaddb2c6..33715ae79 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-03-26 Version: 1.36.657 +- Update api. + 2021-03-26 Version: 1.36.656 - Add RenewAdditionalBandwidth API. diff --git a/VERSION b/VERSION index b32773b1d..5a92c0179 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.656 \ No newline at end of file +1.36.657 \ No newline at end of file diff --git a/qualitycheck/CMakeLists.txt b/qualitycheck/CMakeLists.txt index 1bebf88a4..1e3cd8d7c 100644 --- a/qualitycheck/CMakeLists.txt +++ b/qualitycheck/CMakeLists.txt @@ -29,8 +29,6 @@ set(qualitycheck_public_header_model include/alibabacloud/qualitycheck/model/AddThesaurusForApiResult.h include/alibabacloud/qualitycheck/model/AssignReviewerRequest.h include/alibabacloud/qualitycheck/model/AssignReviewerResult.h - include/alibabacloud/qualitycheck/model/CloseServiceRequest.h - include/alibabacloud/qualitycheck/model/CloseServiceResult.h include/alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h include/alibabacloud/qualitycheck/model/CreateAsrVocabResult.h include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h @@ -75,16 +73,12 @@ set(qualitycheck_public_header_model include/alibabacloud/qualitycheck/model/GetBusinessCategoryListResult.h include/alibabacloud/qualitycheck/model/GetCustomizationConfigListRequest.h include/alibabacloud/qualitycheck/model/GetCustomizationConfigListResult.h - include/alibabacloud/qualitycheck/model/GetDataSetListRequest.h - include/alibabacloud/qualitycheck/model/GetDataSetListResult.h include/alibabacloud/qualitycheck/model/GetHitResultRequest.h include/alibabacloud/qualitycheck/model/GetHitResultResult.h include/alibabacloud/qualitycheck/model/GetNextResultToVerifyRequest.h include/alibabacloud/qualitycheck/model/GetNextResultToVerifyResult.h include/alibabacloud/qualitycheck/model/GetPrecisionTaskRequest.h include/alibabacloud/qualitycheck/model/GetPrecisionTaskResult.h - include/alibabacloud/qualitycheck/model/GetRecognizeResultRequest.h - include/alibabacloud/qualitycheck/model/GetRecognizeResultResult.h include/alibabacloud/qualitycheck/model/GetResultRequest.h include/alibabacloud/qualitycheck/model/GetResultResult.h include/alibabacloud/qualitycheck/model/GetResultCallbackRequest.h @@ -131,20 +125,12 @@ set(qualitycheck_public_header_model include/alibabacloud/qualitycheck/model/ListUsersResult.h include/alibabacloud/qualitycheck/model/ListWarningConfigRequest.h include/alibabacloud/qualitycheck/model/ListWarningConfigResult.h - include/alibabacloud/qualitycheck/model/OpenServiceRequest.h - include/alibabacloud/qualitycheck/model/OpenServiceResult.h - include/alibabacloud/qualitycheck/model/RegisterNoticeRequest.h - include/alibabacloud/qualitycheck/model/RegisterNoticeResult.h include/alibabacloud/qualitycheck/model/RestartAsrTaskRequest.h include/alibabacloud/qualitycheck/model/RestartAsrTaskResult.h - include/alibabacloud/qualitycheck/model/RetrySubmitAsrRequest.h - include/alibabacloud/qualitycheck/model/RetrySubmitAsrResult.h include/alibabacloud/qualitycheck/model/SaveConfigDataSetRequest.h include/alibabacloud/qualitycheck/model/SaveConfigDataSetResult.h include/alibabacloud/qualitycheck/model/SubmitComplaintRequest.h include/alibabacloud/qualitycheck/model/SubmitComplaintResult.h - include/alibabacloud/qualitycheck/model/SubmitModelTestTaskRequest.h - include/alibabacloud/qualitycheck/model/SubmitModelTestTaskResult.h include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskRequest.h include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskResult.h include/alibabacloud/qualitycheck/model/SubmitQualityCheckTaskRequest.h @@ -157,8 +143,6 @@ set(qualitycheck_public_header_model include/alibabacloud/qualitycheck/model/UpdateAsrVocabResult.h include/alibabacloud/qualitycheck/model/UpdateRuleRequest.h include/alibabacloud/qualitycheck/model/UpdateRuleResult.h - include/alibabacloud/qualitycheck/model/UpdateRuleForAntRequest.h - include/alibabacloud/qualitycheck/model/UpdateRuleForAntResult.h include/alibabacloud/qualitycheck/model/UpdateScoreForApiRequest.h include/alibabacloud/qualitycheck/model/UpdateScoreForApiResult.h include/alibabacloud/qualitycheck/model/UpdateSkillGroupConfigRequest.h @@ -183,8 +167,6 @@ set(qualitycheck_public_header_model include/alibabacloud/qualitycheck/model/UploadDataSyncResult.h include/alibabacloud/qualitycheck/model/UploadRuleRequest.h include/alibabacloud/qualitycheck/model/UploadRuleResult.h - include/alibabacloud/qualitycheck/model/ValidateRoleSetRequest.h - include/alibabacloud/qualitycheck/model/ValidateRoleSetResult.h include/alibabacloud/qualitycheck/model/VerifyFileRequest.h include/alibabacloud/qualitycheck/model/VerifyFileResult.h include/alibabacloud/qualitycheck/model/VerifySentenceRequest.h @@ -200,8 +182,6 @@ set(qualitycheck_src src/model/AddThesaurusForApiResult.cc src/model/AssignReviewerRequest.cc src/model/AssignReviewerResult.cc - src/model/CloseServiceRequest.cc - src/model/CloseServiceResult.cc src/model/CreateAsrVocabRequest.cc src/model/CreateAsrVocabResult.cc src/model/CreateSkillGroupConfigRequest.cc @@ -246,16 +226,12 @@ set(qualitycheck_src src/model/GetBusinessCategoryListResult.cc src/model/GetCustomizationConfigListRequest.cc src/model/GetCustomizationConfigListResult.cc - src/model/GetDataSetListRequest.cc - src/model/GetDataSetListResult.cc src/model/GetHitResultRequest.cc src/model/GetHitResultResult.cc src/model/GetNextResultToVerifyRequest.cc src/model/GetNextResultToVerifyResult.cc src/model/GetPrecisionTaskRequest.cc src/model/GetPrecisionTaskResult.cc - src/model/GetRecognizeResultRequest.cc - src/model/GetRecognizeResultResult.cc src/model/GetResultRequest.cc src/model/GetResultResult.cc src/model/GetResultCallbackRequest.cc @@ -302,20 +278,12 @@ set(qualitycheck_src src/model/ListUsersResult.cc src/model/ListWarningConfigRequest.cc src/model/ListWarningConfigResult.cc - src/model/OpenServiceRequest.cc - src/model/OpenServiceResult.cc - src/model/RegisterNoticeRequest.cc - src/model/RegisterNoticeResult.cc src/model/RestartAsrTaskRequest.cc src/model/RestartAsrTaskResult.cc - src/model/RetrySubmitAsrRequest.cc - src/model/RetrySubmitAsrResult.cc src/model/SaveConfigDataSetRequest.cc src/model/SaveConfigDataSetResult.cc src/model/SubmitComplaintRequest.cc src/model/SubmitComplaintResult.cc - src/model/SubmitModelTestTaskRequest.cc - src/model/SubmitModelTestTaskResult.cc src/model/SubmitPrecisionTaskRequest.cc src/model/SubmitPrecisionTaskResult.cc src/model/SubmitQualityCheckTaskRequest.cc @@ -328,8 +296,6 @@ set(qualitycheck_src src/model/UpdateAsrVocabResult.cc src/model/UpdateRuleRequest.cc src/model/UpdateRuleResult.cc - src/model/UpdateRuleForAntRequest.cc - src/model/UpdateRuleForAntResult.cc src/model/UpdateScoreForApiRequest.cc src/model/UpdateScoreForApiResult.cc src/model/UpdateSkillGroupConfigRequest.cc @@ -354,8 +320,6 @@ set(qualitycheck_src src/model/UploadDataSyncResult.cc src/model/UploadRuleRequest.cc src/model/UploadRuleResult.cc - src/model/ValidateRoleSetRequest.cc - src/model/ValidateRoleSetResult.cc src/model/VerifyFileRequest.cc src/model/VerifyFileResult.cc src/model/VerifySentenceRequest.cc diff --git a/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h b/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h index eea0dd078..02817fa46 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h @@ -30,8 +30,6 @@ #include "model/AddThesaurusForApiResult.h" #include "model/AssignReviewerRequest.h" #include "model/AssignReviewerResult.h" -#include "model/CloseServiceRequest.h" -#include "model/CloseServiceResult.h" #include "model/CreateAsrVocabRequest.h" #include "model/CreateAsrVocabResult.h" #include "model/CreateSkillGroupConfigRequest.h" @@ -76,16 +74,12 @@ #include "model/GetBusinessCategoryListResult.h" #include "model/GetCustomizationConfigListRequest.h" #include "model/GetCustomizationConfigListResult.h" -#include "model/GetDataSetListRequest.h" -#include "model/GetDataSetListResult.h" #include "model/GetHitResultRequest.h" #include "model/GetHitResultResult.h" #include "model/GetNextResultToVerifyRequest.h" #include "model/GetNextResultToVerifyResult.h" #include "model/GetPrecisionTaskRequest.h" #include "model/GetPrecisionTaskResult.h" -#include "model/GetRecognizeResultRequest.h" -#include "model/GetRecognizeResultResult.h" #include "model/GetResultRequest.h" #include "model/GetResultResult.h" #include "model/GetResultCallbackRequest.h" @@ -132,20 +126,12 @@ #include "model/ListUsersResult.h" #include "model/ListWarningConfigRequest.h" #include "model/ListWarningConfigResult.h" -#include "model/OpenServiceRequest.h" -#include "model/OpenServiceResult.h" -#include "model/RegisterNoticeRequest.h" -#include "model/RegisterNoticeResult.h" #include "model/RestartAsrTaskRequest.h" #include "model/RestartAsrTaskResult.h" -#include "model/RetrySubmitAsrRequest.h" -#include "model/RetrySubmitAsrResult.h" #include "model/SaveConfigDataSetRequest.h" #include "model/SaveConfigDataSetResult.h" #include "model/SubmitComplaintRequest.h" #include "model/SubmitComplaintResult.h" -#include "model/SubmitModelTestTaskRequest.h" -#include "model/SubmitModelTestTaskResult.h" #include "model/SubmitPrecisionTaskRequest.h" #include "model/SubmitPrecisionTaskResult.h" #include "model/SubmitQualityCheckTaskRequest.h" @@ -158,8 +144,6 @@ #include "model/UpdateAsrVocabResult.h" #include "model/UpdateRuleRequest.h" #include "model/UpdateRuleResult.h" -#include "model/UpdateRuleForAntRequest.h" -#include "model/UpdateRuleForAntResult.h" #include "model/UpdateScoreForApiRequest.h" #include "model/UpdateScoreForApiResult.h" #include "model/UpdateSkillGroupConfigRequest.h" @@ -184,8 +168,6 @@ #include "model/UploadDataSyncResult.h" #include "model/UploadRuleRequest.h" #include "model/UploadRuleResult.h" -#include "model/ValidateRoleSetRequest.h" -#include "model/ValidateRoleSetResult.h" #include "model/VerifyFileRequest.h" #include "model/VerifyFileResult.h" #include "model/VerifySentenceRequest.h" @@ -211,9 +193,6 @@ namespace AlibabaCloud typedef Outcome AssignReviewerOutcome; typedef std::future AssignReviewerOutcomeCallable; typedef std::function&)> AssignReviewerAsyncHandler; - typedef Outcome CloseServiceOutcome; - typedef std::future CloseServiceOutcomeCallable; - typedef std::function&)> CloseServiceAsyncHandler; typedef Outcome CreateAsrVocabOutcome; typedef std::future CreateAsrVocabOutcomeCallable; typedef std::function&)> CreateAsrVocabAsyncHandler; @@ -280,9 +259,6 @@ namespace AlibabaCloud typedef Outcome GetCustomizationConfigListOutcome; typedef std::future GetCustomizationConfigListOutcomeCallable; typedef std::function&)> GetCustomizationConfigListAsyncHandler; - typedef Outcome GetDataSetListOutcome; - typedef std::future GetDataSetListOutcomeCallable; - typedef std::function&)> GetDataSetListAsyncHandler; typedef Outcome GetHitResultOutcome; typedef std::future GetHitResultOutcomeCallable; typedef std::function&)> GetHitResultAsyncHandler; @@ -292,9 +268,6 @@ namespace AlibabaCloud typedef Outcome GetPrecisionTaskOutcome; typedef std::future GetPrecisionTaskOutcomeCallable; typedef std::function&)> GetPrecisionTaskAsyncHandler; - typedef Outcome GetRecognizeResultOutcome; - typedef std::future GetRecognizeResultOutcomeCallable; - typedef std::function&)> GetRecognizeResultAsyncHandler; typedef Outcome GetResultOutcome; typedef std::future GetResultOutcomeCallable; typedef std::function&)> GetResultAsyncHandler; @@ -364,27 +337,15 @@ namespace AlibabaCloud typedef Outcome ListWarningConfigOutcome; typedef std::future ListWarningConfigOutcomeCallable; typedef std::function&)> ListWarningConfigAsyncHandler; - typedef Outcome OpenServiceOutcome; - typedef std::future OpenServiceOutcomeCallable; - typedef std::function&)> OpenServiceAsyncHandler; - typedef Outcome RegisterNoticeOutcome; - typedef std::future RegisterNoticeOutcomeCallable; - typedef std::function&)> RegisterNoticeAsyncHandler; typedef Outcome RestartAsrTaskOutcome; typedef std::future RestartAsrTaskOutcomeCallable; typedef std::function&)> RestartAsrTaskAsyncHandler; - typedef Outcome RetrySubmitAsrOutcome; - typedef std::future RetrySubmitAsrOutcomeCallable; - typedef std::function&)> RetrySubmitAsrAsyncHandler; typedef Outcome SaveConfigDataSetOutcome; typedef std::future SaveConfigDataSetOutcomeCallable; typedef std::function&)> SaveConfigDataSetAsyncHandler; typedef Outcome SubmitComplaintOutcome; typedef std::future SubmitComplaintOutcomeCallable; typedef std::function&)> SubmitComplaintAsyncHandler; - typedef Outcome SubmitModelTestTaskOutcome; - typedef std::future SubmitModelTestTaskOutcomeCallable; - typedef std::function&)> SubmitModelTestTaskAsyncHandler; typedef Outcome SubmitPrecisionTaskOutcome; typedef std::future SubmitPrecisionTaskOutcomeCallable; typedef std::function&)> SubmitPrecisionTaskAsyncHandler; @@ -403,9 +364,6 @@ namespace AlibabaCloud typedef Outcome UpdateRuleOutcome; typedef std::future UpdateRuleOutcomeCallable; typedef std::function&)> UpdateRuleAsyncHandler; - typedef Outcome UpdateRuleForAntOutcome; - typedef std::future UpdateRuleForAntOutcomeCallable; - typedef std::function&)> UpdateRuleForAntAsyncHandler; typedef Outcome UpdateScoreForApiOutcome; typedef std::future UpdateScoreForApiOutcomeCallable; typedef std::function&)> UpdateScoreForApiAsyncHandler; @@ -442,9 +400,6 @@ namespace AlibabaCloud typedef Outcome UploadRuleOutcome; typedef std::future UploadRuleOutcomeCallable; typedef std::function&)> UploadRuleAsyncHandler; - typedef Outcome ValidateRoleSetOutcome; - typedef std::future ValidateRoleSetOutcomeCallable; - typedef std::function&)> ValidateRoleSetAsyncHandler; typedef Outcome VerifyFileOutcome; typedef std::future VerifyFileOutcomeCallable; typedef std::function&)> VerifyFileAsyncHandler; @@ -468,9 +423,6 @@ namespace AlibabaCloud AssignReviewerOutcome assignReviewer(const Model::AssignReviewerRequest &request)const; void assignReviewerAsync(const Model::AssignReviewerRequest& request, const AssignReviewerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssignReviewerOutcomeCallable assignReviewerCallable(const Model::AssignReviewerRequest& request) const; - CloseServiceOutcome closeService(const Model::CloseServiceRequest &request)const; - void closeServiceAsync(const Model::CloseServiceRequest& request, const CloseServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CloseServiceOutcomeCallable closeServiceCallable(const Model::CloseServiceRequest& request) const; CreateAsrVocabOutcome createAsrVocab(const Model::CreateAsrVocabRequest &request)const; void createAsrVocabAsync(const Model::CreateAsrVocabRequest& request, const CreateAsrVocabAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAsrVocabOutcomeCallable createAsrVocabCallable(const Model::CreateAsrVocabRequest& request) const; @@ -537,9 +489,6 @@ namespace AlibabaCloud GetCustomizationConfigListOutcome getCustomizationConfigList(const Model::GetCustomizationConfigListRequest &request)const; void getCustomizationConfigListAsync(const Model::GetCustomizationConfigListRequest& request, const GetCustomizationConfigListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCustomizationConfigListOutcomeCallable getCustomizationConfigListCallable(const Model::GetCustomizationConfigListRequest& request) const; - GetDataSetListOutcome getDataSetList(const Model::GetDataSetListRequest &request)const; - void getDataSetListAsync(const Model::GetDataSetListRequest& request, const GetDataSetListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDataSetListOutcomeCallable getDataSetListCallable(const Model::GetDataSetListRequest& request) const; GetHitResultOutcome getHitResult(const Model::GetHitResultRequest &request)const; void getHitResultAsync(const Model::GetHitResultRequest& request, const GetHitResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetHitResultOutcomeCallable getHitResultCallable(const Model::GetHitResultRequest& request) const; @@ -549,9 +498,6 @@ namespace AlibabaCloud GetPrecisionTaskOutcome getPrecisionTask(const Model::GetPrecisionTaskRequest &request)const; void getPrecisionTaskAsync(const Model::GetPrecisionTaskRequest& request, const GetPrecisionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPrecisionTaskOutcomeCallable getPrecisionTaskCallable(const Model::GetPrecisionTaskRequest& request) const; - GetRecognizeResultOutcome getRecognizeResult(const Model::GetRecognizeResultRequest &request)const; - void getRecognizeResultAsync(const Model::GetRecognizeResultRequest& request, const GetRecognizeResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRecognizeResultOutcomeCallable getRecognizeResultCallable(const Model::GetRecognizeResultRequest& request) const; GetResultOutcome getResult(const Model::GetResultRequest &request)const; void getResultAsync(const Model::GetResultRequest& request, const GetResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetResultOutcomeCallable getResultCallable(const Model::GetResultRequest& request) const; @@ -621,27 +567,15 @@ namespace AlibabaCloud ListWarningConfigOutcome listWarningConfig(const Model::ListWarningConfigRequest &request)const; void listWarningConfigAsync(const Model::ListWarningConfigRequest& request, const ListWarningConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListWarningConfigOutcomeCallable listWarningConfigCallable(const Model::ListWarningConfigRequest& request) const; - OpenServiceOutcome openService(const Model::OpenServiceRequest &request)const; - void openServiceAsync(const Model::OpenServiceRequest& request, const OpenServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OpenServiceOutcomeCallable openServiceCallable(const Model::OpenServiceRequest& request) const; - RegisterNoticeOutcome registerNotice(const Model::RegisterNoticeRequest &request)const; - void registerNoticeAsync(const Model::RegisterNoticeRequest& request, const RegisterNoticeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RegisterNoticeOutcomeCallable registerNoticeCallable(const Model::RegisterNoticeRequest& request) const; RestartAsrTaskOutcome restartAsrTask(const Model::RestartAsrTaskRequest &request)const; void restartAsrTaskAsync(const Model::RestartAsrTaskRequest& request, const RestartAsrTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartAsrTaskOutcomeCallable restartAsrTaskCallable(const Model::RestartAsrTaskRequest& request) const; - RetrySubmitAsrOutcome retrySubmitAsr(const Model::RetrySubmitAsrRequest &request)const; - void retrySubmitAsrAsync(const Model::RetrySubmitAsrRequest& request, const RetrySubmitAsrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RetrySubmitAsrOutcomeCallable retrySubmitAsrCallable(const Model::RetrySubmitAsrRequest& request) const; SaveConfigDataSetOutcome saveConfigDataSet(const Model::SaveConfigDataSetRequest &request)const; void saveConfigDataSetAsync(const Model::SaveConfigDataSetRequest& request, const SaveConfigDataSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveConfigDataSetOutcomeCallable saveConfigDataSetCallable(const Model::SaveConfigDataSetRequest& request) const; SubmitComplaintOutcome submitComplaint(const Model::SubmitComplaintRequest &request)const; void submitComplaintAsync(const Model::SubmitComplaintRequest& request, const SubmitComplaintAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitComplaintOutcomeCallable submitComplaintCallable(const Model::SubmitComplaintRequest& request) const; - SubmitModelTestTaskOutcome submitModelTestTask(const Model::SubmitModelTestTaskRequest &request)const; - void submitModelTestTaskAsync(const Model::SubmitModelTestTaskRequest& request, const SubmitModelTestTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SubmitModelTestTaskOutcomeCallable submitModelTestTaskCallable(const Model::SubmitModelTestTaskRequest& request) const; SubmitPrecisionTaskOutcome submitPrecisionTask(const Model::SubmitPrecisionTaskRequest &request)const; void submitPrecisionTaskAsync(const Model::SubmitPrecisionTaskRequest& request, const SubmitPrecisionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitPrecisionTaskOutcomeCallable submitPrecisionTaskCallable(const Model::SubmitPrecisionTaskRequest& request) const; @@ -660,9 +594,6 @@ namespace AlibabaCloud UpdateRuleOutcome updateRule(const Model::UpdateRuleRequest &request)const; void updateRuleAsync(const Model::UpdateRuleRequest& request, const UpdateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateRuleOutcomeCallable updateRuleCallable(const Model::UpdateRuleRequest& request) const; - UpdateRuleForAntOutcome updateRuleForAnt(const Model::UpdateRuleForAntRequest &request)const; - void updateRuleForAntAsync(const Model::UpdateRuleForAntRequest& request, const UpdateRuleForAntAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateRuleForAntOutcomeCallable updateRuleForAntCallable(const Model::UpdateRuleForAntRequest& request) const; UpdateScoreForApiOutcome updateScoreForApi(const Model::UpdateScoreForApiRequest &request)const; void updateScoreForApiAsync(const Model::UpdateScoreForApiRequest& request, const UpdateScoreForApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateScoreForApiOutcomeCallable updateScoreForApiCallable(const Model::UpdateScoreForApiRequest& request) const; @@ -699,9 +630,6 @@ namespace AlibabaCloud UploadRuleOutcome uploadRule(const Model::UploadRuleRequest &request)const; void uploadRuleAsync(const Model::UploadRuleRequest& request, const UploadRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UploadRuleOutcomeCallable uploadRuleCallable(const Model::UploadRuleRequest& request) const; - ValidateRoleSetOutcome validateRoleSet(const Model::ValidateRoleSetRequest &request)const; - void validateRoleSetAsync(const Model::ValidateRoleSetRequest& request, const ValidateRoleSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ValidateRoleSetOutcomeCallable validateRoleSetCallable(const Model::ValidateRoleSetRequest& request) const; VerifyFileOutcome verifyFile(const Model::VerifyFileRequest &request)const; void verifyFileAsync(const Model::VerifyFileRequest& request, const VerifyFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VerifyFileOutcomeCallable verifyFileCallable(const Model::VerifyFileRequest& request) const; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceRequest.h deleted file mode 100644 index a363b0b6d..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CLOSESERVICEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CLOSESERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CloseServiceRequest : public RpcServiceRequest - { - - public: - CloseServiceRequest(); - ~CloseServiceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CLOSESERVICEREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceResult.h deleted file mode 100644 index f43a6b563..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CloseServiceResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CLOSESERVICERESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CLOSESERVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CloseServiceResult : public ServiceResult - { - public: - - - CloseServiceResult(); - explicit CloseServiceResult(const std::string &payload); - ~CloseServiceResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CLOSESERVICERESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListRequest.h deleted file mode 100644 index abb31c3e1..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETDATASETLISTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETDATASETLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetDataSetListRequest : public RpcServiceRequest - { - - public: - GetDataSetListRequest(); - ~GetDataSetListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETDATASETLISTREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListResult.h deleted file mode 100644 index 1cca102d1..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetDataSetListResult.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETDATASETLISTRESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETDATASETLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetDataSetListResult : public ServiceResult - { - public: - struct DataSet - { - std::string setDomain; - std::string setRoleArn; - std::string createTime; - int createType; - std::string updateTime; - std::string setName; - long setId; - int setNumber; - std::string setFolderName; - int channelType; - std::string setBucketName; - }; - - - GetDataSetListResult(); - explicit GetDataSetListResult(const std::string &payload); - ~GetDataSetListResult(); - std::string getMessage()const; - std::vector getData()const; - int getCount()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::vector data_; - int count_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETDATASETLISTRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultRequest.h deleted file mode 100644 index c77d8e7fd..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRECOGNIZERESULTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRECOGNIZERESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRecognizeResultRequest : public RpcServiceRequest - { - - public: - GetRecognizeResultRequest(); - ~GetRecognizeResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRECOGNIZERESULTREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultResult.h deleted file mode 100644 index 9cd1d7c02..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRecognizeResultResult.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRECOGNIZERESULTRESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRECOGNIZERESULTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRecognizeResultResult : public ServiceResult - { - public: - struct Data - { - struct Dialogue - { - std::string hourMinSec; - std::string role; - int silenceDuration; - std::string words; - long begin; - std::string beginTime; - long end; - std::string identity; - int speechRate; - int emotionValue; - }; - long taskAsrRequestId; - std::vector dialogues; - }; - - - GetRecognizeResultResult(); - explicit GetRecognizeResultResult(const std::string &payload); - ~GetRecognizeResultResult(); - std::string getMessage()const; - Data getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Data data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRECOGNIZERESULTRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h index a78eb420e..fcdb5cfe0 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string remark11; std::string remark12; int callType; + int dialogueSize; std::string url; std::string dataSetName; std::string name; @@ -127,11 +128,14 @@ namespace AlibabaCloud std::vector hitResult; int score; std::string taskName; + std::string assignmentTime; int reviewStatus; + std::string lastDataId; std::string reviewTimeLong; Recording recording; std::string errorMessage; std::vector asrResult; + int reviewType; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h index f9b2f68d1..780e0b15c 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h @@ -44,8 +44,16 @@ namespace AlibabaCloud long rid; std::string ruleName; }; + struct SkillGroupScreen + { + int symbol; + std::string value; + int dataType; + std::string name; + }; int status; std::vector ruleList; + bool screenSwitch; std::string modelName; long vocabId; int qualityCheckType; @@ -57,6 +65,7 @@ namespace AlibabaCloud std::string vocabName; std::string name; int type; + std::vector skillGroupScreens; std::string skillGroupName; std::string updateTime; long id; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceRequest.h deleted file mode 100644 index da91658de..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_OPENSERVICEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_OPENSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT OpenServiceRequest : public RpcServiceRequest - { - - public: - OpenServiceRequest(); - ~OpenServiceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_OPENSERVICEREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceResult.h deleted file mode 100644 index 2207b55c4..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/OpenServiceResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_OPENSERVICERESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_OPENSERVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT OpenServiceResult : public ServiceResult - { - public: - - - OpenServiceResult(); - explicit OpenServiceResult(const std::string &payload); - ~OpenServiceResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_OPENSERVICERESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeRequest.h deleted file mode 100644 index d26634738..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_REGISTERNOTICEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_REGISTERNOTICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT RegisterNoticeRequest : public RpcServiceRequest - { - - public: - RegisterNoticeRequest(); - ~RegisterNoticeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_REGISTERNOTICEREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeResult.h deleted file mode 100644 index 882c1b4a2..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/RegisterNoticeResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_REGISTERNOTICERESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_REGISTERNOTICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT RegisterNoticeResult : public ServiceResult - { - public: - - - RegisterNoticeResult(); - explicit RegisterNoticeResult(const std::string &payload); - ~RegisterNoticeResult(); - std::string getMessage()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_REGISTERNOTICERESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrRequest.h deleted file mode 100644 index 95ba0a52e..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_RETRYSUBMITASRREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_RETRYSUBMITASRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT RetrySubmitAsrRequest : public RpcServiceRequest - { - - public: - RetrySubmitAsrRequest(); - ~RetrySubmitAsrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_RETRYSUBMITASRREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrResult.h deleted file mode 100644 index 36bd7a176..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/RetrySubmitAsrResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_RETRYSUBMITASRRESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_RETRYSUBMITASRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT RetrySubmitAsrResult : public ServiceResult - { - public: - - - RetrySubmitAsrResult(); - explicit RetrySubmitAsrResult(const std::string &payload); - ~RetrySubmitAsrResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_RETRYSUBMITASRRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskRequest.h deleted file mode 100644 index e5a269943..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITMODELTESTTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITMODELTESTTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitModelTestTaskRequest : public RpcServiceRequest - { - - public: - SubmitModelTestTaskRequest(); - ~SubmitModelTestTaskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITMODELTESTTASKREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskResult.h deleted file mode 100644 index a19c10b66..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitModelTestTaskResult.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITMODELTESTTASKRESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITMODELTESTTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitModelTestTaskResult : public ServiceResult - { - public: - struct Data - { - std::string taskId; - int taskType; - }; - - - SubmitModelTestTaskResult(); - explicit SubmitModelTestTaskResult(const std::string &payload); - ~SubmitModelTestTaskResult(); - std::string getMessage()const; - Data getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Data data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITMODELTESTTASKRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntRequest.h deleted file mode 100644 index 9f9e43092..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEFORANTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEFORANTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateRuleForAntRequest : public RpcServiceRequest - { - - public: - UpdateRuleForAntRequest(); - ~UpdateRuleForAntRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEFORANTREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntResult.h deleted file mode 100644 index 63580b413..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleForAntResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEFORANTRESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEFORANTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateRuleForAntResult : public ServiceResult - { - public: - - - UpdateRuleForAntResult(); - explicit UpdateRuleForAntResult(const std::string &payload); - ~UpdateRuleForAntResult(); - std::string getMessage()const; - std::vector getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::vector data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEFORANTRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetRequest.h deleted file mode 100644 index 21d3b4fca..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_VALIDATEROLESETREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_VALIDATEROLESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ValidateRoleSetRequest : public RpcServiceRequest - { - - public: - ValidateRoleSetRequest(); - ~ValidateRoleSetRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string jsonStr_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_VALIDATEROLESETREQUEST_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetResult.h deleted file mode 100644 index 193d8e791..000000000 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ValidateRoleSetResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_VALIDATEROLESETRESULT_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_VALIDATEROLESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ValidateRoleSetResult : public ServiceResult - { - public: - struct SentenceResult - { - long endTime; - int silenceDuration; - long beginTime; - std::string text; - int channelId; - int speechRate; - int emotionValue; - }; - - - ValidateRoleSetResult(); - explicit ValidateRoleSetResult(const std::string &payload); - ~ValidateRoleSetResult(); - std::string getMessage()const; - std::vector getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::vector data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_VALIDATEROLESETRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/src/QualitycheckClient.cc b/qualitycheck/src/QualitycheckClient.cc index 56285655f..7dd6accf6 100644 --- a/qualitycheck/src/QualitycheckClient.cc +++ b/qualitycheck/src/QualitycheckClient.cc @@ -195,42 +195,6 @@ QualitycheckClient::AssignReviewerOutcomeCallable QualitycheckClient::assignRevi return task->get_future(); } -QualitycheckClient::CloseServiceOutcome QualitycheckClient::closeService(const CloseServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CloseServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CloseServiceOutcome(CloseServiceResult(outcome.result())); - else - return CloseServiceOutcome(outcome.error()); -} - -void QualitycheckClient::closeServiceAsync(const CloseServiceRequest& request, const CloseServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, closeService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::CloseServiceOutcomeCallable QualitycheckClient::closeServiceCallable(const CloseServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->closeService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::CreateAsrVocabOutcome QualitycheckClient::createAsrVocab(const CreateAsrVocabRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,42 +987,6 @@ QualitycheckClient::GetCustomizationConfigListOutcomeCallable QualitycheckClient return task->get_future(); } -QualitycheckClient::GetDataSetListOutcome QualitycheckClient::getDataSetList(const GetDataSetListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetDataSetListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetDataSetListOutcome(GetDataSetListResult(outcome.result())); - else - return GetDataSetListOutcome(outcome.error()); -} - -void QualitycheckClient::getDataSetListAsync(const GetDataSetListRequest& request, const GetDataSetListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getDataSetList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::GetDataSetListOutcomeCallable QualitycheckClient::getDataSetListCallable(const GetDataSetListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getDataSetList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::GetHitResultOutcome QualitycheckClient::getHitResult(const GetHitResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,42 +1095,6 @@ QualitycheckClient::GetPrecisionTaskOutcomeCallable QualitycheckClient::getPreci return task->get_future(); } -QualitycheckClient::GetRecognizeResultOutcome QualitycheckClient::getRecognizeResult(const GetRecognizeResultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetRecognizeResultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetRecognizeResultOutcome(GetRecognizeResultResult(outcome.result())); - else - return GetRecognizeResultOutcome(outcome.error()); -} - -void QualitycheckClient::getRecognizeResultAsync(const GetRecognizeResultRequest& request, const GetRecognizeResultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getRecognizeResult(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::GetRecognizeResultOutcomeCallable QualitycheckClient::getRecognizeResultCallable(const GetRecognizeResultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getRecognizeResult(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::GetResultOutcome QualitycheckClient::getResult(const GetResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,78 +1923,6 @@ QualitycheckClient::ListWarningConfigOutcomeCallable QualitycheckClient::listWar return task->get_future(); } -QualitycheckClient::OpenServiceOutcome QualitycheckClient::openService(const OpenServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OpenServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OpenServiceOutcome(OpenServiceResult(outcome.result())); - else - return OpenServiceOutcome(outcome.error()); -} - -void QualitycheckClient::openServiceAsync(const OpenServiceRequest& request, const OpenServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, openService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::OpenServiceOutcomeCallable QualitycheckClient::openServiceCallable(const OpenServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->openService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -QualitycheckClient::RegisterNoticeOutcome QualitycheckClient::registerNotice(const RegisterNoticeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RegisterNoticeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RegisterNoticeOutcome(RegisterNoticeResult(outcome.result())); - else - return RegisterNoticeOutcome(outcome.error()); -} - -void QualitycheckClient::registerNoticeAsync(const RegisterNoticeRequest& request, const RegisterNoticeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, registerNotice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::RegisterNoticeOutcomeCallable QualitycheckClient::registerNoticeCallable(const RegisterNoticeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->registerNotice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::RestartAsrTaskOutcome QualitycheckClient::restartAsrTask(const RestartAsrTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,42 +1959,6 @@ QualitycheckClient::RestartAsrTaskOutcomeCallable QualitycheckClient::restartAsr return task->get_future(); } -QualitycheckClient::RetrySubmitAsrOutcome QualitycheckClient::retrySubmitAsr(const RetrySubmitAsrRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RetrySubmitAsrOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RetrySubmitAsrOutcome(RetrySubmitAsrResult(outcome.result())); - else - return RetrySubmitAsrOutcome(outcome.error()); -} - -void QualitycheckClient::retrySubmitAsrAsync(const RetrySubmitAsrRequest& request, const RetrySubmitAsrAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, retrySubmitAsr(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::RetrySubmitAsrOutcomeCallable QualitycheckClient::retrySubmitAsrCallable(const RetrySubmitAsrRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->retrySubmitAsr(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::SaveConfigDataSetOutcome QualitycheckClient::saveConfigDataSet(const SaveConfigDataSetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,42 +2031,6 @@ QualitycheckClient::SubmitComplaintOutcomeCallable QualitycheckClient::submitCom return task->get_future(); } -QualitycheckClient::SubmitModelTestTaskOutcome QualitycheckClient::submitModelTestTask(const SubmitModelTestTaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SubmitModelTestTaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SubmitModelTestTaskOutcome(SubmitModelTestTaskResult(outcome.result())); - else - return SubmitModelTestTaskOutcome(outcome.error()); -} - -void QualitycheckClient::submitModelTestTaskAsync(const SubmitModelTestTaskRequest& request, const SubmitModelTestTaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, submitModelTestTask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::SubmitModelTestTaskOutcomeCallable QualitycheckClient::submitModelTestTaskCallable(const SubmitModelTestTaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->submitModelTestTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::SubmitPrecisionTaskOutcome QualitycheckClient::submitPrecisionTask(const SubmitPrecisionTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,42 +2247,6 @@ QualitycheckClient::UpdateRuleOutcomeCallable QualitycheckClient::updateRuleCall return task->get_future(); } -QualitycheckClient::UpdateRuleForAntOutcome QualitycheckClient::updateRuleForAnt(const UpdateRuleForAntRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateRuleForAntOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateRuleForAntOutcome(UpdateRuleForAntResult(outcome.result())); - else - return UpdateRuleForAntOutcome(outcome.error()); -} - -void QualitycheckClient::updateRuleForAntAsync(const UpdateRuleForAntRequest& request, const UpdateRuleForAntAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateRuleForAnt(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::UpdateRuleForAntOutcomeCallable QualitycheckClient::updateRuleForAntCallable(const UpdateRuleForAntRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateRuleForAnt(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::UpdateScoreForApiOutcome QualitycheckClient::updateScoreForApi(const UpdateScoreForApiRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,42 +2679,6 @@ QualitycheckClient::UploadRuleOutcomeCallable QualitycheckClient::uploadRuleCall return task->get_future(); } -QualitycheckClient::ValidateRoleSetOutcome QualitycheckClient::validateRoleSet(const ValidateRoleSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ValidateRoleSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ValidateRoleSetOutcome(ValidateRoleSetResult(outcome.result())); - else - return ValidateRoleSetOutcome(outcome.error()); -} - -void QualitycheckClient::validateRoleSetAsync(const ValidateRoleSetRequest& request, const ValidateRoleSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, validateRoleSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -QualitycheckClient::ValidateRoleSetOutcomeCallable QualitycheckClient::validateRoleSetCallable(const ValidateRoleSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->validateRoleSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - QualitycheckClient::VerifyFileOutcome QualitycheckClient::verifyFile(const VerifyFileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/qualitycheck/src/model/CloseServiceRequest.cc b/qualitycheck/src/model/CloseServiceRequest.cc deleted file mode 100644 index fbb5dce92..000000000 --- a/qualitycheck/src/model/CloseServiceRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::CloseServiceRequest; - -CloseServiceRequest::CloseServiceRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "CloseService") -{ - setMethod(HttpRequest::Method::Post); -} - -CloseServiceRequest::~CloseServiceRequest() -{} - -long CloseServiceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CloseServiceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CloseServiceRequest::getJsonStr()const -{ - return jsonStr_; -} - -void CloseServiceRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string CloseServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CloseServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/CloseServiceResult.cc b/qualitycheck/src/model/CloseServiceResult.cc deleted file mode 100644 index 497a3a6f7..000000000 --- a/qualitycheck/src/model/CloseServiceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -CloseServiceResult::CloseServiceResult() : - ServiceResult() -{} - -CloseServiceResult::CloseServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CloseServiceResult::~CloseServiceResult() -{} - -void CloseServiceResult::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["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string CloseServiceResult::getMessage()const -{ - return message_; -} - -std::string CloseServiceResult::getCode()const -{ - return code_; -} - -bool CloseServiceResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/GetDataSetListRequest.cc b/qualitycheck/src/model/GetDataSetListRequest.cc deleted file mode 100644 index 7693b1d8d..000000000 --- a/qualitycheck/src/model/GetDataSetListRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetDataSetListRequest; - -GetDataSetListRequest::GetDataSetListRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetDataSetList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataSetListRequest::~GetDataSetListRequest() -{} - -long GetDataSetListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void GetDataSetListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string GetDataSetListRequest::getJsonStr()const -{ - return jsonStr_; -} - -void GetDataSetListRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string GetDataSetListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetDataSetListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/GetDataSetListResult.cc b/qualitycheck/src/model/GetDataSetListResult.cc deleted file mode 100644 index 304115758..000000000 --- a/qualitycheck/src/model/GetDataSetListResult.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -GetDataSetListResult::GetDataSetListResult() : - ServiceResult() -{} - -GetDataSetListResult::GetDataSetListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDataSetListResult::~GetDataSetListResult() -{} - -void GetDataSetListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["DataSet"]; - for (auto valueDataDataSet : allDataNode) - { - DataSet dataObject; - if(!valueDataDataSet["SetId"].isNull()) - dataObject.setId = std::stol(valueDataDataSet["SetId"].asString()); - if(!valueDataDataSet["SetName"].isNull()) - dataObject.setName = valueDataDataSet["SetName"].asString(); - if(!valueDataDataSet["SetDomain"].isNull()) - dataObject.setDomain = valueDataDataSet["SetDomain"].asString(); - if(!valueDataDataSet["SetRoleArn"].isNull()) - dataObject.setRoleArn = valueDataDataSet["SetRoleArn"].asString(); - if(!valueDataDataSet["SetBucketName"].isNull()) - dataObject.setBucketName = valueDataDataSet["SetBucketName"].asString(); - if(!valueDataDataSet["SetFolderName"].isNull()) - dataObject.setFolderName = valueDataDataSet["SetFolderName"].asString(); - if(!valueDataDataSet["ChannelType"].isNull()) - dataObject.channelType = std::stoi(valueDataDataSet["ChannelType"].asString()); - if(!valueDataDataSet["CreateType"].isNull()) - dataObject.createType = std::stoi(valueDataDataSet["CreateType"].asString()); - if(!valueDataDataSet["CreateTime"].isNull()) - dataObject.createTime = valueDataDataSet["CreateTime"].asString(); - if(!valueDataDataSet["UpdateTime"].isNull()) - dataObject.updateTime = valueDataDataSet["UpdateTime"].asString(); - if(!valueDataDataSet["SetNumber"].isNull()) - dataObject.setNumber = std::stoi(valueDataDataSet["SetNumber"].asString()); - data_.push_back(dataObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Count"].isNull()) - count_ = std::stoi(value["Count"].asString()); - -} - -std::string GetDataSetListResult::getMessage()const -{ - return message_; -} - -std::vector GetDataSetListResult::getData()const -{ - return data_; -} - -int GetDataSetListResult::getCount()const -{ - return count_; -} - -std::string GetDataSetListResult::getCode()const -{ - return code_; -} - -bool GetDataSetListResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/GetRecognizeResultRequest.cc b/qualitycheck/src/model/GetRecognizeResultRequest.cc deleted file mode 100644 index 2f0c74f77..000000000 --- a/qualitycheck/src/model/GetRecognizeResultRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetRecognizeResultRequest; - -GetRecognizeResultRequest::GetRecognizeResultRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetRecognizeResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRecognizeResultRequest::~GetRecognizeResultRequest() -{} - -long GetRecognizeResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void GetRecognizeResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string GetRecognizeResultRequest::getJsonStr()const -{ - return jsonStr_; -} - -void GetRecognizeResultRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string GetRecognizeResultRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetRecognizeResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/GetRecognizeResultResult.cc b/qualitycheck/src/model/GetRecognizeResultResult.cc deleted file mode 100644 index d71e1264d..000000000 --- a/qualitycheck/src/model/GetRecognizeResultResult.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -GetRecognizeResultResult::GetRecognizeResultResult() : - ServiceResult() -{} - -GetRecognizeResultResult::GetRecognizeResultResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetRecognizeResultResult::~GetRecognizeResultResult() -{} - -void GetRecognizeResultResult::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["TaskAsrRequestId"].isNull()) - data_.taskAsrRequestId = std::stol(dataNode["TaskAsrRequestId"].asString()); - auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"]; - for (auto dataNodeDialoguesDialogue : allDialoguesNode) - { - Data::Dialogue dialogueObject; - if(!dataNodeDialoguesDialogue["Begin"].isNull()) - dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString()); - if(!dataNodeDialoguesDialogue["BeginTime"].isNull()) - dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString(); - if(!dataNodeDialoguesDialogue["EmotionValue"].isNull()) - dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString()); - if(!dataNodeDialoguesDialogue["End"].isNull()) - dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString()); - if(!dataNodeDialoguesDialogue["HourMinSec"].isNull()) - dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString(); - if(!dataNodeDialoguesDialogue["Identity"].isNull()) - dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString(); - if(!dataNodeDialoguesDialogue["Role"].isNull()) - dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString(); - if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull()) - dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString()); - if(!dataNodeDialoguesDialogue["SpeechRate"].isNull()) - dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString()); - if(!dataNodeDialoguesDialogue["Words"].isNull()) - dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString(); - data_.dialogues.push_back(dialogueObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string GetRecognizeResultResult::getMessage()const -{ - return message_; -} - -GetRecognizeResultResult::Data GetRecognizeResultResult::getData()const -{ - return data_; -} - -std::string GetRecognizeResultResult::getCode()const -{ - return code_; -} - -bool GetRecognizeResultResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/GetResultResult.cc b/qualitycheck/src/model/GetResultResult.cc index 556cebd7b..91f9a1f4b 100644 --- a/qualitycheck/src/model/GetResultResult.cc +++ b/qualitycheck/src/model/GetResultResult.cc @@ -71,6 +71,12 @@ void GetResultResult::parse(const std::string &payload) dataObject.createTimeLong = valueDataResultInfo["CreateTimeLong"].asString(); if(!valueDataResultInfo["ReviewTimeLong"].isNull()) dataObject.reviewTimeLong = valueDataResultInfo["ReviewTimeLong"].asString(); + if(!valueDataResultInfo["ReviewType"].isNull()) + dataObject.reviewType = std::stoi(valueDataResultInfo["ReviewType"].asString()); + if(!valueDataResultInfo["AssignmentTime"].isNull()) + dataObject.assignmentTime = valueDataResultInfo["AssignmentTime"].asString(); + if(!valueDataResultInfo["LastDataId"].isNull()) + dataObject.lastDataId = valueDataResultInfo["LastDataId"].asString(); auto allAsrResultNode = valueDataResultInfo["AsrResult"]["AsrResultItem"]; for (auto valueDataResultInfoAsrResultAsrResultItem : allAsrResultNode) { @@ -202,6 +208,8 @@ void GetResultResult::parse(const std::string &payload) dataObject.recording.remark12 = recordingNode["Remark12"].asString(); if(!recordingNode["Remark13"].isNull()) dataObject.recording.remark13 = recordingNode["Remark13"].asString(); + if(!recordingNode["DialogueSize"].isNull()) + dataObject.recording.dialogueSize = std::stoi(recordingNode["DialogueSize"].asString()); auto agentNode = value["Agent"]; if(!agentNode["Id"].isNull()) dataObject.agent.id = agentNode["Id"].asString(); diff --git a/qualitycheck/src/model/ListSkillGroupConfigResult.cc b/qualitycheck/src/model/ListSkillGroupConfigResult.cc index 2d398d926..1c34e7f4a 100644 --- a/qualitycheck/src/model/ListSkillGroupConfigResult.cc +++ b/qualitycheck/src/model/ListSkillGroupConfigResult.cc @@ -79,6 +79,8 @@ void ListSkillGroupConfigResult::parse(const std::string &payload) dataObject.allRids = valueDataSkillGroupConfig["AllRids"].asString(); if(!valueDataSkillGroupConfig["SkillGroupFrom"].isNull()) dataObject.skillGroupFrom = std::stoi(valueDataSkillGroupConfig["SkillGroupFrom"].asString()); + if(!valueDataSkillGroupConfig["ScreenSwitch"].isNull()) + dataObject.screenSwitch = valueDataSkillGroupConfig["ScreenSwitch"].asString() == "true"; auto allRuleListNode = valueDataSkillGroupConfig["RuleList"]["RuleNameInfo"]; for (auto valueDataSkillGroupConfigRuleListRuleNameInfo : allRuleListNode) { @@ -99,6 +101,20 @@ void ListSkillGroupConfigResult::parse(const std::string &payload) allRuleListObject.ruleName = valueDataSkillGroupConfigAllRuleListRuleNameInfo["RuleName"].asString(); dataObject.allRuleList.push_back(allRuleListObject); } + auto allSkillGroupScreensNode = valueDataSkillGroupConfig["SkillGroupScreens"]["SkillGroupScreen"]; + for (auto valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen : allSkillGroupScreensNode) + { + SkillGroupConfig::SkillGroupScreen skillGroupScreensObject; + if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].isNull()) + skillGroupScreensObject.name = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].asString(); + if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["DataType"].isNull()) + skillGroupScreensObject.dataType = std::stoi(valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["DataType"].asString()); + if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Symbol"].isNull()) + skillGroupScreensObject.symbol = std::stoi(valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Symbol"].asString()); + if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].isNull()) + skillGroupScreensObject.value = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].asString(); + dataObject.skillGroupScreens.push_back(skillGroupScreensObject); + } data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/qualitycheck/src/model/OpenServiceRequest.cc b/qualitycheck/src/model/OpenServiceRequest.cc deleted file mode 100644 index 3f197390a..000000000 --- a/qualitycheck/src/model/OpenServiceRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::OpenServiceRequest; - -OpenServiceRequest::OpenServiceRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "OpenService") -{ - setMethod(HttpRequest::Method::Post); -} - -OpenServiceRequest::~OpenServiceRequest() -{} - -long OpenServiceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void OpenServiceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string OpenServiceRequest::getJsonStr()const -{ - return jsonStr_; -} - -void OpenServiceRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string OpenServiceRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void OpenServiceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/OpenServiceResult.cc b/qualitycheck/src/model/OpenServiceResult.cc deleted file mode 100644 index 2aa3a7451..000000000 --- a/qualitycheck/src/model/OpenServiceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -OpenServiceResult::OpenServiceResult() : - ServiceResult() -{} - -OpenServiceResult::OpenServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -OpenServiceResult::~OpenServiceResult() -{} - -void OpenServiceResult::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["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string OpenServiceResult::getMessage()const -{ - return message_; -} - -std::string OpenServiceResult::getCode()const -{ - return code_; -} - -bool OpenServiceResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/RegisterNoticeRequest.cc b/qualitycheck/src/model/RegisterNoticeRequest.cc deleted file mode 100644 index d8a55f5f0..000000000 --- a/qualitycheck/src/model/RegisterNoticeRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::RegisterNoticeRequest; - -RegisterNoticeRequest::RegisterNoticeRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "RegisterNotice") -{ - setMethod(HttpRequest::Method::Post); -} - -RegisterNoticeRequest::~RegisterNoticeRequest() -{} - -long RegisterNoticeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void RegisterNoticeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string RegisterNoticeRequest::getJsonStr()const -{ - return jsonStr_; -} - -void RegisterNoticeRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string RegisterNoticeRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RegisterNoticeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/RegisterNoticeResult.cc b/qualitycheck/src/model/RegisterNoticeResult.cc deleted file mode 100644 index 2c32d85db..000000000 --- a/qualitycheck/src/model/RegisterNoticeResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -RegisterNoticeResult::RegisterNoticeResult() : - ServiceResult() -{} - -RegisterNoticeResult::RegisterNoticeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RegisterNoticeResult::~RegisterNoticeResult() -{} - -void RegisterNoticeResult::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["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string RegisterNoticeResult::getMessage()const -{ - return message_; -} - -std::string RegisterNoticeResult::getCode()const -{ - return code_; -} - -bool RegisterNoticeResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/RetrySubmitAsrRequest.cc b/qualitycheck/src/model/RetrySubmitAsrRequest.cc deleted file mode 100644 index f6e93691c..000000000 --- a/qualitycheck/src/model/RetrySubmitAsrRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::RetrySubmitAsrRequest; - -RetrySubmitAsrRequest::RetrySubmitAsrRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "RetrySubmitAsr") -{ - setMethod(HttpRequest::Method::Post); -} - -RetrySubmitAsrRequest::~RetrySubmitAsrRequest() -{} - -long RetrySubmitAsrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void RetrySubmitAsrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string RetrySubmitAsrRequest::getJsonStr()const -{ - return jsonStr_; -} - -void RetrySubmitAsrRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string RetrySubmitAsrRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void RetrySubmitAsrRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/RetrySubmitAsrResult.cc b/qualitycheck/src/model/RetrySubmitAsrResult.cc deleted file mode 100644 index a2616004b..000000000 --- a/qualitycheck/src/model/RetrySubmitAsrResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -RetrySubmitAsrResult::RetrySubmitAsrResult() : - ServiceResult() -{} - -RetrySubmitAsrResult::RetrySubmitAsrResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RetrySubmitAsrResult::~RetrySubmitAsrResult() -{} - -void RetrySubmitAsrResult::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["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string RetrySubmitAsrResult::getMessage()const -{ - return message_; -} - -std::string RetrySubmitAsrResult::getData()const -{ - return data_; -} - -std::string RetrySubmitAsrResult::getCode()const -{ - return code_; -} - -bool RetrySubmitAsrResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/SubmitModelTestTaskRequest.cc b/qualitycheck/src/model/SubmitModelTestTaskRequest.cc deleted file mode 100644 index 9f3c08e02..000000000 --- a/qualitycheck/src/model/SubmitModelTestTaskRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SubmitModelTestTaskRequest; - -SubmitModelTestTaskRequest::SubmitModelTestTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitModelTestTask") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitModelTestTaskRequest::~SubmitModelTestTaskRequest() -{} - -long SubmitModelTestTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void SubmitModelTestTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string SubmitModelTestTaskRequest::getJsonStr()const -{ - return jsonStr_; -} - -void SubmitModelTestTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string SubmitModelTestTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SubmitModelTestTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/SubmitModelTestTaskResult.cc b/qualitycheck/src/model/SubmitModelTestTaskResult.cc deleted file mode 100644 index 23b9ad759..000000000 --- a/qualitycheck/src/model/SubmitModelTestTaskResult.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -SubmitModelTestTaskResult::SubmitModelTestTaskResult() : - ServiceResult() -{} - -SubmitModelTestTaskResult::SubmitModelTestTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SubmitModelTestTaskResult::~SubmitModelTestTaskResult() -{} - -void SubmitModelTestTaskResult::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["TaskId"].isNull()) - data_.taskId = dataNode["TaskId"].asString(); - if(!dataNode["TaskType"].isNull()) - data_.taskType = std::stoi(dataNode["TaskType"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string SubmitModelTestTaskResult::getMessage()const -{ - return message_; -} - -SubmitModelTestTaskResult::Data SubmitModelTestTaskResult::getData()const -{ - return data_; -} - -std::string SubmitModelTestTaskResult::getCode()const -{ - return code_; -} - -bool SubmitModelTestTaskResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/UpdateRuleForAntRequest.cc b/qualitycheck/src/model/UpdateRuleForAntRequest.cc deleted file mode 100644 index 242f645d4..000000000 --- a/qualitycheck/src/model/UpdateRuleForAntRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateRuleForAntRequest; - -UpdateRuleForAntRequest::UpdateRuleForAntRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateRuleForAnt") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateRuleForAntRequest::~UpdateRuleForAntRequest() -{} - -long UpdateRuleForAntRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void UpdateRuleForAntRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string UpdateRuleForAntRequest::getJsonStr()const -{ - return jsonStr_; -} - -void UpdateRuleForAntRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string UpdateRuleForAntRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateRuleForAntRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/UpdateRuleForAntResult.cc b/qualitycheck/src/model/UpdateRuleForAntResult.cc deleted file mode 100644 index abe28e28d..000000000 --- a/qualitycheck/src/model/UpdateRuleForAntResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -UpdateRuleForAntResult::UpdateRuleForAntResult() : - ServiceResult() -{} - -UpdateRuleForAntResult::UpdateRuleForAntResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateRuleForAntResult::~UpdateRuleForAntResult() -{} - -void UpdateRuleForAntResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allData = value["Data"]["RidInfo"]; - for (const auto &item : allData) - data_.push_back(item.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string UpdateRuleForAntResult::getMessage()const -{ - return message_; -} - -std::vector UpdateRuleForAntResult::getData()const -{ - return data_; -} - -std::string UpdateRuleForAntResult::getCode()const -{ - return code_; -} - -bool UpdateRuleForAntResult::getSuccess()const -{ - return success_; -} - diff --git a/qualitycheck/src/model/ValidateRoleSetRequest.cc b/qualitycheck/src/model/ValidateRoleSetRequest.cc deleted file mode 100644 index 51f3f49dd..000000000 --- a/qualitycheck/src/model/ValidateRoleSetRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ValidateRoleSetRequest; - -ValidateRoleSetRequest::ValidateRoleSetRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ValidateRoleSet") -{ - setMethod(HttpRequest::Method::Post); -} - -ValidateRoleSetRequest::~ValidateRoleSetRequest() -{} - -long ValidateRoleSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ValidateRoleSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ValidateRoleSetRequest::getJsonStr()const -{ - return jsonStr_; -} - -void ValidateRoleSetRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); -} - -std::string ValidateRoleSetRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ValidateRoleSetRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/qualitycheck/src/model/ValidateRoleSetResult.cc b/qualitycheck/src/model/ValidateRoleSetResult.cc deleted file mode 100644 index ea42c590d..000000000 --- a/qualitycheck/src/model/ValidateRoleSetResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Qualitycheck; -using namespace AlibabaCloud::Qualitycheck::Model; - -ValidateRoleSetResult::ValidateRoleSetResult() : - ServiceResult() -{} - -ValidateRoleSetResult::ValidateRoleSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ValidateRoleSetResult::~ValidateRoleSetResult() -{} - -void ValidateRoleSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["SentenceResult"]; - for (auto valueDataSentenceResult : allDataNode) - { - SentenceResult dataObject; - if(!valueDataSentenceResult["BeginTime"].isNull()) - dataObject.beginTime = std::stol(valueDataSentenceResult["BeginTime"].asString()); - if(!valueDataSentenceResult["ChannelId"].isNull()) - dataObject.channelId = std::stoi(valueDataSentenceResult["ChannelId"].asString()); - if(!valueDataSentenceResult["EndTime"].isNull()) - dataObject.endTime = std::stol(valueDataSentenceResult["EndTime"].asString()); - if(!valueDataSentenceResult["Text"].isNull()) - dataObject.text = valueDataSentenceResult["Text"].asString(); - if(!valueDataSentenceResult["EmotionValue"].isNull()) - dataObject.emotionValue = std::stoi(valueDataSentenceResult["EmotionValue"].asString()); - if(!valueDataSentenceResult["SilenceDuration"].isNull()) - dataObject.silenceDuration = std::stoi(valueDataSentenceResult["SilenceDuration"].asString()); - if(!valueDataSentenceResult["SpeechRate"].isNull()) - dataObject.speechRate = std::stoi(valueDataSentenceResult["SpeechRate"].asString()); - data_.push_back(dataObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string ValidateRoleSetResult::getMessage()const -{ - return message_; -} - -std::vector ValidateRoleSetResult::getData()const -{ - return data_; -} - -std::string ValidateRoleSetResult::getCode()const -{ - return code_; -} - -bool ValidateRoleSetResult::getSuccess()const -{ - return success_; -} -