diff --git a/VERSION b/VERSION index d4622b2ac..4a3e8a1d1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2064 \ No newline at end of file +1.36.2065 \ No newline at end of file diff --git a/itag/CMakeLists.txt b/itag/CMakeLists.txt new file mode 100644 index 000000000..d191c45a0 --- /dev/null +++ b/itag/CMakeLists.txt @@ -0,0 +1,594 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(itag_public_header + include/alibabacloud/itag/ItagClient.h + include/alibabacloud/itag/ItagExport.h ) + +set(itag_public_header_model + include/alibabacloud/itag/model/AbandonItemRequest.h + include/alibabacloud/itag/model/AbandonItemResult.h + include/alibabacloud/itag/model/AbandonItemByAdminRequest.h + include/alibabacloud/itag/model/AbandonItemByAdminResult.h + include/alibabacloud/itag/model/AcceptSamplingTaskRequest.h + include/alibabacloud/itag/model/AcceptSamplingTaskResult.h + include/alibabacloud/itag/model/AddMemberOrGroupTaskRequest.h + include/alibabacloud/itag/model/AddMemberOrGroupTaskResult.h + include/alibabacloud/itag/model/AddUserRequest.h + include/alibabacloud/itag/model/AddUserResult.h + include/alibabacloud/itag/model/AddUserToGroupRequest.h + include/alibabacloud/itag/model/AddUserToGroupResult.h + include/alibabacloud/itag/model/AddUserToTntRequest.h + include/alibabacloud/itag/model/AddUserToTntResult.h + include/alibabacloud/itag/model/AppendDataToDatasetRequest.h + include/alibabacloud/itag/model/AppendDataToDatasetResult.h + include/alibabacloud/itag/model/AsyncDownloadMarkResultRequest.h + include/alibabacloud/itag/model/AsyncDownloadMarkResultResult.h + include/alibabacloud/itag/model/BatchRejectTaskRequest.h + include/alibabacloud/itag/model/BatchRejectTaskResult.h + include/alibabacloud/itag/model/CanCommitRequest.h + include/alibabacloud/itag/model/CanCommitResult.h + include/alibabacloud/itag/model/CheckModelRequest.h + include/alibabacloud/itag/model/CheckModelResult.h + include/alibabacloud/itag/model/CommitSubTaskRequest.h + include/alibabacloud/itag/model/CommitSubTaskResult.h + include/alibabacloud/itag/model/CreateDatasetRequest.h + include/alibabacloud/itag/model/CreateDatasetResult.h + include/alibabacloud/itag/model/CreateModelRequest.h + include/alibabacloud/itag/model/CreateModelResult.h + include/alibabacloud/itag/model/CreateOptionTemplateRequest.h + include/alibabacloud/itag/model/CreateOptionTemplateResult.h + include/alibabacloud/itag/model/CreateOrUpdateTntConfigRequest.h + include/alibabacloud/itag/model/CreateOrUpdateTntConfigResult.h + include/alibabacloud/itag/model/CreateTaskRequest.h + include/alibabacloud/itag/model/CreateTaskResult.h + include/alibabacloud/itag/model/CreateUserGroupRequest.h + include/alibabacloud/itag/model/CreateUserGroupResult.h + include/alibabacloud/itag/model/DeleteFeedbackRequest.h + include/alibabacloud/itag/model/DeleteFeedbackResult.h + include/alibabacloud/itag/model/DeleteModelRequest.h + include/alibabacloud/itag/model/DeleteModelResult.h + include/alibabacloud/itag/model/DeleteOptionTemplateRequest.h + include/alibabacloud/itag/model/DeleteOptionTemplateResult.h + include/alibabacloud/itag/model/DeleteTaskRequest.h + include/alibabacloud/itag/model/DeleteTaskResult.h + include/alibabacloud/itag/model/DeleteUserGroupRequest.h + include/alibabacloud/itag/model/DeleteUserGroupResult.h + include/alibabacloud/itag/model/DiscardSubTaskRequest.h + include/alibabacloud/itag/model/DiscardSubTaskResult.h + include/alibabacloud/itag/model/DownloadIntPersonSummaryRequest.h + include/alibabacloud/itag/model/DownloadIntPersonSummaryResult.h + include/alibabacloud/itag/model/ExportOptionTemplateRequest.h + include/alibabacloud/itag/model/ExportOptionTemplateResult.h + include/alibabacloud/itag/model/ExtendUserAuthInTaskRequest.h + include/alibabacloud/itag/model/ExtendUserAuthInTaskResult.h + include/alibabacloud/itag/model/FetchVideoMarkResultRequest.h + include/alibabacloud/itag/model/FetchVideoMarkResultResult.h + include/alibabacloud/itag/model/FlowInstanceCallbackRequest.h + include/alibabacloud/itag/model/FlowInstanceCallbackResult.h + include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryRequest.h + include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryResult.h + include/alibabacloud/itag/model/GetBizPersonSummaryRequest.h + include/alibabacloud/itag/model/GetBizPersonSummaryResult.h + include/alibabacloud/itag/model/GetBizSummaryRequest.h + include/alibabacloud/itag/model/GetBizSummaryResult.h + include/alibabacloud/itag/model/GetCheckUserDetailRequest.h + include/alibabacloud/itag/model/GetCheckUserDetailResult.h + include/alibabacloud/itag/model/GetCheckUserEfficiencyRequest.h + include/alibabacloud/itag/model/GetCheckUserEfficiencyResult.h + include/alibabacloud/itag/model/GetCheckUserSummaryRequest.h + include/alibabacloud/itag/model/GetCheckUserSummaryResult.h + include/alibabacloud/itag/model/GetCommitSummaryRequest.h + include/alibabacloud/itag/model/GetCommitSummaryResult.h + include/alibabacloud/itag/model/GetDatasetProxyRequest.h + include/alibabacloud/itag/model/GetDatasetProxyResult.h + include/alibabacloud/itag/model/GetFlowJobRequest.h + include/alibabacloud/itag/model/GetFlowJobResult.h + include/alibabacloud/itag/model/GetGroupHandlingSummaryRequest.h + include/alibabacloud/itag/model/GetGroupHandlingSummaryResult.h + include/alibabacloud/itag/model/GetGroupTaskDetailRequest.h + include/alibabacloud/itag/model/GetGroupTaskDetailResult.h + include/alibabacloud/itag/model/GetGroupTaskPersonDetailRequest.h + include/alibabacloud/itag/model/GetGroupTaskPersonDetailResult.h + include/alibabacloud/itag/model/GetHistoryMarkResultRequest.h + include/alibabacloud/itag/model/GetHistoryMarkResultResult.h + include/alibabacloud/itag/model/GetIntWholeSummaryRequest.h + include/alibabacloud/itag/model/GetIntWholeSummaryResult.h + include/alibabacloud/itag/model/GetMarkPersonDetailRequest.h + include/alibabacloud/itag/model/GetMarkPersonDetailResult.h + include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryRequest.h + include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryResult.h + include/alibabacloud/itag/model/GetMarkQuantityRequest.h + include/alibabacloud/itag/model/GetMarkQuantityResult.h + include/alibabacloud/itag/model/GetMarkResultRequest.h + include/alibabacloud/itag/model/GetMarkResultResult.h + include/alibabacloud/itag/model/GetMarkUserDetailRequest.h + include/alibabacloud/itag/model/GetMarkUserDetailResult.h + include/alibabacloud/itag/model/GetMarkUserEfficiencyRequest.h + include/alibabacloud/itag/model/GetMarkUserEfficiencyResult.h + include/alibabacloud/itag/model/GetMarkUserSummaryRequest.h + include/alibabacloud/itag/model/GetMarkUserSummaryResult.h + include/alibabacloud/itag/model/GetModelByIdRequest.h + include/alibabacloud/itag/model/GetModelByIdResult.h + include/alibabacloud/itag/model/GetOptionTemplateRequest.h + include/alibabacloud/itag/model/GetOptionTemplateResult.h + include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoRequest.h + include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoResult.h + include/alibabacloud/itag/model/GetPersonSummaryRequest.h + include/alibabacloud/itag/model/GetPersonSummaryResult.h + include/alibabacloud/itag/model/GetSamplingSummaryRequest.h + include/alibabacloud/itag/model/GetSamplingSummaryResult.h + include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultRequest.h + include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultResult.h + include/alibabacloud/itag/model/GetSubTaskDownloadUserResultRequest.h + include/alibabacloud/itag/model/GetSubTaskDownloadUserResultResult.h + include/alibabacloud/itag/model/GetSubTaskSummaryRequest.h + include/alibabacloud/itag/model/GetSubTaskSummaryResult.h + include/alibabacloud/itag/model/GetTaskRequest.h + include/alibabacloud/itag/model/GetTaskResult.h + include/alibabacloud/itag/model/GetTaskPersonSummaryRequest.h + include/alibabacloud/itag/model/GetTaskPersonSummaryResult.h + include/alibabacloud/itag/model/GetTaskProcessInfoRequest.h + include/alibabacloud/itag/model/GetTaskProcessInfoResult.h + include/alibabacloud/itag/model/GetTaskStatTypesRequest.h + include/alibabacloud/itag/model/GetTaskStatTypesResult.h + include/alibabacloud/itag/model/GetTaskSummaryRequest.h + include/alibabacloud/itag/model/GetTaskSummaryResult.h + include/alibabacloud/itag/model/GetTntConfListValueRequest.h + include/alibabacloud/itag/model/GetTntConfListValueResult.h + include/alibabacloud/itag/model/GetTntUserRoleRequest.h + include/alibabacloud/itag/model/GetTntUserRoleResult.h + include/alibabacloud/itag/model/GetUpdateTimeRequest.h + include/alibabacloud/itag/model/GetUpdateTimeResult.h + include/alibabacloud/itag/model/GetUserRequest.h + include/alibabacloud/itag/model/GetUserResult.h + include/alibabacloud/itag/model/GetUserMarkItemInfoRequest.h + include/alibabacloud/itag/model/GetUserMarkItemInfoResult.h + include/alibabacloud/itag/model/ImportOptionTemplateRequest.h + include/alibabacloud/itag/model/ImportOptionTemplateResult.h + include/alibabacloud/itag/model/InitSamplingUserSubTaskRequest.h + include/alibabacloud/itag/model/InitSamplingUserSubTaskResult.h + include/alibabacloud/itag/model/ListAssignedSubUserTaskRequest.h + include/alibabacloud/itag/model/ListAssignedSubUserTaskResult.h + include/alibabacloud/itag/model/ListCheckTaskRequest.h + include/alibabacloud/itag/model/ListCheckTaskResult.h + include/alibabacloud/itag/model/ListDatasetFieldsRequest.h + include/alibabacloud/itag/model/ListDatasetFieldsResult.h + include/alibabacloud/itag/model/ListFinishedSubUserTaskRequest.h + include/alibabacloud/itag/model/ListFinishedSubUserTaskResult.h + include/alibabacloud/itag/model/ListMarkableTaskRequest.h + include/alibabacloud/itag/model/ListMarkableTaskResult.h + include/alibabacloud/itag/model/ListSamplingHandlerUserRequest.h + include/alibabacloud/itag/model/ListSamplingHandlerUserResult.h + include/alibabacloud/itag/model/ListSamplingResultMetaRequest.h + include/alibabacloud/itag/model/ListSamplingResultMetaResult.h + include/alibabacloud/itag/model/ListSamplingUsersRequest.h + include/alibabacloud/itag/model/ListSamplingUsersResult.h + include/alibabacloud/itag/model/ListTntConfigRequest.h + include/alibabacloud/itag/model/ListTntConfigResult.h + include/alibabacloud/itag/model/ListWorkNodeUsersRequest.h + include/alibabacloud/itag/model/ListWorkNodeUsersResult.h + include/alibabacloud/itag/model/ManualCalReportRequest.h + include/alibabacloud/itag/model/ManualCalReportResult.h + include/alibabacloud/itag/model/MngReleaseUserSubTaskRequest.h + include/alibabacloud/itag/model/MngReleaseUserSubTaskResult.h + include/alibabacloud/itag/model/OfflineTaskRequest.h + include/alibabacloud/itag/model/OfflineTaskResult.h + include/alibabacloud/itag/model/OnlineTaskRequest.h + include/alibabacloud/itag/model/OnlineTaskResult.h + include/alibabacloud/itag/model/PageViewDataMetaRequest.h + include/alibabacloud/itag/model/PageViewDataMetaResult.h + include/alibabacloud/itag/model/PageViewDatasetProxyRequest.h + include/alibabacloud/itag/model/PageViewDatasetProxyResult.h + include/alibabacloud/itag/model/PageViewFlowJobRequest.h + include/alibabacloud/itag/model/PageViewFlowJobResult.h + include/alibabacloud/itag/model/PageViewModelRequest.h + include/alibabacloud/itag/model/PageViewModelResult.h + include/alibabacloud/itag/model/PageViewMyTntRequest.h + include/alibabacloud/itag/model/PageViewMyTntResult.h + include/alibabacloud/itag/model/PageViewOptionTemplateRequest.h + include/alibabacloud/itag/model/PageViewOptionTemplateResult.h + include/alibabacloud/itag/model/PageViewSubTaskItemRequest.h + include/alibabacloud/itag/model/PageViewSubTaskItemResult.h + include/alibabacloud/itag/model/PageViewTaskRequest.h + include/alibabacloud/itag/model/PageViewTaskResult.h + include/alibabacloud/itag/model/PageViewTntUserRequest.h + include/alibabacloud/itag/model/PageViewTntUserResult.h + include/alibabacloud/itag/model/PageViewUserRequest.h + include/alibabacloud/itag/model/PageViewUserResult.h + include/alibabacloud/itag/model/PageViewUserGroupRequest.h + include/alibabacloud/itag/model/PageViewUserGroupResult.h + include/alibabacloud/itag/model/PageviewSubTaskRequest.h + include/alibabacloud/itag/model/PageviewSubTaskResult.h + include/alibabacloud/itag/model/PollingSampleMarkItemsRequest.h + include/alibabacloud/itag/model/PollingSampleMarkItemsResult.h + include/alibabacloud/itag/model/PreviewTaskTemplateRequest.h + include/alibabacloud/itag/model/PreviewTaskTemplateResult.h + include/alibabacloud/itag/model/ProxyRobotServiceRequest.h + include/alibabacloud/itag/model/ProxyRobotServiceResult.h + include/alibabacloud/itag/model/QueryMarkableSubTaskRequest.h + include/alibabacloud/itag/model/QueryMarkableSubTaskResult.h + include/alibabacloud/itag/model/QuerySampleMarkItemsRequest.h + include/alibabacloud/itag/model/QuerySampleMarkItemsResult.h + include/alibabacloud/itag/model/QuerySamplingPoolSizeRequest.h + include/alibabacloud/itag/model/QuerySamplingPoolSizeResult.h + include/alibabacloud/itag/model/QuerySkipUserSubTaskRequest.h + include/alibabacloud/itag/model/QuerySkipUserSubTaskResult.h + include/alibabacloud/itag/model/RejectSamplingTaskRequest.h + include/alibabacloud/itag/model/RejectSamplingTaskResult.h + include/alibabacloud/itag/model/RejectSubTaskRequest.h + include/alibabacloud/itag/model/RejectSubTaskResult.h + include/alibabacloud/itag/model/ReleaseUserSubTaskRequest.h + include/alibabacloud/itag/model/ReleaseUserSubTaskResult.h + include/alibabacloud/itag/model/RemoveMemberOrGroupTaskRequest.h + include/alibabacloud/itag/model/RemoveMemberOrGroupTaskResult.h + include/alibabacloud/itag/model/RemoveUserInGroupRequest.h + include/alibabacloud/itag/model/RemoveUserInGroupResult.h + include/alibabacloud/itag/model/RemoveUserInTntRequest.h + include/alibabacloud/itag/model/RemoveUserInTntResult.h + include/alibabacloud/itag/model/SamplingSubUserTaskListRequest.h + include/alibabacloud/itag/model/SamplingSubUserTaskListResult.h + include/alibabacloud/itag/model/SkipFinishedRequest.h + include/alibabacloud/itag/model/SkipFinishedResult.h + include/alibabacloud/itag/model/SkipUserSubTaskRequest.h + include/alibabacloud/itag/model/SkipUserSubTaskResult.h + include/alibabacloud/itag/model/TaskStageStatRequest.h + include/alibabacloud/itag/model/TaskStageStatResult.h + include/alibabacloud/itag/model/TestRequestRequest.h + include/alibabacloud/itag/model/TestRequestResult.h + include/alibabacloud/itag/model/TransferUserSubTaskRequest.h + include/alibabacloud/itag/model/TransferUserSubTaskResult.h + include/alibabacloud/itag/model/UnpassFeedbackRequest.h + include/alibabacloud/itag/model/UnpassFeedbackResult.h + include/alibabacloud/itag/model/UpdateDatasetStateMsgRequest.h + include/alibabacloud/itag/model/UpdateDatasetStateMsgResult.h + include/alibabacloud/itag/model/UpdateMarkResultRequest.h + include/alibabacloud/itag/model/UpdateMarkResultResult.h + include/alibabacloud/itag/model/UpdateMarkResultByAdminRequest.h + include/alibabacloud/itag/model/UpdateMarkResultByAdminResult.h + include/alibabacloud/itag/model/UpdateModelRequest.h + include/alibabacloud/itag/model/UpdateModelResult.h + include/alibabacloud/itag/model/UpdateTaskRequest.h + include/alibabacloud/itag/model/UpdateTaskResult.h + include/alibabacloud/itag/model/UpdateTaskDataRequest.h + include/alibabacloud/itag/model/UpdateTaskDataResult.h + include/alibabacloud/itag/model/UpdateTaskTemplateRequest.h + include/alibabacloud/itag/model/UpdateTaskTemplateResult.h + include/alibabacloud/itag/model/UpdateTemplateRequest.h + include/alibabacloud/itag/model/UpdateTemplateResult.h + include/alibabacloud/itag/model/UpdateUserNameRequest.h + include/alibabacloud/itag/model/UpdateUserNameResult.h + include/alibabacloud/itag/model/UpdateUserRoleInTntRequest.h + include/alibabacloud/itag/model/UpdateUserRoleInTntResult.h + include/alibabacloud/itag/model/UserSubTaskTimerRequest.h + include/alibabacloud/itag/model/UserSubTaskTimerResult.h ) + +set(itag_src + src/ItagClient.cc + src/model/AbandonItemRequest.cc + src/model/AbandonItemResult.cc + src/model/AbandonItemByAdminRequest.cc + src/model/AbandonItemByAdminResult.cc + src/model/AcceptSamplingTaskRequest.cc + src/model/AcceptSamplingTaskResult.cc + src/model/AddMemberOrGroupTaskRequest.cc + src/model/AddMemberOrGroupTaskResult.cc + src/model/AddUserRequest.cc + src/model/AddUserResult.cc + src/model/AddUserToGroupRequest.cc + src/model/AddUserToGroupResult.cc + src/model/AddUserToTntRequest.cc + src/model/AddUserToTntResult.cc + src/model/AppendDataToDatasetRequest.cc + src/model/AppendDataToDatasetResult.cc + src/model/AsyncDownloadMarkResultRequest.cc + src/model/AsyncDownloadMarkResultResult.cc + src/model/BatchRejectTaskRequest.cc + src/model/BatchRejectTaskResult.cc + src/model/CanCommitRequest.cc + src/model/CanCommitResult.cc + src/model/CheckModelRequest.cc + src/model/CheckModelResult.cc + src/model/CommitSubTaskRequest.cc + src/model/CommitSubTaskResult.cc + src/model/CreateDatasetRequest.cc + src/model/CreateDatasetResult.cc + src/model/CreateModelRequest.cc + src/model/CreateModelResult.cc + src/model/CreateOptionTemplateRequest.cc + src/model/CreateOptionTemplateResult.cc + src/model/CreateOrUpdateTntConfigRequest.cc + src/model/CreateOrUpdateTntConfigResult.cc + src/model/CreateTaskRequest.cc + src/model/CreateTaskResult.cc + src/model/CreateUserGroupRequest.cc + src/model/CreateUserGroupResult.cc + src/model/DeleteFeedbackRequest.cc + src/model/DeleteFeedbackResult.cc + src/model/DeleteModelRequest.cc + src/model/DeleteModelResult.cc + src/model/DeleteOptionTemplateRequest.cc + src/model/DeleteOptionTemplateResult.cc + src/model/DeleteTaskRequest.cc + src/model/DeleteTaskResult.cc + src/model/DeleteUserGroupRequest.cc + src/model/DeleteUserGroupResult.cc + src/model/DiscardSubTaskRequest.cc + src/model/DiscardSubTaskResult.cc + src/model/DownloadIntPersonSummaryRequest.cc + src/model/DownloadIntPersonSummaryResult.cc + src/model/ExportOptionTemplateRequest.cc + src/model/ExportOptionTemplateResult.cc + src/model/ExtendUserAuthInTaskRequest.cc + src/model/ExtendUserAuthInTaskResult.cc + src/model/FetchVideoMarkResultRequest.cc + src/model/FetchVideoMarkResultResult.cc + src/model/FlowInstanceCallbackRequest.cc + src/model/FlowInstanceCallbackResult.cc + src/model/GetAssignedCheckTaskSummaryRequest.cc + src/model/GetAssignedCheckTaskSummaryResult.cc + src/model/GetBizPersonSummaryRequest.cc + src/model/GetBizPersonSummaryResult.cc + src/model/GetBizSummaryRequest.cc + src/model/GetBizSummaryResult.cc + src/model/GetCheckUserDetailRequest.cc + src/model/GetCheckUserDetailResult.cc + src/model/GetCheckUserEfficiencyRequest.cc + src/model/GetCheckUserEfficiencyResult.cc + src/model/GetCheckUserSummaryRequest.cc + src/model/GetCheckUserSummaryResult.cc + src/model/GetCommitSummaryRequest.cc + src/model/GetCommitSummaryResult.cc + src/model/GetDatasetProxyRequest.cc + src/model/GetDatasetProxyResult.cc + src/model/GetFlowJobRequest.cc + src/model/GetFlowJobResult.cc + src/model/GetGroupHandlingSummaryRequest.cc + src/model/GetGroupHandlingSummaryResult.cc + src/model/GetGroupTaskDetailRequest.cc + src/model/GetGroupTaskDetailResult.cc + src/model/GetGroupTaskPersonDetailRequest.cc + src/model/GetGroupTaskPersonDetailResult.cc + src/model/GetHistoryMarkResultRequest.cc + src/model/GetHistoryMarkResultResult.cc + src/model/GetIntWholeSummaryRequest.cc + src/model/GetIntWholeSummaryResult.cc + src/model/GetMarkPersonDetailRequest.cc + src/model/GetMarkPersonDetailResult.cc + src/model/GetMarkPersonHandlingSummaryRequest.cc + src/model/GetMarkPersonHandlingSummaryResult.cc + src/model/GetMarkQuantityRequest.cc + src/model/GetMarkQuantityResult.cc + src/model/GetMarkResultRequest.cc + src/model/GetMarkResultResult.cc + src/model/GetMarkUserDetailRequest.cc + src/model/GetMarkUserDetailResult.cc + src/model/GetMarkUserEfficiencyRequest.cc + src/model/GetMarkUserEfficiencyResult.cc + src/model/GetMarkUserSummaryRequest.cc + src/model/GetMarkUserSummaryResult.cc + src/model/GetModelByIdRequest.cc + src/model/GetModelByIdResult.cc + src/model/GetOptionTemplateRequest.cc + src/model/GetOptionTemplateResult.cc + src/model/GetOrCreateTntInstByBizNoRequest.cc + src/model/GetOrCreateTntInstByBizNoResult.cc + src/model/GetPersonSummaryRequest.cc + src/model/GetPersonSummaryResult.cc + src/model/GetSamplingSummaryRequest.cc + src/model/GetSamplingSummaryResult.cc + src/model/GetSubTaskDownloadSystemResultRequest.cc + src/model/GetSubTaskDownloadSystemResultResult.cc + src/model/GetSubTaskDownloadUserResultRequest.cc + src/model/GetSubTaskDownloadUserResultResult.cc + src/model/GetSubTaskSummaryRequest.cc + src/model/GetSubTaskSummaryResult.cc + src/model/GetTaskRequest.cc + src/model/GetTaskResult.cc + src/model/GetTaskPersonSummaryRequest.cc + src/model/GetTaskPersonSummaryResult.cc + src/model/GetTaskProcessInfoRequest.cc + src/model/GetTaskProcessInfoResult.cc + src/model/GetTaskStatTypesRequest.cc + src/model/GetTaskStatTypesResult.cc + src/model/GetTaskSummaryRequest.cc + src/model/GetTaskSummaryResult.cc + src/model/GetTntConfListValueRequest.cc + src/model/GetTntConfListValueResult.cc + src/model/GetTntUserRoleRequest.cc + src/model/GetTntUserRoleResult.cc + src/model/GetUpdateTimeRequest.cc + src/model/GetUpdateTimeResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/GetUserMarkItemInfoRequest.cc + src/model/GetUserMarkItemInfoResult.cc + src/model/ImportOptionTemplateRequest.cc + src/model/ImportOptionTemplateResult.cc + src/model/InitSamplingUserSubTaskRequest.cc + src/model/InitSamplingUserSubTaskResult.cc + src/model/ListAssignedSubUserTaskRequest.cc + src/model/ListAssignedSubUserTaskResult.cc + src/model/ListCheckTaskRequest.cc + src/model/ListCheckTaskResult.cc + src/model/ListDatasetFieldsRequest.cc + src/model/ListDatasetFieldsResult.cc + src/model/ListFinishedSubUserTaskRequest.cc + src/model/ListFinishedSubUserTaskResult.cc + src/model/ListMarkableTaskRequest.cc + src/model/ListMarkableTaskResult.cc + src/model/ListSamplingHandlerUserRequest.cc + src/model/ListSamplingHandlerUserResult.cc + src/model/ListSamplingResultMetaRequest.cc + src/model/ListSamplingResultMetaResult.cc + src/model/ListSamplingUsersRequest.cc + src/model/ListSamplingUsersResult.cc + src/model/ListTntConfigRequest.cc + src/model/ListTntConfigResult.cc + src/model/ListWorkNodeUsersRequest.cc + src/model/ListWorkNodeUsersResult.cc + src/model/ManualCalReportRequest.cc + src/model/ManualCalReportResult.cc + src/model/MngReleaseUserSubTaskRequest.cc + src/model/MngReleaseUserSubTaskResult.cc + src/model/OfflineTaskRequest.cc + src/model/OfflineTaskResult.cc + src/model/OnlineTaskRequest.cc + src/model/OnlineTaskResult.cc + src/model/PageViewDataMetaRequest.cc + src/model/PageViewDataMetaResult.cc + src/model/PageViewDatasetProxyRequest.cc + src/model/PageViewDatasetProxyResult.cc + src/model/PageViewFlowJobRequest.cc + src/model/PageViewFlowJobResult.cc + src/model/PageViewModelRequest.cc + src/model/PageViewModelResult.cc + src/model/PageViewMyTntRequest.cc + src/model/PageViewMyTntResult.cc + src/model/PageViewOptionTemplateRequest.cc + src/model/PageViewOptionTemplateResult.cc + src/model/PageViewSubTaskItemRequest.cc + src/model/PageViewSubTaskItemResult.cc + src/model/PageViewTaskRequest.cc + src/model/PageViewTaskResult.cc + src/model/PageViewTntUserRequest.cc + src/model/PageViewTntUserResult.cc + src/model/PageViewUserRequest.cc + src/model/PageViewUserResult.cc + src/model/PageViewUserGroupRequest.cc + src/model/PageViewUserGroupResult.cc + src/model/PageviewSubTaskRequest.cc + src/model/PageviewSubTaskResult.cc + src/model/PollingSampleMarkItemsRequest.cc + src/model/PollingSampleMarkItemsResult.cc + src/model/PreviewTaskTemplateRequest.cc + src/model/PreviewTaskTemplateResult.cc + src/model/ProxyRobotServiceRequest.cc + src/model/ProxyRobotServiceResult.cc + src/model/QueryMarkableSubTaskRequest.cc + src/model/QueryMarkableSubTaskResult.cc + src/model/QuerySampleMarkItemsRequest.cc + src/model/QuerySampleMarkItemsResult.cc + src/model/QuerySamplingPoolSizeRequest.cc + src/model/QuerySamplingPoolSizeResult.cc + src/model/QuerySkipUserSubTaskRequest.cc + src/model/QuerySkipUserSubTaskResult.cc + src/model/RejectSamplingTaskRequest.cc + src/model/RejectSamplingTaskResult.cc + src/model/RejectSubTaskRequest.cc + src/model/RejectSubTaskResult.cc + src/model/ReleaseUserSubTaskRequest.cc + src/model/ReleaseUserSubTaskResult.cc + src/model/RemoveMemberOrGroupTaskRequest.cc + src/model/RemoveMemberOrGroupTaskResult.cc + src/model/RemoveUserInGroupRequest.cc + src/model/RemoveUserInGroupResult.cc + src/model/RemoveUserInTntRequest.cc + src/model/RemoveUserInTntResult.cc + src/model/SamplingSubUserTaskListRequest.cc + src/model/SamplingSubUserTaskListResult.cc + src/model/SkipFinishedRequest.cc + src/model/SkipFinishedResult.cc + src/model/SkipUserSubTaskRequest.cc + src/model/SkipUserSubTaskResult.cc + src/model/TaskStageStatRequest.cc + src/model/TaskStageStatResult.cc + src/model/TestRequestRequest.cc + src/model/TestRequestResult.cc + src/model/TransferUserSubTaskRequest.cc + src/model/TransferUserSubTaskResult.cc + src/model/UnpassFeedbackRequest.cc + src/model/UnpassFeedbackResult.cc + src/model/UpdateDatasetStateMsgRequest.cc + src/model/UpdateDatasetStateMsgResult.cc + src/model/UpdateMarkResultRequest.cc + src/model/UpdateMarkResultResult.cc + src/model/UpdateMarkResultByAdminRequest.cc + src/model/UpdateMarkResultByAdminResult.cc + src/model/UpdateModelRequest.cc + src/model/UpdateModelResult.cc + src/model/UpdateTaskRequest.cc + src/model/UpdateTaskResult.cc + src/model/UpdateTaskDataRequest.cc + src/model/UpdateTaskDataResult.cc + src/model/UpdateTaskTemplateRequest.cc + src/model/UpdateTaskTemplateResult.cc + src/model/UpdateTemplateRequest.cc + src/model/UpdateTemplateResult.cc + src/model/UpdateUserNameRequest.cc + src/model/UpdateUserNameResult.cc + src/model/UpdateUserRoleInTntRequest.cc + src/model/UpdateUserRoleInTntResult.cc + src/model/UserSubTaskTimerRequest.cc + src/model/UserSubTaskTimerResult.cc ) + +add_library(itag ${LIB_TYPE} + ${itag_public_header} + ${itag_public_header_model} + ${itag_src}) + +set_target_properties(itag + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}itag + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(itag + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ITAG_LIBRARY) +endif() + +target_include_directories(itag + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(itag + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(itag + jsoncpp) + target_include_directories(itag + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(itag + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(itag + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(itag + PRIVATE /usr/include/jsoncpp) + target_link_libraries(itag + jsoncpp) +endif() + +install(FILES ${itag_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/itag) +install(FILES ${itag_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/itag/model) +install(TARGETS itag + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/ItagClient.h b/itag/include/alibabacloud/itag/ItagClient.h new file mode 100644 index 000000000..ce9163068 --- /dev/null +++ b/itag/include/alibabacloud/itag/ItagClient.h @@ -0,0 +1,1070 @@ +/* + * 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_ITAG_ITAGCLIENT_H_ +#define ALIBABACLOUD_ITAG_ITAGCLIENT_H_ + +#include +#include +#include +#include +#include "ItagExport.h" +#include "model/AbandonItemRequest.h" +#include "model/AbandonItemResult.h" +#include "model/AbandonItemByAdminRequest.h" +#include "model/AbandonItemByAdminResult.h" +#include "model/AcceptSamplingTaskRequest.h" +#include "model/AcceptSamplingTaskResult.h" +#include "model/AddMemberOrGroupTaskRequest.h" +#include "model/AddMemberOrGroupTaskResult.h" +#include "model/AddUserRequest.h" +#include "model/AddUserResult.h" +#include "model/AddUserToGroupRequest.h" +#include "model/AddUserToGroupResult.h" +#include "model/AddUserToTntRequest.h" +#include "model/AddUserToTntResult.h" +#include "model/AppendDataToDatasetRequest.h" +#include "model/AppendDataToDatasetResult.h" +#include "model/AsyncDownloadMarkResultRequest.h" +#include "model/AsyncDownloadMarkResultResult.h" +#include "model/BatchRejectTaskRequest.h" +#include "model/BatchRejectTaskResult.h" +#include "model/CanCommitRequest.h" +#include "model/CanCommitResult.h" +#include "model/CheckModelRequest.h" +#include "model/CheckModelResult.h" +#include "model/CommitSubTaskRequest.h" +#include "model/CommitSubTaskResult.h" +#include "model/CreateDatasetRequest.h" +#include "model/CreateDatasetResult.h" +#include "model/CreateModelRequest.h" +#include "model/CreateModelResult.h" +#include "model/CreateOptionTemplateRequest.h" +#include "model/CreateOptionTemplateResult.h" +#include "model/CreateOrUpdateTntConfigRequest.h" +#include "model/CreateOrUpdateTntConfigResult.h" +#include "model/CreateTaskRequest.h" +#include "model/CreateTaskResult.h" +#include "model/CreateUserGroupRequest.h" +#include "model/CreateUserGroupResult.h" +#include "model/DeleteFeedbackRequest.h" +#include "model/DeleteFeedbackResult.h" +#include "model/DeleteModelRequest.h" +#include "model/DeleteModelResult.h" +#include "model/DeleteOptionTemplateRequest.h" +#include "model/DeleteOptionTemplateResult.h" +#include "model/DeleteTaskRequest.h" +#include "model/DeleteTaskResult.h" +#include "model/DeleteUserGroupRequest.h" +#include "model/DeleteUserGroupResult.h" +#include "model/DiscardSubTaskRequest.h" +#include "model/DiscardSubTaskResult.h" +#include "model/DownloadIntPersonSummaryRequest.h" +#include "model/DownloadIntPersonSummaryResult.h" +#include "model/ExportOptionTemplateRequest.h" +#include "model/ExportOptionTemplateResult.h" +#include "model/ExtendUserAuthInTaskRequest.h" +#include "model/ExtendUserAuthInTaskResult.h" +#include "model/FetchVideoMarkResultRequest.h" +#include "model/FetchVideoMarkResultResult.h" +#include "model/FlowInstanceCallbackRequest.h" +#include "model/FlowInstanceCallbackResult.h" +#include "model/GetAssignedCheckTaskSummaryRequest.h" +#include "model/GetAssignedCheckTaskSummaryResult.h" +#include "model/GetBizPersonSummaryRequest.h" +#include "model/GetBizPersonSummaryResult.h" +#include "model/GetBizSummaryRequest.h" +#include "model/GetBizSummaryResult.h" +#include "model/GetCheckUserDetailRequest.h" +#include "model/GetCheckUserDetailResult.h" +#include "model/GetCheckUserEfficiencyRequest.h" +#include "model/GetCheckUserEfficiencyResult.h" +#include "model/GetCheckUserSummaryRequest.h" +#include "model/GetCheckUserSummaryResult.h" +#include "model/GetCommitSummaryRequest.h" +#include "model/GetCommitSummaryResult.h" +#include "model/GetDatasetProxyRequest.h" +#include "model/GetDatasetProxyResult.h" +#include "model/GetFlowJobRequest.h" +#include "model/GetFlowJobResult.h" +#include "model/GetGroupHandlingSummaryRequest.h" +#include "model/GetGroupHandlingSummaryResult.h" +#include "model/GetGroupTaskDetailRequest.h" +#include "model/GetGroupTaskDetailResult.h" +#include "model/GetGroupTaskPersonDetailRequest.h" +#include "model/GetGroupTaskPersonDetailResult.h" +#include "model/GetHistoryMarkResultRequest.h" +#include "model/GetHistoryMarkResultResult.h" +#include "model/GetIntWholeSummaryRequest.h" +#include "model/GetIntWholeSummaryResult.h" +#include "model/GetMarkPersonDetailRequest.h" +#include "model/GetMarkPersonDetailResult.h" +#include "model/GetMarkPersonHandlingSummaryRequest.h" +#include "model/GetMarkPersonHandlingSummaryResult.h" +#include "model/GetMarkQuantityRequest.h" +#include "model/GetMarkQuantityResult.h" +#include "model/GetMarkResultRequest.h" +#include "model/GetMarkResultResult.h" +#include "model/GetMarkUserDetailRequest.h" +#include "model/GetMarkUserDetailResult.h" +#include "model/GetMarkUserEfficiencyRequest.h" +#include "model/GetMarkUserEfficiencyResult.h" +#include "model/GetMarkUserSummaryRequest.h" +#include "model/GetMarkUserSummaryResult.h" +#include "model/GetModelByIdRequest.h" +#include "model/GetModelByIdResult.h" +#include "model/GetOptionTemplateRequest.h" +#include "model/GetOptionTemplateResult.h" +#include "model/GetOrCreateTntInstByBizNoRequest.h" +#include "model/GetOrCreateTntInstByBizNoResult.h" +#include "model/GetPersonSummaryRequest.h" +#include "model/GetPersonSummaryResult.h" +#include "model/GetSamplingSummaryRequest.h" +#include "model/GetSamplingSummaryResult.h" +#include "model/GetSubTaskDownloadSystemResultRequest.h" +#include "model/GetSubTaskDownloadSystemResultResult.h" +#include "model/GetSubTaskDownloadUserResultRequest.h" +#include "model/GetSubTaskDownloadUserResultResult.h" +#include "model/GetSubTaskSummaryRequest.h" +#include "model/GetSubTaskSummaryResult.h" +#include "model/GetTaskRequest.h" +#include "model/GetTaskResult.h" +#include "model/GetTaskPersonSummaryRequest.h" +#include "model/GetTaskPersonSummaryResult.h" +#include "model/GetTaskProcessInfoRequest.h" +#include "model/GetTaskProcessInfoResult.h" +#include "model/GetTaskStatTypesRequest.h" +#include "model/GetTaskStatTypesResult.h" +#include "model/GetTaskSummaryRequest.h" +#include "model/GetTaskSummaryResult.h" +#include "model/GetTntConfListValueRequest.h" +#include "model/GetTntConfListValueResult.h" +#include "model/GetTntUserRoleRequest.h" +#include "model/GetTntUserRoleResult.h" +#include "model/GetUpdateTimeRequest.h" +#include "model/GetUpdateTimeResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/GetUserMarkItemInfoRequest.h" +#include "model/GetUserMarkItemInfoResult.h" +#include "model/ImportOptionTemplateRequest.h" +#include "model/ImportOptionTemplateResult.h" +#include "model/InitSamplingUserSubTaskRequest.h" +#include "model/InitSamplingUserSubTaskResult.h" +#include "model/ListAssignedSubUserTaskRequest.h" +#include "model/ListAssignedSubUserTaskResult.h" +#include "model/ListCheckTaskRequest.h" +#include "model/ListCheckTaskResult.h" +#include "model/ListDatasetFieldsRequest.h" +#include "model/ListDatasetFieldsResult.h" +#include "model/ListFinishedSubUserTaskRequest.h" +#include "model/ListFinishedSubUserTaskResult.h" +#include "model/ListMarkableTaskRequest.h" +#include "model/ListMarkableTaskResult.h" +#include "model/ListSamplingHandlerUserRequest.h" +#include "model/ListSamplingHandlerUserResult.h" +#include "model/ListSamplingResultMetaRequest.h" +#include "model/ListSamplingResultMetaResult.h" +#include "model/ListSamplingUsersRequest.h" +#include "model/ListSamplingUsersResult.h" +#include "model/ListTntConfigRequest.h" +#include "model/ListTntConfigResult.h" +#include "model/ListWorkNodeUsersRequest.h" +#include "model/ListWorkNodeUsersResult.h" +#include "model/ManualCalReportRequest.h" +#include "model/ManualCalReportResult.h" +#include "model/MngReleaseUserSubTaskRequest.h" +#include "model/MngReleaseUserSubTaskResult.h" +#include "model/OfflineTaskRequest.h" +#include "model/OfflineTaskResult.h" +#include "model/OnlineTaskRequest.h" +#include "model/OnlineTaskResult.h" +#include "model/PageViewDataMetaRequest.h" +#include "model/PageViewDataMetaResult.h" +#include "model/PageViewDatasetProxyRequest.h" +#include "model/PageViewDatasetProxyResult.h" +#include "model/PageViewFlowJobRequest.h" +#include "model/PageViewFlowJobResult.h" +#include "model/PageViewModelRequest.h" +#include "model/PageViewModelResult.h" +#include "model/PageViewMyTntRequest.h" +#include "model/PageViewMyTntResult.h" +#include "model/PageViewOptionTemplateRequest.h" +#include "model/PageViewOptionTemplateResult.h" +#include "model/PageViewSubTaskItemRequest.h" +#include "model/PageViewSubTaskItemResult.h" +#include "model/PageViewTaskRequest.h" +#include "model/PageViewTaskResult.h" +#include "model/PageViewTntUserRequest.h" +#include "model/PageViewTntUserResult.h" +#include "model/PageViewUserRequest.h" +#include "model/PageViewUserResult.h" +#include "model/PageViewUserGroupRequest.h" +#include "model/PageViewUserGroupResult.h" +#include "model/PageviewSubTaskRequest.h" +#include "model/PageviewSubTaskResult.h" +#include "model/PollingSampleMarkItemsRequest.h" +#include "model/PollingSampleMarkItemsResult.h" +#include "model/PreviewTaskTemplateRequest.h" +#include "model/PreviewTaskTemplateResult.h" +#include "model/ProxyRobotServiceRequest.h" +#include "model/ProxyRobotServiceResult.h" +#include "model/QueryMarkableSubTaskRequest.h" +#include "model/QueryMarkableSubTaskResult.h" +#include "model/QuerySampleMarkItemsRequest.h" +#include "model/QuerySampleMarkItemsResult.h" +#include "model/QuerySamplingPoolSizeRequest.h" +#include "model/QuerySamplingPoolSizeResult.h" +#include "model/QuerySkipUserSubTaskRequest.h" +#include "model/QuerySkipUserSubTaskResult.h" +#include "model/RejectSamplingTaskRequest.h" +#include "model/RejectSamplingTaskResult.h" +#include "model/RejectSubTaskRequest.h" +#include "model/RejectSubTaskResult.h" +#include "model/ReleaseUserSubTaskRequest.h" +#include "model/ReleaseUserSubTaskResult.h" +#include "model/RemoveMemberOrGroupTaskRequest.h" +#include "model/RemoveMemberOrGroupTaskResult.h" +#include "model/RemoveUserInGroupRequest.h" +#include "model/RemoveUserInGroupResult.h" +#include "model/RemoveUserInTntRequest.h" +#include "model/RemoveUserInTntResult.h" +#include "model/SamplingSubUserTaskListRequest.h" +#include "model/SamplingSubUserTaskListResult.h" +#include "model/SkipFinishedRequest.h" +#include "model/SkipFinishedResult.h" +#include "model/SkipUserSubTaskRequest.h" +#include "model/SkipUserSubTaskResult.h" +#include "model/TaskStageStatRequest.h" +#include "model/TaskStageStatResult.h" +#include "model/TestRequestRequest.h" +#include "model/TestRequestResult.h" +#include "model/TransferUserSubTaskRequest.h" +#include "model/TransferUserSubTaskResult.h" +#include "model/UnpassFeedbackRequest.h" +#include "model/UnpassFeedbackResult.h" +#include "model/UpdateDatasetStateMsgRequest.h" +#include "model/UpdateDatasetStateMsgResult.h" +#include "model/UpdateMarkResultRequest.h" +#include "model/UpdateMarkResultResult.h" +#include "model/UpdateMarkResultByAdminRequest.h" +#include "model/UpdateMarkResultByAdminResult.h" +#include "model/UpdateModelRequest.h" +#include "model/UpdateModelResult.h" +#include "model/UpdateTaskRequest.h" +#include "model/UpdateTaskResult.h" +#include "model/UpdateTaskDataRequest.h" +#include "model/UpdateTaskDataResult.h" +#include "model/UpdateTaskTemplateRequest.h" +#include "model/UpdateTaskTemplateResult.h" +#include "model/UpdateTemplateRequest.h" +#include "model/UpdateTemplateResult.h" +#include "model/UpdateUserNameRequest.h" +#include "model/UpdateUserNameResult.h" +#include "model/UpdateUserRoleInTntRequest.h" +#include "model/UpdateUserRoleInTntResult.h" +#include "model/UserSubTaskTimerRequest.h" +#include "model/UserSubTaskTimerResult.h" + + +namespace AlibabaCloud +{ + namespace Itag + { + class ALIBABACLOUD_ITAG_EXPORT ItagClient : public RoaServiceClient + { + public: + typedef Outcome AbandonItemOutcome; + typedef std::future AbandonItemOutcomeCallable; + typedef std::function&)> AbandonItemAsyncHandler; + typedef Outcome AbandonItemByAdminOutcome; + typedef std::future AbandonItemByAdminOutcomeCallable; + typedef std::function&)> AbandonItemByAdminAsyncHandler; + typedef Outcome AcceptSamplingTaskOutcome; + typedef std::future AcceptSamplingTaskOutcomeCallable; + typedef std::function&)> AcceptSamplingTaskAsyncHandler; + typedef Outcome AddMemberOrGroupTaskOutcome; + typedef std::future AddMemberOrGroupTaskOutcomeCallable; + typedef std::function&)> AddMemberOrGroupTaskAsyncHandler; + typedef Outcome AddUserOutcome; + typedef std::future AddUserOutcomeCallable; + typedef std::function&)> AddUserAsyncHandler; + typedef Outcome AddUserToGroupOutcome; + typedef std::future AddUserToGroupOutcomeCallable; + typedef std::function&)> AddUserToGroupAsyncHandler; + typedef Outcome AddUserToTntOutcome; + typedef std::future AddUserToTntOutcomeCallable; + typedef std::function&)> AddUserToTntAsyncHandler; + typedef Outcome AppendDataToDatasetOutcome; + typedef std::future AppendDataToDatasetOutcomeCallable; + typedef std::function&)> AppendDataToDatasetAsyncHandler; + typedef Outcome AsyncDownloadMarkResultOutcome; + typedef std::future AsyncDownloadMarkResultOutcomeCallable; + typedef std::function&)> AsyncDownloadMarkResultAsyncHandler; + typedef Outcome BatchRejectTaskOutcome; + typedef std::future BatchRejectTaskOutcomeCallable; + typedef std::function&)> BatchRejectTaskAsyncHandler; + typedef Outcome CanCommitOutcome; + typedef std::future CanCommitOutcomeCallable; + typedef std::function&)> CanCommitAsyncHandler; + typedef Outcome CheckModelOutcome; + typedef std::future CheckModelOutcomeCallable; + typedef std::function&)> CheckModelAsyncHandler; + typedef Outcome CommitSubTaskOutcome; + typedef std::future CommitSubTaskOutcomeCallable; + typedef std::function&)> CommitSubTaskAsyncHandler; + typedef Outcome CreateDatasetOutcome; + typedef std::future CreateDatasetOutcomeCallable; + typedef std::function&)> CreateDatasetAsyncHandler; + typedef Outcome CreateModelOutcome; + typedef std::future CreateModelOutcomeCallable; + typedef std::function&)> CreateModelAsyncHandler; + typedef Outcome CreateOptionTemplateOutcome; + typedef std::future CreateOptionTemplateOutcomeCallable; + typedef std::function&)> CreateOptionTemplateAsyncHandler; + typedef Outcome CreateOrUpdateTntConfigOutcome; + typedef std::future CreateOrUpdateTntConfigOutcomeCallable; + typedef std::function&)> CreateOrUpdateTntConfigAsyncHandler; + typedef Outcome CreateTaskOutcome; + typedef std::future CreateTaskOutcomeCallable; + typedef std::function&)> CreateTaskAsyncHandler; + typedef Outcome CreateUserGroupOutcome; + typedef std::future CreateUserGroupOutcomeCallable; + typedef std::function&)> CreateUserGroupAsyncHandler; + typedef Outcome DeleteFeedbackOutcome; + typedef std::future DeleteFeedbackOutcomeCallable; + typedef std::function&)> DeleteFeedbackAsyncHandler; + typedef Outcome DeleteModelOutcome; + typedef std::future DeleteModelOutcomeCallable; + typedef std::function&)> DeleteModelAsyncHandler; + typedef Outcome DeleteOptionTemplateOutcome; + typedef std::future DeleteOptionTemplateOutcomeCallable; + typedef std::function&)> DeleteOptionTemplateAsyncHandler; + typedef Outcome DeleteTaskOutcome; + typedef std::future DeleteTaskOutcomeCallable; + typedef std::function&)> DeleteTaskAsyncHandler; + typedef Outcome DeleteUserGroupOutcome; + typedef std::future DeleteUserGroupOutcomeCallable; + typedef std::function&)> DeleteUserGroupAsyncHandler; + typedef Outcome DiscardSubTaskOutcome; + typedef std::future DiscardSubTaskOutcomeCallable; + typedef std::function&)> DiscardSubTaskAsyncHandler; + typedef Outcome DownloadIntPersonSummaryOutcome; + typedef std::future DownloadIntPersonSummaryOutcomeCallable; + typedef std::function&)> DownloadIntPersonSummaryAsyncHandler; + typedef Outcome ExportOptionTemplateOutcome; + typedef std::future ExportOptionTemplateOutcomeCallable; + typedef std::function&)> ExportOptionTemplateAsyncHandler; + typedef Outcome ExtendUserAuthInTaskOutcome; + typedef std::future ExtendUserAuthInTaskOutcomeCallable; + typedef std::function&)> ExtendUserAuthInTaskAsyncHandler; + typedef Outcome FetchVideoMarkResultOutcome; + typedef std::future FetchVideoMarkResultOutcomeCallable; + typedef std::function&)> FetchVideoMarkResultAsyncHandler; + typedef Outcome FlowInstanceCallbackOutcome; + typedef std::future FlowInstanceCallbackOutcomeCallable; + typedef std::function&)> FlowInstanceCallbackAsyncHandler; + typedef Outcome GetAssignedCheckTaskSummaryOutcome; + typedef std::future GetAssignedCheckTaskSummaryOutcomeCallable; + typedef std::function&)> GetAssignedCheckTaskSummaryAsyncHandler; + typedef Outcome GetBizPersonSummaryOutcome; + typedef std::future GetBizPersonSummaryOutcomeCallable; + typedef std::function&)> GetBizPersonSummaryAsyncHandler; + typedef Outcome GetBizSummaryOutcome; + typedef std::future GetBizSummaryOutcomeCallable; + typedef std::function&)> GetBizSummaryAsyncHandler; + typedef Outcome GetCheckUserDetailOutcome; + typedef std::future GetCheckUserDetailOutcomeCallable; + typedef std::function&)> GetCheckUserDetailAsyncHandler; + typedef Outcome GetCheckUserEfficiencyOutcome; + typedef std::future GetCheckUserEfficiencyOutcomeCallable; + typedef std::function&)> GetCheckUserEfficiencyAsyncHandler; + typedef Outcome GetCheckUserSummaryOutcome; + typedef std::future GetCheckUserSummaryOutcomeCallable; + typedef std::function&)> GetCheckUserSummaryAsyncHandler; + typedef Outcome GetCommitSummaryOutcome; + typedef std::future GetCommitSummaryOutcomeCallable; + typedef std::function&)> GetCommitSummaryAsyncHandler; + typedef Outcome GetDatasetProxyOutcome; + typedef std::future GetDatasetProxyOutcomeCallable; + typedef std::function&)> GetDatasetProxyAsyncHandler; + typedef Outcome GetFlowJobOutcome; + typedef std::future GetFlowJobOutcomeCallable; + typedef std::function&)> GetFlowJobAsyncHandler; + typedef Outcome GetGroupHandlingSummaryOutcome; + typedef std::future GetGroupHandlingSummaryOutcomeCallable; + typedef std::function&)> GetGroupHandlingSummaryAsyncHandler; + typedef Outcome GetGroupTaskDetailOutcome; + typedef std::future GetGroupTaskDetailOutcomeCallable; + typedef std::function&)> GetGroupTaskDetailAsyncHandler; + typedef Outcome GetGroupTaskPersonDetailOutcome; + typedef std::future GetGroupTaskPersonDetailOutcomeCallable; + typedef std::function&)> GetGroupTaskPersonDetailAsyncHandler; + typedef Outcome GetHistoryMarkResultOutcome; + typedef std::future GetHistoryMarkResultOutcomeCallable; + typedef std::function&)> GetHistoryMarkResultAsyncHandler; + typedef Outcome GetIntWholeSummaryOutcome; + typedef std::future GetIntWholeSummaryOutcomeCallable; + typedef std::function&)> GetIntWholeSummaryAsyncHandler; + typedef Outcome GetMarkPersonDetailOutcome; + typedef std::future GetMarkPersonDetailOutcomeCallable; + typedef std::function&)> GetMarkPersonDetailAsyncHandler; + typedef Outcome GetMarkPersonHandlingSummaryOutcome; + typedef std::future GetMarkPersonHandlingSummaryOutcomeCallable; + typedef std::function&)> GetMarkPersonHandlingSummaryAsyncHandler; + typedef Outcome GetMarkQuantityOutcome; + typedef std::future GetMarkQuantityOutcomeCallable; + typedef std::function&)> GetMarkQuantityAsyncHandler; + typedef Outcome GetMarkResultOutcome; + typedef std::future GetMarkResultOutcomeCallable; + typedef std::function&)> GetMarkResultAsyncHandler; + typedef Outcome GetMarkUserDetailOutcome; + typedef std::future GetMarkUserDetailOutcomeCallable; + typedef std::function&)> GetMarkUserDetailAsyncHandler; + typedef Outcome GetMarkUserEfficiencyOutcome; + typedef std::future GetMarkUserEfficiencyOutcomeCallable; + typedef std::function&)> GetMarkUserEfficiencyAsyncHandler; + typedef Outcome GetMarkUserSummaryOutcome; + typedef std::future GetMarkUserSummaryOutcomeCallable; + typedef std::function&)> GetMarkUserSummaryAsyncHandler; + typedef Outcome GetModelByIdOutcome; + typedef std::future GetModelByIdOutcomeCallable; + typedef std::function&)> GetModelByIdAsyncHandler; + typedef Outcome GetOptionTemplateOutcome; + typedef std::future GetOptionTemplateOutcomeCallable; + typedef std::function&)> GetOptionTemplateAsyncHandler; + typedef Outcome GetOrCreateTntInstByBizNoOutcome; + typedef std::future GetOrCreateTntInstByBizNoOutcomeCallable; + typedef std::function&)> GetOrCreateTntInstByBizNoAsyncHandler; + typedef Outcome GetPersonSummaryOutcome; + typedef std::future GetPersonSummaryOutcomeCallable; + typedef std::function&)> GetPersonSummaryAsyncHandler; + typedef Outcome GetSamplingSummaryOutcome; + typedef std::future GetSamplingSummaryOutcomeCallable; + typedef std::function&)> GetSamplingSummaryAsyncHandler; + typedef Outcome GetSubTaskDownloadSystemResultOutcome; + typedef std::future GetSubTaskDownloadSystemResultOutcomeCallable; + typedef std::function&)> GetSubTaskDownloadSystemResultAsyncHandler; + typedef Outcome GetSubTaskDownloadUserResultOutcome; + typedef std::future GetSubTaskDownloadUserResultOutcomeCallable; + typedef std::function&)> GetSubTaskDownloadUserResultAsyncHandler; + typedef Outcome GetSubTaskSummaryOutcome; + typedef std::future GetSubTaskSummaryOutcomeCallable; + typedef std::function&)> GetSubTaskSummaryAsyncHandler; + typedef Outcome GetTaskOutcome; + typedef std::future GetTaskOutcomeCallable; + typedef std::function&)> GetTaskAsyncHandler; + typedef Outcome GetTaskPersonSummaryOutcome; + typedef std::future GetTaskPersonSummaryOutcomeCallable; + typedef std::function&)> GetTaskPersonSummaryAsyncHandler; + typedef Outcome GetTaskProcessInfoOutcome; + typedef std::future GetTaskProcessInfoOutcomeCallable; + typedef std::function&)> GetTaskProcessInfoAsyncHandler; + typedef Outcome GetTaskStatTypesOutcome; + typedef std::future GetTaskStatTypesOutcomeCallable; + typedef std::function&)> GetTaskStatTypesAsyncHandler; + typedef Outcome GetTaskSummaryOutcome; + typedef std::future GetTaskSummaryOutcomeCallable; + typedef std::function&)> GetTaskSummaryAsyncHandler; + typedef Outcome GetTntConfListValueOutcome; + typedef std::future GetTntConfListValueOutcomeCallable; + typedef std::function&)> GetTntConfListValueAsyncHandler; + typedef Outcome GetTntUserRoleOutcome; + typedef std::future GetTntUserRoleOutcomeCallable; + typedef std::function&)> GetTntUserRoleAsyncHandler; + typedef Outcome GetUpdateTimeOutcome; + typedef std::future GetUpdateTimeOutcomeCallable; + typedef std::function&)> GetUpdateTimeAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GetUserMarkItemInfoOutcome; + typedef std::future GetUserMarkItemInfoOutcomeCallable; + typedef std::function&)> GetUserMarkItemInfoAsyncHandler; + typedef Outcome ImportOptionTemplateOutcome; + typedef std::future ImportOptionTemplateOutcomeCallable; + typedef std::function&)> ImportOptionTemplateAsyncHandler; + typedef Outcome InitSamplingUserSubTaskOutcome; + typedef std::future InitSamplingUserSubTaskOutcomeCallable; + typedef std::function&)> InitSamplingUserSubTaskAsyncHandler; + typedef Outcome ListAssignedSubUserTaskOutcome; + typedef std::future ListAssignedSubUserTaskOutcomeCallable; + typedef std::function&)> ListAssignedSubUserTaskAsyncHandler; + typedef Outcome ListCheckTaskOutcome; + typedef std::future ListCheckTaskOutcomeCallable; + typedef std::function&)> ListCheckTaskAsyncHandler; + typedef Outcome ListDatasetFieldsOutcome; + typedef std::future ListDatasetFieldsOutcomeCallable; + typedef std::function&)> ListDatasetFieldsAsyncHandler; + typedef Outcome ListFinishedSubUserTaskOutcome; + typedef std::future ListFinishedSubUserTaskOutcomeCallable; + typedef std::function&)> ListFinishedSubUserTaskAsyncHandler; + typedef Outcome ListMarkableTaskOutcome; + typedef std::future ListMarkableTaskOutcomeCallable; + typedef std::function&)> ListMarkableTaskAsyncHandler; + typedef Outcome ListSamplingHandlerUserOutcome; + typedef std::future ListSamplingHandlerUserOutcomeCallable; + typedef std::function&)> ListSamplingHandlerUserAsyncHandler; + typedef Outcome ListSamplingResultMetaOutcome; + typedef std::future ListSamplingResultMetaOutcomeCallable; + typedef std::function&)> ListSamplingResultMetaAsyncHandler; + typedef Outcome ListSamplingUsersOutcome; + typedef std::future ListSamplingUsersOutcomeCallable; + typedef std::function&)> ListSamplingUsersAsyncHandler; + typedef Outcome ListTntConfigOutcome; + typedef std::future ListTntConfigOutcomeCallable; + typedef std::function&)> ListTntConfigAsyncHandler; + typedef Outcome ListWorkNodeUsersOutcome; + typedef std::future ListWorkNodeUsersOutcomeCallable; + typedef std::function&)> ListWorkNodeUsersAsyncHandler; + typedef Outcome ManualCalReportOutcome; + typedef std::future ManualCalReportOutcomeCallable; + typedef std::function&)> ManualCalReportAsyncHandler; + typedef Outcome MngReleaseUserSubTaskOutcome; + typedef std::future MngReleaseUserSubTaskOutcomeCallable; + typedef std::function&)> MngReleaseUserSubTaskAsyncHandler; + typedef Outcome OfflineTaskOutcome; + typedef std::future OfflineTaskOutcomeCallable; + typedef std::function&)> OfflineTaskAsyncHandler; + typedef Outcome OnlineTaskOutcome; + typedef std::future OnlineTaskOutcomeCallable; + typedef std::function&)> OnlineTaskAsyncHandler; + typedef Outcome PageViewDataMetaOutcome; + typedef std::future PageViewDataMetaOutcomeCallable; + typedef std::function&)> PageViewDataMetaAsyncHandler; + typedef Outcome PageViewDatasetProxyOutcome; + typedef std::future PageViewDatasetProxyOutcomeCallable; + typedef std::function&)> PageViewDatasetProxyAsyncHandler; + typedef Outcome PageViewFlowJobOutcome; + typedef std::future PageViewFlowJobOutcomeCallable; + typedef std::function&)> PageViewFlowJobAsyncHandler; + typedef Outcome PageViewModelOutcome; + typedef std::future PageViewModelOutcomeCallable; + typedef std::function&)> PageViewModelAsyncHandler; + typedef Outcome PageViewMyTntOutcome; + typedef std::future PageViewMyTntOutcomeCallable; + typedef std::function&)> PageViewMyTntAsyncHandler; + typedef Outcome PageViewOptionTemplateOutcome; + typedef std::future PageViewOptionTemplateOutcomeCallable; + typedef std::function&)> PageViewOptionTemplateAsyncHandler; + typedef Outcome PageViewSubTaskItemOutcome; + typedef std::future PageViewSubTaskItemOutcomeCallable; + typedef std::function&)> PageViewSubTaskItemAsyncHandler; + typedef Outcome PageViewTaskOutcome; + typedef std::future PageViewTaskOutcomeCallable; + typedef std::function&)> PageViewTaskAsyncHandler; + typedef Outcome PageViewTntUserOutcome; + typedef std::future PageViewTntUserOutcomeCallable; + typedef std::function&)> PageViewTntUserAsyncHandler; + typedef Outcome PageViewUserOutcome; + typedef std::future PageViewUserOutcomeCallable; + typedef std::function&)> PageViewUserAsyncHandler; + typedef Outcome PageViewUserGroupOutcome; + typedef std::future PageViewUserGroupOutcomeCallable; + typedef std::function&)> PageViewUserGroupAsyncHandler; + typedef Outcome PageviewSubTaskOutcome; + typedef std::future PageviewSubTaskOutcomeCallable; + typedef std::function&)> PageviewSubTaskAsyncHandler; + typedef Outcome PollingSampleMarkItemsOutcome; + typedef std::future PollingSampleMarkItemsOutcomeCallable; + typedef std::function&)> PollingSampleMarkItemsAsyncHandler; + typedef Outcome PreviewTaskTemplateOutcome; + typedef std::future PreviewTaskTemplateOutcomeCallable; + typedef std::function&)> PreviewTaskTemplateAsyncHandler; + typedef Outcome ProxyRobotServiceOutcome; + typedef std::future ProxyRobotServiceOutcomeCallable; + typedef std::function&)> ProxyRobotServiceAsyncHandler; + typedef Outcome QueryMarkableSubTaskOutcome; + typedef std::future QueryMarkableSubTaskOutcomeCallable; + typedef std::function&)> QueryMarkableSubTaskAsyncHandler; + typedef Outcome QuerySampleMarkItemsOutcome; + typedef std::future QuerySampleMarkItemsOutcomeCallable; + typedef std::function&)> QuerySampleMarkItemsAsyncHandler; + typedef Outcome QuerySamplingPoolSizeOutcome; + typedef std::future QuerySamplingPoolSizeOutcomeCallable; + typedef std::function&)> QuerySamplingPoolSizeAsyncHandler; + typedef Outcome QuerySkipUserSubTaskOutcome; + typedef std::future QuerySkipUserSubTaskOutcomeCallable; + typedef std::function&)> QuerySkipUserSubTaskAsyncHandler; + typedef Outcome RejectSamplingTaskOutcome; + typedef std::future RejectSamplingTaskOutcomeCallable; + typedef std::function&)> RejectSamplingTaskAsyncHandler; + typedef Outcome RejectSubTaskOutcome; + typedef std::future RejectSubTaskOutcomeCallable; + typedef std::function&)> RejectSubTaskAsyncHandler; + typedef Outcome ReleaseUserSubTaskOutcome; + typedef std::future ReleaseUserSubTaskOutcomeCallable; + typedef std::function&)> ReleaseUserSubTaskAsyncHandler; + typedef Outcome RemoveMemberOrGroupTaskOutcome; + typedef std::future RemoveMemberOrGroupTaskOutcomeCallable; + typedef std::function&)> RemoveMemberOrGroupTaskAsyncHandler; + typedef Outcome RemoveUserInGroupOutcome; + typedef std::future RemoveUserInGroupOutcomeCallable; + typedef std::function&)> RemoveUserInGroupAsyncHandler; + typedef Outcome RemoveUserInTntOutcome; + typedef std::future RemoveUserInTntOutcomeCallable; + typedef std::function&)> RemoveUserInTntAsyncHandler; + typedef Outcome SamplingSubUserTaskListOutcome; + typedef std::future SamplingSubUserTaskListOutcomeCallable; + typedef std::function&)> SamplingSubUserTaskListAsyncHandler; + typedef Outcome SkipFinishedOutcome; + typedef std::future SkipFinishedOutcomeCallable; + typedef std::function&)> SkipFinishedAsyncHandler; + typedef Outcome SkipUserSubTaskOutcome; + typedef std::future SkipUserSubTaskOutcomeCallable; + typedef std::function&)> SkipUserSubTaskAsyncHandler; + typedef Outcome TaskStageStatOutcome; + typedef std::future TaskStageStatOutcomeCallable; + typedef std::function&)> TaskStageStatAsyncHandler; + typedef Outcome TestRequestOutcome; + typedef std::future TestRequestOutcomeCallable; + typedef std::function&)> TestRequestAsyncHandler; + typedef Outcome TransferUserSubTaskOutcome; + typedef std::future TransferUserSubTaskOutcomeCallable; + typedef std::function&)> TransferUserSubTaskAsyncHandler; + typedef Outcome UnpassFeedbackOutcome; + typedef std::future UnpassFeedbackOutcomeCallable; + typedef std::function&)> UnpassFeedbackAsyncHandler; + typedef Outcome UpdateDatasetStateMsgOutcome; + typedef std::future UpdateDatasetStateMsgOutcomeCallable; + typedef std::function&)> UpdateDatasetStateMsgAsyncHandler; + typedef Outcome UpdateMarkResultOutcome; + typedef std::future UpdateMarkResultOutcomeCallable; + typedef std::function&)> UpdateMarkResultAsyncHandler; + typedef Outcome UpdateMarkResultByAdminOutcome; + typedef std::future UpdateMarkResultByAdminOutcomeCallable; + typedef std::function&)> UpdateMarkResultByAdminAsyncHandler; + typedef Outcome UpdateModelOutcome; + typedef std::future UpdateModelOutcomeCallable; + typedef std::function&)> UpdateModelAsyncHandler; + typedef Outcome UpdateTaskOutcome; + typedef std::future UpdateTaskOutcomeCallable; + typedef std::function&)> UpdateTaskAsyncHandler; + typedef Outcome UpdateTaskDataOutcome; + typedef std::future UpdateTaskDataOutcomeCallable; + typedef std::function&)> UpdateTaskDataAsyncHandler; + typedef Outcome UpdateTaskTemplateOutcome; + typedef std::future UpdateTaskTemplateOutcomeCallable; + typedef std::function&)> UpdateTaskTemplateAsyncHandler; + typedef Outcome UpdateTemplateOutcome; + typedef std::future UpdateTemplateOutcomeCallable; + typedef std::function&)> UpdateTemplateAsyncHandler; + typedef Outcome UpdateUserNameOutcome; + typedef std::future UpdateUserNameOutcomeCallable; + typedef std::function&)> UpdateUserNameAsyncHandler; + typedef Outcome UpdateUserRoleInTntOutcome; + typedef std::future UpdateUserRoleInTntOutcomeCallable; + typedef std::function&)> UpdateUserRoleInTntAsyncHandler; + typedef Outcome UserSubTaskTimerOutcome; + typedef std::future UserSubTaskTimerOutcomeCallable; + typedef std::function&)> UserSubTaskTimerAsyncHandler; + + ItagClient(const Credentials &credentials, const ClientConfiguration &configuration); + ItagClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ItagClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ItagClient(); + AbandonItemOutcome abandonItem(const Model::AbandonItemRequest &request)const; + void abandonItemAsync(const Model::AbandonItemRequest& request, const AbandonItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbandonItemOutcomeCallable abandonItemCallable(const Model::AbandonItemRequest& request) const; + AbandonItemByAdminOutcome abandonItemByAdmin(const Model::AbandonItemByAdminRequest &request)const; + void abandonItemByAdminAsync(const Model::AbandonItemByAdminRequest& request, const AbandonItemByAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbandonItemByAdminOutcomeCallable abandonItemByAdminCallable(const Model::AbandonItemByAdminRequest& request) const; + AcceptSamplingTaskOutcome acceptSamplingTask(const Model::AcceptSamplingTaskRequest &request)const; + void acceptSamplingTaskAsync(const Model::AcceptSamplingTaskRequest& request, const AcceptSamplingTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AcceptSamplingTaskOutcomeCallable acceptSamplingTaskCallable(const Model::AcceptSamplingTaskRequest& request) const; + AddMemberOrGroupTaskOutcome addMemberOrGroupTask(const Model::AddMemberOrGroupTaskRequest &request)const; + void addMemberOrGroupTaskAsync(const Model::AddMemberOrGroupTaskRequest& request, const AddMemberOrGroupTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddMemberOrGroupTaskOutcomeCallable addMemberOrGroupTaskCallable(const Model::AddMemberOrGroupTaskRequest& request) const; + AddUserOutcome addUser(const Model::AddUserRequest &request)const; + void addUserAsync(const Model::AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserOutcomeCallable addUserCallable(const Model::AddUserRequest& request) const; + AddUserToGroupOutcome addUserToGroup(const Model::AddUserToGroupRequest &request)const; + void addUserToGroupAsync(const Model::AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserToGroupOutcomeCallable addUserToGroupCallable(const Model::AddUserToGroupRequest& request) const; + AddUserToTntOutcome addUserToTnt(const Model::AddUserToTntRequest &request)const; + void addUserToTntAsync(const Model::AddUserToTntRequest& request, const AddUserToTntAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserToTntOutcomeCallable addUserToTntCallable(const Model::AddUserToTntRequest& request) const; + AppendDataToDatasetOutcome appendDataToDataset(const Model::AppendDataToDatasetRequest &request)const; + void appendDataToDatasetAsync(const Model::AppendDataToDatasetRequest& request, const AppendDataToDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AppendDataToDatasetOutcomeCallable appendDataToDatasetCallable(const Model::AppendDataToDatasetRequest& request) const; + AsyncDownloadMarkResultOutcome asyncDownloadMarkResult(const Model::AsyncDownloadMarkResultRequest &request)const; + void asyncDownloadMarkResultAsync(const Model::AsyncDownloadMarkResultRequest& request, const AsyncDownloadMarkResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AsyncDownloadMarkResultOutcomeCallable asyncDownloadMarkResultCallable(const Model::AsyncDownloadMarkResultRequest& request) const; + BatchRejectTaskOutcome batchRejectTask(const Model::BatchRejectTaskRequest &request)const; + void batchRejectTaskAsync(const Model::BatchRejectTaskRequest& request, const BatchRejectTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchRejectTaskOutcomeCallable batchRejectTaskCallable(const Model::BatchRejectTaskRequest& request) const; + CanCommitOutcome canCommit(const Model::CanCommitRequest &request)const; + void canCommitAsync(const Model::CanCommitRequest& request, const CanCommitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CanCommitOutcomeCallable canCommitCallable(const Model::CanCommitRequest& request) const; + CheckModelOutcome checkModel(const Model::CheckModelRequest &request)const; + void checkModelAsync(const Model::CheckModelRequest& request, const CheckModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckModelOutcomeCallable checkModelCallable(const Model::CheckModelRequest& request) const; + CommitSubTaskOutcome commitSubTask(const Model::CommitSubTaskRequest &request)const; + void commitSubTaskAsync(const Model::CommitSubTaskRequest& request, const CommitSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommitSubTaskOutcomeCallable commitSubTaskCallable(const Model::CommitSubTaskRequest& request) const; + CreateDatasetOutcome createDataset(const Model::CreateDatasetRequest &request)const; + void createDatasetAsync(const Model::CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatasetOutcomeCallable createDatasetCallable(const Model::CreateDatasetRequest& request) const; + CreateModelOutcome createModel(const Model::CreateModelRequest &request)const; + void createModelAsync(const Model::CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateModelOutcomeCallable createModelCallable(const Model::CreateModelRequest& request) const; + CreateOptionTemplateOutcome createOptionTemplate(const Model::CreateOptionTemplateRequest &request)const; + void createOptionTemplateAsync(const Model::CreateOptionTemplateRequest& request, const CreateOptionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOptionTemplateOutcomeCallable createOptionTemplateCallable(const Model::CreateOptionTemplateRequest& request) const; + CreateOrUpdateTntConfigOutcome createOrUpdateTntConfig(const Model::CreateOrUpdateTntConfigRequest &request)const; + void createOrUpdateTntConfigAsync(const Model::CreateOrUpdateTntConfigRequest& request, const CreateOrUpdateTntConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrUpdateTntConfigOutcomeCallable createOrUpdateTntConfigCallable(const Model::CreateOrUpdateTntConfigRequest& request) const; + CreateTaskOutcome createTask(const Model::CreateTaskRequest &request)const; + void createTaskAsync(const Model::CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTaskOutcomeCallable createTaskCallable(const Model::CreateTaskRequest& request) const; + CreateUserGroupOutcome createUserGroup(const Model::CreateUserGroupRequest &request)const; + void createUserGroupAsync(const Model::CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserGroupOutcomeCallable createUserGroupCallable(const Model::CreateUserGroupRequest& request) const; + DeleteFeedbackOutcome deleteFeedback(const Model::DeleteFeedbackRequest &request)const; + void deleteFeedbackAsync(const Model::DeleteFeedbackRequest& request, const DeleteFeedbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFeedbackOutcomeCallable deleteFeedbackCallable(const Model::DeleteFeedbackRequest& request) const; + DeleteModelOutcome deleteModel(const Model::DeleteModelRequest &request)const; + void deleteModelAsync(const Model::DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteModelOutcomeCallable deleteModelCallable(const Model::DeleteModelRequest& request) const; + DeleteOptionTemplateOutcome deleteOptionTemplate(const Model::DeleteOptionTemplateRequest &request)const; + void deleteOptionTemplateAsync(const Model::DeleteOptionTemplateRequest& request, const DeleteOptionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOptionTemplateOutcomeCallable deleteOptionTemplateCallable(const Model::DeleteOptionTemplateRequest& request) const; + DeleteTaskOutcome deleteTask(const Model::DeleteTaskRequest &request)const; + void deleteTaskAsync(const Model::DeleteTaskRequest& request, const DeleteTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTaskOutcomeCallable deleteTaskCallable(const Model::DeleteTaskRequest& request) const; + DeleteUserGroupOutcome deleteUserGroup(const Model::DeleteUserGroupRequest &request)const; + void deleteUserGroupAsync(const Model::DeleteUserGroupRequest& request, const DeleteUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserGroupOutcomeCallable deleteUserGroupCallable(const Model::DeleteUserGroupRequest& request) const; + DiscardSubTaskOutcome discardSubTask(const Model::DiscardSubTaskRequest &request)const; + void discardSubTaskAsync(const Model::DiscardSubTaskRequest& request, const DiscardSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DiscardSubTaskOutcomeCallable discardSubTaskCallable(const Model::DiscardSubTaskRequest& request) const; + DownloadIntPersonSummaryOutcome downloadIntPersonSummary(const Model::DownloadIntPersonSummaryRequest &request)const; + void downloadIntPersonSummaryAsync(const Model::DownloadIntPersonSummaryRequest& request, const DownloadIntPersonSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadIntPersonSummaryOutcomeCallable downloadIntPersonSummaryCallable(const Model::DownloadIntPersonSummaryRequest& request) const; + ExportOptionTemplateOutcome exportOptionTemplate(const Model::ExportOptionTemplateRequest &request)const; + void exportOptionTemplateAsync(const Model::ExportOptionTemplateRequest& request, const ExportOptionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportOptionTemplateOutcomeCallable exportOptionTemplateCallable(const Model::ExportOptionTemplateRequest& request) const; + ExtendUserAuthInTaskOutcome extendUserAuthInTask(const Model::ExtendUserAuthInTaskRequest &request)const; + void extendUserAuthInTaskAsync(const Model::ExtendUserAuthInTaskRequest& request, const ExtendUserAuthInTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExtendUserAuthInTaskOutcomeCallable extendUserAuthInTaskCallable(const Model::ExtendUserAuthInTaskRequest& request) const; + FetchVideoMarkResultOutcome fetchVideoMarkResult(const Model::FetchVideoMarkResultRequest &request)const; + void fetchVideoMarkResultAsync(const Model::FetchVideoMarkResultRequest& request, const FetchVideoMarkResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FetchVideoMarkResultOutcomeCallable fetchVideoMarkResultCallable(const Model::FetchVideoMarkResultRequest& request) const; + FlowInstanceCallbackOutcome flowInstanceCallback(const Model::FlowInstanceCallbackRequest &request)const; + void flowInstanceCallbackAsync(const Model::FlowInstanceCallbackRequest& request, const FlowInstanceCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FlowInstanceCallbackOutcomeCallable flowInstanceCallbackCallable(const Model::FlowInstanceCallbackRequest& request) const; + GetAssignedCheckTaskSummaryOutcome getAssignedCheckTaskSummary(const Model::GetAssignedCheckTaskSummaryRequest &request)const; + void getAssignedCheckTaskSummaryAsync(const Model::GetAssignedCheckTaskSummaryRequest& request, const GetAssignedCheckTaskSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAssignedCheckTaskSummaryOutcomeCallable getAssignedCheckTaskSummaryCallable(const Model::GetAssignedCheckTaskSummaryRequest& request) const; + GetBizPersonSummaryOutcome getBizPersonSummary(const Model::GetBizPersonSummaryRequest &request)const; + void getBizPersonSummaryAsync(const Model::GetBizPersonSummaryRequest& request, const GetBizPersonSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBizPersonSummaryOutcomeCallable getBizPersonSummaryCallable(const Model::GetBizPersonSummaryRequest& request) const; + GetBizSummaryOutcome getBizSummary(const Model::GetBizSummaryRequest &request)const; + void getBizSummaryAsync(const Model::GetBizSummaryRequest& request, const GetBizSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBizSummaryOutcomeCallable getBizSummaryCallable(const Model::GetBizSummaryRequest& request) const; + GetCheckUserDetailOutcome getCheckUserDetail(const Model::GetCheckUserDetailRequest &request)const; + void getCheckUserDetailAsync(const Model::GetCheckUserDetailRequest& request, const GetCheckUserDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCheckUserDetailOutcomeCallable getCheckUserDetailCallable(const Model::GetCheckUserDetailRequest& request) const; + GetCheckUserEfficiencyOutcome getCheckUserEfficiency(const Model::GetCheckUserEfficiencyRequest &request)const; + void getCheckUserEfficiencyAsync(const Model::GetCheckUserEfficiencyRequest& request, const GetCheckUserEfficiencyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCheckUserEfficiencyOutcomeCallable getCheckUserEfficiencyCallable(const Model::GetCheckUserEfficiencyRequest& request) const; + GetCheckUserSummaryOutcome getCheckUserSummary(const Model::GetCheckUserSummaryRequest &request)const; + void getCheckUserSummaryAsync(const Model::GetCheckUserSummaryRequest& request, const GetCheckUserSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCheckUserSummaryOutcomeCallable getCheckUserSummaryCallable(const Model::GetCheckUserSummaryRequest& request) const; + GetCommitSummaryOutcome getCommitSummary(const Model::GetCommitSummaryRequest &request)const; + void getCommitSummaryAsync(const Model::GetCommitSummaryRequest& request, const GetCommitSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCommitSummaryOutcomeCallable getCommitSummaryCallable(const Model::GetCommitSummaryRequest& request) const; + GetDatasetProxyOutcome getDatasetProxy(const Model::GetDatasetProxyRequest &request)const; + void getDatasetProxyAsync(const Model::GetDatasetProxyRequest& request, const GetDatasetProxyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDatasetProxyOutcomeCallable getDatasetProxyCallable(const Model::GetDatasetProxyRequest& request) const; + GetFlowJobOutcome getFlowJob(const Model::GetFlowJobRequest &request)const; + void getFlowJobAsync(const Model::GetFlowJobRequest& request, const GetFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFlowJobOutcomeCallable getFlowJobCallable(const Model::GetFlowJobRequest& request) const; + GetGroupHandlingSummaryOutcome getGroupHandlingSummary(const Model::GetGroupHandlingSummaryRequest &request)const; + void getGroupHandlingSummaryAsync(const Model::GetGroupHandlingSummaryRequest& request, const GetGroupHandlingSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGroupHandlingSummaryOutcomeCallable getGroupHandlingSummaryCallable(const Model::GetGroupHandlingSummaryRequest& request) const; + GetGroupTaskDetailOutcome getGroupTaskDetail(const Model::GetGroupTaskDetailRequest &request)const; + void getGroupTaskDetailAsync(const Model::GetGroupTaskDetailRequest& request, const GetGroupTaskDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGroupTaskDetailOutcomeCallable getGroupTaskDetailCallable(const Model::GetGroupTaskDetailRequest& request) const; + GetGroupTaskPersonDetailOutcome getGroupTaskPersonDetail(const Model::GetGroupTaskPersonDetailRequest &request)const; + void getGroupTaskPersonDetailAsync(const Model::GetGroupTaskPersonDetailRequest& request, const GetGroupTaskPersonDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGroupTaskPersonDetailOutcomeCallable getGroupTaskPersonDetailCallable(const Model::GetGroupTaskPersonDetailRequest& request) const; + GetHistoryMarkResultOutcome getHistoryMarkResult(const Model::GetHistoryMarkResultRequest &request)const; + void getHistoryMarkResultAsync(const Model::GetHistoryMarkResultRequest& request, const GetHistoryMarkResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHistoryMarkResultOutcomeCallable getHistoryMarkResultCallable(const Model::GetHistoryMarkResultRequest& request) const; + GetIntWholeSummaryOutcome getIntWholeSummary(const Model::GetIntWholeSummaryRequest &request)const; + void getIntWholeSummaryAsync(const Model::GetIntWholeSummaryRequest& request, const GetIntWholeSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetIntWholeSummaryOutcomeCallable getIntWholeSummaryCallable(const Model::GetIntWholeSummaryRequest& request) const; + GetMarkPersonDetailOutcome getMarkPersonDetail(const Model::GetMarkPersonDetailRequest &request)const; + void getMarkPersonDetailAsync(const Model::GetMarkPersonDetailRequest& request, const GetMarkPersonDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkPersonDetailOutcomeCallable getMarkPersonDetailCallable(const Model::GetMarkPersonDetailRequest& request) const; + GetMarkPersonHandlingSummaryOutcome getMarkPersonHandlingSummary(const Model::GetMarkPersonHandlingSummaryRequest &request)const; + void getMarkPersonHandlingSummaryAsync(const Model::GetMarkPersonHandlingSummaryRequest& request, const GetMarkPersonHandlingSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkPersonHandlingSummaryOutcomeCallable getMarkPersonHandlingSummaryCallable(const Model::GetMarkPersonHandlingSummaryRequest& request) const; + GetMarkQuantityOutcome getMarkQuantity(const Model::GetMarkQuantityRequest &request)const; + void getMarkQuantityAsync(const Model::GetMarkQuantityRequest& request, const GetMarkQuantityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkQuantityOutcomeCallable getMarkQuantityCallable(const Model::GetMarkQuantityRequest& request) const; + GetMarkResultOutcome getMarkResult(const Model::GetMarkResultRequest &request)const; + void getMarkResultAsync(const Model::GetMarkResultRequest& request, const GetMarkResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkResultOutcomeCallable getMarkResultCallable(const Model::GetMarkResultRequest& request) const; + GetMarkUserDetailOutcome getMarkUserDetail(const Model::GetMarkUserDetailRequest &request)const; + void getMarkUserDetailAsync(const Model::GetMarkUserDetailRequest& request, const GetMarkUserDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkUserDetailOutcomeCallable getMarkUserDetailCallable(const Model::GetMarkUserDetailRequest& request) const; + GetMarkUserEfficiencyOutcome getMarkUserEfficiency(const Model::GetMarkUserEfficiencyRequest &request)const; + void getMarkUserEfficiencyAsync(const Model::GetMarkUserEfficiencyRequest& request, const GetMarkUserEfficiencyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkUserEfficiencyOutcomeCallable getMarkUserEfficiencyCallable(const Model::GetMarkUserEfficiencyRequest& request) const; + GetMarkUserSummaryOutcome getMarkUserSummary(const Model::GetMarkUserSummaryRequest &request)const; + void getMarkUserSummaryAsync(const Model::GetMarkUserSummaryRequest& request, const GetMarkUserSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMarkUserSummaryOutcomeCallable getMarkUserSummaryCallable(const Model::GetMarkUserSummaryRequest& request) const; + GetModelByIdOutcome getModelById(const Model::GetModelByIdRequest &request)const; + void getModelByIdAsync(const Model::GetModelByIdRequest& request, const GetModelByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetModelByIdOutcomeCallable getModelByIdCallable(const Model::GetModelByIdRequest& request) const; + GetOptionTemplateOutcome getOptionTemplate(const Model::GetOptionTemplateRequest &request)const; + void getOptionTemplateAsync(const Model::GetOptionTemplateRequest& request, const GetOptionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOptionTemplateOutcomeCallable getOptionTemplateCallable(const Model::GetOptionTemplateRequest& request) const; + GetOrCreateTntInstByBizNoOutcome getOrCreateTntInstByBizNo(const Model::GetOrCreateTntInstByBizNoRequest &request)const; + void getOrCreateTntInstByBizNoAsync(const Model::GetOrCreateTntInstByBizNoRequest& request, const GetOrCreateTntInstByBizNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrCreateTntInstByBizNoOutcomeCallable getOrCreateTntInstByBizNoCallable(const Model::GetOrCreateTntInstByBizNoRequest& request) const; + GetPersonSummaryOutcome getPersonSummary(const Model::GetPersonSummaryRequest &request)const; + void getPersonSummaryAsync(const Model::GetPersonSummaryRequest& request, const GetPersonSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPersonSummaryOutcomeCallable getPersonSummaryCallable(const Model::GetPersonSummaryRequest& request) const; + GetSamplingSummaryOutcome getSamplingSummary(const Model::GetSamplingSummaryRequest &request)const; + void getSamplingSummaryAsync(const Model::GetSamplingSummaryRequest& request, const GetSamplingSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSamplingSummaryOutcomeCallable getSamplingSummaryCallable(const Model::GetSamplingSummaryRequest& request) const; + GetSubTaskDownloadSystemResultOutcome getSubTaskDownloadSystemResult(const Model::GetSubTaskDownloadSystemResultRequest &request)const; + void getSubTaskDownloadSystemResultAsync(const Model::GetSubTaskDownloadSystemResultRequest& request, const GetSubTaskDownloadSystemResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSubTaskDownloadSystemResultOutcomeCallable getSubTaskDownloadSystemResultCallable(const Model::GetSubTaskDownloadSystemResultRequest& request) const; + GetSubTaskDownloadUserResultOutcome getSubTaskDownloadUserResult(const Model::GetSubTaskDownloadUserResultRequest &request)const; + void getSubTaskDownloadUserResultAsync(const Model::GetSubTaskDownloadUserResultRequest& request, const GetSubTaskDownloadUserResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSubTaskDownloadUserResultOutcomeCallable getSubTaskDownloadUserResultCallable(const Model::GetSubTaskDownloadUserResultRequest& request) const; + GetSubTaskSummaryOutcome getSubTaskSummary(const Model::GetSubTaskSummaryRequest &request)const; + void getSubTaskSummaryAsync(const Model::GetSubTaskSummaryRequest& request, const GetSubTaskSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSubTaskSummaryOutcomeCallable getSubTaskSummaryCallable(const Model::GetSubTaskSummaryRequest& request) const; + GetTaskOutcome getTask(const Model::GetTaskRequest &request)const; + void getTaskAsync(const Model::GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskOutcomeCallable getTaskCallable(const Model::GetTaskRequest& request) const; + GetTaskPersonSummaryOutcome getTaskPersonSummary(const Model::GetTaskPersonSummaryRequest &request)const; + void getTaskPersonSummaryAsync(const Model::GetTaskPersonSummaryRequest& request, const GetTaskPersonSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskPersonSummaryOutcomeCallable getTaskPersonSummaryCallable(const Model::GetTaskPersonSummaryRequest& request) const; + GetTaskProcessInfoOutcome getTaskProcessInfo(const Model::GetTaskProcessInfoRequest &request)const; + void getTaskProcessInfoAsync(const Model::GetTaskProcessInfoRequest& request, const GetTaskProcessInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskProcessInfoOutcomeCallable getTaskProcessInfoCallable(const Model::GetTaskProcessInfoRequest& request) const; + GetTaskStatTypesOutcome getTaskStatTypes(const Model::GetTaskStatTypesRequest &request)const; + void getTaskStatTypesAsync(const Model::GetTaskStatTypesRequest& request, const GetTaskStatTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskStatTypesOutcomeCallable getTaskStatTypesCallable(const Model::GetTaskStatTypesRequest& request) const; + GetTaskSummaryOutcome getTaskSummary(const Model::GetTaskSummaryRequest &request)const; + void getTaskSummaryAsync(const Model::GetTaskSummaryRequest& request, const GetTaskSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskSummaryOutcomeCallable getTaskSummaryCallable(const Model::GetTaskSummaryRequest& request) const; + GetTntConfListValueOutcome getTntConfListValue(const Model::GetTntConfListValueRequest &request)const; + void getTntConfListValueAsync(const Model::GetTntConfListValueRequest& request, const GetTntConfListValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTntConfListValueOutcomeCallable getTntConfListValueCallable(const Model::GetTntConfListValueRequest& request) const; + GetTntUserRoleOutcome getTntUserRole(const Model::GetTntUserRoleRequest &request)const; + void getTntUserRoleAsync(const Model::GetTntUserRoleRequest& request, const GetTntUserRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTntUserRoleOutcomeCallable getTntUserRoleCallable(const Model::GetTntUserRoleRequest& request) const; + GetUpdateTimeOutcome getUpdateTime(const Model::GetUpdateTimeRequest &request)const; + void getUpdateTimeAsync(const Model::GetUpdateTimeRequest& request, const GetUpdateTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUpdateTimeOutcomeCallable getUpdateTimeCallable(const Model::GetUpdateTimeRequest& request) const; + GetUserOutcome getUser(const Model::GetUserRequest &request)const; + void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + GetUserMarkItemInfoOutcome getUserMarkItemInfo(const Model::GetUserMarkItemInfoRequest &request)const; + void getUserMarkItemInfoAsync(const Model::GetUserMarkItemInfoRequest& request, const GetUserMarkItemInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserMarkItemInfoOutcomeCallable getUserMarkItemInfoCallable(const Model::GetUserMarkItemInfoRequest& request) const; + ImportOptionTemplateOutcome importOptionTemplate(const Model::ImportOptionTemplateRequest &request)const; + void importOptionTemplateAsync(const Model::ImportOptionTemplateRequest& request, const ImportOptionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportOptionTemplateOutcomeCallable importOptionTemplateCallable(const Model::ImportOptionTemplateRequest& request) const; + InitSamplingUserSubTaskOutcome initSamplingUserSubTask(const Model::InitSamplingUserSubTaskRequest &request)const; + void initSamplingUserSubTaskAsync(const Model::InitSamplingUserSubTaskRequest& request, const InitSamplingUserSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitSamplingUserSubTaskOutcomeCallable initSamplingUserSubTaskCallable(const Model::InitSamplingUserSubTaskRequest& request) const; + ListAssignedSubUserTaskOutcome listAssignedSubUserTask(const Model::ListAssignedSubUserTaskRequest &request)const; + void listAssignedSubUserTaskAsync(const Model::ListAssignedSubUserTaskRequest& request, const ListAssignedSubUserTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAssignedSubUserTaskOutcomeCallable listAssignedSubUserTaskCallable(const Model::ListAssignedSubUserTaskRequest& request) const; + ListCheckTaskOutcome listCheckTask(const Model::ListCheckTaskRequest &request)const; + void listCheckTaskAsync(const Model::ListCheckTaskRequest& request, const ListCheckTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCheckTaskOutcomeCallable listCheckTaskCallable(const Model::ListCheckTaskRequest& request) const; + ListDatasetFieldsOutcome listDatasetFields(const Model::ListDatasetFieldsRequest &request)const; + void listDatasetFieldsAsync(const Model::ListDatasetFieldsRequest& request, const ListDatasetFieldsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDatasetFieldsOutcomeCallable listDatasetFieldsCallable(const Model::ListDatasetFieldsRequest& request) const; + ListFinishedSubUserTaskOutcome listFinishedSubUserTask(const Model::ListFinishedSubUserTaskRequest &request)const; + void listFinishedSubUserTaskAsync(const Model::ListFinishedSubUserTaskRequest& request, const ListFinishedSubUserTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFinishedSubUserTaskOutcomeCallable listFinishedSubUserTaskCallable(const Model::ListFinishedSubUserTaskRequest& request) const; + ListMarkableTaskOutcome listMarkableTask(const Model::ListMarkableTaskRequest &request)const; + void listMarkableTaskAsync(const Model::ListMarkableTaskRequest& request, const ListMarkableTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMarkableTaskOutcomeCallable listMarkableTaskCallable(const Model::ListMarkableTaskRequest& request) const; + ListSamplingHandlerUserOutcome listSamplingHandlerUser(const Model::ListSamplingHandlerUserRequest &request)const; + void listSamplingHandlerUserAsync(const Model::ListSamplingHandlerUserRequest& request, const ListSamplingHandlerUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSamplingHandlerUserOutcomeCallable listSamplingHandlerUserCallable(const Model::ListSamplingHandlerUserRequest& request) const; + ListSamplingResultMetaOutcome listSamplingResultMeta(const Model::ListSamplingResultMetaRequest &request)const; + void listSamplingResultMetaAsync(const Model::ListSamplingResultMetaRequest& request, const ListSamplingResultMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSamplingResultMetaOutcomeCallable listSamplingResultMetaCallable(const Model::ListSamplingResultMetaRequest& request) const; + ListSamplingUsersOutcome listSamplingUsers(const Model::ListSamplingUsersRequest &request)const; + void listSamplingUsersAsync(const Model::ListSamplingUsersRequest& request, const ListSamplingUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSamplingUsersOutcomeCallable listSamplingUsersCallable(const Model::ListSamplingUsersRequest& request) const; + ListTntConfigOutcome listTntConfig(const Model::ListTntConfigRequest &request)const; + void listTntConfigAsync(const Model::ListTntConfigRequest& request, const ListTntConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTntConfigOutcomeCallable listTntConfigCallable(const Model::ListTntConfigRequest& request) const; + ListWorkNodeUsersOutcome listWorkNodeUsers(const Model::ListWorkNodeUsersRequest &request)const; + void listWorkNodeUsersAsync(const Model::ListWorkNodeUsersRequest& request, const ListWorkNodeUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkNodeUsersOutcomeCallable listWorkNodeUsersCallable(const Model::ListWorkNodeUsersRequest& request) const; + ManualCalReportOutcome manualCalReport(const Model::ManualCalReportRequest &request)const; + void manualCalReportAsync(const Model::ManualCalReportRequest& request, const ManualCalReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ManualCalReportOutcomeCallable manualCalReportCallable(const Model::ManualCalReportRequest& request) const; + MngReleaseUserSubTaskOutcome mngReleaseUserSubTask(const Model::MngReleaseUserSubTaskRequest &request)const; + void mngReleaseUserSubTaskAsync(const Model::MngReleaseUserSubTaskRequest& request, const MngReleaseUserSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MngReleaseUserSubTaskOutcomeCallable mngReleaseUserSubTaskCallable(const Model::MngReleaseUserSubTaskRequest& request) const; + OfflineTaskOutcome offlineTask(const Model::OfflineTaskRequest &request)const; + void offlineTaskAsync(const Model::OfflineTaskRequest& request, const OfflineTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OfflineTaskOutcomeCallable offlineTaskCallable(const Model::OfflineTaskRequest& request) const; + OnlineTaskOutcome onlineTask(const Model::OnlineTaskRequest &request)const; + void onlineTaskAsync(const Model::OnlineTaskRequest& request, const OnlineTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OnlineTaskOutcomeCallable onlineTaskCallable(const Model::OnlineTaskRequest& request) const; + PageViewDataMetaOutcome pageViewDataMeta(const Model::PageViewDataMetaRequest &request)const; + void pageViewDataMetaAsync(const Model::PageViewDataMetaRequest& request, const PageViewDataMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewDataMetaOutcomeCallable pageViewDataMetaCallable(const Model::PageViewDataMetaRequest& request) const; + PageViewDatasetProxyOutcome pageViewDatasetProxy(const Model::PageViewDatasetProxyRequest &request)const; + void pageViewDatasetProxyAsync(const Model::PageViewDatasetProxyRequest& request, const PageViewDatasetProxyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewDatasetProxyOutcomeCallable pageViewDatasetProxyCallable(const Model::PageViewDatasetProxyRequest& request) const; + PageViewFlowJobOutcome pageViewFlowJob(const Model::PageViewFlowJobRequest &request)const; + void pageViewFlowJobAsync(const Model::PageViewFlowJobRequest& request, const PageViewFlowJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewFlowJobOutcomeCallable pageViewFlowJobCallable(const Model::PageViewFlowJobRequest& request) const; + PageViewModelOutcome pageViewModel(const Model::PageViewModelRequest &request)const; + void pageViewModelAsync(const Model::PageViewModelRequest& request, const PageViewModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewModelOutcomeCallable pageViewModelCallable(const Model::PageViewModelRequest& request) const; + PageViewMyTntOutcome pageViewMyTnt(const Model::PageViewMyTntRequest &request)const; + void pageViewMyTntAsync(const Model::PageViewMyTntRequest& request, const PageViewMyTntAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewMyTntOutcomeCallable pageViewMyTntCallable(const Model::PageViewMyTntRequest& request) const; + PageViewOptionTemplateOutcome pageViewOptionTemplate(const Model::PageViewOptionTemplateRequest &request)const; + void pageViewOptionTemplateAsync(const Model::PageViewOptionTemplateRequest& request, const PageViewOptionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewOptionTemplateOutcomeCallable pageViewOptionTemplateCallable(const Model::PageViewOptionTemplateRequest& request) const; + PageViewSubTaskItemOutcome pageViewSubTaskItem(const Model::PageViewSubTaskItemRequest &request)const; + void pageViewSubTaskItemAsync(const Model::PageViewSubTaskItemRequest& request, const PageViewSubTaskItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewSubTaskItemOutcomeCallable pageViewSubTaskItemCallable(const Model::PageViewSubTaskItemRequest& request) const; + PageViewTaskOutcome pageViewTask(const Model::PageViewTaskRequest &request)const; + void pageViewTaskAsync(const Model::PageViewTaskRequest& request, const PageViewTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewTaskOutcomeCallable pageViewTaskCallable(const Model::PageViewTaskRequest& request) const; + PageViewTntUserOutcome pageViewTntUser(const Model::PageViewTntUserRequest &request)const; + void pageViewTntUserAsync(const Model::PageViewTntUserRequest& request, const PageViewTntUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewTntUserOutcomeCallable pageViewTntUserCallable(const Model::PageViewTntUserRequest& request) const; + PageViewUserOutcome pageViewUser(const Model::PageViewUserRequest &request)const; + void pageViewUserAsync(const Model::PageViewUserRequest& request, const PageViewUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewUserOutcomeCallable pageViewUserCallable(const Model::PageViewUserRequest& request) const; + PageViewUserGroupOutcome pageViewUserGroup(const Model::PageViewUserGroupRequest &request)const; + void pageViewUserGroupAsync(const Model::PageViewUserGroupRequest& request, const PageViewUserGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageViewUserGroupOutcomeCallable pageViewUserGroupCallable(const Model::PageViewUserGroupRequest& request) const; + PageviewSubTaskOutcome pageviewSubTask(const Model::PageviewSubTaskRequest &request)const; + void pageviewSubTaskAsync(const Model::PageviewSubTaskRequest& request, const PageviewSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PageviewSubTaskOutcomeCallable pageviewSubTaskCallable(const Model::PageviewSubTaskRequest& request) const; + PollingSampleMarkItemsOutcome pollingSampleMarkItems(const Model::PollingSampleMarkItemsRequest &request)const; + void pollingSampleMarkItemsAsync(const Model::PollingSampleMarkItemsRequest& request, const PollingSampleMarkItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PollingSampleMarkItemsOutcomeCallable pollingSampleMarkItemsCallable(const Model::PollingSampleMarkItemsRequest& request) const; + PreviewTaskTemplateOutcome previewTaskTemplate(const Model::PreviewTaskTemplateRequest &request)const; + void previewTaskTemplateAsync(const Model::PreviewTaskTemplateRequest& request, const PreviewTaskTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreviewTaskTemplateOutcomeCallable previewTaskTemplateCallable(const Model::PreviewTaskTemplateRequest& request) const; + ProxyRobotServiceOutcome proxyRobotService(const Model::ProxyRobotServiceRequest &request)const; + void proxyRobotServiceAsync(const Model::ProxyRobotServiceRequest& request, const ProxyRobotServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ProxyRobotServiceOutcomeCallable proxyRobotServiceCallable(const Model::ProxyRobotServiceRequest& request) const; + QueryMarkableSubTaskOutcome queryMarkableSubTask(const Model::QueryMarkableSubTaskRequest &request)const; + void queryMarkableSubTaskAsync(const Model::QueryMarkableSubTaskRequest& request, const QueryMarkableSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMarkableSubTaskOutcomeCallable queryMarkableSubTaskCallable(const Model::QueryMarkableSubTaskRequest& request) const; + QuerySampleMarkItemsOutcome querySampleMarkItems(const Model::QuerySampleMarkItemsRequest &request)const; + void querySampleMarkItemsAsync(const Model::QuerySampleMarkItemsRequest& request, const QuerySampleMarkItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySampleMarkItemsOutcomeCallable querySampleMarkItemsCallable(const Model::QuerySampleMarkItemsRequest& request) const; + QuerySamplingPoolSizeOutcome querySamplingPoolSize(const Model::QuerySamplingPoolSizeRequest &request)const; + void querySamplingPoolSizeAsync(const Model::QuerySamplingPoolSizeRequest& request, const QuerySamplingPoolSizeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySamplingPoolSizeOutcomeCallable querySamplingPoolSizeCallable(const Model::QuerySamplingPoolSizeRequest& request) const; + QuerySkipUserSubTaskOutcome querySkipUserSubTask(const Model::QuerySkipUserSubTaskRequest &request)const; + void querySkipUserSubTaskAsync(const Model::QuerySkipUserSubTaskRequest& request, const QuerySkipUserSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySkipUserSubTaskOutcomeCallable querySkipUserSubTaskCallable(const Model::QuerySkipUserSubTaskRequest& request) const; + RejectSamplingTaskOutcome rejectSamplingTask(const Model::RejectSamplingTaskRequest &request)const; + void rejectSamplingTaskAsync(const Model::RejectSamplingTaskRequest& request, const RejectSamplingTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RejectSamplingTaskOutcomeCallable rejectSamplingTaskCallable(const Model::RejectSamplingTaskRequest& request) const; + RejectSubTaskOutcome rejectSubTask(const Model::RejectSubTaskRequest &request)const; + void rejectSubTaskAsync(const Model::RejectSubTaskRequest& request, const RejectSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RejectSubTaskOutcomeCallable rejectSubTaskCallable(const Model::RejectSubTaskRequest& request) const; + ReleaseUserSubTaskOutcome releaseUserSubTask(const Model::ReleaseUserSubTaskRequest &request)const; + void releaseUserSubTaskAsync(const Model::ReleaseUserSubTaskRequest& request, const ReleaseUserSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseUserSubTaskOutcomeCallable releaseUserSubTaskCallable(const Model::ReleaseUserSubTaskRequest& request) const; + RemoveMemberOrGroupTaskOutcome removeMemberOrGroupTask(const Model::RemoveMemberOrGroupTaskRequest &request)const; + void removeMemberOrGroupTaskAsync(const Model::RemoveMemberOrGroupTaskRequest& request, const RemoveMemberOrGroupTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveMemberOrGroupTaskOutcomeCallable removeMemberOrGroupTaskCallable(const Model::RemoveMemberOrGroupTaskRequest& request) const; + RemoveUserInGroupOutcome removeUserInGroup(const Model::RemoveUserInGroupRequest &request)const; + void removeUserInGroupAsync(const Model::RemoveUserInGroupRequest& request, const RemoveUserInGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUserInGroupOutcomeCallable removeUserInGroupCallable(const Model::RemoveUserInGroupRequest& request) const; + RemoveUserInTntOutcome removeUserInTnt(const Model::RemoveUserInTntRequest &request)const; + void removeUserInTntAsync(const Model::RemoveUserInTntRequest& request, const RemoveUserInTntAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveUserInTntOutcomeCallable removeUserInTntCallable(const Model::RemoveUserInTntRequest& request) const; + SamplingSubUserTaskListOutcome samplingSubUserTaskList(const Model::SamplingSubUserTaskListRequest &request)const; + void samplingSubUserTaskListAsync(const Model::SamplingSubUserTaskListRequest& request, const SamplingSubUserTaskListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SamplingSubUserTaskListOutcomeCallable samplingSubUserTaskListCallable(const Model::SamplingSubUserTaskListRequest& request) const; + SkipFinishedOutcome skipFinished(const Model::SkipFinishedRequest &request)const; + void skipFinishedAsync(const Model::SkipFinishedRequest& request, const SkipFinishedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SkipFinishedOutcomeCallable skipFinishedCallable(const Model::SkipFinishedRequest& request) const; + SkipUserSubTaskOutcome skipUserSubTask(const Model::SkipUserSubTaskRequest &request)const; + void skipUserSubTaskAsync(const Model::SkipUserSubTaskRequest& request, const SkipUserSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SkipUserSubTaskOutcomeCallable skipUserSubTaskCallable(const Model::SkipUserSubTaskRequest& request) const; + TaskStageStatOutcome taskStageStat(const Model::TaskStageStatRequest &request)const; + void taskStageStatAsync(const Model::TaskStageStatRequest& request, const TaskStageStatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TaskStageStatOutcomeCallable taskStageStatCallable(const Model::TaskStageStatRequest& request) const; + TestRequestOutcome testRequest(const Model::TestRequestRequest &request)const; + void testRequestAsync(const Model::TestRequestRequest& request, const TestRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TestRequestOutcomeCallable testRequestCallable(const Model::TestRequestRequest& request) const; + TransferUserSubTaskOutcome transferUserSubTask(const Model::TransferUserSubTaskRequest &request)const; + void transferUserSubTaskAsync(const Model::TransferUserSubTaskRequest& request, const TransferUserSubTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferUserSubTaskOutcomeCallable transferUserSubTaskCallable(const Model::TransferUserSubTaskRequest& request) const; + UnpassFeedbackOutcome unpassFeedback(const Model::UnpassFeedbackRequest &request)const; + void unpassFeedbackAsync(const Model::UnpassFeedbackRequest& request, const UnpassFeedbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnpassFeedbackOutcomeCallable unpassFeedbackCallable(const Model::UnpassFeedbackRequest& request) const; + UpdateDatasetStateMsgOutcome updateDatasetStateMsg(const Model::UpdateDatasetStateMsgRequest &request)const; + void updateDatasetStateMsgAsync(const Model::UpdateDatasetStateMsgRequest& request, const UpdateDatasetStateMsgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDatasetStateMsgOutcomeCallable updateDatasetStateMsgCallable(const Model::UpdateDatasetStateMsgRequest& request) const; + UpdateMarkResultOutcome updateMarkResult(const Model::UpdateMarkResultRequest &request)const; + void updateMarkResultAsync(const Model::UpdateMarkResultRequest& request, const UpdateMarkResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMarkResultOutcomeCallable updateMarkResultCallable(const Model::UpdateMarkResultRequest& request) const; + UpdateMarkResultByAdminOutcome updateMarkResultByAdmin(const Model::UpdateMarkResultByAdminRequest &request)const; + void updateMarkResultByAdminAsync(const Model::UpdateMarkResultByAdminRequest& request, const UpdateMarkResultByAdminAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMarkResultByAdminOutcomeCallable updateMarkResultByAdminCallable(const Model::UpdateMarkResultByAdminRequest& request) const; + UpdateModelOutcome updateModel(const Model::UpdateModelRequest &request)const; + void updateModelAsync(const Model::UpdateModelRequest& request, const UpdateModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateModelOutcomeCallable updateModelCallable(const Model::UpdateModelRequest& request) const; + UpdateTaskOutcome updateTask(const Model::UpdateTaskRequest &request)const; + void updateTaskAsync(const Model::UpdateTaskRequest& request, const UpdateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTaskOutcomeCallable updateTaskCallable(const Model::UpdateTaskRequest& request) const; + UpdateTaskDataOutcome updateTaskData(const Model::UpdateTaskDataRequest &request)const; + void updateTaskDataAsync(const Model::UpdateTaskDataRequest& request, const UpdateTaskDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTaskDataOutcomeCallable updateTaskDataCallable(const Model::UpdateTaskDataRequest& request) const; + UpdateTaskTemplateOutcome updateTaskTemplate(const Model::UpdateTaskTemplateRequest &request)const; + void updateTaskTemplateAsync(const Model::UpdateTaskTemplateRequest& request, const UpdateTaskTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTaskTemplateOutcomeCallable updateTaskTemplateCallable(const Model::UpdateTaskTemplateRequest& request) const; + UpdateTemplateOutcome updateTemplate(const Model::UpdateTemplateRequest &request)const; + void updateTemplateAsync(const Model::UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTemplateOutcomeCallable updateTemplateCallable(const Model::UpdateTemplateRequest& request) const; + UpdateUserNameOutcome updateUserName(const Model::UpdateUserNameRequest &request)const; + void updateUserNameAsync(const Model::UpdateUserNameRequest& request, const UpdateUserNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserNameOutcomeCallable updateUserNameCallable(const Model::UpdateUserNameRequest& request) const; + UpdateUserRoleInTntOutcome updateUserRoleInTnt(const Model::UpdateUserRoleInTntRequest &request)const; + void updateUserRoleInTntAsync(const Model::UpdateUserRoleInTntRequest& request, const UpdateUserRoleInTntAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserRoleInTntOutcomeCallable updateUserRoleInTntCallable(const Model::UpdateUserRoleInTntRequest& request) const; + UserSubTaskTimerOutcome userSubTaskTimer(const Model::UserSubTaskTimerRequest &request)const; + void userSubTaskTimerAsync(const Model::UserSubTaskTimerRequest& request, const UserSubTaskTimerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UserSubTaskTimerOutcomeCallable userSubTaskTimerCallable(const Model::UserSubTaskTimerRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ITAG_ITAGCLIENT_H_ diff --git a/itag/include/alibabacloud/itag/ItagExport.h b/itag/include/alibabacloud/itag/ItagExport.h new file mode 100644 index 000000000..526adc237 --- /dev/null +++ b/itag/include/alibabacloud/itag/ItagExport.h @@ -0,0 +1,32 @@ +/* + * 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_ITAG_ITAGEXPORT_H_ +#define ALIBABACLOUD_ITAG_ITAGEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ITAG_LIBRARY) +# define ALIBABACLOUD_ITAG_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ITAG_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ITAG_EXPORT +#endif + +#endif // !ALIBABACLOUD_ITAG_ITAGEXPORT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AbandonItemByAdminRequest.h b/itag/include/alibabacloud/itag/model/AbandonItemByAdminRequest.h new file mode 100644 index 000000000..122438dd3 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AbandonItemByAdminRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ABANDONITEMBYADMINREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ABANDONITEMBYADMINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AbandonItemByAdminRequest : public RoaServiceRequest { +public: + AbandonItemByAdminRequest(); + ~AbandonItemByAdminRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ABANDONITEMBYADMINREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AbandonItemByAdminResult.h b/itag/include/alibabacloud/itag/model/AbandonItemByAdminResult.h new file mode 100644 index 000000000..f0dc665c2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AbandonItemByAdminResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_ABANDONITEMBYADMINRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ABANDONITEMBYADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AbandonItemByAdminResult : public ServiceResult + { + public: + struct Result + { + struct FailListItem + { + std::string markResult; + std::string questionId; + std::string version; + std::string questionTitle; + std::string questionType; + std::string markResultId; + }; + bool allUpdateSucc; + std::string commitMsg; + bool canCommit; + std::vector failList; + }; + + + AbandonItemByAdminResult(); + explicit AbandonItemByAdminResult(const std::string &payload); + ~AbandonItemByAdminResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ABANDONITEMBYADMINRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AbandonItemRequest.h b/itag/include/alibabacloud/itag/model/AbandonItemRequest.h new file mode 100644 index 000000000..ab3e342b8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AbandonItemRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ABANDONITEMREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ABANDONITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AbandonItemRequest : public RoaServiceRequest { +public: + AbandonItemRequest(); + ~AbandonItemRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ABANDONITEMREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AbandonItemResult.h b/itag/include/alibabacloud/itag/model/AbandonItemResult.h new file mode 100644 index 000000000..4b9ea7f05 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AbandonItemResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_ABANDONITEMRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ABANDONITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AbandonItemResult : public ServiceResult + { + public: + + + AbandonItemResult(); + explicit AbandonItemResult(const std::string &payload); + ~AbandonItemResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ABANDONITEMRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AcceptSamplingTaskRequest.h b/itag/include/alibabacloud/itag/model/AcceptSamplingTaskRequest.h new file mode 100644 index 000000000..b4a9648c9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AcceptSamplingTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ACCEPTSAMPLINGTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ACCEPTSAMPLINGTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AcceptSamplingTaskRequest : public RoaServiceRequest { +public: + AcceptSamplingTaskRequest(); + ~AcceptSamplingTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ACCEPTSAMPLINGTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AcceptSamplingTaskResult.h b/itag/include/alibabacloud/itag/model/AcceptSamplingTaskResult.h new file mode 100644 index 000000000..6dc32cd3b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AcceptSamplingTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_ACCEPTSAMPLINGTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ACCEPTSAMPLINGTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AcceptSamplingTaskResult : public ServiceResult + { + public: + + + AcceptSamplingTaskResult(); + explicit AcceptSamplingTaskResult(const std::string &payload); + ~AcceptSamplingTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ACCEPTSAMPLINGTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AddMemberOrGroupTaskRequest.h b/itag/include/alibabacloud/itag/model/AddMemberOrGroupTaskRequest.h new file mode 100644 index 000000000..7ab378f89 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddMemberOrGroupTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ADDMEMBERORGROUPTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDMEMBERORGROUPTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AddMemberOrGroupTaskRequest : public RoaServiceRequest { +public: + AddMemberOrGroupTaskRequest(); + ~AddMemberOrGroupTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDMEMBERORGROUPTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AddMemberOrGroupTaskResult.h b/itag/include/alibabacloud/itag/model/AddMemberOrGroupTaskResult.h new file mode 100644 index 000000000..8e4d91082 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddMemberOrGroupTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_ADDMEMBERORGROUPTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDMEMBERORGROUPTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AddMemberOrGroupTaskResult : public ServiceResult + { + public: + + + AddMemberOrGroupTaskResult(); + explicit AddMemberOrGroupTaskResult(const std::string &payload); + ~AddMemberOrGroupTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDMEMBERORGROUPTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AddUserRequest.h b/itag/include/alibabacloud/itag/model/AddUserRequest.h new file mode 100644 index 000000000..ef49243ca --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddUserRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ADDUSERREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AddUserRequest : public RoaServiceRequest { +public: + AddUserRequest(); + ~AddUserRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDUSERREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AddUserResult.h b/itag/include/alibabacloud/itag/model/AddUserResult.h new file mode 100644 index 000000000..c18a4871f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddUserResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_ADDUSERRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AddUserResult : public ServiceResult + { + public: + + + AddUserResult(); + explicit AddUserResult(const std::string &payload); + ~AddUserResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDUSERRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AddUserToGroupRequest.h b/itag/include/alibabacloud/itag/model/AddUserToGroupRequest.h new file mode 100644 index 000000000..42d547ddf --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddUserToGroupRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ADDUSERTOGROUPREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDUSERTOGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AddUserToGroupRequest : public RoaServiceRequest { +public: + AddUserToGroupRequest(); + ~AddUserToGroupRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDUSERTOGROUPREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AddUserToGroupResult.h b/itag/include/alibabacloud/itag/model/AddUserToGroupResult.h new file mode 100644 index 000000000..922c96f52 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddUserToGroupResult.h @@ -0,0 +1,82 @@ +/* + * 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_ITAG_MODEL_ADDUSERTOGROUPRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDUSERTOGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AddUserToGroupResult : public ServiceResult + { + public: + struct Result + { + struct SuccUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct FailUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + long failCount; + std::vector failUserList; + std::vector succUserList; + long succCount; + }; + + + AddUserToGroupResult(); + explicit AddUserToGroupResult(const std::string &payload); + ~AddUserToGroupResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDUSERTOGROUPRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AddUserToTntRequest.h b/itag/include/alibabacloud/itag/model/AddUserToTntRequest.h new file mode 100644 index 000000000..df1aeaecd --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddUserToTntRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ADDUSERTOTNTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDUSERTOTNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AddUserToTntRequest : public RoaServiceRequest { +public: + AddUserToTntRequest(); + ~AddUserToTntRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDUSERTOTNTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AddUserToTntResult.h b/itag/include/alibabacloud/itag/model/AddUserToTntResult.h new file mode 100644 index 000000000..65e17637b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AddUserToTntResult.h @@ -0,0 +1,82 @@ +/* + * 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_ITAG_MODEL_ADDUSERTOTNTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ADDUSERTOTNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AddUserToTntResult : public ServiceResult + { + public: + struct Result + { + struct SuccUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct FailUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + long failCount; + std::vector failUserList; + std::vector succUserList; + long succCount; + }; + + + AddUserToTntResult(); + explicit AddUserToTntResult(const std::string &payload); + ~AddUserToTntResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ADDUSERTOTNTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AppendDataToDatasetRequest.h b/itag/include/alibabacloud/itag/model/AppendDataToDatasetRequest.h new file mode 100644 index 000000000..8d72a38cc --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AppendDataToDatasetRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_APPENDDATATODATASETREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_APPENDDATATODATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AppendDataToDatasetRequest : public RoaServiceRequest { +public: + AppendDataToDatasetRequest(); + ~AppendDataToDatasetRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_APPENDDATATODATASETREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AppendDataToDatasetResult.h b/itag/include/alibabacloud/itag/model/AppendDataToDatasetResult.h new file mode 100644 index 000000000..61869448d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AppendDataToDatasetResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_APPENDDATATODATASETRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_APPENDDATATODATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AppendDataToDatasetResult : public ServiceResult + { + public: + struct Result + { + int appendSize; + std::vector ids; + }; + + + AppendDataToDatasetResult(); + explicit AppendDataToDatasetResult(const std::string &payload); + ~AppendDataToDatasetResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_APPENDDATATODATASETRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/AsyncDownloadMarkResultRequest.h b/itag/include/alibabacloud/itag/model/AsyncDownloadMarkResultRequest.h new file mode 100644 index 000000000..4f3fa1fb4 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AsyncDownloadMarkResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ASYNCDOWNLOADMARKRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ASYNCDOWNLOADMARKRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT AsyncDownloadMarkResultRequest : public RoaServiceRequest { +public: + AsyncDownloadMarkResultRequest(); + ~AsyncDownloadMarkResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ASYNCDOWNLOADMARKRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/AsyncDownloadMarkResultResult.h b/itag/include/alibabacloud/itag/model/AsyncDownloadMarkResultResult.h new file mode 100644 index 000000000..87c7d698b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/AsyncDownloadMarkResultResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_ASYNCDOWNLOADMARKRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ASYNCDOWNLOADMARKRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT AsyncDownloadMarkResultResult : public ServiceResult + { + public: + struct Result + { + std::string flowId; + std::string taskId; + std::string runInstId; + std::string msgId; + }; + + + AsyncDownloadMarkResultResult(); + explicit AsyncDownloadMarkResultResult(const std::string &payload); + ~AsyncDownloadMarkResultResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ASYNCDOWNLOADMARKRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/BatchRejectTaskRequest.h b/itag/include/alibabacloud/itag/model/BatchRejectTaskRequest.h new file mode 100644 index 000000000..8a7993d76 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/BatchRejectTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_BATCHREJECTTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_BATCHREJECTTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT BatchRejectTaskRequest : public RoaServiceRequest { +public: + BatchRejectTaskRequest(); + ~BatchRejectTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_BATCHREJECTTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/BatchRejectTaskResult.h b/itag/include/alibabacloud/itag/model/BatchRejectTaskResult.h new file mode 100644 index 000000000..4e4b1ce66 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/BatchRejectTaskResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_BATCHREJECTTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_BATCHREJECTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT BatchRejectTaskResult : public ServiceResult + { + public: + + + BatchRejectTaskResult(); + explicit BatchRejectTaskResult(const std::string &payload); + ~BatchRejectTaskResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_BATCHREJECTTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CanCommitRequest.h b/itag/include/alibabacloud/itag/model/CanCommitRequest.h new file mode 100644 index 000000000..2963a7121 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CanCommitRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_CANCOMMITREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CANCOMMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CanCommitRequest : public RoaServiceRequest { +public: + CanCommitRequest(); + ~CanCommitRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CANCOMMITREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CanCommitResult.h b/itag/include/alibabacloud/itag/model/CanCommitResult.h new file mode 100644 index 000000000..f200e332b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CanCommitResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_CANCOMMITRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CANCOMMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CanCommitResult : public ServiceResult + { + public: + + + CanCommitResult(); + explicit CanCommitResult(const std::string &payload); + ~CanCommitResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CANCOMMITRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CheckModelRequest.h b/itag/include/alibabacloud/itag/model/CheckModelRequest.h new file mode 100644 index 000000000..68ba1fbe1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CheckModelRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_CHECKMODELREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CHECKMODELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CheckModelRequest : public RoaServiceRequest { +public: + CheckModelRequest(); + ~CheckModelRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CHECKMODELREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CheckModelResult.h b/itag/include/alibabacloud/itag/model/CheckModelResult.h new file mode 100644 index 000000000..a75cf6f17 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CheckModelResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_CHECKMODELRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CHECKMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CheckModelResult : public ServiceResult + { + public: + struct Result + { + struct Param + { + std::string defaultValue; + std::string type; + std::string codec; + std::string alias; + std::string value; + std::string name; + }; + bool isCommon; + std::vector params; + bool available; + }; + + + CheckModelResult(); + explicit CheckModelResult(const std::string &payload); + ~CheckModelResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CHECKMODELRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CommitSubTaskRequest.h b/itag/include/alibabacloud/itag/model/CommitSubTaskRequest.h new file mode 100644 index 000000000..ed5d15a47 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CommitSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_COMMITSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_COMMITSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CommitSubTaskRequest : public RoaServiceRequest { +public: + CommitSubTaskRequest(); + ~CommitSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_COMMITSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CommitSubTaskResult.h b/itag/include/alibabacloud/itag/model/CommitSubTaskResult.h new file mode 100644 index 000000000..eaf5bfed5 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CommitSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_COMMITSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_COMMITSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CommitSubTaskResult : public ServiceResult + { + public: + + + CommitSubTaskResult(); + explicit CommitSubTaskResult(const std::string &payload); + ~CommitSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_COMMITSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CreateDatasetRequest.h b/itag/include/alibabacloud/itag/model/CreateDatasetRequest.h new file mode 100644 index 000000000..9c9f8a86a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateDatasetRequest.h @@ -0,0 +1,39 @@ +/* + * 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_ITAG_MODEL_CREATEDATASETREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CreateDatasetRequest : public RoaServiceRequest { +public: + CreateDatasetRequest(); + ~CreateDatasetRequest(); + +private: +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEDATASETREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CreateDatasetResult.h b/itag/include/alibabacloud/itag/model/CreateDatasetResult.h new file mode 100644 index 000000000..0dd2c542d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateDatasetResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_CREATEDATASETRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CreateDatasetResult : public ServiceResult + { + public: + + + CreateDatasetResult(); + explicit CreateDatasetResult(const std::string &payload); + ~CreateDatasetResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEDATASETRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CreateModelRequest.h b/itag/include/alibabacloud/itag/model/CreateModelRequest.h new file mode 100644 index 000000000..e3460f118 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateModelRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_CREATEMODELREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEMODELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CreateModelRequest : public RoaServiceRequest { +public: + CreateModelRequest(); + ~CreateModelRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEMODELREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CreateModelResult.h b/itag/include/alibabacloud/itag/model/CreateModelResult.h new file mode 100644 index 000000000..77c4b9183 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateModelResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_CREATEMODELRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CreateModelResult : public ServiceResult + { + public: + + + CreateModelResult(); + explicit CreateModelResult(const std::string &payload); + ~CreateModelResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEMODELRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CreateOptionTemplateRequest.h b/itag/include/alibabacloud/itag/model/CreateOptionTemplateRequest.h new file mode 100644 index 000000000..44ba6e0ba --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateOptionTemplateRequest.h @@ -0,0 +1,45 @@ +/* + * 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_ITAG_MODEL_CREATEOPTIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEOPTIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CreateOptionTemplateRequest : public RoaServiceRequest { +public: + CreateOptionTemplateRequest(); + ~CreateOptionTemplateRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEOPTIONTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CreateOptionTemplateResult.h b/itag/include/alibabacloud/itag/model/CreateOptionTemplateResult.h new file mode 100644 index 000000000..0b42980b9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateOptionTemplateResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_CREATEOPTIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEOPTIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CreateOptionTemplateResult : public ServiceResult + { + public: + + + CreateOptionTemplateResult(); + explicit CreateOptionTemplateResult(const std::string &payload); + ~CreateOptionTemplateResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEOPTIONTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CreateOrUpdateTntConfigRequest.h b/itag/include/alibabacloud/itag/model/CreateOrUpdateTntConfigRequest.h new file mode 100644 index 000000000..095e22631 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateOrUpdateTntConfigRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_CREATEORUPDATETNTCONFIGREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEORUPDATETNTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CreateOrUpdateTntConfigRequest : public RoaServiceRequest { +public: + CreateOrUpdateTntConfigRequest(); + ~CreateOrUpdateTntConfigRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEORUPDATETNTCONFIGREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CreateOrUpdateTntConfigResult.h b/itag/include/alibabacloud/itag/model/CreateOrUpdateTntConfigResult.h new file mode 100644 index 000000000..c0f06aacc --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateOrUpdateTntConfigResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_CREATEORUPDATETNTCONFIGRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEORUPDATETNTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CreateOrUpdateTntConfigResult : public ServiceResult + { + public: + + + CreateOrUpdateTntConfigResult(); + explicit CreateOrUpdateTntConfigResult(const std::string &payload); + ~CreateOrUpdateTntConfigResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEORUPDATETNTCONFIGRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CreateTaskRequest.h b/itag/include/alibabacloud/itag/model/CreateTaskRequest.h new file mode 100644 index 000000000..ad0d7f8b9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateTaskRequest.h @@ -0,0 +1,39 @@ +/* + * 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_ITAG_MODEL_CREATETASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CreateTaskRequest : public RoaServiceRequest { +public: + CreateTaskRequest(); + ~CreateTaskRequest(); + +private: +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATETASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CreateTaskResult.h b/itag/include/alibabacloud/itag/model/CreateTaskResult.h new file mode 100644 index 000000000..270e4dc37 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateTaskResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_CREATETASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CreateTaskResult : public ServiceResult + { + public: + struct Result + { + std::string refTaskId; + std::string taskId; + std::string slaveMsgId; + std::string flowRunId; + std::string workflowId; + std::string msgId; + }; + + + CreateTaskResult(); + explicit CreateTaskResult(const std::string &payload); + ~CreateTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATETASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/CreateUserGroupRequest.h b/itag/include/alibabacloud/itag/model/CreateUserGroupRequest.h new file mode 100644 index 000000000..c76a463a6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateUserGroupRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_CREATEUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEUSERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT CreateUserGroupRequest : public RoaServiceRequest { +public: + CreateUserGroupRequest(); + ~CreateUserGroupRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEUSERGROUPREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/CreateUserGroupResult.h b/itag/include/alibabacloud/itag/model/CreateUserGroupResult.h new file mode 100644 index 000000000..84dff7ee1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/CreateUserGroupResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_CREATEUSERGROUPRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_CREATEUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT CreateUserGroupResult : public ServiceResult + { + public: + + + CreateUserGroupResult(); + explicit CreateUserGroupResult(const std::string &payload); + ~CreateUserGroupResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_CREATEUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DeleteFeedbackRequest.h b/itag/include/alibabacloud/itag/model/DeleteFeedbackRequest.h new file mode 100644 index 000000000..15c3a5706 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteFeedbackRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_DELETEFEEDBACKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEFEEDBACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DeleteFeedbackRequest : public RoaServiceRequest { +public: + DeleteFeedbackRequest(); + ~DeleteFeedbackRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEFEEDBACKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DeleteFeedbackResult.h b/itag/include/alibabacloud/itag/model/DeleteFeedbackResult.h new file mode 100644 index 000000000..8b449a041 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteFeedbackResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_DELETEFEEDBACKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEFEEDBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DeleteFeedbackResult : public ServiceResult + { + public: + struct Result + { + long totalCount; + long failCount; + bool success; + }; + + + DeleteFeedbackResult(); + explicit DeleteFeedbackResult(const std::string &payload); + ~DeleteFeedbackResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEFEEDBACKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DeleteModelRequest.h b/itag/include/alibabacloud/itag/model/DeleteModelRequest.h new file mode 100644 index 000000000..863934ab2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteModelRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_DELETEMODELREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEMODELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DeleteModelRequest : public RoaServiceRequest { +public: + DeleteModelRequest(); + ~DeleteModelRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEMODELREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DeleteModelResult.h b/itag/include/alibabacloud/itag/model/DeleteModelResult.h new file mode 100644 index 000000000..6037717e6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteModelResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_DELETEMODELRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DeleteModelResult : public ServiceResult + { + public: + + + DeleteModelResult(); + explicit DeleteModelResult(const std::string &payload); + ~DeleteModelResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + ObjectOfAny getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + ObjectOfAny result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEMODELRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DeleteOptionTemplateRequest.h b/itag/include/alibabacloud/itag/model/DeleteOptionTemplateRequest.h new file mode 100644 index 000000000..5455671a0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteOptionTemplateRequest.h @@ -0,0 +1,45 @@ +/* + * 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_ITAG_MODEL_DELETEOPTIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEOPTIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DeleteOptionTemplateRequest : public RoaServiceRequest { +public: + DeleteOptionTemplateRequest(); + ~DeleteOptionTemplateRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEOPTIONTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DeleteOptionTemplateResult.h b/itag/include/alibabacloud/itag/model/DeleteOptionTemplateResult.h new file mode 100644 index 000000000..3fa259660 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteOptionTemplateResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_DELETEOPTIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEOPTIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DeleteOptionTemplateResult : public ServiceResult + { + public: + + + DeleteOptionTemplateResult(); + explicit DeleteOptionTemplateResult(const std::string &payload); + ~DeleteOptionTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEOPTIONTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DeleteTaskRequest.h b/itag/include/alibabacloud/itag/model/DeleteTaskRequest.h new file mode 100644 index 000000000..835894d36 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_DELETETASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DeleteTaskRequest : public RoaServiceRequest { +public: + DeleteTaskRequest(); + ~DeleteTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETETASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DeleteTaskResult.h b/itag/include/alibabacloud/itag/model/DeleteTaskResult.h new file mode 100644 index 000000000..868487fe6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_DELETETASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DeleteTaskResult : public ServiceResult + { + public: + + + DeleteTaskResult(); + explicit DeleteTaskResult(const std::string &payload); + ~DeleteTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETETASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DeleteUserGroupRequest.h b/itag/include/alibabacloud/itag/model/DeleteUserGroupRequest.h new file mode 100644 index 000000000..11c9292fd --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteUserGroupRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_DELETEUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEUSERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DeleteUserGroupRequest : public RoaServiceRequest { +public: + DeleteUserGroupRequest(); + ~DeleteUserGroupRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEUSERGROUPREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DeleteUserGroupResult.h b/itag/include/alibabacloud/itag/model/DeleteUserGroupResult.h new file mode 100644 index 000000000..3826ba488 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DeleteUserGroupResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_DELETEUSERGROUPRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DELETEUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DeleteUserGroupResult : public ServiceResult + { + public: + + + DeleteUserGroupResult(); + explicit DeleteUserGroupResult(const std::string &payload); + ~DeleteUserGroupResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DELETEUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DiscardSubTaskRequest.h b/itag/include/alibabacloud/itag/model/DiscardSubTaskRequest.h new file mode 100644 index 000000000..471937893 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DiscardSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_DISCARDSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DISCARDSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DiscardSubTaskRequest : public RoaServiceRequest { +public: + DiscardSubTaskRequest(); + ~DiscardSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DISCARDSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DiscardSubTaskResult.h b/itag/include/alibabacloud/itag/model/DiscardSubTaskResult.h new file mode 100644 index 000000000..a8c2ef64a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DiscardSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_DISCARDSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DISCARDSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DiscardSubTaskResult : public ServiceResult + { + public: + + + DiscardSubTaskResult(); + explicit DiscardSubTaskResult(const std::string &payload); + ~DiscardSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DISCARDSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/DownloadIntPersonSummaryRequest.h b/itag/include/alibabacloud/itag/model/DownloadIntPersonSummaryRequest.h new file mode 100644 index 000000000..bda5f8161 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DownloadIntPersonSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_DOWNLOADINTPERSONSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_DOWNLOADINTPERSONSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT DownloadIntPersonSummaryRequest : public RoaServiceRequest { +public: + DownloadIntPersonSummaryRequest(); + ~DownloadIntPersonSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_DOWNLOADINTPERSONSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/DownloadIntPersonSummaryResult.h b/itag/include/alibabacloud/itag/model/DownloadIntPersonSummaryResult.h new file mode 100644 index 000000000..858a0f59b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/DownloadIntPersonSummaryResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_DOWNLOADINTPERSONSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_DOWNLOADINTPERSONSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT DownloadIntPersonSummaryResult : public ServiceResult + { + public: + struct Result + { + std::string downloadURL; + }; + + + DownloadIntPersonSummaryResult(); + explicit DownloadIntPersonSummaryResult(const std::string &payload); + ~DownloadIntPersonSummaryResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_DOWNLOADINTPERSONSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ExportOptionTemplateRequest.h b/itag/include/alibabacloud/itag/model/ExportOptionTemplateRequest.h new file mode 100644 index 000000000..50d8a4c18 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ExportOptionTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_EXPORTOPTIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_EXPORTOPTIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ExportOptionTemplateRequest : public RoaServiceRequest { +public: + ExportOptionTemplateRequest(); + ~ExportOptionTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_EXPORTOPTIONTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ExportOptionTemplateResult.h b/itag/include/alibabacloud/itag/model/ExportOptionTemplateResult.h new file mode 100644 index 000000000..f92a2a17f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ExportOptionTemplateResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_EXPORTOPTIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_EXPORTOPTIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ExportOptionTemplateResult : public ServiceResult + { + public: + + + ExportOptionTemplateResult(); + explicit ExportOptionTemplateResult(const std::string &payload); + ~ExportOptionTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_EXPORTOPTIONTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ExtendUserAuthInTaskRequest.h b/itag/include/alibabacloud/itag/model/ExtendUserAuthInTaskRequest.h new file mode 100644 index 000000000..bff638420 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ExtendUserAuthInTaskRequest.h @@ -0,0 +1,39 @@ +/* + * 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_ITAG_MODEL_EXTENDUSERAUTHINTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_EXTENDUSERAUTHINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ExtendUserAuthInTaskRequest : public RoaServiceRequest { +public: + ExtendUserAuthInTaskRequest(); + ~ExtendUserAuthInTaskRequest(); + +private: +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_EXTENDUSERAUTHINTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ExtendUserAuthInTaskResult.h b/itag/include/alibabacloud/itag/model/ExtendUserAuthInTaskResult.h new file mode 100644 index 000000000..738c624da --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ExtendUserAuthInTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_EXTENDUSERAUTHINTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_EXTENDUSERAUTHINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ExtendUserAuthInTaskResult : public ServiceResult + { + public: + + + ExtendUserAuthInTaskResult(); + explicit ExtendUserAuthInTaskResult(const std::string &payload); + ~ExtendUserAuthInTaskResult(); + std::string getMsg()const; + std::string getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_EXTENDUSERAUTHINTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/FetchVideoMarkResultRequest.h b/itag/include/alibabacloud/itag/model/FetchVideoMarkResultRequest.h new file mode 100644 index 000000000..7ee6b469c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/FetchVideoMarkResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_FETCHVIDEOMARKRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_FETCHVIDEOMARKRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT FetchVideoMarkResultRequest : public RoaServiceRequest { +public: + FetchVideoMarkResultRequest(); + ~FetchVideoMarkResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_FETCHVIDEOMARKRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/FetchVideoMarkResultResult.h b/itag/include/alibabacloud/itag/model/FetchVideoMarkResultResult.h new file mode 100644 index 000000000..0f5a6e8e3 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/FetchVideoMarkResultResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_FETCHVIDEOMARKRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_FETCHVIDEOMARKRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT FetchVideoMarkResultResult : public ServiceResult + { + public: + struct Result + { + std::string markResult; + std::string taskId; + std::string userMarkResultId; + }; + + + FetchVideoMarkResultResult(); + explicit FetchVideoMarkResultResult(const std::string &payload); + ~FetchVideoMarkResultResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_FETCHVIDEOMARKRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/FlowInstanceCallbackRequest.h b/itag/include/alibabacloud/itag/model/FlowInstanceCallbackRequest.h new file mode 100644 index 000000000..bbecba3ef --- /dev/null +++ b/itag/include/alibabacloud/itag/model/FlowInstanceCallbackRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_FLOWINSTANCECALLBACKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_FLOWINSTANCECALLBACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT FlowInstanceCallbackRequest : public RoaServiceRequest { +public: + FlowInstanceCallbackRequest(); + ~FlowInstanceCallbackRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_FLOWINSTANCECALLBACKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/FlowInstanceCallbackResult.h b/itag/include/alibabacloud/itag/model/FlowInstanceCallbackResult.h new file mode 100644 index 000000000..231112e0f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/FlowInstanceCallbackResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_FLOWINSTANCECALLBACKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_FLOWINSTANCECALLBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT FlowInstanceCallbackResult : public ServiceResult + { + public: + + + FlowInstanceCallbackResult(); + explicit FlowInstanceCallbackResult(const std::string &payload); + ~FlowInstanceCallbackResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_FLOWINSTANCECALLBACKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryRequest.h new file mode 100644 index 000000000..f8afa3db0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETASSIGNEDCHECKTASKSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETASSIGNEDCHECKTASKSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetAssignedCheckTaskSummaryRequest : public RoaServiceRequest { +public: + GetAssignedCheckTaskSummaryRequest(); + ~GetAssignedCheckTaskSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETASSIGNEDCHECKTASKSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryResult.h b/itag/include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryResult.h new file mode 100644 index 000000000..bd1944ba9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetAssignedCheckTaskSummaryResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETASSIGNEDCHECKTASKSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETASSIGNEDCHECKTASKSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetAssignedCheckTaskSummaryResult : public ServiceResult + { + public: + struct Result + { + int totalSubTask; + int rejectSubTask; + int uncheckSubTask; + int assignedSubTask; + }; + + + GetAssignedCheckTaskSummaryResult(); + explicit GetAssignedCheckTaskSummaryResult(const std::string &payload); + ~GetAssignedCheckTaskSummaryResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETASSIGNEDCHECKTASKSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetBizPersonSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetBizPersonSummaryRequest.h new file mode 100644 index 000000000..db553592a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetBizPersonSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETBIZPERSONSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETBIZPERSONSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetBizPersonSummaryRequest : public RoaServiceRequest { +public: + GetBizPersonSummaryRequest(); + ~GetBizPersonSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETBIZPERSONSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetBizPersonSummaryResult.h b/itag/include/alibabacloud/itag/model/GetBizPersonSummaryResult.h new file mode 100644 index 000000000..28b53c662 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetBizPersonSummaryResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETBIZPERSONSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETBIZPERSONSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetBizPersonSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetBizPersonSummaryResult(); + explicit GetBizPersonSummaryResult(const std::string &payload); + ~GetBizPersonSummaryResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETBIZPERSONSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetBizSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetBizSummaryRequest.h new file mode 100644 index 000000000..5270aabd0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetBizSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETBIZSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETBIZSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetBizSummaryRequest : public RoaServiceRequest { +public: + GetBizSummaryRequest(); + ~GetBizSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETBIZSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetBizSummaryResult.h b/itag/include/alibabacloud/itag/model/GetBizSummaryResult.h new file mode 100644 index 000000000..dfa957b0f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetBizSummaryResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETBIZSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETBIZSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetBizSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetBizSummaryResult(); + explicit GetBizSummaryResult(const std::string &payload); + ~GetBizSummaryResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETBIZSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetCheckUserDetailRequest.h b/itag/include/alibabacloud/itag/model/GetCheckUserDetailRequest.h new file mode 100644 index 000000000..668f89561 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCheckUserDetailRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETCHECKUSERDETAILREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetCheckUserDetailRequest : public RoaServiceRequest { +public: + GetCheckUserDetailRequest(); + ~GetCheckUserDetailRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERDETAILREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetCheckUserDetailResult.h b/itag/include/alibabacloud/itag/model/GetCheckUserDetailResult.h new file mode 100644 index 000000000..40cd18ba1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCheckUserDetailResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERDETAILRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetCheckUserDetailResult : public ServiceResult + { + public: + struct Result + { + struct ITagMarkResultReport + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetCheckUserDetailResult(); + explicit GetCheckUserDetailResult(const std::string &payload); + ~GetCheckUserDetailResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERDETAILRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetCheckUserEfficiencyRequest.h b/itag/include/alibabacloud/itag/model/GetCheckUserEfficiencyRequest.h new file mode 100644 index 000000000..126b72c81 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCheckUserEfficiencyRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETCHECKUSEREFFICIENCYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCHECKUSEREFFICIENCYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetCheckUserEfficiencyRequest : public RoaServiceRequest { +public: + GetCheckUserEfficiencyRequest(); + ~GetCheckUserEfficiencyRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCHECKUSEREFFICIENCYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetCheckUserEfficiencyResult.h b/itag/include/alibabacloud/itag/model/GetCheckUserEfficiencyResult.h new file mode 100644 index 000000000..d8d1edf35 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCheckUserEfficiencyResult.h @@ -0,0 +1,113 @@ +/* + * 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_ITAG_MODEL_GETCHECKUSEREFFICIENCYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCHECKUSEREFFICIENCYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetCheckUserEfficiencyResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + std::vector userWorkEfficiencyList; + }; + + + GetCheckUserEfficiencyResult(); + explicit GetCheckUserEfficiencyResult(const std::string &payload); + ~GetCheckUserEfficiencyResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCHECKUSEREFFICIENCYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetCheckUserSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetCheckUserSummaryRequest.h new file mode 100644 index 000000000..6d73c13ac --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCheckUserSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETCHECKUSERSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetCheckUserSummaryRequest : public RoaServiceRequest { +public: + GetCheckUserSummaryRequest(); + ~GetCheckUserSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetCheckUserSummaryResult.h b/itag/include/alibabacloud/itag/model/GetCheckUserSummaryResult.h new file mode 100644 index 000000000..88bc026f8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCheckUserSummaryResult.h @@ -0,0 +1,132 @@ +/* + * 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_ITAG_MODEL_GETCHECKUSERSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetCheckUserSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagDailyWorkload + { + std::string workTime; + int totalCheck; + int noRejectMark; + int totalMark; + int noRejectCheck; + }; + struct ITagUserProportion + { + std::string userName; + double rate; + }; + struct ITagSimpleUserVO + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + std::vector userList; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::vector dailyWorkload; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::vector userProportion; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + + + GetCheckUserSummaryResult(); + explicit GetCheckUserSummaryResult(const std::string &payload); + ~GetCheckUserSummaryResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCHECKUSERSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetCommitSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetCommitSummaryRequest.h new file mode 100644 index 000000000..a227c12f8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCommitSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETCOMMITSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCOMMITSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetCommitSummaryRequest : public RoaServiceRequest { +public: + GetCommitSummaryRequest(); + ~GetCommitSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCOMMITSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetCommitSummaryResult.h b/itag/include/alibabacloud/itag/model/GetCommitSummaryResult.h new file mode 100644 index 000000000..b666f0315 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetCommitSummaryResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETCOMMITSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETCOMMITSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetCommitSummaryResult : public ServiceResult + { + public: + struct Result + { + int commitItem; + int rejectSubTask; + int commitSubTask; + int rejectItem; + }; + + + GetCommitSummaryResult(); + explicit GetCommitSummaryResult(const std::string &payload); + ~GetCommitSummaryResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETCOMMITSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetDatasetProxyRequest.h b/itag/include/alibabacloud/itag/model/GetDatasetProxyRequest.h new file mode 100644 index 000000000..51ec5efe6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetDatasetProxyRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETDATASETPROXYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETDATASETPROXYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetDatasetProxyRequest : public RoaServiceRequest { +public: + GetDatasetProxyRequest(); + ~GetDatasetProxyRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETDATASETPROXYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetDatasetProxyResult.h b/itag/include/alibabacloud/itag/model/GetDatasetProxyResult.h new file mode 100644 index 000000000..f8701c928 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetDatasetProxyResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETDATASETPROXYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETDATASETPROXYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetDatasetProxyResult : public ServiceResult + { + public: + struct Result + { + struct Schema + { + struct ITagDatasetField + { + std::string exif; + std::string type; + std::string classify; + std::string alias; + bool sensitive; + bool sortKey; + std::string fieldClassify; + std::string fieldName; + std::string fieldDesc; + std::string fieldType; + }; + std::vector fields; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + int status; + std::string description; + std::vector fieldTypes; + std::string proxyTarget; + std::string tntInstId; + Schema schema; + std::string runMsg; + std::string gmtModified; + std::string sortKey; + Creator creator; + std::string source; + std::string name; + int safetyLevel; + std::string gmtCreate; + std::string sourceBizId; + long totalNum; + std::string id; + std::string proxyConfigs; + std::string sharedMode; + Modifier modifier; + }; + + + GetDatasetProxyResult(); + explicit GetDatasetProxyResult(const std::string &payload); + ~GetDatasetProxyResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETDATASETPROXYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetFlowJobRequest.h b/itag/include/alibabacloud/itag/model/GetFlowJobRequest.h new file mode 100644 index 000000000..a214b9ce7 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetFlowJobRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETFLOWJOBREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETFLOWJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetFlowJobRequest : public RoaServiceRequest { +public: + GetFlowJobRequest(); + ~GetFlowJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETFLOWJOBREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetFlowJobResult.h b/itag/include/alibabacloud/itag/model/GetFlowJobResult.h new file mode 100644 index 000000000..a99f9daf7 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetFlowJobResult.h @@ -0,0 +1,88 @@ +/* + * 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_ITAG_MODEL_GETFLOWJOBRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETFLOWJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetFlowJobResult : public ServiceResult + { + public: + struct Result + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string flowId; + std::string gmtCreate; + std::string runInstId; + std::string state; + std::string runMsg; + std::string runRet; + std::string gmtModified; + Creator creator; + Modifier modifier; + std::string logView; + }; + + + GetFlowJobResult(); + explicit GetFlowJobResult(const std::string &payload); + ~GetFlowJobResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETFLOWJOBRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetGroupHandlingSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetGroupHandlingSummaryRequest.h new file mode 100644 index 000000000..96ffe4f1e --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetGroupHandlingSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETGROUPHANDLINGSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETGROUPHANDLINGSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetGroupHandlingSummaryRequest : public RoaServiceRequest { +public: + GetGroupHandlingSummaryRequest(); + ~GetGroupHandlingSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETGROUPHANDLINGSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetGroupHandlingSummaryResult.h b/itag/include/alibabacloud/itag/model/GetGroupHandlingSummaryResult.h new file mode 100644 index 000000000..e199ca44f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetGroupHandlingSummaryResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETGROUPHANDLINGSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETGROUPHANDLINGSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetGroupHandlingSummaryResult : public ServiceResult + { + public: + struct Result + { + int marking; + int markingFromReject; + int checking; + }; + + + GetGroupHandlingSummaryResult(); + explicit GetGroupHandlingSummaryResult(const std::string &payload); + ~GetGroupHandlingSummaryResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETGROUPHANDLINGSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetGroupTaskDetailRequest.h b/itag/include/alibabacloud/itag/model/GetGroupTaskDetailRequest.h new file mode 100644 index 000000000..26c73b4d9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetGroupTaskDetailRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETGROUPTASKDETAILREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetGroupTaskDetailRequest : public RoaServiceRequest { +public: + GetGroupTaskDetailRequest(); + ~GetGroupTaskDetailRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKDETAILREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetGroupTaskDetailResult.h b/itag/include/alibabacloud/itag/model/GetGroupTaskDetailResult.h new file mode 100644 index 000000000..21af4748a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetGroupTaskDetailResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKDETAILRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetGroupTaskDetailResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetGroupTaskDetailResult(); + explicit GetGroupTaskDetailResult(const std::string &payload); + ~GetGroupTaskDetailResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKDETAILRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetGroupTaskPersonDetailRequest.h b/itag/include/alibabacloud/itag/model/GetGroupTaskPersonDetailRequest.h new file mode 100644 index 000000000..d251e20b0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetGroupTaskPersonDetailRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETGROUPTASKPERSONDETAILREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKPERSONDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetGroupTaskPersonDetailRequest : public RoaServiceRequest { +public: + GetGroupTaskPersonDetailRequest(); + ~GetGroupTaskPersonDetailRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKPERSONDETAILREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetGroupTaskPersonDetailResult.h b/itag/include/alibabacloud/itag/model/GetGroupTaskPersonDetailResult.h new file mode 100644 index 000000000..10e4046c1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetGroupTaskPersonDetailResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKPERSONDETAILRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKPERSONDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetGroupTaskPersonDetailResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetGroupTaskPersonDetailResult(); + explicit GetGroupTaskPersonDetailResult(const std::string &payload); + ~GetGroupTaskPersonDetailResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETGROUPTASKPERSONDETAILRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetHistoryMarkResultRequest.h b/itag/include/alibabacloud/itag/model/GetHistoryMarkResultRequest.h new file mode 100644 index 000000000..3947affb0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetHistoryMarkResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETHISTORYMARKRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETHISTORYMARKRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetHistoryMarkResultRequest : public RoaServiceRequest { +public: + GetHistoryMarkResultRequest(); + ~GetHistoryMarkResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETHISTORYMARKRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetHistoryMarkResultResult.h b/itag/include/alibabacloud/itag/model/GetHistoryMarkResultResult.h new file mode 100644 index 000000000..e17552230 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetHistoryMarkResultResult.h @@ -0,0 +1,88 @@ +/* + * 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_ITAG_MODEL_GETHISTORYMARKRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETHISTORYMARKRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetHistoryMarkResultResult : public ServiceResult + { + public: + struct ResultItem + { + struct UserMarkResult + { + struct Progress + { + int finished; + int total; + }; + std::string markTime; + Progress progress; + std::string markResult; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + std::string accountNo; + std::string workNode; + std::vector userMarkResults; + std::string name; + }; + + + GetHistoryMarkResultResult(); + explicit GetHistoryMarkResultResult(const std::string &payload); + ~GetHistoryMarkResultResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETHISTORYMARKRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetIntWholeSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetIntWholeSummaryRequest.h new file mode 100644 index 000000000..2f74ee682 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetIntWholeSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETINTWHOLESUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETINTWHOLESUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetIntWholeSummaryRequest : public RoaServiceRequest { +public: + GetIntWholeSummaryRequest(); + ~GetIntWholeSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETINTWHOLESUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetIntWholeSummaryResult.h b/itag/include/alibabacloud/itag/model/GetIntWholeSummaryResult.h new file mode 100644 index 000000000..48af5b737 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetIntWholeSummaryResult.h @@ -0,0 +1,118 @@ +/* + * 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_ITAG_MODEL_GETINTWHOLESUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETINTWHOLESUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetIntWholeSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagDailyWorkload + { + std::string workTime; + int totalCheck; + int noRejectMark; + int totalMark; + int noRejectCheck; + }; + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + float markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + float sampledAccuracy; + int totalDisable; + float markEfficiency; + long totalPDF; + float checkTime; + float checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::vector dailyWorkload; + std::string workflow; + long noRejectPDF; + float checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + float samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + float checkAccuracy; + int sampledError; + int noRejectCheck; + }; + + + GetIntWholeSummaryResult(); + explicit GetIntWholeSummaryResult(const std::string &payload); + ~GetIntWholeSummaryResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETINTWHOLESUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkPersonDetailRequest.h b/itag/include/alibabacloud/itag/model/GetMarkPersonDetailRequest.h new file mode 100644 index 000000000..aae5677bf --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkPersonDetailRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKPERSONDETAILREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkPersonDetailRequest : public RoaServiceRequest { +public: + GetMarkPersonDetailRequest(); + ~GetMarkPersonDetailRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONDETAILREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkPersonDetailResult.h b/itag/include/alibabacloud/itag/model/GetMarkPersonDetailResult.h new file mode 100644 index 000000000..e34c4ea19 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkPersonDetailResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONDETAILRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkPersonDetailResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetMarkPersonDetailResult(); + explicit GetMarkPersonDetailResult(const std::string &payload); + ~GetMarkPersonDetailResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONDETAILRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryRequest.h new file mode 100644 index 000000000..24959a265 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKPERSONHANDLINGSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONHANDLINGSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkPersonHandlingSummaryRequest : public RoaServiceRequest { +public: + GetMarkPersonHandlingSummaryRequest(); + ~GetMarkPersonHandlingSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONHANDLINGSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryResult.h b/itag/include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryResult.h new file mode 100644 index 000000000..4622ed51c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkPersonHandlingSummaryResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONHANDLINGSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONHANDLINGSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkPersonHandlingSummaryResult : public ServiceResult + { + public: + struct Result + { + int marking; + int markingFromReject; + int checking; + }; + + + GetMarkPersonHandlingSummaryResult(); + explicit GetMarkPersonHandlingSummaryResult(const std::string &payload); + ~GetMarkPersonHandlingSummaryResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKPERSONHANDLINGSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkQuantityRequest.h b/itag/include/alibabacloud/itag/model/GetMarkQuantityRequest.h new file mode 100644 index 000000000..60237b43c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkQuantityRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKQUANTITYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKQUANTITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkQuantityRequest : public RoaServiceRequest { +public: + GetMarkQuantityRequest(); + ~GetMarkQuantityRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKQUANTITYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkQuantityResult.h b/itag/include/alibabacloud/itag/model/GetMarkQuantityResult.h new file mode 100644 index 000000000..186848adf --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkQuantityResult.h @@ -0,0 +1,109 @@ +/* + * 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_ITAG_MODEL_GETMARKQUANTITYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKQUANTITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkQuantityResult : public ServiceResult + { + public: + struct Result + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + float markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + float sampledAccuracy; + int totalDisable; + float markEfficiency; + long totalPDF; + float checkTime; + float checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + float checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + float samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + float checkAccuracy; + int sampledError; + int noRejectCheck; + }; + + + GetMarkQuantityResult(); + explicit GetMarkQuantityResult(const std::string &payload); + ~GetMarkQuantityResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKQUANTITYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkResultRequest.h b/itag/include/alibabacloud/itag/model/GetMarkResultRequest.h new file mode 100644 index 000000000..af07988af --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkResultRequest : public RoaServiceRequest { +public: + GetMarkResultRequest(); + ~GetMarkResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkResultResult.h b/itag/include/alibabacloud/itag/model/GetMarkResultResult.h new file mode 100644 index 000000000..f766a6156 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkResultResult.h @@ -0,0 +1,82 @@ +/* + * 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_ITAG_MODEL_GETMARKRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkResultResult : public ServiceResult + { + public: + struct Result + { + struct ITagMarkResultReport + { + struct ITagMarkResultDetail + { + double labelRate; + int labelCount; + std::string labelName; + }; + std::vector labelList; + std::string labelType; + std::string updateTime; + std::string markTitle; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetMarkResultResult(); + explicit GetMarkResultResult(const std::string &payload); + ~GetMarkResultResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkUserDetailRequest.h b/itag/include/alibabacloud/itag/model/GetMarkUserDetailRequest.h new file mode 100644 index 000000000..9a8432383 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkUserDetailRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKUSERDETAILREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKUSERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkUserDetailRequest : public RoaServiceRequest { +public: + GetMarkUserDetailRequest(); + ~GetMarkUserDetailRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKUSERDETAILREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkUserDetailResult.h b/itag/include/alibabacloud/itag/model/GetMarkUserDetailResult.h new file mode 100644 index 000000000..4c0f00619 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkUserDetailResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETMARKUSERDETAILRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKUSERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkUserDetailResult : public ServiceResult + { + public: + struct Result + { + struct ITagMarkResultReport + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetMarkUserDetailResult(); + explicit GetMarkUserDetailResult(const std::string &payload); + ~GetMarkUserDetailResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKUSERDETAILRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkUserEfficiencyRequest.h b/itag/include/alibabacloud/itag/model/GetMarkUserEfficiencyRequest.h new file mode 100644 index 000000000..6de498e68 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkUserEfficiencyRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKUSEREFFICIENCYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKUSEREFFICIENCYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkUserEfficiencyRequest : public RoaServiceRequest { +public: + GetMarkUserEfficiencyRequest(); + ~GetMarkUserEfficiencyRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKUSEREFFICIENCYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkUserEfficiencyResult.h b/itag/include/alibabacloud/itag/model/GetMarkUserEfficiencyResult.h new file mode 100644 index 000000000..26e23b273 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkUserEfficiencyResult.h @@ -0,0 +1,113 @@ +/* + * 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_ITAG_MODEL_GETMARKUSEREFFICIENCYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKUSEREFFICIENCYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkUserEfficiencyResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + std::vector userWorkEfficiencyList; + }; + + + GetMarkUserEfficiencyResult(); + explicit GetMarkUserEfficiencyResult(const std::string &payload); + ~GetMarkUserEfficiencyResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKUSEREFFICIENCYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetMarkUserSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetMarkUserSummaryRequest.h new file mode 100644 index 000000000..24489af03 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkUserSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMARKUSERSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKUSERSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetMarkUserSummaryRequest : public RoaServiceRequest { +public: + GetMarkUserSummaryRequest(); + ~GetMarkUserSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKUSERSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetMarkUserSummaryResult.h b/itag/include/alibabacloud/itag/model/GetMarkUserSummaryResult.h new file mode 100644 index 000000000..aa6c631a6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetMarkUserSummaryResult.h @@ -0,0 +1,109 @@ +/* + * 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_ITAG_MODEL_GETMARKUSERSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMARKUSERSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetMarkUserSummaryResult : public ServiceResult + { + public: + struct Result + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + float markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + float sampledAccuracy; + int totalDisable; + float markEfficiency; + long totalPDF; + float checkTime; + float checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + float checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + float samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + float checkAccuracy; + int sampledError; + int noRejectCheck; + }; + + + GetMarkUserSummaryResult(); + explicit GetMarkUserSummaryResult(const std::string &payload); + ~GetMarkUserSummaryResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMARKUSERSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetModelByIdRequest.h b/itag/include/alibabacloud/itag/model/GetModelByIdRequest.h new file mode 100644 index 000000000..002affbee --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetModelByIdRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETMODELBYIDREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMODELBYIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetModelByIdRequest : public RoaServiceRequest { +public: + GetModelByIdRequest(); + ~GetModelByIdRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMODELBYIDREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetModelByIdResult.h b/itag/include/alibabacloud/itag/model/GetModelByIdResult.h new file mode 100644 index 000000000..b6ef080de --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetModelByIdResult.h @@ -0,0 +1,160 @@ +/* + * 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_ITAG_MODEL_GETMODELBYIDRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETMODELBYIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetModelByIdResult : public ServiceResult + { + public: + struct Result + { + struct ModelConfig + { + long qpsLimit; + std::string serviceCode; + std::string contentType; + std::string appId; + std::string udfContent; + std::string host; + std::string token; + std::string paiModelTarget; + std::string requestType; + }; + struct ParamConfig + { + struct PresetParamItem + { + std::string defaultValue; + std::string type; + std::string codec; + std::string alias; + std::string value; + std::string name; + }; + struct PostParamItem + { + std::string defaultValue; + std::string type; + std::string codec; + std::string alias; + std::string value; + std::string name; + }; + struct ResponseParamItem + { + std::string resultPath; + std::string resultKey; + }; + std::vector presetParam; + std::vector postParam; + std::vector responseParam; + }; + struct ModelExtendConfig + { + struct AsyncConfig + { + long modelId; + }; + long postUdfModelId; + std::string extra; + AsyncConfig asyncConfig; + long preUdfModelId; + std::vector aggModelIds; + }; + struct Creator + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + struct Modifier + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + ModelExtendConfig modelExtendConfig; + std::string tntInstId; + std::string creatorId; + std::string gmtModified; + std::string creatorAccount; + Creator creator; + ParamConfig paramConfig; + std::string source; + std::string name; + std::string remark; + ModelConfig modelConfig; + std::string type; + std::string gmtCreate; + bool async; + std::string id; + Modifier modifier; + std::string creatorName; + }; + + + GetModelByIdResult(); + explicit GetModelByIdResult(const std::string &payload); + ~GetModelByIdResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETMODELBYIDRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetOptionTemplateRequest.h b/itag/include/alibabacloud/itag/model/GetOptionTemplateRequest.h new file mode 100644 index 000000000..d392e545f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetOptionTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETOPTIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETOPTIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetOptionTemplateRequest : public RoaServiceRequest { +public: + GetOptionTemplateRequest(); + ~GetOptionTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETOPTIONTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetOptionTemplateResult.h b/itag/include/alibabacloud/itag/model/GetOptionTemplateResult.h new file mode 100644 index 000000000..a8bde3121 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetOptionTemplateResult.h @@ -0,0 +1,211 @@ +/* + * 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_ITAG_MODEL_GETOPTIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETOPTIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetOptionTemplateResult : public ServiceResult + { + public: + struct Result + { + struct ViewConfigs + { + struct DisplayFieldDTO + { + struct VisitInfo + { + struct OssConf + { + std::string ossOwner; + std::string ossEndpoint; + std::string ossAk; + long expiredTime; + std::string ossBucket; + std::string folder; + std::string ossAs; + }; + struct AftsConf + { + int expiredTime; + }; + AftsConf aftsConf; + OssConf ossConf; + }; + bool hide; + std::string type; + std::string fieldNames; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + VisitInfo visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct RobotConfig + { + struct EffectStep + { + struct ProcessConfig + { + std::vector relateColumn; + }; + ProcessConfig processConfig; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig + { + struct ModelServiceConfig$PostParamPair + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings; + std::vector postParams; + std::string serviceId; + }; + std::vector modelServiceConfigs; + EffectStep effectStep; + std::string source; + }; + struct QuestionConfigDTO + { + struct QuestionOption + { + std::vector children1; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + int status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + RobotConfig robotConfig; + std::vector abandonReasons; + Creator creator; + std::string name; + std::string exif; + std::string type; + std::string gmtCreate; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + Modifier modifier; + std::vector tags; + }; + + + GetOptionTemplateResult(); + explicit GetOptionTemplateResult(const std::string &payload); + ~GetOptionTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETOPTIONTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoRequest.h b/itag/include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoRequest.h new file mode 100644 index 000000000..ce0797103 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETORCREATETNTINSTBYBIZNOREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETORCREATETNTINSTBYBIZNOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetOrCreateTntInstByBizNoRequest : public RoaServiceRequest { +public: + GetOrCreateTntInstByBizNoRequest(); + ~GetOrCreateTntInstByBizNoRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETORCREATETNTINSTBYBIZNOREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoResult.h b/itag/include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoResult.h new file mode 100644 index 000000000..0f006d1f1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetOrCreateTntInstByBizNoResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETORCREATETNTINSTBYBIZNORESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETORCREATETNTINSTBYBIZNORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetOrCreateTntInstByBizNoResult : public ServiceResult + { + public: + struct Result + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string gmtCreate; + std::string tntInstId; + std::string bizNO; + std::string gmtModified; + Creator creator; + Modifier modifier; + std::string name; + }; + + + GetOrCreateTntInstByBizNoResult(); + explicit GetOrCreateTntInstByBizNoResult(const std::string &payload); + ~GetOrCreateTntInstByBizNoResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETORCREATETNTINSTBYBIZNORESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetPersonSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetPersonSummaryRequest.h new file mode 100644 index 000000000..5a3fa6c3d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetPersonSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETPERSONSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETPERSONSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetPersonSummaryRequest : public RoaServiceRequest { +public: + GetPersonSummaryRequest(); + ~GetPersonSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETPERSONSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetPersonSummaryResult.h b/itag/include/alibabacloud/itag/model/GetPersonSummaryResult.h new file mode 100644 index 000000000..c331c4b5e --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetPersonSummaryResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETPERSONSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETPERSONSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetPersonSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetPersonSummaryResult(); + explicit GetPersonSummaryResult(const std::string &payload); + ~GetPersonSummaryResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETPERSONSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetSamplingSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetSamplingSummaryRequest.h new file mode 100644 index 000000000..913062b8a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSamplingSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETSAMPLINGSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSAMPLINGSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetSamplingSummaryRequest : public RoaServiceRequest { +public: + GetSamplingSummaryRequest(); + ~GetSamplingSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSAMPLINGSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetSamplingSummaryResult.h b/itag/include/alibabacloud/itag/model/GetSamplingSummaryResult.h new file mode 100644 index 000000000..5764e4c81 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSamplingSummaryResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETSAMPLINGSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSAMPLINGSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetSamplingSummaryResult : public ServiceResult + { + public: + struct Result + { + struct PersonSummaryDTOListItem + { + std::string userName; + std::string userId; + int personTotalItem; + int personErrorItem; + int personActualItem; + float personAccuracy; + }; + std::vector personSummaryDTOList; + int totalSubTask; + float accuracy; + int totalItem; + int noFixedItem; + int actualSubTask; + int actualItem; + int errorItem; + }; + + + GetSamplingSummaryResult(); + explicit GetSamplingSummaryResult(const std::string &payload); + ~GetSamplingSummaryResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSAMPLINGSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultRequest.h b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultRequest.h new file mode 100644 index 000000000..6d77d1989 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETSUBTASKDOWNLOADSYSTEMRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADSYSTEMRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetSubTaskDownloadSystemResultRequest : public RoaServiceRequest { +public: + GetSubTaskDownloadSystemResultRequest(); + ~GetSubTaskDownloadSystemResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADSYSTEMRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultResult.h b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultResult.h new file mode 100644 index 000000000..620007efd --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadSystemResultResult.h @@ -0,0 +1,94 @@ +/* + * 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_ITAG_MODEL_GETSUBTASKDOWNLOADSYSTEMRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADSYSTEMRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetSubTaskDownloadSystemResultResult : public ServiceResult + { + public: + struct Result + { + struct ITagSimpleMarkItemDTO + { + struct ITagSimpleUserMarkResultDTO + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + int rejectFlag; + std::string markItemId; + std::string dataId; + std::string state; + std::string dataMeta; + int mine; + int abandonFlag; + int fixedFlag; + std::vector markResultList; + int weight; + std::string datasetId; + }; + std::string subTaskId; + std::string taskId; + std::vector markItemList; + std::string userMarkItemListMap; + std::string workNode; + std::string userSubTaskMap; + }; + + + GetSubTaskDownloadSystemResultResult(); + explicit GetSubTaskDownloadSystemResultResult(const std::string &payload); + ~GetSubTaskDownloadSystemResultResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADSYSTEMRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetSubTaskDownloadUserResultRequest.h b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadUserResultRequest.h new file mode 100644 index 000000000..ded252342 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadUserResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETSUBTASKDOWNLOADUSERRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADUSERRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetSubTaskDownloadUserResultRequest : public RoaServiceRequest { +public: + GetSubTaskDownloadUserResultRequest(); + ~GetSubTaskDownloadUserResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADUSERRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetSubTaskDownloadUserResultResult.h b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadUserResultResult.h new file mode 100644 index 000000000..c830cc221 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSubTaskDownloadUserResultResult.h @@ -0,0 +1,94 @@ +/* + * 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_ITAG_MODEL_GETSUBTASKDOWNLOADUSERRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADUSERRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetSubTaskDownloadUserResultResult : public ServiceResult + { + public: + struct Result + { + struct ITagSimpleMarkItemDTO + { + struct ITagSimpleUserMarkResultDTO + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + int rejectFlag; + std::string markItemId; + std::string dataId; + std::string state; + std::string dataMeta; + int mine; + int abandonFlag; + int fixedFlag; + std::vector markResultList; + int weight; + std::string datasetId; + }; + std::string subTaskId; + std::string taskId; + std::vector markItemList; + std::string userMarkItemListMap; + std::string workNode; + std::string userSubTaskMap; + }; + + + GetSubTaskDownloadUserResultResult(); + explicit GetSubTaskDownloadUserResultResult(const std::string &payload); + ~GetSubTaskDownloadUserResultResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSUBTASKDOWNLOADUSERRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetSubTaskSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetSubTaskSummaryRequest.h new file mode 100644 index 000000000..8b130d215 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSubTaskSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETSUBTASKSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSUBTASKSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetSubTaskSummaryRequest : public RoaServiceRequest { +public: + GetSubTaskSummaryRequest(); + ~GetSubTaskSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSUBTASKSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetSubTaskSummaryResult.h b/itag/include/alibabacloud/itag/model/GetSubTaskSummaryResult.h new file mode 100644 index 000000000..9bfbd0ee8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetSubTaskSummaryResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETSUBTASKSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETSUBTASKSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetSubTaskSummaryResult : public ServiceResult + { + public: + struct Result + { + int totalItemCount; + int failItemCount; + }; + + + GetSubTaskSummaryResult(); + explicit GetSubTaskSummaryResult(const std::string &payload); + ~GetSubTaskSummaryResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETSUBTASKSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTaskPersonSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetTaskPersonSummaryRequest.h new file mode 100644 index 000000000..3434c0c0a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskPersonSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTASKPERSONSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKPERSONSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTaskPersonSummaryRequest : public RoaServiceRequest { +public: + GetTaskPersonSummaryRequest(); + ~GetTaskPersonSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKPERSONSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTaskPersonSummaryResult.h b/itag/include/alibabacloud/itag/model/GetTaskPersonSummaryResult.h new file mode 100644 index 000000000..bfbb9a0b8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskPersonSummaryResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETTASKPERSONSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKPERSONSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTaskPersonSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetTaskPersonSummaryResult(); + explicit GetTaskPersonSummaryResult(const std::string &payload); + ~GetTaskPersonSummaryResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKPERSONSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTaskProcessInfoRequest.h b/itag/include/alibabacloud/itag/model/GetTaskProcessInfoRequest.h new file mode 100644 index 000000000..fe8220f2b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskProcessInfoRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTASKPROCESSINFOREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKPROCESSINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTaskProcessInfoRequest : public RoaServiceRequest { +public: + GetTaskProcessInfoRequest(); + ~GetTaskProcessInfoRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKPROCESSINFOREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTaskProcessInfoResult.h b/itag/include/alibabacloud/itag/model/GetTaskProcessInfoResult.h new file mode 100644 index 000000000..c76d0fc2c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskProcessInfoResult.h @@ -0,0 +1,79 @@ +/* + * 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_ITAG_MODEL_GETTASKPROCESSINFORESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKPROCESSINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTaskProcessInfoResult : public ServiceResult + { + public: + struct Result + { + struct Summary + { + long abandonItem; + int totalSubTask; + int finishedSubTask; + int totalItem; + std::string state; + std::string node; + int finishedItem; + long fixedItem; + }; + std::string taskId; + std::string nodeSummary; + Summary summary; + std::string stage; + }; + + + GetTaskProcessInfoResult(); + explicit GetTaskProcessInfoResult(const std::string &payload); + ~GetTaskProcessInfoResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKPROCESSINFORESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTaskRequest.h b/itag/include/alibabacloud/itag/model/GetTaskRequest.h new file mode 100644 index 000000000..a12e0b42f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTaskRequest : public RoaServiceRequest { +public: + GetTaskRequest(); + ~GetTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTaskResult.h b/itag/include/alibabacloud/itag/model/GetTaskResult.h new file mode 100644 index 000000000..83b7d4bd7 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskResult.h @@ -0,0 +1,367 @@ +/* + * 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_ITAG_MODEL_GETTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTaskResult : public ServiceResult + { + public: + struct Result + { + struct OptionTemplateDTO + { + struct ViewConfigs + { + struct DisplayFieldDTO + { + struct VisitInfo + { + struct OssConf + { + std::string ossOwner; + std::string ossEndpoint; + std::string ossAk; + long expiredTime; + std::string ossBucket; + std::string folder; + std::string ossAs; + }; + struct AftsConf + { + int expiredTime; + }; + AftsConf aftsConf; + OssConf ossConf; + }; + bool hide; + std::string type; + std::string fieldNames; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + VisitInfo visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct Creator3 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier4 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct RobotConfig + { + struct EffectStep + { + struct ProcessConfig + { + std::vector relateColumn; + }; + ProcessConfig processConfig; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig + { + struct ModelServiceConfig$PostParamPair + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings; + std::vector postParams; + std::string serviceId; + }; + std::vector modelServiceConfigs; + EffectStep effectStep; + std::string source; + }; + struct QuestionConfigDTO + { + struct QuestionOption + { + std::vector children5; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + int status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + RobotConfig robotConfig; + std::vector abandonReasons; + std::string name; + std::string exif; + std::string type; + std::string gmtCreate; + std::vector questionConfigs; + std::vector tags2; + std::string id; + Creator3 creator3; + std::string sharedMode; + Modifier4 modifier4; + }; + struct TaskTemplateConfig + { + struct RobotConfig6 + { + struct EffectStep7 + { + struct ProcessConfig14 + { + std::vector relateColumn15; + }; + ProcessConfig14 processConfig14; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig9 + { + struct ModelServiceConfig$PostParamPair12 + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair13 + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings11; + std::vector postParams10; + std::string serviceId; + }; + std::vector modelServiceConfigs8; + std::string source; + EffectStep7 effectStep7; + }; + RobotConfig6 robotConfig6; + std::string exif; + std::vector selectQuestions; + std::string templateOptionMap; + std::string templateRelationId; + std::string resourceKey; + }; + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + struct AssignConfig + { + std::string assignField; + int assignCount; + int assignSubTaskCount; + std::string assignType; + }; + struct NoticeConfig + { + std::string dingHook; + std::vector listenActions; + std::string subTaskAlertGap; + }; + struct ResultCallbackConfig + { + std::string exif; + std::string retMsgMode; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct TaskDatasetProxyRelation + { + std::string exif; + std::string sourceBizId; + std::string datasetType; + std::string source; + std::string datasetId; + }; + struct ITagSimpleUserVO + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct ITagTaskWorkflowConfig + { + struct ITagSimpleUserVO1 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct ITagSimpleUserGroupVO + { + std::string groupName; + std::string groupId; + }; + std::string exif; + std::string nodeName; + std::vector groups; + std::vector users; + }; + std::string taskId; + bool allowAppendData; + std::string relateTaskConfig; + std::string runMsg; + std::string gmtModified; + ResultCallbackConfig resultCallbackConfig; + Creator creator; + std::string remark; + bool archived; + std::string exif; + std::vector taskWorkFlow; + std::string archivedInfos; + std::string taskType; + OptionTemplateDTO optionTemplateDTO; + std::string stage; + Modifier modifier; + std::string templateId; + std::vector tags; + AssignConfig assignConfig; + int status; + BizInfo bizInfo; + std::string tntInstId; + std::string channel; + long projectId; + std::string tntInstName; + std::string voteConfigs; + NoticeConfig noticeConfig; + std::vector workflowNodes; + TaskTemplateConfig taskTemplateConfig; + std::vector datasetProxyRelations; + int alertTime; + std::string mineConfigs; + int safetyLevel; + std::string gmtCreate; + std::string taskName; + std::vector admins; + std::vector supportDownloadTypes; + }; + + + GetTaskResult(); + explicit GetTaskResult(const std::string &payload); + ~GetTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTaskStatTypesRequest.h b/itag/include/alibabacloud/itag/model/GetTaskStatTypesRequest.h new file mode 100644 index 000000000..852964aa2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskStatTypesRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTASKSTATTYPESREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKSTATTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTaskStatTypesRequest : public RoaServiceRequest { +public: + GetTaskStatTypesRequest(); + ~GetTaskStatTypesRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKSTATTYPESREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTaskStatTypesResult.h b/itag/include/alibabacloud/itag/model/GetTaskStatTypesResult.h new file mode 100644 index 000000000..7a7d48162 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskStatTypesResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETTASKSTATTYPESRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKSTATTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTaskStatTypesResult : public ServiceResult + { + public: + + + GetTaskStatTypesResult(); + explicit GetTaskStatTypesResult(const std::string &payload); + ~GetTaskStatTypesResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKSTATTYPESRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTaskSummaryRequest.h b/itag/include/alibabacloud/itag/model/GetTaskSummaryRequest.h new file mode 100644 index 000000000..fc1b11aab --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskSummaryRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTASKSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTaskSummaryRequest : public RoaServiceRequest { +public: + GetTaskSummaryRequest(); + ~GetTaskSummaryRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKSUMMARYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTaskSummaryResult.h b/itag/include/alibabacloud/itag/model/GetTaskSummaryResult.h new file mode 100644 index 000000000..dead7dc7f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTaskSummaryResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETTASKSUMMARYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTASKSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTaskSummaryResult : public ServiceResult + { + public: + struct Result + { + struct ITagBaseReportResponse + { + std::string taskId; + std::string bizClassify; + int sampledReject; + int checkReject; + long noRejectAudio; + double markTime; + int noRejectMark; + int totalMark; + int totalSampling; + int samplingReject; + double sampledAccuracy; + int totalDisable; + double markEfficiency; + long totalPDF; + double checkTime; + double checkedAccuracy; + int samplingFix; + int checkedReject; + std::string userName; + int sample; + std::string workflow; + long noRejectPDF; + double checkEfficiency; + int checkedError; + std::string workTime; + int totalSampled; + double samplingAccuracy; + int totalCheck; + long totalAudio; + std::string taskName; + long totalVideo; + std::string userId; + int checkedFix; + std::string updateTime; + int samplingError; + int checkFix; + long noRejectVideo; + int sampledFix; + int totalChecked; + int checkError; + double checkAccuracy; + int sampledError; + int noRejectCheck; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + GetTaskSummaryResult(); + explicit GetTaskSummaryResult(const std::string &payload); + ~GetTaskSummaryResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTASKSUMMARYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTntConfListValueRequest.h b/itag/include/alibabacloud/itag/model/GetTntConfListValueRequest.h new file mode 100644 index 000000000..271c4c6af --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTntConfListValueRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTNTCONFLISTVALUEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTNTCONFLISTVALUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTntConfListValueRequest : public RoaServiceRequest { +public: + GetTntConfListValueRequest(); + ~GetTntConfListValueRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTNTCONFLISTVALUEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTntConfListValueResult.h b/itag/include/alibabacloud/itag/model/GetTntConfListValueResult.h new file mode 100644 index 000000000..f7b82cfb8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTntConfListValueResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETTNTCONFLISTVALUERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTNTCONFLISTVALUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTntConfListValueResult : public ServiceResult + { + public: + struct ResultItem + { + std::string tntInstId; + std::string propKey; + std::string propValue; + std::vector propListValue; + }; + + + GetTntConfListValueResult(); + explicit GetTntConfListValueResult(const std::string &payload); + ~GetTntConfListValueResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTNTCONFLISTVALUERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetTntUserRoleRequest.h b/itag/include/alibabacloud/itag/model/GetTntUserRoleRequest.h new file mode 100644 index 000000000..748371081 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTntUserRoleRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETTNTUSERROLEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTNTUSERROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetTntUserRoleRequest : public RoaServiceRequest { +public: + GetTntUserRoleRequest(); + ~GetTntUserRoleRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTNTUSERROLEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetTntUserRoleResult.h b/itag/include/alibabacloud/itag/model/GetTntUserRoleResult.h new file mode 100644 index 000000000..7071f3fe1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetTntUserRoleResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETTNTUSERROLERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETTNTUSERROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetTntUserRoleResult : public ServiceResult + { + public: + struct Result + { + std::string email; + std::string userName; + std::string tntInstId; + std::string org; + std::string accountNo; + std::string bizNo; + bool self; + std::string accountType; + std::string role; + std::string supplierId; + std::string refUserId; + std::string phone; + std::string userId; + }; + + + GetTntUserRoleResult(); + explicit GetTntUserRoleResult(const std::string &payload); + ~GetTntUserRoleResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETTNTUSERROLERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetUpdateTimeRequest.h b/itag/include/alibabacloud/itag/model/GetUpdateTimeRequest.h new file mode 100644 index 000000000..9afeb6e00 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetUpdateTimeRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETUPDATETIMEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETUPDATETIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetUpdateTimeRequest : public RoaServiceRequest { +public: + GetUpdateTimeRequest(); + ~GetUpdateTimeRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETUPDATETIMEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetUpdateTimeResult.h b/itag/include/alibabacloud/itag/model/GetUpdateTimeResult.h new file mode 100644 index 000000000..32c99960c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetUpdateTimeResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_GETUPDATETIMERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETUPDATETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetUpdateTimeResult : public ServiceResult + { + public: + + + GetUpdateTimeResult(); + explicit GetUpdateTimeResult(const std::string &payload); + ~GetUpdateTimeResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETUPDATETIMERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetUserMarkItemInfoRequest.h b/itag/include/alibabacloud/itag/model/GetUserMarkItemInfoRequest.h new file mode 100644 index 000000000..f96415dad --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetUserMarkItemInfoRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETUSERMARKITEMINFOREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETUSERMARKITEMINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetUserMarkItemInfoRequest : public RoaServiceRequest { +public: + GetUserMarkItemInfoRequest(); + ~GetUserMarkItemInfoRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETUSERMARKITEMINFOREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetUserMarkItemInfoResult.h b/itag/include/alibabacloud/itag/model/GetUserMarkItemInfoResult.h new file mode 100644 index 000000000..8db1a6c77 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetUserMarkItemInfoResult.h @@ -0,0 +1,142 @@ +/* + * 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_ITAG_MODEL_GETUSERMARKITEMINFORESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETUSERMARKITEMINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetUserMarkItemInfoResult : public ServiceResult + { + public: + struct MsgInfo + { + std::string msg; + std::string msgCn; + }; + struct Result + { + struct MarkResultListItem + { + struct Progress + { + int finished; + int total; + }; + std::string markTime; + Progress progress; + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + bool isNeedVoteJudge; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + struct VoteInfoListItem + { + struct MarkResultListItem2 + { + struct Progress3 + { + int finished; + int total; + }; + std::string markTime; + std::string markResult; + Progress3 progress3; + std::string userMarkResultId; + std::string questionId; + std::string version; + bool isNeedVoteJudge; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + std::string userMarkItemId; + std::string userName; + std::string userId; + std::string workFlow; + bool isAccept; + std::vector markResultList1; + }; + std::string subTaskId; + int rejectFlag; + bool isVoteEqual; + std::string abandonRemark; + std::vector voteInfoList; + int abandonFlag; + std::string feedbackRemark; + std::string _operator; + std::string isConfirmed; + std::string needConfirm; + std::vector markResultList; + int weight; + std::string datasetId; + std::string confirmRange; + std::string userMarkItemId; + std::string markItemId; + std::string dataId; + int feedbackFlag; + std::string state; + std::string dataMeta; + int mine; + int fixedFlag; + }; + + + GetUserMarkItemInfoResult(); + explicit GetUserMarkItemInfoResult(const std::string &payload); + ~GetUserMarkItemInfoResult(); + std::string getMsg()const; + long getRt()const; + MsgInfo getMsgInfo()const; + bool getSucc()const; + std::string getTraceId()const; + std::string getHost()const; + std::string getErrorCode()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + MsgInfo msgInfo_; + bool succ_; + std::string traceId_; + std::string host_; + std::string errorCode_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETUSERMARKITEMINFORESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/GetUserRequest.h b/itag/include/alibabacloud/itag/model/GetUserRequest.h new file mode 100644 index 000000000..200dd0747 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetUserRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT GetUserRequest : public RoaServiceRequest { +public: + GetUserRequest(); + ~GetUserRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_GETUSERREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/GetUserResult.h b/itag/include/alibabacloud/itag/model/GetUserResult.h new file mode 100644 index 000000000..ece299b07 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/GetUserResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_GETUSERRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_GETUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT GetUserResult : public ServiceResult + { + public: + struct Result + { + std::string supplierId; + std::string email; + std::string userName; + std::string refUserId; + std::string org; + std::string accountNo; + std::string phone; + std::string userId; + std::string accountType; + }; + + + GetUserResult(); + explicit GetUserResult(const std::string &payload); + ~GetUserResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ImportOptionTemplateRequest.h b/itag/include/alibabacloud/itag/model/ImportOptionTemplateRequest.h new file mode 100644 index 000000000..5970da31e --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ImportOptionTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_IMPORTOPTIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_IMPORTOPTIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ImportOptionTemplateRequest : public RoaServiceRequest { +public: + ImportOptionTemplateRequest(); + ~ImportOptionTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_IMPORTOPTIONTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ImportOptionTemplateResult.h b/itag/include/alibabacloud/itag/model/ImportOptionTemplateResult.h new file mode 100644 index 000000000..43caca655 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ImportOptionTemplateResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_IMPORTOPTIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_IMPORTOPTIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ImportOptionTemplateResult : public ServiceResult + { + public: + + + ImportOptionTemplateResult(); + explicit ImportOptionTemplateResult(const std::string &payload); + ~ImportOptionTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_IMPORTOPTIONTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/InitSamplingUserSubTaskRequest.h b/itag/include/alibabacloud/itag/model/InitSamplingUserSubTaskRequest.h new file mode 100644 index 000000000..686330679 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/InitSamplingUserSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_INITSAMPLINGUSERSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_INITSAMPLINGUSERSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT InitSamplingUserSubTaskRequest : public RoaServiceRequest { +public: + InitSamplingUserSubTaskRequest(); + ~InitSamplingUserSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_INITSAMPLINGUSERSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/InitSamplingUserSubTaskResult.h b/itag/include/alibabacloud/itag/model/InitSamplingUserSubTaskResult.h new file mode 100644 index 000000000..eae42fbc8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/InitSamplingUserSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_INITSAMPLINGUSERSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_INITSAMPLINGUSERSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT InitSamplingUserSubTaskResult : public ServiceResult + { + public: + + + InitSamplingUserSubTaskResult(); + explicit InitSamplingUserSubTaskResult(const std::string &payload); + ~InitSamplingUserSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_INITSAMPLINGUSERSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListAssignedSubUserTaskRequest.h b/itag/include/alibabacloud/itag/model/ListAssignedSubUserTaskRequest.h new file mode 100644 index 000000000..3d0d642a6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListAssignedSubUserTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTASSIGNEDSUBUSERTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTASSIGNEDSUBUSERTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListAssignedSubUserTaskRequest : public RoaServiceRequest { +public: + ListAssignedSubUserTaskRequest(); + ~ListAssignedSubUserTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTASSIGNEDSUBUSERTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListAssignedSubUserTaskResult.h b/itag/include/alibabacloud/itag/model/ListAssignedSubUserTaskResult.h new file mode 100644 index 000000000..4a971ed2c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListAssignedSubUserTaskResult.h @@ -0,0 +1,88 @@ +/* + * 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_ITAG_MODEL_LISTASSIGNEDSUBUSERTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTASSIGNEDSUBUSERTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListAssignedSubUserTaskResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + long subTaskId; + std::string taskId; + std::string taskName; + std::string state; + bool canRelease; + Creator creator; + long count; + bool canReassign; + std::vector tags; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + ListAssignedSubUserTaskResult(); + explicit ListAssignedSubUserTaskResult(const std::string &payload); + ~ListAssignedSubUserTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTASSIGNEDSUBUSERTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListCheckTaskRequest.h b/itag/include/alibabacloud/itag/model/ListCheckTaskRequest.h new file mode 100644 index 000000000..69dc41788 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListCheckTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTCHECKTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTCHECKTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListCheckTaskRequest : public RoaServiceRequest { +public: + ListCheckTaskRequest(); + ~ListCheckTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTCHECKTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListCheckTaskResult.h b/itag/include/alibabacloud/itag/model/ListCheckTaskResult.h new file mode 100644 index 000000000..af48091f7 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListCheckTaskResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTCHECKTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTCHECKTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListCheckTaskResult : public ServiceResult + { + public: + struct ResultItem + { + struct Creator + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + struct Modifier + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + std::string subTaskId; + std::string taskId; + std::string userSubTaskId; + std::string gmtModified; + Creator creator; + bool canReassign; + std::string source; + std::string gmtCreate; + std::string taskName; + bool canRelease; + std::string state; + Modifier modifier; + std::vector tags; + }; + + + ListCheckTaskResult(); + explicit ListCheckTaskResult(const std::string &payload); + ~ListCheckTaskResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTCHECKTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListDatasetFieldsRequest.h b/itag/include/alibabacloud/itag/model/ListDatasetFieldsRequest.h new file mode 100644 index 000000000..ac150041a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListDatasetFieldsRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTDATASETFIELDSREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTDATASETFIELDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListDatasetFieldsRequest : public RoaServiceRequest { +public: + ListDatasetFieldsRequest(); + ~ListDatasetFieldsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTDATASETFIELDSREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListDatasetFieldsResult.h b/itag/include/alibabacloud/itag/model/ListDatasetFieldsResult.h new file mode 100644 index 000000000..43e5af406 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListDatasetFieldsResult.h @@ -0,0 +1,74 @@ +/* + * 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_ITAG_MODEL_LISTDATASETFIELDSRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTDATASETFIELDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListDatasetFieldsResult : public ServiceResult + { + public: + struct ITagDatasetField + { + std::string exif; + std::string type; + std::string classify; + std::string alias; + bool sensitive; + bool sortKey; + std::string fieldClassify; + std::string fieldName; + std::string fieldDesc; + std::string fieldType; + }; + + + ListDatasetFieldsResult(); + explicit ListDatasetFieldsResult(const std::string &payload); + ~ListDatasetFieldsResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTDATASETFIELDSRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListFinishedSubUserTaskRequest.h b/itag/include/alibabacloud/itag/model/ListFinishedSubUserTaskRequest.h new file mode 100644 index 000000000..a0dbf2f96 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListFinishedSubUserTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTFINISHEDSUBUSERTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTFINISHEDSUBUSERTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListFinishedSubUserTaskRequest : public RoaServiceRequest { +public: + ListFinishedSubUserTaskRequest(); + ~ListFinishedSubUserTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTFINISHEDSUBUSERTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListFinishedSubUserTaskResult.h b/itag/include/alibabacloud/itag/model/ListFinishedSubUserTaskResult.h new file mode 100644 index 000000000..53ac0c847 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListFinishedSubUserTaskResult.h @@ -0,0 +1,109 @@ +/* + * 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_ITAG_MODEL_LISTFINISHEDSUBUSERTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTFINISHEDSUBUSERTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListFinishedSubUserTaskResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + struct Creator + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + struct Modifier + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + std::string subTaskId; + std::string workTime; + std::string gmtCreate; + std::string taskId; + std::string taskName; + std::string state; + std::string workNode; + std::string userSubTaskId; + std::string gmtModified; + Creator creator; + Modifier modifier; + }; + int pageNum; + int pageSize; + long totalPage; + long total; + std::vector list; + }; + + + ListFinishedSubUserTaskResult(); + explicit ListFinishedSubUserTaskResult(const std::string &payload); + ~ListFinishedSubUserTaskResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTFINISHEDSUBUSERTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListMarkableTaskRequest.h b/itag/include/alibabacloud/itag/model/ListMarkableTaskRequest.h new file mode 100644 index 000000000..e60d00e3d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListMarkableTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTMARKABLETASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTMARKABLETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListMarkableTaskRequest : public RoaServiceRequest { +public: + ListMarkableTaskRequest(); + ~ListMarkableTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTMARKABLETASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListMarkableTaskResult.h b/itag/include/alibabacloud/itag/model/ListMarkableTaskResult.h new file mode 100644 index 000000000..30dcf4af8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListMarkableTaskResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTMARKABLETASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTMARKABLETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListMarkableTaskResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string taskId; + std::string taskName; + Creator creator; + long count; + std::vector tags; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + ListMarkableTaskResult(); + explicit ListMarkableTaskResult(const std::string &payload); + ~ListMarkableTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTMARKABLETASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListSamplingHandlerUserRequest.h b/itag/include/alibabacloud/itag/model/ListSamplingHandlerUserRequest.h new file mode 100644 index 000000000..81ea49d60 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListSamplingHandlerUserRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTSAMPLINGHANDLERUSERREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGHANDLERUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListSamplingHandlerUserRequest : public RoaServiceRequest { +public: + ListSamplingHandlerUserRequest(); + ~ListSamplingHandlerUserRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGHANDLERUSERREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListSamplingHandlerUserResult.h b/itag/include/alibabacloud/itag/model/ListSamplingHandlerUserResult.h new file mode 100644 index 000000000..77cb46b9c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListSamplingHandlerUserResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGHANDLERUSERRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGHANDLERUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListSamplingHandlerUserResult : public ServiceResult + { + public: + struct Result + { + struct ITagSamplingStatsDTO + { + std::string totalMarkItemCount; + std::string subUserTaskId; + int hasNonCompleteTask; + std::string markResultKVMap; + std::string subTaskAndMarkItemMap; + std::string workUserMap; + std::string totalSubTaskCount; + }; + ITagSamplingStatsDTO iTagSamplingStatsDTO; + }; + + + ListSamplingHandlerUserResult(); + explicit ListSamplingHandlerUserResult(const std::string &payload); + ~ListSamplingHandlerUserResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGHANDLERUSERRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListSamplingResultMetaRequest.h b/itag/include/alibabacloud/itag/model/ListSamplingResultMetaRequest.h new file mode 100644 index 000000000..70ee2811f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListSamplingResultMetaRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTSAMPLINGRESULTMETAREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGRESULTMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListSamplingResultMetaRequest : public RoaServiceRequest { +public: + ListSamplingResultMetaRequest(); + ~ListSamplingResultMetaRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGRESULTMETAREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListSamplingResultMetaResult.h b/itag/include/alibabacloud/itag/model/ListSamplingResultMetaResult.h new file mode 100644 index 000000000..50906eed8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListSamplingResultMetaResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGRESULTMETARESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGRESULTMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListSamplingResultMetaResult : public ServiceResult + { + public: + struct Result + { + struct ITagSamplingStatsDTO + { + std::string totalMarkItemCount; + std::string subUserTaskId; + int hasNonCompleteTask; + std::string markResultKVMap; + std::string subTaskAndMarkItemMap; + std::string workUserMap; + std::string totalSubTaskCount; + }; + ITagSamplingStatsDTO iTagSamplingStatsDTO; + }; + + + ListSamplingResultMetaResult(); + explicit ListSamplingResultMetaResult(const std::string &payload); + ~ListSamplingResultMetaResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGRESULTMETARESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListSamplingUsersRequest.h b/itag/include/alibabacloud/itag/model/ListSamplingUsersRequest.h new file mode 100644 index 000000000..029fd8a1e --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListSamplingUsersRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTSAMPLINGUSERSREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListSamplingUsersRequest : public RoaServiceRequest { +public: + ListSamplingUsersRequest(); + ~ListSamplingUsersRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGUSERSREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListSamplingUsersResult.h b/itag/include/alibabacloud/itag/model/ListSamplingUsersResult.h new file mode 100644 index 000000000..a79ada065 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListSamplingUsersResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGUSERSRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListSamplingUsersResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + int pageNum; + int pageSize; + long totalPage; + long total; + std::vector list; + }; + + + ListSamplingUsersResult(); + explicit ListSamplingUsersResult(const std::string &payload); + ~ListSamplingUsersResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTSAMPLINGUSERSRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListTntConfigRequest.h b/itag/include/alibabacloud/itag/model/ListTntConfigRequest.h new file mode 100644 index 000000000..7af20d7a8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListTntConfigRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTTNTCONFIGREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTTNTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListTntConfigRequest : public RoaServiceRequest { +public: + ListTntConfigRequest(); + ~ListTntConfigRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTTNTCONFIGREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListTntConfigResult.h b/itag/include/alibabacloud/itag/model/ListTntConfigResult.h new file mode 100644 index 000000000..97a29f678 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListTntConfigResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTTNTCONFIGRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTTNTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListTntConfigResult : public ServiceResult + { + public: + struct Result + { + std::string tntInstId; + std::string propKey; + std::string propValue; + std::vector propListValue; + }; + + + ListTntConfigResult(); + explicit ListTntConfigResult(const std::string &payload); + ~ListTntConfigResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTTNTCONFIGRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ListWorkNodeUsersRequest.h b/itag/include/alibabacloud/itag/model/ListWorkNodeUsersRequest.h new file mode 100644 index 000000000..d71a533c3 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListWorkNodeUsersRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_LISTWORKNODEUSERSREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTWORKNODEUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ListWorkNodeUsersRequest : public RoaServiceRequest { +public: + ListWorkNodeUsersRequest(); + ~ListWorkNodeUsersRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTWORKNODEUSERSREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ListWorkNodeUsersResult.h b/itag/include/alibabacloud/itag/model/ListWorkNodeUsersResult.h new file mode 100644 index 000000000..da0e36ea0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ListWorkNodeUsersResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_LISTWORKNODEUSERSRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_LISTWORKNODEUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ListWorkNodeUsersResult : public ServiceResult + { + public: + struct Result + { + struct ITagSimpleUserVO + { + struct ITagSimpleUserVO1 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + ITagSimpleUserVO1 iTagSimpleUserVO1; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + ListWorkNodeUsersResult(); + explicit ListWorkNodeUsersResult(const std::string &payload); + ~ListWorkNodeUsersResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_LISTWORKNODEUSERSRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ManualCalReportRequest.h b/itag/include/alibabacloud/itag/model/ManualCalReportRequest.h new file mode 100644 index 000000000..29a94723c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ManualCalReportRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_MANUALCALREPORTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_MANUALCALREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ManualCalReportRequest : public RoaServiceRequest { +public: + ManualCalReportRequest(); + ~ManualCalReportRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_MANUALCALREPORTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ManualCalReportResult.h b/itag/include/alibabacloud/itag/model/ManualCalReportResult.h new file mode 100644 index 000000000..998d7e585 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ManualCalReportResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_MANUALCALREPORTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_MANUALCALREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ManualCalReportResult : public ServiceResult + { + public: + + + ManualCalReportResult(); + explicit ManualCalReportResult(const std::string &payload); + ~ManualCalReportResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_MANUALCALREPORTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/MngReleaseUserSubTaskRequest.h b/itag/include/alibabacloud/itag/model/MngReleaseUserSubTaskRequest.h new file mode 100644 index 000000000..540ef42b2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/MngReleaseUserSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_MNGRELEASEUSERSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_MNGRELEASEUSERSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT MngReleaseUserSubTaskRequest : public RoaServiceRequest { +public: + MngReleaseUserSubTaskRequest(); + ~MngReleaseUserSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_MNGRELEASEUSERSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/MngReleaseUserSubTaskResult.h b/itag/include/alibabacloud/itag/model/MngReleaseUserSubTaskResult.h new file mode 100644 index 000000000..9b4c3cda0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/MngReleaseUserSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_MNGRELEASEUSERSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_MNGRELEASEUSERSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT MngReleaseUserSubTaskResult : public ServiceResult + { + public: + + + MngReleaseUserSubTaskResult(); + explicit MngReleaseUserSubTaskResult(const std::string &payload); + ~MngReleaseUserSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_MNGRELEASEUSERSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/OfflineTaskRequest.h b/itag/include/alibabacloud/itag/model/OfflineTaskRequest.h new file mode 100644 index 000000000..337436be0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/OfflineTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_OFFLINETASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_OFFLINETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT OfflineTaskRequest : public RoaServiceRequest { +public: + OfflineTaskRequest(); + ~OfflineTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_OFFLINETASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/OfflineTaskResult.h b/itag/include/alibabacloud/itag/model/OfflineTaskResult.h new file mode 100644 index 000000000..d93659908 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/OfflineTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_OFFLINETASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_OFFLINETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT OfflineTaskResult : public ServiceResult + { + public: + + + OfflineTaskResult(); + explicit OfflineTaskResult(const std::string &payload); + ~OfflineTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_OFFLINETASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/OnlineTaskRequest.h b/itag/include/alibabacloud/itag/model/OnlineTaskRequest.h new file mode 100644 index 000000000..dfa5d5969 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/OnlineTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_ONLINETASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_ONLINETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT OnlineTaskRequest : public RoaServiceRequest { +public: + OnlineTaskRequest(); + ~OnlineTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_ONLINETASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/OnlineTaskResult.h b/itag/include/alibabacloud/itag/model/OnlineTaskResult.h new file mode 100644 index 000000000..9db4f1fe5 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/OnlineTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_ONLINETASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_ONLINETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT OnlineTaskResult : public ServiceResult + { + public: + + + OnlineTaskResult(); + explicit OnlineTaskResult(const std::string &payload); + ~OnlineTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_ONLINETASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewDataMetaRequest.h b/itag/include/alibabacloud/itag/model/PageViewDataMetaRequest.h new file mode 100644 index 000000000..484611d5c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewDataMetaRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWDATAMETAREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATAMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewDataMetaRequest : public RoaServiceRequest { +public: + PageViewDataMetaRequest(); + ~PageViewDataMetaRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATAMETAREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewDataMetaResult.h b/itag/include/alibabacloud/itag/model/PageViewDataMetaResult.h new file mode 100644 index 000000000..26fccb467 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewDataMetaResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATAMETARESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATAMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewDataMetaResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + std::string outGroupKey; + std::string outDataId; + std::string batchNo; + std::string id; + std::string metaInfos; + std::string datasetId; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewDataMetaResult(); + explicit PageViewDataMetaResult(const std::string &payload); + ~PageViewDataMetaResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATAMETARESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewDatasetProxyRequest.h b/itag/include/alibabacloud/itag/model/PageViewDatasetProxyRequest.h new file mode 100644 index 000000000..d2bd2b982 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewDatasetProxyRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWDATASETPROXYREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATASETPROXYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewDatasetProxyRequest : public RoaServiceRequest { +public: + PageViewDatasetProxyRequest(); + ~PageViewDatasetProxyRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATASETPROXYREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewDatasetProxyResult.h b/itag/include/alibabacloud/itag/model/PageViewDatasetProxyResult.h new file mode 100644 index 000000000..a72a1e61f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewDatasetProxyResult.h @@ -0,0 +1,120 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWDATASETPROXYRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATASETPROXYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewDatasetProxyResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Schema + { + struct FieldsItem + { + std::string exif; + std::string type; + std::string classify; + std::string alias; + bool sensitive; + bool sortKey; + std::string fieldClassify; + std::string fieldName; + std::string fieldDesc; + std::string fieldType; + }; + std::vector fields; + }; + long status; + std::string description; + std::string proxyTarget; + std::string tntInstId; + Schema schema; + std::string runMsg; + std::string gmtModified; + Creator creator; + std::string source; + std::string name; + std::string gmtCreate; + long safetyLevel; + std::string sourceBizId; + long totalNum; + std::string proxyConfigs; + std::string sharedMode; + Modifier modifier; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewDatasetProxyResult(); + explicit PageViewDatasetProxyResult(const std::string &payload); + ~PageViewDatasetProxyResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWDATASETPROXYRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewFlowJobRequest.h b/itag/include/alibabacloud/itag/model/PageViewFlowJobRequest.h new file mode 100644 index 000000000..3fa3a9cf0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewFlowJobRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWFLOWJOBREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWFLOWJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewFlowJobRequest : public RoaServiceRequest { +public: + PageViewFlowJobRequest(); + ~PageViewFlowJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWFLOWJOBREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewFlowJobResult.h b/itag/include/alibabacloud/itag/model/PageViewFlowJobResult.h new file mode 100644 index 000000000..028c738c8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewFlowJobResult.h @@ -0,0 +1,96 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWFLOWJOBRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWFLOWJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewFlowJobResult : public ServiceResult + { + public: + struct Result + { + struct ITagFlowJobStatResponse + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string flowId; + std::string gmtCreate; + std::string runInstId; + std::string state; + std::string runMsg; + std::string runRet; + std::string gmtModified; + Creator creator; + Modifier modifier; + std::string logView; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewFlowJobResult(); + explicit PageViewFlowJobResult(const std::string &payload); + ~PageViewFlowJobResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWFLOWJOBRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewModelRequest.h b/itag/include/alibabacloud/itag/model/PageViewModelRequest.h new file mode 100644 index 000000000..208da79a9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewModelRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWMODELREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMODELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewModelRequest : public RoaServiceRequest { +public: + PageViewModelRequest(); + ~PageViewModelRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMODELREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewModelResult.h b/itag/include/alibabacloud/itag/model/PageViewModelResult.h new file mode 100644 index 000000000..3f733d28a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewModelResult.h @@ -0,0 +1,183 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWMODELRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewModelResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + struct ModelConfig + { + long qpsLimit; + std::string serviceCode; + std::string contentType; + std::string appId; + std::string udfContent; + std::string host; + std::string token; + std::string paiModelTarget; + std::string requestType; + }; + struct ParamConfig + { + struct PresetParamItem + { + std::string defaultValue; + std::string type; + std::string codec; + std::string alias; + std::string value; + std::string name; + }; + struct PostParamItem + { + std::string defaultValue; + std::string type; + std::string codec; + std::string alias; + std::string value; + std::string name; + }; + struct ResponseParamItem + { + std::string resultPath; + std::string resultKey; + }; + std::vector presetParam; + std::vector postParam; + std::vector responseParam; + }; + struct ModelExtendConfig + { + struct AsyncConfig + { + long modelId; + }; + long postUdfModelId; + std::string extra; + AsyncConfig asyncConfig; + long preUdfModelId; + std::vector aggModelIds; + }; + struct Creator + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + struct Modifier + { + std::string supplierId; + std::string userName; + std::string email; + std::string accountNo; + std::string supplierName; + std::string userId; + std::string pamNo; + std::string accountType; + }; + struct DemoModelConfig + { + long qpsLimit; + std::string serviceCode; + std::string contentType; + std::string appId; + std::string udfContent; + std::string host; + std::string token; + std::string paiModelTarget; + std::string requestType; + }; + ModelExtendConfig modelExtendConfig; + std::string tntInstId; + std::string modelTag; + std::string creatorId; + std::string gmtModified; + std::string creatorAccount; + std::string udfType; + Creator creator; + ParamConfig paramConfig; + std::string source; + std::string name; + std::string remark; + ModelConfig modelConfig; + std::string type; + std::string gmtCreate; + bool async; + DemoModelConfig demoModelConfig; + std::string id; + Modifier modifier; + std::string creatorName; + }; + int pageNum; + int pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewModelResult(); + explicit PageViewModelResult(const std::string &payload); + ~PageViewModelResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMODELRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewMyTntRequest.h b/itag/include/alibabacloud/itag/model/PageViewMyTntRequest.h new file mode 100644 index 000000000..179caae9f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewMyTntRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWMYTNTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMYTNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewMyTntRequest : public RoaServiceRequest { +public: + PageViewMyTntRequest(); + ~PageViewMyTntRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMYTNTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewMyTntResult.h b/itag/include/alibabacloud/itag/model/PageViewMyTntResult.h new file mode 100644 index 000000000..25b9c4ab9 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewMyTntResult.h @@ -0,0 +1,94 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWMYTNTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMYTNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewMyTntResult : public ServiceResult + { + public: + struct Result + { + struct List + { + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string role; + std::string gmtCreate; + std::string tntInstId; + std::string bizNO; + std::string gmtModified; + Creator creator; + Modifier modifier; + std::string name; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + List list; + }; + + + PageViewMyTntResult(); + explicit PageViewMyTntResult(const std::string &payload); + ~PageViewMyTntResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWMYTNTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewOptionTemplateRequest.h b/itag/include/alibabacloud/itag/model/PageViewOptionTemplateRequest.h new file mode 100644 index 000000000..15a897ec8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewOptionTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWOPTIONTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWOPTIONTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewOptionTemplateRequest : public RoaServiceRequest { +public: + PageViewOptionTemplateRequest(); + ~PageViewOptionTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWOPTIONTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewOptionTemplateResult.h b/itag/include/alibabacloud/itag/model/PageViewOptionTemplateResult.h new file mode 100644 index 000000000..0aeeb61c3 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewOptionTemplateResult.h @@ -0,0 +1,219 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWOPTIONTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWOPTIONTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewOptionTemplateResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + struct ViewConfigs + { + struct DisplayFieldDTO + { + struct VisitInfo + { + struct OssConf + { + std::string ossOwner; + std::string ossEndpoint; + std::string ossAk; + long expiredTime; + std::string ossBucket; + std::string folder; + std::string ossAs; + }; + struct AftsConf + { + int expiredTime; + }; + AftsConf aftsConf; + OssConf ossConf; + }; + bool hide; + std::string type; + std::string fieldNames; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + VisitInfo visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct RobotConfig + { + struct EffectStep + { + struct ProcessConfig + { + std::vector relateColumn; + }; + ProcessConfig processConfig; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig + { + struct ModelServiceConfig$PostParamPair + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings; + std::vector postParams; + std::string serviceId; + }; + std::vector modelServiceConfigs; + EffectStep effectStep; + std::string source; + }; + struct QuestionConfigDTO + { + struct QuestionOption + { + std::vector children1; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + int status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + RobotConfig robotConfig; + std::vector abandonReasons; + Creator creator; + std::string name; + std::string exif; + std::string type; + std::string gmtCreate; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + Modifier modifier; + std::vector tags; + }; + int pageNum; + int pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewOptionTemplateResult(); + explicit PageViewOptionTemplateResult(const std::string &payload); + ~PageViewOptionTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWOPTIONTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewSubTaskItemRequest.h b/itag/include/alibabacloud/itag/model/PageViewSubTaskItemRequest.h new file mode 100644 index 000000000..4b5798954 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewSubTaskItemRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWSUBTASKITEMREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewSubTaskItemRequest : public RoaServiceRequest { +public: + PageViewSubTaskItemRequest(); + ~PageViewSubTaskItemRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKITEMREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewSubTaskItemResult.h b/itag/include/alibabacloud/itag/model/PageViewSubTaskItemResult.h new file mode 100644 index 000000000..893d6d306 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewSubTaskItemResult.h @@ -0,0 +1,216 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWSUBTASKITEMRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewSubTaskItemResult : public ServiceResult + { + public: + struct Result + { + struct TaskInfo + { + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + long safetyLevel; + BizInfo bizInfo; + std::string taskId; + std::string taskName; + std::string taskType; + std::string channel; + }; + struct SubTask + { + std::string subTaskId; + }; + struct SubUserTask + { + struct Handler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + long voteIdx; + long rejectFlag; + std::string gmtTimeout; + std::string state; + std::string userSubTaskId; + std::string workNode; + Handler handler; + std::string operateFlag; + std::string rejectRemark; + std::string externalBizNo; + std::string lastUserSubTaskId; + }; + struct OptionTemplate + { + struct ViewConfigs + { + struct FieldsItem + { + bool hide; + std::string type; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + std::string visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct QuestionConfigsItem + { + struct QuestionOption + { + std::vector children1; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + long status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + std::vector abandonReasons; + std::string name; + std::string exif; + std::string gmtCreate; + std::string type; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + std::vector tags; + }; + struct MarkItemList + { + struct MarkResultListItem + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + long rejectFlag; + std::string markItemId; + std::string dataId; + std::string state; + std::string dataMeta; + long mine; + long abandonFlag; + long fixedFlag; + std::vector markResultList; + long weight; + std::string datasetId; + }; + TaskInfo taskInfo; + SubUserTask subUserTask; + long totalPage; + int pageNum; + int pageSize; + long total; + OptionTemplate optionTemplate; + std::vector list; + SubTask subTask; + }; + + + PageViewSubTaskItemResult(); + explicit PageViewSubTaskItemResult(const std::string &payload); + ~PageViewSubTaskItemResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKITEMRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewTaskRequest.h b/itag/include/alibabacloud/itag/model/PageViewTaskRequest.h new file mode 100644 index 000000000..5b8f08f34 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewTaskRequest : public RoaServiceRequest { +public: + PageViewTaskRequest(); + ~PageViewTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewTaskResult.h b/itag/include/alibabacloud/itag/model/PageViewTaskResult.h new file mode 100644 index 000000000..d848b48f0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewTaskResult.h @@ -0,0 +1,375 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewTaskResult : public ServiceResult + { + public: + struct Result + { + struct ITagTaskDTO + { + struct OptionTemplateDTO + { + struct ViewConfigs + { + struct DisplayFieldDTO + { + struct VisitInfo + { + struct OssConf + { + std::string ossOwner; + std::string ossEndpoint; + std::string ossAk; + long expiredTime; + std::string ossBucket; + std::string folder; + std::string ossAs; + }; + struct AftsConf + { + int expiredTime; + }; + AftsConf aftsConf; + OssConf ossConf; + }; + bool hide; + std::string type; + std::string fieldNames; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + VisitInfo visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct Creator3 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier4 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct RobotConfig + { + struct EffectStep + { + struct ProcessConfig + { + std::vector relateColumn; + }; + ProcessConfig processConfig; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig + { + struct ModelServiceConfig$PostParamPair + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings; + std::vector postParams; + std::string serviceId; + }; + std::vector modelServiceConfigs; + EffectStep effectStep; + std::string source; + }; + struct QuestionConfigDTO + { + struct QuestionOption + { + std::vector children5; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + int status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + RobotConfig robotConfig; + std::vector abandonReasons; + std::string name; + std::string exif; + std::string type; + std::string gmtCreate; + std::vector questionConfigs; + std::vector tags2; + std::string id; + Creator3 creator3; + std::string sharedMode; + Modifier4 modifier4; + }; + struct TaskTemplateConfig + { + struct RobotConfig6 + { + struct EffectStep7 + { + struct ProcessConfig14 + { + std::vector relateColumn15; + }; + ProcessConfig14 processConfig14; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig9 + { + struct ModelServiceConfig$PostParamPair12 + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair13 + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings11; + std::vector postParams10; + std::string serviceId; + }; + std::vector modelServiceConfigs8; + std::string source; + EffectStep7 effectStep7; + }; + RobotConfig6 robotConfig6; + std::string exif; + std::vector selectQuestions; + std::string templateOptionMap; + std::string templateRelationId; + std::string resourceKey; + }; + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + struct AssignConfig + { + std::string assignField; + int assignCount; + int assignSubTaskCount; + std::string assignType; + }; + struct NoticeConfig + { + std::string dingHook; + std::vector listenActions; + std::string subTaskAlertGap; + }; + struct ResultCallbackConfig + { + std::string exif; + std::string retMsgMode; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct TaskDatasetProxyRelation + { + std::string exif; + std::string sourceBizId; + std::string datasetType; + std::string source; + std::string datasetId; + }; + struct ITagSimpleUserVO + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct ITagTaskWorkflowConfig + { + struct ITagSimpleUserVO1 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct ITagSimpleUserGroupVO + { + std::string groupName; + std::string groupId; + }; + std::string exif; + std::string nodeName; + std::vector groups; + std::vector users; + }; + std::string taskId; + bool allowAppendData; + std::string relateTaskConfig; + std::string runMsg; + std::string gmtModified; + ResultCallbackConfig resultCallbackConfig; + Creator creator; + std::string remark; + bool archived; + std::string exif; + std::vector taskWorkFlow; + std::string archivedInfos; + std::string taskType; + OptionTemplateDTO optionTemplateDTO; + std::string stage; + Modifier modifier; + std::string templateId; + std::vector tags; + AssignConfig assignConfig; + int status; + BizInfo bizInfo; + std::string tntInstId; + std::string channel; + long projectId; + std::string tntInstName; + std::string voteConfigs; + NoticeConfig noticeConfig; + std::vector workflowNodes; + TaskTemplateConfig taskTemplateConfig; + std::vector datasetProxyRelations; + int alertTime; + std::string mineConfigs; + int safetyLevel; + std::string gmtCreate; + std::string taskName; + std::vector admins; + std::vector supportDownloadTypes; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewTaskResult(); + explicit PageViewTaskResult(const std::string &payload); + ~PageViewTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewTntUserRequest.h b/itag/include/alibabacloud/itag/model/PageViewTntUserRequest.h new file mode 100644 index 000000000..99d40da90 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewTntUserRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWTNTUSERREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTNTUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewTntUserRequest : public RoaServiceRequest { +public: + PageViewTntUserRequest(); + ~PageViewTntUserRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTNTUSERREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewTntUserResult.h b/itag/include/alibabacloud/itag/model/PageViewTntUserResult.h new file mode 100644 index 000000000..6bf653265 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewTntUserResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTNTUSERRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTNTUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewTntUserResult : public ServiceResult + { + public: + struct Result + { + struct ListItem + { + std::string email; + std::string userName; + std::string tntInstId; + std::string org; + std::string accountNo; + std::string bizNo; + bool self; + std::string accountType; + std::string role; + std::string supplierId; + std::string refUserId; + std::string phone; + std::string userId; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageViewTntUserResult(); + explicit PageViewTntUserResult(const std::string &payload); + ~PageViewTntUserResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWTNTUSERRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewUserGroupRequest.h b/itag/include/alibabacloud/itag/model/PageViewUserGroupRequest.h new file mode 100644 index 000000000..181d303f3 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewUserGroupRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWUSERGROUPREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewUserGroupRequest : public RoaServiceRequest { +public: + PageViewUserGroupRequest(); + ~PageViewUserGroupRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERGROUPREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewUserGroupResult.h b/itag/include/alibabacloud/itag/model/PageViewUserGroupResult.h new file mode 100644 index 000000000..62c05972d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewUserGroupResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERGROUPRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewUserGroupResult : public ServiceResult + { + public: + struct Result + { + struct List + { + std::string groupName; + std::string tntInstId; + std::string groupId; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + List list; + }; + + + PageViewUserGroupResult(); + explicit PageViewUserGroupResult(const std::string &payload); + ~PageViewUserGroupResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERGROUPRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageViewUserRequest.h b/itag/include/alibabacloud/itag/model/PageViewUserRequest.h new file mode 100644 index 000000000..d8a7feefe --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewUserRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWUSERREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageViewUserRequest : public RoaServiceRequest { +public: + PageViewUserRequest(); + ~PageViewUserRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageViewUserResult.h b/itag/include/alibabacloud/itag/model/PageViewUserResult.h new file mode 100644 index 000000000..e6f7ba190 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageViewUserResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageViewUserResult : public ServiceResult + { + public: + struct Result + { + struct List + { + std::string supplierId; + std::string userName; + std::string email; + std::string refUserId; + std::string accountNo; + std::string org; + std::string userId; + std::string phone; + std::string accountType; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + List list; + }; + + + PageViewUserResult(); + explicit PageViewUserResult(const std::string &payload); + ~PageViewUserResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWUSERRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PageviewSubTaskRequest.h b/itag/include/alibabacloud/itag/model/PageviewSubTaskRequest.h new file mode 100644 index 000000000..3f76b353d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageviewSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PAGEVIEWSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PageviewSubTaskRequest : public RoaServiceRequest { +public: + PageviewSubTaskRequest(); + ~PageviewSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PageviewSubTaskResult.h b/itag/include/alibabacloud/itag/model/PageviewSubTaskResult.h new file mode 100644 index 000000000..c81996688 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PageviewSubTaskResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PageviewSubTaskResult : public ServiceResult + { + public: + struct Result + { + struct ITagSubTaskDTO + { + struct CurrentHandler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + bool canDiscard; + std::string taskId; + std::string workNodeUsers; + bool canRelease; + std::string currentWorkNode; + std::string currentUserSubTaskId; + std::string workNodeState; + std::string id; + bool canReassign; + CurrentHandler currentHandler; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + PageviewSubTaskResult(); + explicit PageviewSubTaskResult(const std::string &payload); + ~PageviewSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PAGEVIEWSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PollingSampleMarkItemsRequest.h b/itag/include/alibabacloud/itag/model/PollingSampleMarkItemsRequest.h new file mode 100644 index 000000000..b8db056fd --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PollingSampleMarkItemsRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_POLLINGSAMPLEMARKITEMSREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_POLLINGSAMPLEMARKITEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PollingSampleMarkItemsRequest : public RoaServiceRequest { +public: + PollingSampleMarkItemsRequest(); + ~PollingSampleMarkItemsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_POLLINGSAMPLEMARKITEMSREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PollingSampleMarkItemsResult.h b/itag/include/alibabacloud/itag/model/PollingSampleMarkItemsResult.h new file mode 100644 index 000000000..99b917451 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PollingSampleMarkItemsResult.h @@ -0,0 +1,307 @@ +/* + * 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_ITAG_MODEL_POLLINGSAMPLEMARKITEMSRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_POLLINGSAMPLEMARKITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PollingSampleMarkItemsResult : public ServiceResult + { + public: + struct Result + { + struct ITagMarkableWorkTaskDTO + { + struct TaskInfo + { + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + int safetyLevel; + BizInfo bizInfo; + std::string taskId; + std::string taskName; + std::string taskType; + std::string channel; + }; + struct SubTask + { + struct Handler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + std::string taskId; + Handler handler; + }; + struct SubUserTask + { + struct Handler1 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + int voteIdx; + int rejectFlag; + std::string gmtTimeout; + std::string state; + std::string userSubTaskId; + std::string workNode; + std::string operateFlag; + Handler1 handler1; + std::string rejectRemark; + std::string externalBizNo; + std::string lastUserSubTaskId; + }; + struct OptionTemplate + { + struct ViewConfigs + { + struct DisplayFieldDTO + { + struct VisitInfo + { + struct OssConf + { + std::string ossOwner; + std::string ossEndpoint; + std::string ossAk; + long expiredTime; + std::string ossBucket; + std::string folder; + std::string ossAs; + }; + struct AftsConf + { + int expiredTime; + }; + AftsConf aftsConf; + OssConf ossConf; + }; + bool hide; + std::string type; + std::string fieldNames; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + VisitInfo visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct RobotConfig + { + struct EffectStep + { + struct ProcessConfig + { + std::vector relateColumn; + }; + ProcessConfig processConfig; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig + { + struct ModelServiceConfig$PostParamPair + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings; + std::vector postParams; + std::string serviceId; + }; + std::vector modelServiceConfigs; + EffectStep effectStep; + std::string source; + }; + struct QuestionConfigDTO + { + struct QuestionOption + { + std::vector children2; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + int status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + RobotConfig robotConfig; + std::vector abandonReasons; + Creator creator; + std::string name; + std::string exif; + std::string type; + std::string gmtCreate; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + Modifier modifier; + std::vector tags; + }; + struct ITagSimpleUserMarkItemDTO + { + struct ITagSimpleUserMarkResultDTO + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + std::string subTaskId; + int rejectFlag; + std::string abandonRemark; + int abandonFlag; + std::string feedbackRemark; + std::string _operator; + std::vector markResultList; + int weight; + std::string datasetId; + std::string userMarkItemId; + std::string markItemId; + std::string dataId; + int feedbackFlag; + std::string state; + std::string dataMeta; + int mine; + int fixedFlag; + }; + TaskInfo taskInfo; + SubUserTask subUserTask; + std::vector markItemList; + OptionTemplate optionTemplate; + SubTask subTask; + }; + std::string totalMarkItemCount; + ITagMarkableWorkTaskDTO iTagMarkableWorkTaskDTO; + bool needPolling; + std::string sampleRecordId; + int hasNonCompleteTask; + }; + + + PollingSampleMarkItemsResult(); + explicit PollingSampleMarkItemsResult(const std::string &payload); + ~PollingSampleMarkItemsResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_POLLINGSAMPLEMARKITEMSRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/PreviewTaskTemplateRequest.h b/itag/include/alibabacloud/itag/model/PreviewTaskTemplateRequest.h new file mode 100644 index 000000000..a1cbcdea2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PreviewTaskTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PREVIEWTASKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PREVIEWTASKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT PreviewTaskTemplateRequest : public RoaServiceRequest { +public: + PreviewTaskTemplateRequest(); + ~PreviewTaskTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PREVIEWTASKTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/PreviewTaskTemplateResult.h b/itag/include/alibabacloud/itag/model/PreviewTaskTemplateResult.h new file mode 100644 index 000000000..6f81ba505 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/PreviewTaskTemplateResult.h @@ -0,0 +1,210 @@ +/* + * 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_ITAG_MODEL_PREVIEWTASKTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PREVIEWTASKTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT PreviewTaskTemplateResult : public ServiceResult + { + public: + struct Result + { + struct TaskInfo + { + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + long safetyLevel; + BizInfo bizInfo; + std::string taskId; + std::string taskName; + std::string taskType; + std::string channel; + }; + struct SubTask + { + std::string subTaskId; + }; + struct SubUserTask + { + struct Handler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + long voteIdx; + long rejectFlag; + std::string gmtTimeout; + std::string state; + std::string userSubTaskId; + std::string workNode; + Handler handler; + std::string operateFlag; + std::string rejectRemark; + std::string externalBizNo; + std::string lastUserSubTaskId; + }; + struct OptionTemplate + { + struct ViewConfigs + { + struct FieldsItem + { + bool hide; + std::string type; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + std::string visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct QuestionConfigsItem + { + struct QuestionOption + { + std::vector children1; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + long status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + std::vector abandonReasons; + std::string name; + std::string exif; + std::string gmtCreate; + std::string type; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + std::vector tags; + }; + struct MarkItemListItem + { + struct MarkResultListItem + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + long rejectFlag; + std::string markItemId; + std::string dataId; + std::string state; + std::string dataMeta; + long mine; + long abandonFlag; + long fixedFlag; + std::vector markResultList; + long weight; + std::string datasetId; + }; + TaskInfo taskInfo; + SubUserTask subUserTask; + std::vector markItemList; + OptionTemplate optionTemplate; + SubTask subTask; + }; + + + PreviewTaskTemplateResult(); + explicit PreviewTaskTemplateResult(const std::string &payload); + ~PreviewTaskTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PREVIEWTASKTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ProxyRobotServiceRequest.h b/itag/include/alibabacloud/itag/model/ProxyRobotServiceRequest.h new file mode 100644 index 000000000..e456ab54e --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ProxyRobotServiceRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_PROXYROBOTSERVICEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_PROXYROBOTSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ProxyRobotServiceRequest : public RoaServiceRequest { +public: + ProxyRobotServiceRequest(); + ~ProxyRobotServiceRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_PROXYROBOTSERVICEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ProxyRobotServiceResult.h b/itag/include/alibabacloud/itag/model/ProxyRobotServiceResult.h new file mode 100644 index 000000000..219bbbe11 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ProxyRobotServiceResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_PROXYROBOTSERVICERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_PROXYROBOTSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ProxyRobotServiceResult : public ServiceResult + { + public: + struct Result + { + std::string msg; + bool succ; + std::string data; + std::string robotCode; + }; + + + ProxyRobotServiceResult(); + explicit ProxyRobotServiceResult(const std::string &payload); + ~ProxyRobotServiceResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_PROXYROBOTSERVICERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/QueryMarkableSubTaskRequest.h b/itag/include/alibabacloud/itag/model/QueryMarkableSubTaskRequest.h new file mode 100644 index 000000000..fb7ee6de2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QueryMarkableSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_QUERYMARKABLESUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYMARKABLESUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT QueryMarkableSubTaskRequest : public RoaServiceRequest { +public: + QueryMarkableSubTaskRequest(); + ~QueryMarkableSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYMARKABLESUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/QueryMarkableSubTaskResult.h b/itag/include/alibabacloud/itag/model/QueryMarkableSubTaskResult.h new file mode 100644 index 000000000..7aec67c49 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QueryMarkableSubTaskResult.h @@ -0,0 +1,212 @@ +/* + * 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_ITAG_MODEL_QUERYMARKABLESUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYMARKABLESUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT QueryMarkableSubTaskResult : public ServiceResult + { + public: + struct Result + { + struct TaskInfo + { + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + long safetyLevel; + BizInfo bizInfo; + std::string taskId; + std::string taskName; + std::string taskType; + std::string channel; + }; + struct SubTask + { + std::string subTaskId; + }; + struct SubUserTask + { + struct Handler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + long voteIdx; + long rejectFlag; + std::string gmtTimeout; + std::string state; + std::string userSubTaskId; + std::string workNode; + Handler handler; + std::string operateFlag; + std::string rejectRemark; + std::string externalBizNo; + std::string lastUserSubTaskId; + }; + struct OptionTemplate + { + struct ViewConfigs + { + struct FieldsItem + { + bool hide; + std::string type; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + std::string visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct QuestionConfigsItem + { + struct QuestionOption + { + std::vector children1; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + long status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + std::vector abandonReasons; + std::string name; + std::string exif; + std::string gmtCreate; + std::string type; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + std::vector tags; + }; + struct MarkItemListItem + { + struct MarkResultListItem + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + long rejectFlag; + std::string markItemId; + std::string dataId; + std::string state; + std::string dataMeta; + long mine; + long abandonFlag; + long fixedFlag; + std::vector markResultList; + long weight; + std::string datasetId; + }; + TaskInfo taskInfo; + SubUserTask subUserTask; + std::vector markItemList; + OptionTemplate optionTemplate; + SubTask subTask; + }; + + + QueryMarkableSubTaskResult(); + explicit QueryMarkableSubTaskResult(const std::string &payload); + ~QueryMarkableSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYMARKABLESUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/QuerySampleMarkItemsRequest.h b/itag/include/alibabacloud/itag/model/QuerySampleMarkItemsRequest.h new file mode 100644 index 000000000..d761870f4 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QuerySampleMarkItemsRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_QUERYSAMPLEMARKITEMSREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLEMARKITEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT QuerySampleMarkItemsRequest : public RoaServiceRequest { +public: + QuerySampleMarkItemsRequest(); + ~QuerySampleMarkItemsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLEMARKITEMSREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/QuerySampleMarkItemsResult.h b/itag/include/alibabacloud/itag/model/QuerySampleMarkItemsResult.h new file mode 100644 index 000000000..8bb2ce128 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QuerySampleMarkItemsResult.h @@ -0,0 +1,311 @@ +/* + * 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_ITAG_MODEL_QUERYSAMPLEMARKITEMSRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLEMARKITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT QuerySampleMarkItemsResult : public ServiceResult + { + public: + struct Result + { + struct ITagSamplingStatsDTO + { + struct ITagMarkableWorkTaskDTO + { + struct TaskInfo + { + struct BizInfo + { + std::string bizClassify; + std::string bizNo; + std::string bizCode; + }; + int safetyLevel; + BizInfo bizInfo; + std::string taskId; + std::string taskName; + std::string taskType; + std::string channel; + }; + struct SubTask + { + struct Handler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + std::string taskId; + Handler handler; + }; + struct SubUserTask + { + struct Handler1 + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + std::string subTaskId; + int voteIdx; + int rejectFlag; + std::string gmtTimeout; + std::string state; + std::string userSubTaskId; + std::string workNode; + std::string operateFlag; + Handler1 handler1; + std::string rejectRemark; + std::string externalBizNo; + std::string lastUserSubTaskId; + }; + struct OptionTemplate + { + struct ViewConfigs + { + struct DisplayFieldDTO + { + struct VisitInfo + { + struct OssConf + { + std::string ossOwner; + std::string ossEndpoint; + std::string ossAk; + long expiredTime; + std::string ossBucket; + std::string folder; + std::string ossAs; + }; + struct AftsConf + { + int expiredTime; + }; + AftsConf aftsConf; + OssConf ossConf; + }; + bool hide; + std::string type; + std::string fieldNames; + std::vector relationQuestionIds; + std::string fieldName; + bool corsProxy; + VisitInfo visitInfo; + std::string convertor; + std::string plugins; + }; + std::vector fields; + }; + struct Creator + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct Modifier + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct RobotConfig + { + struct EffectStep + { + struct ProcessConfig + { + std::vector relateColumn; + }; + ProcessConfig processConfig; + bool preProcess; + bool label; + bool preLabel; + }; + struct ModelServiceConfig + { + struct ModelServiceConfig$PostParamPair + { + std::string value; + std::string key; + }; + struct ModelServiceConfig$ResultMappingPair + { + std::string questionId; + std::string markTitle; + std::string resultKey; + }; + std::string serviceName; + std::vector resultMappings; + std::vector postParams; + std::string serviceId; + }; + std::vector modelServiceConfigs; + EffectStep effectStep; + std::string source; + }; + struct QuestionConfigDTO + { + struct QuestionOption + { + std::vector children2; + std::string shortcut; + std::string color; + std::string label; + std::string value; + std::string key; + }; + struct TemplateRobotConfig + { + struct RobotParam + { + std::string dataField; + bool mustFill; + std::string defaultResult; + std::string paramName; + std::string serviceId; + }; + std::string type; + std::string questionId; + std::string robotId; + std::string resultPath; + std::vector params; + std::string stage; + std::string defaultResult; + }; + std::vector options; + std::string markTitleAlias; + std::vector robotConfigs; + std::string selectGroup; + std::string exif; + std::string type; + bool mustFill; + std::vector preOptions; + std::string id; + bool selected; + std::string rule; + std::vector children; + std::string defaultResult; + std::string markTitle; + bool display; + }; + int status; + std::string description; + ViewConfigs viewConfigs; + std::string classify; + std::string tntInstId; + std::string gmtModified; + RobotConfig robotConfig; + std::vector abandonReasons; + Creator creator; + std::string name; + std::string exif; + std::string type; + std::string gmtCreate; + std::vector questionConfigs; + std::string id; + std::string sharedMode; + Modifier modifier; + std::vector tags; + }; + struct ITagSimpleUserMarkItemDTO + { + struct ITagSimpleUserMarkResultDTO + { + std::string markResult; + std::string userMarkResultId; + std::string questionId; + std::string version; + std::string resultType; + std::string markResultId; + std::string markTitle; + }; + std::string subTaskId; + int rejectFlag; + std::string abandonRemark; + int abandonFlag; + std::string feedbackRemark; + std::string _operator; + std::vector markResultList; + int weight; + std::string datasetId; + std::string userMarkItemId; + std::string markItemId; + std::string dataId; + int feedbackFlag; + std::string state; + std::string dataMeta; + int mine; + int fixedFlag; + }; + TaskInfo taskInfo; + SubUserTask subUserTask; + std::vector markItemList; + OptionTemplate optionTemplate; + SubTask subTask; + }; + std::string totalMarkItemCount; + ITagMarkableWorkTaskDTO iTagMarkableWorkTaskDTO; + bool needPolling; + std::string sampleRecordId; + int hasNonCompleteTask; + }; + ITagSamplingStatsDTO iTagSamplingStatsDTO; + }; + + + QuerySampleMarkItemsResult(); + explicit QuerySampleMarkItemsResult(const std::string &payload); + ~QuerySampleMarkItemsResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLEMARKITEMSRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/QuerySamplingPoolSizeRequest.h b/itag/include/alibabacloud/itag/model/QuerySamplingPoolSizeRequest.h new file mode 100644 index 000000000..eeb5d1dbf --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QuerySamplingPoolSizeRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_QUERYSAMPLINGPOOLSIZEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLINGPOOLSIZEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT QuerySamplingPoolSizeRequest : public RoaServiceRequest { +public: + QuerySamplingPoolSizeRequest(); + ~QuerySamplingPoolSizeRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLINGPOOLSIZEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/QuerySamplingPoolSizeResult.h b/itag/include/alibabacloud/itag/model/QuerySamplingPoolSizeResult.h new file mode 100644 index 000000000..ed2894c1f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QuerySamplingPoolSizeResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLINGPOOLSIZERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLINGPOOLSIZERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT QuerySamplingPoolSizeResult : public ServiceResult + { + public: + struct Result + { + std::string totalMarkItemCount; + int hasNonCompleteTask; + std::string subTaskAndMarkItemMap; + std::string totalSubTaskCount; + }; + + + QuerySamplingPoolSizeResult(); + explicit QuerySamplingPoolSizeResult(const std::string &payload); + ~QuerySamplingPoolSizeResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYSAMPLINGPOOLSIZERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/QuerySkipUserSubTaskRequest.h b/itag/include/alibabacloud/itag/model/QuerySkipUserSubTaskRequest.h new file mode 100644 index 000000000..35aa8da15 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QuerySkipUserSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_QUERYSKIPUSERSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYSKIPUSERSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT QuerySkipUserSubTaskRequest : public RoaServiceRequest { +public: + QuerySkipUserSubTaskRequest(); + ~QuerySkipUserSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYSKIPUSERSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/QuerySkipUserSubTaskResult.h b/itag/include/alibabacloud/itag/model/QuerySkipUserSubTaskResult.h new file mode 100644 index 000000000..4e93c04d4 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/QuerySkipUserSubTaskResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_QUERYSKIPUSERSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_QUERYSKIPUSERSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT QuerySkipUserSubTaskResult : public ServiceResult + { + public: + struct Result + { + long leftSkipCount; + long skipedCount; + long maxSkipCount; + }; + + + QuerySkipUserSubTaskResult(); + explicit QuerySkipUserSubTaskResult(const std::string &payload); + ~QuerySkipUserSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_QUERYSKIPUSERSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/RejectSamplingTaskRequest.h b/itag/include/alibabacloud/itag/model/RejectSamplingTaskRequest.h new file mode 100644 index 000000000..3812edeec --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RejectSamplingTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_REJECTSAMPLINGTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_REJECTSAMPLINGTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT RejectSamplingTaskRequest : public RoaServiceRequest { +public: + RejectSamplingTaskRequest(); + ~RejectSamplingTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_REJECTSAMPLINGTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/RejectSamplingTaskResult.h b/itag/include/alibabacloud/itag/model/RejectSamplingTaskResult.h new file mode 100644 index 000000000..2232a1d20 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RejectSamplingTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_REJECTSAMPLINGTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_REJECTSAMPLINGTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT RejectSamplingTaskResult : public ServiceResult + { + public: + + + RejectSamplingTaskResult(); + explicit RejectSamplingTaskResult(const std::string &payload); + ~RejectSamplingTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_REJECTSAMPLINGTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/RejectSubTaskRequest.h b/itag/include/alibabacloud/itag/model/RejectSubTaskRequest.h new file mode 100644 index 000000000..6a0fcb0ef --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RejectSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_REJECTSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_REJECTSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT RejectSubTaskRequest : public RoaServiceRequest { +public: + RejectSubTaskRequest(); + ~RejectSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_REJECTSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/RejectSubTaskResult.h b/itag/include/alibabacloud/itag/model/RejectSubTaskResult.h new file mode 100644 index 000000000..7f4104116 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RejectSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_REJECTSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_REJECTSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT RejectSubTaskResult : public ServiceResult + { + public: + + + RejectSubTaskResult(); + explicit RejectSubTaskResult(const std::string &payload); + ~RejectSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_REJECTSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/ReleaseUserSubTaskRequest.h b/itag/include/alibabacloud/itag/model/ReleaseUserSubTaskRequest.h new file mode 100644 index 000000000..ceaeafaa4 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ReleaseUserSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_RELEASEUSERSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_RELEASEUSERSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT ReleaseUserSubTaskRequest : public RoaServiceRequest { +public: + ReleaseUserSubTaskRequest(); + ~ReleaseUserSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_RELEASEUSERSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/ReleaseUserSubTaskResult.h b/itag/include/alibabacloud/itag/model/ReleaseUserSubTaskResult.h new file mode 100644 index 000000000..061033e5a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/ReleaseUserSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_RELEASEUSERSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_RELEASEUSERSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT ReleaseUserSubTaskResult : public ServiceResult + { + public: + + + ReleaseUserSubTaskResult(); + explicit ReleaseUserSubTaskResult(const std::string &payload); + ~ReleaseUserSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_RELEASEUSERSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/RemoveMemberOrGroupTaskRequest.h b/itag/include/alibabacloud/itag/model/RemoveMemberOrGroupTaskRequest.h new file mode 100644 index 000000000..93b56ba30 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RemoveMemberOrGroupTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_REMOVEMEMBERORGROUPTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_REMOVEMEMBERORGROUPTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT RemoveMemberOrGroupTaskRequest : public RoaServiceRequest { +public: + RemoveMemberOrGroupTaskRequest(); + ~RemoveMemberOrGroupTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_REMOVEMEMBERORGROUPTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/RemoveMemberOrGroupTaskResult.h b/itag/include/alibabacloud/itag/model/RemoveMemberOrGroupTaskResult.h new file mode 100644 index 000000000..fd0d413f8 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RemoveMemberOrGroupTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_REMOVEMEMBERORGROUPTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_REMOVEMEMBERORGROUPTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT RemoveMemberOrGroupTaskResult : public ServiceResult + { + public: + + + RemoveMemberOrGroupTaskResult(); + explicit RemoveMemberOrGroupTaskResult(const std::string &payload); + ~RemoveMemberOrGroupTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_REMOVEMEMBERORGROUPTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/RemoveUserInGroupRequest.h b/itag/include/alibabacloud/itag/model/RemoveUserInGroupRequest.h new file mode 100644 index 000000000..b7495ad14 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RemoveUserInGroupRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_REMOVEUSERINGROUPREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT RemoveUserInGroupRequest : public RoaServiceRequest { +public: + RemoveUserInGroupRequest(); + ~RemoveUserInGroupRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINGROUPREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/RemoveUserInGroupResult.h b/itag/include/alibabacloud/itag/model/RemoveUserInGroupResult.h new file mode 100644 index 000000000..2c71d5ab2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RemoveUserInGroupResult.h @@ -0,0 +1,82 @@ +/* + * 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_ITAG_MODEL_REMOVEUSERINGROUPRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT RemoveUserInGroupResult : public ServiceResult + { + public: + struct Result + { + struct SuccUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct FailUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + long failCount; + std::vector failUserList; + std::vector succUserList; + long succCount; + }; + + + RemoveUserInGroupResult(); + explicit RemoveUserInGroupResult(const std::string &payload); + ~RemoveUserInGroupResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINGROUPRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/RemoveUserInTntRequest.h b/itag/include/alibabacloud/itag/model/RemoveUserInTntRequest.h new file mode 100644 index 000000000..f8bdc6779 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RemoveUserInTntRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_REMOVEUSERINTNTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINTNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT RemoveUserInTntRequest : public RoaServiceRequest { +public: + RemoveUserInTntRequest(); + ~RemoveUserInTntRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINTNTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/RemoveUserInTntResult.h b/itag/include/alibabacloud/itag/model/RemoveUserInTntResult.h new file mode 100644 index 000000000..d672860db --- /dev/null +++ b/itag/include/alibabacloud/itag/model/RemoveUserInTntResult.h @@ -0,0 +1,82 @@ +/* + * 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_ITAG_MODEL_REMOVEUSERINTNTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINTNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT RemoveUserInTntResult : public ServiceResult + { + public: + struct Result + { + struct SuccUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + struct FailUserListItem + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + long failCount; + std::vector failUserList; + std::vector succUserList; + long succCount; + }; + + + RemoveUserInTntResult(); + explicit RemoveUserInTntResult(const std::string &payload); + ~RemoveUserInTntResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_REMOVEUSERINTNTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/SamplingSubUserTaskListRequest.h b/itag/include/alibabacloud/itag/model/SamplingSubUserTaskListRequest.h new file mode 100644 index 000000000..d7270e634 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/SamplingSubUserTaskListRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_SAMPLINGSUBUSERTASKLISTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_SAMPLINGSUBUSERTASKLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT SamplingSubUserTaskListRequest : public RoaServiceRequest { +public: + SamplingSubUserTaskListRequest(); + ~SamplingSubUserTaskListRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_SAMPLINGSUBUSERTASKLISTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/SamplingSubUserTaskListResult.h b/itag/include/alibabacloud/itag/model/SamplingSubUserTaskListResult.h new file mode 100644 index 000000000..bd4c983c0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/SamplingSubUserTaskListResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_SAMPLINGSUBUSERTASKLISTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_SAMPLINGSUBUSERTASKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT SamplingSubUserTaskListResult : public ServiceResult + { + public: + struct ResultItem + { + std::string sampleUserName; + std::string type; + bool allowOperate; + std::string taskId; + std::string taskName; + std::string state; + std::string baseInfo; + long totalItemCount; + long finishedItemCount; + std::string userTaskId; + }; + + + SamplingSubUserTaskListResult(); + explicit SamplingSubUserTaskListResult(const std::string &payload); + ~SamplingSubUserTaskListResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_SAMPLINGSUBUSERTASKLISTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/SkipFinishedRequest.h b/itag/include/alibabacloud/itag/model/SkipFinishedRequest.h new file mode 100644 index 000000000..dc8ecd4ed --- /dev/null +++ b/itag/include/alibabacloud/itag/model/SkipFinishedRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_SKIPFINISHEDREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_SKIPFINISHEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT SkipFinishedRequest : public RoaServiceRequest { +public: + SkipFinishedRequest(); + ~SkipFinishedRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_SKIPFINISHEDREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/SkipFinishedResult.h b/itag/include/alibabacloud/itag/model/SkipFinishedResult.h new file mode 100644 index 000000000..2f79ea817 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/SkipFinishedResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_SKIPFINISHEDRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_SKIPFINISHEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT SkipFinishedResult : public ServiceResult + { + public: + struct Result + { + struct ITagSubTaskDTO + { + struct CurrentHandler + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + bool canDiscard; + std::string taskId; + std::string workNodeUsers; + bool canRelease; + std::string currentWorkNode; + std::string currentUserSubTaskId; + std::string workNodeState; + std::string id; + bool canReassign; + CurrentHandler currentHandler; + }; + long pageNum; + long pageSize; + long totalPage; + long total; + std::vector list; + }; + + + SkipFinishedResult(); + explicit SkipFinishedResult(const std::string &payload); + ~SkipFinishedResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_SKIPFINISHEDRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/SkipUserSubTaskRequest.h b/itag/include/alibabacloud/itag/model/SkipUserSubTaskRequest.h new file mode 100644 index 000000000..42e93adfd --- /dev/null +++ b/itag/include/alibabacloud/itag/model/SkipUserSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_SKIPUSERSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_SKIPUSERSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT SkipUserSubTaskRequest : public RoaServiceRequest { +public: + SkipUserSubTaskRequest(); + ~SkipUserSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_SKIPUSERSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/SkipUserSubTaskResult.h b/itag/include/alibabacloud/itag/model/SkipUserSubTaskResult.h new file mode 100644 index 000000000..0d66dc9e7 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/SkipUserSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_SKIPUSERSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_SKIPUSERSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT SkipUserSubTaskResult : public ServiceResult + { + public: + + + SkipUserSubTaskResult(); + explicit SkipUserSubTaskResult(const std::string &payload); + ~SkipUserSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_SKIPUSERSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/TaskStageStatRequest.h b/itag/include/alibabacloud/itag/model/TaskStageStatRequest.h new file mode 100644 index 000000000..52561137f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/TaskStageStatRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_TASKSTAGESTATREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_TASKSTAGESTATREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT TaskStageStatRequest : public RoaServiceRequest { +public: + TaskStageStatRequest(); + ~TaskStageStatRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_TASKSTAGESTATREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/TaskStageStatResult.h b/itag/include/alibabacloud/itag/model/TaskStageStatResult.h new file mode 100644 index 000000000..7b3ba5a8d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/TaskStageStatResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_TASKSTAGESTATRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_TASKSTAGESTATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT TaskStageStatResult : public ServiceResult + { + public: + struct ITagTaskStageStat + { + int num; + std::string stage; + }; + + + TaskStageStatResult(); + explicit TaskStageStatResult(const std::string &payload); + ~TaskStageStatResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_TASKSTAGESTATRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/TestRequestRequest.h b/itag/include/alibabacloud/itag/model/TestRequestRequest.h new file mode 100644 index 000000000..365334cb0 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/TestRequestRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_TESTREQUESTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_TESTREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT TestRequestRequest : public RoaServiceRequest { +public: + TestRequestRequest(); + ~TestRequestRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_TESTREQUESTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/TestRequestResult.h b/itag/include/alibabacloud/itag/model/TestRequestResult.h new file mode 100644 index 000000000..451bbb0a6 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/TestRequestResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_TESTREQUESTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_TESTREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT TestRequestResult : public ServiceResult + { + public: + struct Result + { + struct TrueResponseItem + { + std::string resultPath; + std::string resultKey; + }; + std::string originResponse; + std::vector trueResponse; + }; + + + TestRequestResult(); + explicit TestRequestResult(const std::string &payload); + ~TestRequestResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_TESTREQUESTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/TransferUserSubTaskRequest.h b/itag/include/alibabacloud/itag/model/TransferUserSubTaskRequest.h new file mode 100644 index 000000000..a21b6c853 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/TransferUserSubTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_TRANSFERUSERSUBTASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_TRANSFERUSERSUBTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT TransferUserSubTaskRequest : public RoaServiceRequest { +public: + TransferUserSubTaskRequest(); + ~TransferUserSubTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_TRANSFERUSERSUBTASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/TransferUserSubTaskResult.h b/itag/include/alibabacloud/itag/model/TransferUserSubTaskResult.h new file mode 100644 index 000000000..c33e86d61 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/TransferUserSubTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_TRANSFERUSERSUBTASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_TRANSFERUSERSUBTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT TransferUserSubTaskResult : public ServiceResult + { + public: + + + TransferUserSubTaskResult(); + explicit TransferUserSubTaskResult(const std::string &payload); + ~TransferUserSubTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_TRANSFERUSERSUBTASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UnpassFeedbackRequest.h b/itag/include/alibabacloud/itag/model/UnpassFeedbackRequest.h new file mode 100644 index 000000000..d82c6f9e2 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UnpassFeedbackRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UNPASSFEEDBACKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UNPASSFEEDBACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UnpassFeedbackRequest : public RoaServiceRequest { +public: + UnpassFeedbackRequest(); + ~UnpassFeedbackRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UNPASSFEEDBACKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UnpassFeedbackResult.h b/itag/include/alibabacloud/itag/model/UnpassFeedbackResult.h new file mode 100644 index 000000000..b5d44da78 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UnpassFeedbackResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_UNPASSFEEDBACKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UNPASSFEEDBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UnpassFeedbackResult : public ServiceResult + { + public: + struct Result + { + long totalCount; + long failCount; + bool success; + }; + + + UnpassFeedbackResult(); + explicit UnpassFeedbackResult(const std::string &payload); + ~UnpassFeedbackResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UNPASSFEEDBACKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateDatasetStateMsgRequest.h b/itag/include/alibabacloud/itag/model/UpdateDatasetStateMsgRequest.h new file mode 100644 index 000000000..6dc92c085 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateDatasetStateMsgRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATEDATASETSTATEMSGREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEDATASETSTATEMSGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateDatasetStateMsgRequest : public RoaServiceRequest { +public: + UpdateDatasetStateMsgRequest(); + ~UpdateDatasetStateMsgRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEDATASETSTATEMSGREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateDatasetStateMsgResult.h b/itag/include/alibabacloud/itag/model/UpdateDatasetStateMsgResult.h new file mode 100644 index 000000000..55fa04100 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateDatasetStateMsgResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_UPDATEDATASETSTATEMSGRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEDATASETSTATEMSGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateDatasetStateMsgResult : public ServiceResult + { + public: + + + UpdateDatasetStateMsgResult(); + explicit UpdateDatasetStateMsgResult(const std::string &payload); + ~UpdateDatasetStateMsgResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEDATASETSTATEMSGRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateMarkResultByAdminRequest.h b/itag/include/alibabacloud/itag/model/UpdateMarkResultByAdminRequest.h new file mode 100644 index 000000000..9d6064a9f --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateMarkResultByAdminRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATEMARKRESULTBYADMINREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTBYADMINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateMarkResultByAdminRequest : public RoaServiceRequest { +public: + UpdateMarkResultByAdminRequest(); + ~UpdateMarkResultByAdminRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTBYADMINREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateMarkResultByAdminResult.h b/itag/include/alibabacloud/itag/model/UpdateMarkResultByAdminResult.h new file mode 100644 index 000000000..8c7c6714b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateMarkResultByAdminResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTBYADMINRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTBYADMINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateMarkResultByAdminResult : public ServiceResult + { + public: + struct Result + { + struct FailListItem + { + std::string markResult; + std::string questionId; + std::string version; + std::string questionTitle; + std::string questionType; + std::string markResultId; + }; + bool allUpdateSucc; + std::string commitMsg; + bool canCommit; + std::vector failList; + }; + + + UpdateMarkResultByAdminResult(); + explicit UpdateMarkResultByAdminResult(const std::string &payload); + ~UpdateMarkResultByAdminResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTBYADMINRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateMarkResultRequest.h b/itag/include/alibabacloud/itag/model/UpdateMarkResultRequest.h new file mode 100644 index 000000000..1d190598a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateMarkResultRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATEMARKRESULTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateMarkResultRequest : public RoaServiceRequest { +public: + UpdateMarkResultRequest(); + ~UpdateMarkResultRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateMarkResultResult.h b/itag/include/alibabacloud/itag/model/UpdateMarkResultResult.h new file mode 100644 index 000000000..103a566b1 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateMarkResultResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateMarkResultResult : public ServiceResult + { + public: + struct Result + { + struct FailListItem + { + std::string markResult; + std::string questionId; + std::string version; + std::string questionTitle; + std::string questionType; + std::string markResultId; + }; + bool allUpdateSucc; + std::string commitMsg; + bool canCommit; + std::vector failList; + }; + + + UpdateMarkResultResult(); + explicit UpdateMarkResultResult(const std::string &payload); + ~UpdateMarkResultResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEMARKRESULTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateModelRequest.h b/itag/include/alibabacloud/itag/model/UpdateModelRequest.h new file mode 100644 index 000000000..3726e077a --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateModelRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATEMODELREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEMODELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateModelRequest : public RoaServiceRequest { +public: + UpdateModelRequest(); + ~UpdateModelRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEMODELREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateModelResult.h b/itag/include/alibabacloud/itag/model/UpdateModelResult.h new file mode 100644 index 000000000..b0875ddcb --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateModelResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_UPDATEMODELRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateModelResult : public ServiceResult + { + public: + + + UpdateModelResult(); + explicit UpdateModelResult(const std::string &payload); + ~UpdateModelResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEMODELRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateTaskDataRequest.h b/itag/include/alibabacloud/itag/model/UpdateTaskDataRequest.h new file mode 100644 index 000000000..5ef26eb15 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTaskDataRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATETASKDATAREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETASKDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateTaskDataRequest : public RoaServiceRequest { +public: + UpdateTaskDataRequest(); + ~UpdateTaskDataRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETASKDATAREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateTaskDataResult.h b/itag/include/alibabacloud/itag/model/UpdateTaskDataResult.h new file mode 100644 index 000000000..18f50ffd3 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTaskDataResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_UPDATETASKDATARESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETASKDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateTaskDataResult : public ServiceResult + { + public: + + + UpdateTaskDataResult(); + explicit UpdateTaskDataResult(const std::string &payload); + ~UpdateTaskDataResult(); + std::string getMsg()const; + std::string getRequestId()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string requestId_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + int code_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETASKDATARESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateTaskRequest.h b/itag/include/alibabacloud/itag/model/UpdateTaskRequest.h new file mode 100644 index 000000000..f19a90497 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTaskRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATETASKREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateTaskRequest : public RoaServiceRequest { +public: + UpdateTaskRequest(); + ~UpdateTaskRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETASKREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateTaskResult.h b/itag/include/alibabacloud/itag/model/UpdateTaskResult.h new file mode 100644 index 000000000..74a362f3b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTaskResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_UPDATETASKRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateTaskResult : public ServiceResult + { + public: + + + UpdateTaskResult(); + explicit UpdateTaskResult(const std::string &payload); + ~UpdateTaskResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETASKRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateTaskTemplateRequest.h b/itag/include/alibabacloud/itag/model/UpdateTaskTemplateRequest.h new file mode 100644 index 000000000..64083672d --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTaskTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATETASKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETASKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateTaskTemplateRequest : public RoaServiceRequest { +public: + UpdateTaskTemplateRequest(); + ~UpdateTaskTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETASKTEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateTaskTemplateResult.h b/itag/include/alibabacloud/itag/model/UpdateTaskTemplateResult.h new file mode 100644 index 000000000..368274c4c --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTaskTemplateResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_UPDATETASKTEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETASKTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateTaskTemplateResult : public ServiceResult + { + public: + + + UpdateTaskTemplateResult(); + explicit UpdateTaskTemplateResult(const std::string &payload); + ~UpdateTaskTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETASKTEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateTemplateRequest.h b/itag/include/alibabacloud/itag/model/UpdateTemplateRequest.h new file mode 100644 index 000000000..65b379cef --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateTemplateRequest : public RoaServiceRequest { +public: + UpdateTemplateRequest(); + ~UpdateTemplateRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETEMPLATEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateTemplateResult.h b/itag/include/alibabacloud/itag/model/UpdateTemplateResult.h new file mode 100644 index 000000000..e3d41ec50 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateTemplateResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_UPDATETEMPLATERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateTemplateResult : public ServiceResult + { + public: + + + UpdateTemplateResult(); + explicit UpdateTemplateResult(const std::string &payload); + ~UpdateTemplateResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATETEMPLATERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateUserNameRequest.h b/itag/include/alibabacloud/itag/model/UpdateUserNameRequest.h new file mode 100644 index 000000000..c66c666b4 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateUserNameRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATEUSERNAMEREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEUSERNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateUserNameRequest : public RoaServiceRequest { +public: + UpdateUserNameRequest(); + ~UpdateUserNameRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEUSERNAMEREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateUserNameResult.h b/itag/include/alibabacloud/itag/model/UpdateUserNameResult.h new file mode 100644 index 000000000..b1b91e572 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateUserNameResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ITAG_MODEL_UPDATEUSERNAMERESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEUSERNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateUserNameResult : public ServiceResult + { + public: + + + UpdateUserNameResult(); + explicit UpdateUserNameResult(const std::string &payload); + ~UpdateUserNameResult(); + std::string getMsg()const; + long getRt()const; + bool getSucc()const; + std::string getHost()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + int getCode()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + long rt_; + bool succ_; + std::string host_; + std::string errorCode_; + std::string errInfo_; + int code_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEUSERNAMERESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UpdateUserRoleInTntRequest.h b/itag/include/alibabacloud/itag/model/UpdateUserRoleInTntRequest.h new file mode 100644 index 000000000..ca891b650 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateUserRoleInTntRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_UPDATEUSERROLEINTNTREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEUSERROLEINTNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UpdateUserRoleInTntRequest : public RoaServiceRequest { +public: + UpdateUserRoleInTntRequest(); + ~UpdateUserRoleInTntRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEUSERROLEINTNTREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UpdateUserRoleInTntResult.h b/itag/include/alibabacloud/itag/model/UpdateUserRoleInTntResult.h new file mode 100644 index 000000000..c2e94aa27 --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UpdateUserRoleInTntResult.h @@ -0,0 +1,76 @@ +/* + * 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_ITAG_MODEL_UPDATEUSERROLEINTNTRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_UPDATEUSERROLEINTNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UpdateUserRoleInTntResult : public ServiceResult + { + public: + struct Result + { + struct ITagSimpleUserVO + { + std::string userName; + std::string accountNo; + std::string userId; + std::string accountType; + }; + int failCount; + std::string failMsg; + std::vector failUserList; + std::vector succUserList; + int succCount; + }; + + + UpdateUserRoleInTntResult(); + explicit UpdateUserRoleInTntResult(const std::string &payload); + ~UpdateUserRoleInTntResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_UPDATEUSERROLEINTNTRESULT_H_ \ No newline at end of file diff --git a/itag/include/alibabacloud/itag/model/UserSubTaskTimerRequest.h b/itag/include/alibabacloud/itag/model/UserSubTaskTimerRequest.h new file mode 100644 index 000000000..88eddfa0b --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UserSubTaskTimerRequest.h @@ -0,0 +1,42 @@ +/* + * 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_ITAG_MODEL_USERSUBTASKTIMERREQUEST_H_ +#define ALIBABACLOUD_ITAG_MODEL_USERSUBTASKTIMERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Itag { +namespace Model { +class ALIBABACLOUD_ITAG_EXPORT UserSubTaskTimerRequest : public RoaServiceRequest { +public: + UserSubTaskTimerRequest(); + ~UserSubTaskTimerRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Itag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ITAG_MODEL_USERSUBTASKTIMERREQUEST_H_ diff --git a/itag/include/alibabacloud/itag/model/UserSubTaskTimerResult.h b/itag/include/alibabacloud/itag/model/UserSubTaskTimerResult.h new file mode 100644 index 000000000..2a4e452db --- /dev/null +++ b/itag/include/alibabacloud/itag/model/UserSubTaskTimerResult.h @@ -0,0 +1,61 @@ +/* + * 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_ITAG_MODEL_USERSUBTASKTIMERRESULT_H_ +#define ALIBABACLOUD_ITAG_MODEL_USERSUBTASKTIMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Itag + { + namespace Model + { + class ALIBABACLOUD_ITAG_EXPORT UserSubTaskTimerResult : public ServiceResult + { + public: + + + UserSubTaskTimerResult(); + explicit UserSubTaskTimerResult(const std::string &payload); + ~UserSubTaskTimerResult(); + std::string getMsg()const; + bool getSucc()const; + std::string getErrorCode()const; + std::string getErrInfo()const; + std::string getCode()const; + long getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + bool succ_; + std::string errorCode_; + std::string errInfo_; + std::string code_; + long result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ITAG_MODEL_USERSUBTASKTIMERRESULT_H_ \ No newline at end of file diff --git a/itag/src/ItagClient.cc b/itag/src/ItagClient.cc new file mode 100644 index 000000000..02bf81cba --- /dev/null +++ b/itag/src/ItagClient.cc @@ -0,0 +1,4661 @@ +/* + * 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +namespace +{ + const std::string SERVICE_NAME = "Itag"; +} + +ItagClient::ItagClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ItagClient::ItagClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ItagClient::ItagClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ItagClient::~ItagClient() +{} + +ItagClient::AbandonItemOutcome ItagClient::abandonItem(const AbandonItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbandonItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbandonItemOutcome(AbandonItemResult(outcome.result())); + else + return AbandonItemOutcome(outcome.error()); +} + +void ItagClient::abandonItemAsync(const AbandonItemRequest& request, const AbandonItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abandonItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AbandonItemOutcomeCallable ItagClient::abandonItemCallable(const AbandonItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abandonItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AbandonItemByAdminOutcome ItagClient::abandonItemByAdmin(const AbandonItemByAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbandonItemByAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbandonItemByAdminOutcome(AbandonItemByAdminResult(outcome.result())); + else + return AbandonItemByAdminOutcome(outcome.error()); +} + +void ItagClient::abandonItemByAdminAsync(const AbandonItemByAdminRequest& request, const AbandonItemByAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abandonItemByAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AbandonItemByAdminOutcomeCallable ItagClient::abandonItemByAdminCallable(const AbandonItemByAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abandonItemByAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AcceptSamplingTaskOutcome ItagClient::acceptSamplingTask(const AcceptSamplingTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AcceptSamplingTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AcceptSamplingTaskOutcome(AcceptSamplingTaskResult(outcome.result())); + else + return AcceptSamplingTaskOutcome(outcome.error()); +} + +void ItagClient::acceptSamplingTaskAsync(const AcceptSamplingTaskRequest& request, const AcceptSamplingTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, acceptSamplingTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AcceptSamplingTaskOutcomeCallable ItagClient::acceptSamplingTaskCallable(const AcceptSamplingTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->acceptSamplingTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AddMemberOrGroupTaskOutcome ItagClient::addMemberOrGroupTask(const AddMemberOrGroupTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddMemberOrGroupTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddMemberOrGroupTaskOutcome(AddMemberOrGroupTaskResult(outcome.result())); + else + return AddMemberOrGroupTaskOutcome(outcome.error()); +} + +void ItagClient::addMemberOrGroupTaskAsync(const AddMemberOrGroupTaskRequest& request, const AddMemberOrGroupTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addMemberOrGroupTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AddMemberOrGroupTaskOutcomeCallable ItagClient::addMemberOrGroupTaskCallable(const AddMemberOrGroupTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addMemberOrGroupTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AddUserOutcome ItagClient::addUser(const AddUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserOutcome(AddUserResult(outcome.result())); + else + return AddUserOutcome(outcome.error()); +} + +void ItagClient::addUserAsync(const AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AddUserOutcomeCallable ItagClient::addUserCallable(const AddUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AddUserToGroupOutcome ItagClient::addUserToGroup(const AddUserToGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserToGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserToGroupOutcome(AddUserToGroupResult(outcome.result())); + else + return AddUserToGroupOutcome(outcome.error()); +} + +void ItagClient::addUserToGroupAsync(const AddUserToGroupRequest& request, const AddUserToGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUserToGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AddUserToGroupOutcomeCallable ItagClient::addUserToGroupCallable(const AddUserToGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUserToGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AddUserToTntOutcome ItagClient::addUserToTnt(const AddUserToTntRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserToTntOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserToTntOutcome(AddUserToTntResult(outcome.result())); + else + return AddUserToTntOutcome(outcome.error()); +} + +void ItagClient::addUserToTntAsync(const AddUserToTntRequest& request, const AddUserToTntAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUserToTnt(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AddUserToTntOutcomeCallable ItagClient::addUserToTntCallable(const AddUserToTntRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUserToTnt(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AppendDataToDatasetOutcome ItagClient::appendDataToDataset(const AppendDataToDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AppendDataToDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AppendDataToDatasetOutcome(AppendDataToDatasetResult(outcome.result())); + else + return AppendDataToDatasetOutcome(outcome.error()); +} + +void ItagClient::appendDataToDatasetAsync(const AppendDataToDatasetRequest& request, const AppendDataToDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, appendDataToDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AppendDataToDatasetOutcomeCallable ItagClient::appendDataToDatasetCallable(const AppendDataToDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->appendDataToDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::AsyncDownloadMarkResultOutcome ItagClient::asyncDownloadMarkResult(const AsyncDownloadMarkResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AsyncDownloadMarkResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AsyncDownloadMarkResultOutcome(AsyncDownloadMarkResultResult(outcome.result())); + else + return AsyncDownloadMarkResultOutcome(outcome.error()); +} + +void ItagClient::asyncDownloadMarkResultAsync(const AsyncDownloadMarkResultRequest& request, const AsyncDownloadMarkResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, asyncDownloadMarkResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::AsyncDownloadMarkResultOutcomeCallable ItagClient::asyncDownloadMarkResultCallable(const AsyncDownloadMarkResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->asyncDownloadMarkResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::BatchRejectTaskOutcome ItagClient::batchRejectTask(const BatchRejectTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchRejectTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchRejectTaskOutcome(BatchRejectTaskResult(outcome.result())); + else + return BatchRejectTaskOutcome(outcome.error()); +} + +void ItagClient::batchRejectTaskAsync(const BatchRejectTaskRequest& request, const BatchRejectTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchRejectTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::BatchRejectTaskOutcomeCallable ItagClient::batchRejectTaskCallable(const BatchRejectTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchRejectTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CanCommitOutcome ItagClient::canCommit(const CanCommitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CanCommitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CanCommitOutcome(CanCommitResult(outcome.result())); + else + return CanCommitOutcome(outcome.error()); +} + +void ItagClient::canCommitAsync(const CanCommitRequest& request, const CanCommitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, canCommit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CanCommitOutcomeCallable ItagClient::canCommitCallable(const CanCommitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->canCommit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CheckModelOutcome ItagClient::checkModel(const CheckModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckModelOutcome(CheckModelResult(outcome.result())); + else + return CheckModelOutcome(outcome.error()); +} + +void ItagClient::checkModelAsync(const CheckModelRequest& request, const CheckModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CheckModelOutcomeCallable ItagClient::checkModelCallable(const CheckModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CommitSubTaskOutcome ItagClient::commitSubTask(const CommitSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CommitSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CommitSubTaskOutcome(CommitSubTaskResult(outcome.result())); + else + return CommitSubTaskOutcome(outcome.error()); +} + +void ItagClient::commitSubTaskAsync(const CommitSubTaskRequest& request, const CommitSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, commitSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CommitSubTaskOutcomeCallable ItagClient::commitSubTaskCallable(const CommitSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->commitSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CreateDatasetOutcome ItagClient::createDataset(const CreateDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatasetOutcome(CreateDatasetResult(outcome.result())); + else + return CreateDatasetOutcome(outcome.error()); +} + +void ItagClient::createDatasetAsync(const CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CreateDatasetOutcomeCallable ItagClient::createDatasetCallable(const CreateDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CreateModelOutcome ItagClient::createModel(const CreateModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateModelOutcome(CreateModelResult(outcome.result())); + else + return CreateModelOutcome(outcome.error()); +} + +void ItagClient::createModelAsync(const CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CreateModelOutcomeCallable ItagClient::createModelCallable(const CreateModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CreateOptionTemplateOutcome ItagClient::createOptionTemplate(const CreateOptionTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOptionTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOptionTemplateOutcome(CreateOptionTemplateResult(outcome.result())); + else + return CreateOptionTemplateOutcome(outcome.error()); +} + +void ItagClient::createOptionTemplateAsync(const CreateOptionTemplateRequest& request, const CreateOptionTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOptionTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CreateOptionTemplateOutcomeCallable ItagClient::createOptionTemplateCallable(const CreateOptionTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOptionTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CreateOrUpdateTntConfigOutcome ItagClient::createOrUpdateTntConfig(const CreateOrUpdateTntConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOrUpdateTntConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOrUpdateTntConfigOutcome(CreateOrUpdateTntConfigResult(outcome.result())); + else + return CreateOrUpdateTntConfigOutcome(outcome.error()); +} + +void ItagClient::createOrUpdateTntConfigAsync(const CreateOrUpdateTntConfigRequest& request, const CreateOrUpdateTntConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOrUpdateTntConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CreateOrUpdateTntConfigOutcomeCallable ItagClient::createOrUpdateTntConfigCallable(const CreateOrUpdateTntConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOrUpdateTntConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CreateTaskOutcome ItagClient::createTask(const CreateTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTaskOutcome(CreateTaskResult(outcome.result())); + else + return CreateTaskOutcome(outcome.error()); +} + +void ItagClient::createTaskAsync(const CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CreateTaskOutcomeCallable ItagClient::createTaskCallable(const CreateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::CreateUserGroupOutcome ItagClient::createUserGroup(const CreateUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserGroupOutcome(CreateUserGroupResult(outcome.result())); + else + return CreateUserGroupOutcome(outcome.error()); +} + +void ItagClient::createUserGroupAsync(const CreateUserGroupRequest& request, const CreateUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::CreateUserGroupOutcomeCallable ItagClient::createUserGroupCallable(const CreateUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DeleteFeedbackOutcome ItagClient::deleteFeedback(const DeleteFeedbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFeedbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFeedbackOutcome(DeleteFeedbackResult(outcome.result())); + else + return DeleteFeedbackOutcome(outcome.error()); +} + +void ItagClient::deleteFeedbackAsync(const DeleteFeedbackRequest& request, const DeleteFeedbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFeedback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DeleteFeedbackOutcomeCallable ItagClient::deleteFeedbackCallable(const DeleteFeedbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFeedback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DeleteModelOutcome ItagClient::deleteModel(const DeleteModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteModelOutcome(DeleteModelResult(outcome.result())); + else + return DeleteModelOutcome(outcome.error()); +} + +void ItagClient::deleteModelAsync(const DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DeleteModelOutcomeCallable ItagClient::deleteModelCallable(const DeleteModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DeleteOptionTemplateOutcome ItagClient::deleteOptionTemplate(const DeleteOptionTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOptionTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOptionTemplateOutcome(DeleteOptionTemplateResult(outcome.result())); + else + return DeleteOptionTemplateOutcome(outcome.error()); +} + +void ItagClient::deleteOptionTemplateAsync(const DeleteOptionTemplateRequest& request, const DeleteOptionTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOptionTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DeleteOptionTemplateOutcomeCallable ItagClient::deleteOptionTemplateCallable(const DeleteOptionTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOptionTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DeleteTaskOutcome ItagClient::deleteTask(const DeleteTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTaskOutcome(DeleteTaskResult(outcome.result())); + else + return DeleteTaskOutcome(outcome.error()); +} + +void ItagClient::deleteTaskAsync(const DeleteTaskRequest& request, const DeleteTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DeleteTaskOutcomeCallable ItagClient::deleteTaskCallable(const DeleteTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DeleteUserGroupOutcome ItagClient::deleteUserGroup(const DeleteUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserGroupOutcome(DeleteUserGroupResult(outcome.result())); + else + return DeleteUserGroupOutcome(outcome.error()); +} + +void ItagClient::deleteUserGroupAsync(const DeleteUserGroupRequest& request, const DeleteUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DeleteUserGroupOutcomeCallable ItagClient::deleteUserGroupCallable(const DeleteUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DiscardSubTaskOutcome ItagClient::discardSubTask(const DiscardSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DiscardSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DiscardSubTaskOutcome(DiscardSubTaskResult(outcome.result())); + else + return DiscardSubTaskOutcome(outcome.error()); +} + +void ItagClient::discardSubTaskAsync(const DiscardSubTaskRequest& request, const DiscardSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, discardSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DiscardSubTaskOutcomeCallable ItagClient::discardSubTaskCallable(const DiscardSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->discardSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::DownloadIntPersonSummaryOutcome ItagClient::downloadIntPersonSummary(const DownloadIntPersonSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadIntPersonSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadIntPersonSummaryOutcome(DownloadIntPersonSummaryResult(outcome.result())); + else + return DownloadIntPersonSummaryOutcome(outcome.error()); +} + +void ItagClient::downloadIntPersonSummaryAsync(const DownloadIntPersonSummaryRequest& request, const DownloadIntPersonSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadIntPersonSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::DownloadIntPersonSummaryOutcomeCallable ItagClient::downloadIntPersonSummaryCallable(const DownloadIntPersonSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadIntPersonSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ExportOptionTemplateOutcome ItagClient::exportOptionTemplate(const ExportOptionTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportOptionTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportOptionTemplateOutcome(ExportOptionTemplateResult(outcome.result())); + else + return ExportOptionTemplateOutcome(outcome.error()); +} + +void ItagClient::exportOptionTemplateAsync(const ExportOptionTemplateRequest& request, const ExportOptionTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportOptionTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ExportOptionTemplateOutcomeCallable ItagClient::exportOptionTemplateCallable(const ExportOptionTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportOptionTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ExtendUserAuthInTaskOutcome ItagClient::extendUserAuthInTask(const ExtendUserAuthInTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExtendUserAuthInTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExtendUserAuthInTaskOutcome(ExtendUserAuthInTaskResult(outcome.result())); + else + return ExtendUserAuthInTaskOutcome(outcome.error()); +} + +void ItagClient::extendUserAuthInTaskAsync(const ExtendUserAuthInTaskRequest& request, const ExtendUserAuthInTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, extendUserAuthInTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ExtendUserAuthInTaskOutcomeCallable ItagClient::extendUserAuthInTaskCallable(const ExtendUserAuthInTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->extendUserAuthInTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::FetchVideoMarkResultOutcome ItagClient::fetchVideoMarkResult(const FetchVideoMarkResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FetchVideoMarkResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FetchVideoMarkResultOutcome(FetchVideoMarkResultResult(outcome.result())); + else + return FetchVideoMarkResultOutcome(outcome.error()); +} + +void ItagClient::fetchVideoMarkResultAsync(const FetchVideoMarkResultRequest& request, const FetchVideoMarkResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, fetchVideoMarkResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::FetchVideoMarkResultOutcomeCallable ItagClient::fetchVideoMarkResultCallable(const FetchVideoMarkResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->fetchVideoMarkResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::FlowInstanceCallbackOutcome ItagClient::flowInstanceCallback(const FlowInstanceCallbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FlowInstanceCallbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FlowInstanceCallbackOutcome(FlowInstanceCallbackResult(outcome.result())); + else + return FlowInstanceCallbackOutcome(outcome.error()); +} + +void ItagClient::flowInstanceCallbackAsync(const FlowInstanceCallbackRequest& request, const FlowInstanceCallbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, flowInstanceCallback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::FlowInstanceCallbackOutcomeCallable ItagClient::flowInstanceCallbackCallable(const FlowInstanceCallbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->flowInstanceCallback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetAssignedCheckTaskSummaryOutcome ItagClient::getAssignedCheckTaskSummary(const GetAssignedCheckTaskSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAssignedCheckTaskSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAssignedCheckTaskSummaryOutcome(GetAssignedCheckTaskSummaryResult(outcome.result())); + else + return GetAssignedCheckTaskSummaryOutcome(outcome.error()); +} + +void ItagClient::getAssignedCheckTaskSummaryAsync(const GetAssignedCheckTaskSummaryRequest& request, const GetAssignedCheckTaskSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAssignedCheckTaskSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetAssignedCheckTaskSummaryOutcomeCallable ItagClient::getAssignedCheckTaskSummaryCallable(const GetAssignedCheckTaskSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAssignedCheckTaskSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetBizPersonSummaryOutcome ItagClient::getBizPersonSummary(const GetBizPersonSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBizPersonSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBizPersonSummaryOutcome(GetBizPersonSummaryResult(outcome.result())); + else + return GetBizPersonSummaryOutcome(outcome.error()); +} + +void ItagClient::getBizPersonSummaryAsync(const GetBizPersonSummaryRequest& request, const GetBizPersonSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBizPersonSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetBizPersonSummaryOutcomeCallable ItagClient::getBizPersonSummaryCallable(const GetBizPersonSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBizPersonSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetBizSummaryOutcome ItagClient::getBizSummary(const GetBizSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBizSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBizSummaryOutcome(GetBizSummaryResult(outcome.result())); + else + return GetBizSummaryOutcome(outcome.error()); +} + +void ItagClient::getBizSummaryAsync(const GetBizSummaryRequest& request, const GetBizSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBizSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetBizSummaryOutcomeCallable ItagClient::getBizSummaryCallable(const GetBizSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBizSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetCheckUserDetailOutcome ItagClient::getCheckUserDetail(const GetCheckUserDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCheckUserDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCheckUserDetailOutcome(GetCheckUserDetailResult(outcome.result())); + else + return GetCheckUserDetailOutcome(outcome.error()); +} + +void ItagClient::getCheckUserDetailAsync(const GetCheckUserDetailRequest& request, const GetCheckUserDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCheckUserDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetCheckUserDetailOutcomeCallable ItagClient::getCheckUserDetailCallable(const GetCheckUserDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCheckUserDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetCheckUserEfficiencyOutcome ItagClient::getCheckUserEfficiency(const GetCheckUserEfficiencyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCheckUserEfficiencyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCheckUserEfficiencyOutcome(GetCheckUserEfficiencyResult(outcome.result())); + else + return GetCheckUserEfficiencyOutcome(outcome.error()); +} + +void ItagClient::getCheckUserEfficiencyAsync(const GetCheckUserEfficiencyRequest& request, const GetCheckUserEfficiencyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCheckUserEfficiency(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetCheckUserEfficiencyOutcomeCallable ItagClient::getCheckUserEfficiencyCallable(const GetCheckUserEfficiencyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCheckUserEfficiency(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetCheckUserSummaryOutcome ItagClient::getCheckUserSummary(const GetCheckUserSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCheckUserSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCheckUserSummaryOutcome(GetCheckUserSummaryResult(outcome.result())); + else + return GetCheckUserSummaryOutcome(outcome.error()); +} + +void ItagClient::getCheckUserSummaryAsync(const GetCheckUserSummaryRequest& request, const GetCheckUserSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCheckUserSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetCheckUserSummaryOutcomeCallable ItagClient::getCheckUserSummaryCallable(const GetCheckUserSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCheckUserSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetCommitSummaryOutcome ItagClient::getCommitSummary(const GetCommitSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCommitSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCommitSummaryOutcome(GetCommitSummaryResult(outcome.result())); + else + return GetCommitSummaryOutcome(outcome.error()); +} + +void ItagClient::getCommitSummaryAsync(const GetCommitSummaryRequest& request, const GetCommitSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCommitSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetCommitSummaryOutcomeCallable ItagClient::getCommitSummaryCallable(const GetCommitSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCommitSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetDatasetProxyOutcome ItagClient::getDatasetProxy(const GetDatasetProxyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDatasetProxyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDatasetProxyOutcome(GetDatasetProxyResult(outcome.result())); + else + return GetDatasetProxyOutcome(outcome.error()); +} + +void ItagClient::getDatasetProxyAsync(const GetDatasetProxyRequest& request, const GetDatasetProxyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDatasetProxy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetDatasetProxyOutcomeCallable ItagClient::getDatasetProxyCallable(const GetDatasetProxyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDatasetProxy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetFlowJobOutcome ItagClient::getFlowJob(const GetFlowJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFlowJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFlowJobOutcome(GetFlowJobResult(outcome.result())); + else + return GetFlowJobOutcome(outcome.error()); +} + +void ItagClient::getFlowJobAsync(const GetFlowJobRequest& request, const GetFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFlowJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetFlowJobOutcomeCallable ItagClient::getFlowJobCallable(const GetFlowJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFlowJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetGroupHandlingSummaryOutcome ItagClient::getGroupHandlingSummary(const GetGroupHandlingSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGroupHandlingSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGroupHandlingSummaryOutcome(GetGroupHandlingSummaryResult(outcome.result())); + else + return GetGroupHandlingSummaryOutcome(outcome.error()); +} + +void ItagClient::getGroupHandlingSummaryAsync(const GetGroupHandlingSummaryRequest& request, const GetGroupHandlingSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGroupHandlingSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetGroupHandlingSummaryOutcomeCallable ItagClient::getGroupHandlingSummaryCallable(const GetGroupHandlingSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGroupHandlingSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetGroupTaskDetailOutcome ItagClient::getGroupTaskDetail(const GetGroupTaskDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGroupTaskDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGroupTaskDetailOutcome(GetGroupTaskDetailResult(outcome.result())); + else + return GetGroupTaskDetailOutcome(outcome.error()); +} + +void ItagClient::getGroupTaskDetailAsync(const GetGroupTaskDetailRequest& request, const GetGroupTaskDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGroupTaskDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetGroupTaskDetailOutcomeCallable ItagClient::getGroupTaskDetailCallable(const GetGroupTaskDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGroupTaskDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetGroupTaskPersonDetailOutcome ItagClient::getGroupTaskPersonDetail(const GetGroupTaskPersonDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGroupTaskPersonDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGroupTaskPersonDetailOutcome(GetGroupTaskPersonDetailResult(outcome.result())); + else + return GetGroupTaskPersonDetailOutcome(outcome.error()); +} + +void ItagClient::getGroupTaskPersonDetailAsync(const GetGroupTaskPersonDetailRequest& request, const GetGroupTaskPersonDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGroupTaskPersonDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetGroupTaskPersonDetailOutcomeCallable ItagClient::getGroupTaskPersonDetailCallable(const GetGroupTaskPersonDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGroupTaskPersonDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetHistoryMarkResultOutcome ItagClient::getHistoryMarkResult(const GetHistoryMarkResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHistoryMarkResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHistoryMarkResultOutcome(GetHistoryMarkResultResult(outcome.result())); + else + return GetHistoryMarkResultOutcome(outcome.error()); +} + +void ItagClient::getHistoryMarkResultAsync(const GetHistoryMarkResultRequest& request, const GetHistoryMarkResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHistoryMarkResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetHistoryMarkResultOutcomeCallable ItagClient::getHistoryMarkResultCallable(const GetHistoryMarkResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHistoryMarkResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetIntWholeSummaryOutcome ItagClient::getIntWholeSummary(const GetIntWholeSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetIntWholeSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetIntWholeSummaryOutcome(GetIntWholeSummaryResult(outcome.result())); + else + return GetIntWholeSummaryOutcome(outcome.error()); +} + +void ItagClient::getIntWholeSummaryAsync(const GetIntWholeSummaryRequest& request, const GetIntWholeSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getIntWholeSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetIntWholeSummaryOutcomeCallable ItagClient::getIntWholeSummaryCallable(const GetIntWholeSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getIntWholeSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkPersonDetailOutcome ItagClient::getMarkPersonDetail(const GetMarkPersonDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkPersonDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkPersonDetailOutcome(GetMarkPersonDetailResult(outcome.result())); + else + return GetMarkPersonDetailOutcome(outcome.error()); +} + +void ItagClient::getMarkPersonDetailAsync(const GetMarkPersonDetailRequest& request, const GetMarkPersonDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkPersonDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkPersonDetailOutcomeCallable ItagClient::getMarkPersonDetailCallable(const GetMarkPersonDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkPersonDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkPersonHandlingSummaryOutcome ItagClient::getMarkPersonHandlingSummary(const GetMarkPersonHandlingSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkPersonHandlingSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkPersonHandlingSummaryOutcome(GetMarkPersonHandlingSummaryResult(outcome.result())); + else + return GetMarkPersonHandlingSummaryOutcome(outcome.error()); +} + +void ItagClient::getMarkPersonHandlingSummaryAsync(const GetMarkPersonHandlingSummaryRequest& request, const GetMarkPersonHandlingSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkPersonHandlingSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkPersonHandlingSummaryOutcomeCallable ItagClient::getMarkPersonHandlingSummaryCallable(const GetMarkPersonHandlingSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkPersonHandlingSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkQuantityOutcome ItagClient::getMarkQuantity(const GetMarkQuantityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkQuantityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkQuantityOutcome(GetMarkQuantityResult(outcome.result())); + else + return GetMarkQuantityOutcome(outcome.error()); +} + +void ItagClient::getMarkQuantityAsync(const GetMarkQuantityRequest& request, const GetMarkQuantityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkQuantity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkQuantityOutcomeCallable ItagClient::getMarkQuantityCallable(const GetMarkQuantityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkQuantity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkResultOutcome ItagClient::getMarkResult(const GetMarkResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkResultOutcome(GetMarkResultResult(outcome.result())); + else + return GetMarkResultOutcome(outcome.error()); +} + +void ItagClient::getMarkResultAsync(const GetMarkResultRequest& request, const GetMarkResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkResultOutcomeCallable ItagClient::getMarkResultCallable(const GetMarkResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkUserDetailOutcome ItagClient::getMarkUserDetail(const GetMarkUserDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkUserDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkUserDetailOutcome(GetMarkUserDetailResult(outcome.result())); + else + return GetMarkUserDetailOutcome(outcome.error()); +} + +void ItagClient::getMarkUserDetailAsync(const GetMarkUserDetailRequest& request, const GetMarkUserDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkUserDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkUserDetailOutcomeCallable ItagClient::getMarkUserDetailCallable(const GetMarkUserDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkUserDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkUserEfficiencyOutcome ItagClient::getMarkUserEfficiency(const GetMarkUserEfficiencyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkUserEfficiencyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkUserEfficiencyOutcome(GetMarkUserEfficiencyResult(outcome.result())); + else + return GetMarkUserEfficiencyOutcome(outcome.error()); +} + +void ItagClient::getMarkUserEfficiencyAsync(const GetMarkUserEfficiencyRequest& request, const GetMarkUserEfficiencyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkUserEfficiency(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkUserEfficiencyOutcomeCallable ItagClient::getMarkUserEfficiencyCallable(const GetMarkUserEfficiencyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkUserEfficiency(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetMarkUserSummaryOutcome ItagClient::getMarkUserSummary(const GetMarkUserSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMarkUserSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMarkUserSummaryOutcome(GetMarkUserSummaryResult(outcome.result())); + else + return GetMarkUserSummaryOutcome(outcome.error()); +} + +void ItagClient::getMarkUserSummaryAsync(const GetMarkUserSummaryRequest& request, const GetMarkUserSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMarkUserSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetMarkUserSummaryOutcomeCallable ItagClient::getMarkUserSummaryCallable(const GetMarkUserSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMarkUserSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetModelByIdOutcome ItagClient::getModelById(const GetModelByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetModelByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetModelByIdOutcome(GetModelByIdResult(outcome.result())); + else + return GetModelByIdOutcome(outcome.error()); +} + +void ItagClient::getModelByIdAsync(const GetModelByIdRequest& request, const GetModelByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getModelById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetModelByIdOutcomeCallable ItagClient::getModelByIdCallable(const GetModelByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getModelById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetOptionTemplateOutcome ItagClient::getOptionTemplate(const GetOptionTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOptionTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOptionTemplateOutcome(GetOptionTemplateResult(outcome.result())); + else + return GetOptionTemplateOutcome(outcome.error()); +} + +void ItagClient::getOptionTemplateAsync(const GetOptionTemplateRequest& request, const GetOptionTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOptionTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetOptionTemplateOutcomeCallable ItagClient::getOptionTemplateCallable(const GetOptionTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOptionTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetOrCreateTntInstByBizNoOutcome ItagClient::getOrCreateTntInstByBizNo(const GetOrCreateTntInstByBizNoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrCreateTntInstByBizNoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrCreateTntInstByBizNoOutcome(GetOrCreateTntInstByBizNoResult(outcome.result())); + else + return GetOrCreateTntInstByBizNoOutcome(outcome.error()); +} + +void ItagClient::getOrCreateTntInstByBizNoAsync(const GetOrCreateTntInstByBizNoRequest& request, const GetOrCreateTntInstByBizNoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrCreateTntInstByBizNo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetOrCreateTntInstByBizNoOutcomeCallable ItagClient::getOrCreateTntInstByBizNoCallable(const GetOrCreateTntInstByBizNoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrCreateTntInstByBizNo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetPersonSummaryOutcome ItagClient::getPersonSummary(const GetPersonSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPersonSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPersonSummaryOutcome(GetPersonSummaryResult(outcome.result())); + else + return GetPersonSummaryOutcome(outcome.error()); +} + +void ItagClient::getPersonSummaryAsync(const GetPersonSummaryRequest& request, const GetPersonSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPersonSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetPersonSummaryOutcomeCallable ItagClient::getPersonSummaryCallable(const GetPersonSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPersonSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetSamplingSummaryOutcome ItagClient::getSamplingSummary(const GetSamplingSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSamplingSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSamplingSummaryOutcome(GetSamplingSummaryResult(outcome.result())); + else + return GetSamplingSummaryOutcome(outcome.error()); +} + +void ItagClient::getSamplingSummaryAsync(const GetSamplingSummaryRequest& request, const GetSamplingSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSamplingSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetSamplingSummaryOutcomeCallable ItagClient::getSamplingSummaryCallable(const GetSamplingSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSamplingSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetSubTaskDownloadSystemResultOutcome ItagClient::getSubTaskDownloadSystemResult(const GetSubTaskDownloadSystemResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSubTaskDownloadSystemResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSubTaskDownloadSystemResultOutcome(GetSubTaskDownloadSystemResultResult(outcome.result())); + else + return GetSubTaskDownloadSystemResultOutcome(outcome.error()); +} + +void ItagClient::getSubTaskDownloadSystemResultAsync(const GetSubTaskDownloadSystemResultRequest& request, const GetSubTaskDownloadSystemResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSubTaskDownloadSystemResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetSubTaskDownloadSystemResultOutcomeCallable ItagClient::getSubTaskDownloadSystemResultCallable(const GetSubTaskDownloadSystemResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSubTaskDownloadSystemResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetSubTaskDownloadUserResultOutcome ItagClient::getSubTaskDownloadUserResult(const GetSubTaskDownloadUserResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSubTaskDownloadUserResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSubTaskDownloadUserResultOutcome(GetSubTaskDownloadUserResultResult(outcome.result())); + else + return GetSubTaskDownloadUserResultOutcome(outcome.error()); +} + +void ItagClient::getSubTaskDownloadUserResultAsync(const GetSubTaskDownloadUserResultRequest& request, const GetSubTaskDownloadUserResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSubTaskDownloadUserResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetSubTaskDownloadUserResultOutcomeCallable ItagClient::getSubTaskDownloadUserResultCallable(const GetSubTaskDownloadUserResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSubTaskDownloadUserResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetSubTaskSummaryOutcome ItagClient::getSubTaskSummary(const GetSubTaskSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSubTaskSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSubTaskSummaryOutcome(GetSubTaskSummaryResult(outcome.result())); + else + return GetSubTaskSummaryOutcome(outcome.error()); +} + +void ItagClient::getSubTaskSummaryAsync(const GetSubTaskSummaryRequest& request, const GetSubTaskSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSubTaskSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetSubTaskSummaryOutcomeCallable ItagClient::getSubTaskSummaryCallable(const GetSubTaskSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSubTaskSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTaskOutcome ItagClient::getTask(const GetTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskOutcome(GetTaskResult(outcome.result())); + else + return GetTaskOutcome(outcome.error()); +} + +void ItagClient::getTaskAsync(const GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTaskOutcomeCallable ItagClient::getTaskCallable(const GetTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTaskPersonSummaryOutcome ItagClient::getTaskPersonSummary(const GetTaskPersonSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskPersonSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskPersonSummaryOutcome(GetTaskPersonSummaryResult(outcome.result())); + else + return GetTaskPersonSummaryOutcome(outcome.error()); +} + +void ItagClient::getTaskPersonSummaryAsync(const GetTaskPersonSummaryRequest& request, const GetTaskPersonSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskPersonSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTaskPersonSummaryOutcomeCallable ItagClient::getTaskPersonSummaryCallable(const GetTaskPersonSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskPersonSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTaskProcessInfoOutcome ItagClient::getTaskProcessInfo(const GetTaskProcessInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskProcessInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskProcessInfoOutcome(GetTaskProcessInfoResult(outcome.result())); + else + return GetTaskProcessInfoOutcome(outcome.error()); +} + +void ItagClient::getTaskProcessInfoAsync(const GetTaskProcessInfoRequest& request, const GetTaskProcessInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskProcessInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTaskProcessInfoOutcomeCallable ItagClient::getTaskProcessInfoCallable(const GetTaskProcessInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskProcessInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTaskStatTypesOutcome ItagClient::getTaskStatTypes(const GetTaskStatTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskStatTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskStatTypesOutcome(GetTaskStatTypesResult(outcome.result())); + else + return GetTaskStatTypesOutcome(outcome.error()); +} + +void ItagClient::getTaskStatTypesAsync(const GetTaskStatTypesRequest& request, const GetTaskStatTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskStatTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTaskStatTypesOutcomeCallable ItagClient::getTaskStatTypesCallable(const GetTaskStatTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskStatTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTaskSummaryOutcome ItagClient::getTaskSummary(const GetTaskSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskSummaryOutcome(GetTaskSummaryResult(outcome.result())); + else + return GetTaskSummaryOutcome(outcome.error()); +} + +void ItagClient::getTaskSummaryAsync(const GetTaskSummaryRequest& request, const GetTaskSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTaskSummaryOutcomeCallable ItagClient::getTaskSummaryCallable(const GetTaskSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTntConfListValueOutcome ItagClient::getTntConfListValue(const GetTntConfListValueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTntConfListValueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTntConfListValueOutcome(GetTntConfListValueResult(outcome.result())); + else + return GetTntConfListValueOutcome(outcome.error()); +} + +void ItagClient::getTntConfListValueAsync(const GetTntConfListValueRequest& request, const GetTntConfListValueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTntConfListValue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTntConfListValueOutcomeCallable ItagClient::getTntConfListValueCallable(const GetTntConfListValueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTntConfListValue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetTntUserRoleOutcome ItagClient::getTntUserRole(const GetTntUserRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTntUserRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTntUserRoleOutcome(GetTntUserRoleResult(outcome.result())); + else + return GetTntUserRoleOutcome(outcome.error()); +} + +void ItagClient::getTntUserRoleAsync(const GetTntUserRoleRequest& request, const GetTntUserRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTntUserRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetTntUserRoleOutcomeCallable ItagClient::getTntUserRoleCallable(const GetTntUserRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTntUserRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetUpdateTimeOutcome ItagClient::getUpdateTime(const GetUpdateTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUpdateTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUpdateTimeOutcome(GetUpdateTimeResult(outcome.result())); + else + return GetUpdateTimeOutcome(outcome.error()); +} + +void ItagClient::getUpdateTimeAsync(const GetUpdateTimeRequest& request, const GetUpdateTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUpdateTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetUpdateTimeOutcomeCallable ItagClient::getUpdateTimeCallable(const GetUpdateTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUpdateTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetUserOutcome ItagClient::getUser(const GetUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserOutcome(GetUserResult(outcome.result())); + else + return GetUserOutcome(outcome.error()); +} + +void ItagClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetUserOutcomeCallable ItagClient::getUserCallable(const GetUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::GetUserMarkItemInfoOutcome ItagClient::getUserMarkItemInfo(const GetUserMarkItemInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserMarkItemInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserMarkItemInfoOutcome(GetUserMarkItemInfoResult(outcome.result())); + else + return GetUserMarkItemInfoOutcome(outcome.error()); +} + +void ItagClient::getUserMarkItemInfoAsync(const GetUserMarkItemInfoRequest& request, const GetUserMarkItemInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserMarkItemInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::GetUserMarkItemInfoOutcomeCallable ItagClient::getUserMarkItemInfoCallable(const GetUserMarkItemInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserMarkItemInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ImportOptionTemplateOutcome ItagClient::importOptionTemplate(const ImportOptionTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ImportOptionTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportOptionTemplateOutcome(ImportOptionTemplateResult(outcome.result())); + else + return ImportOptionTemplateOutcome(outcome.error()); +} + +void ItagClient::importOptionTemplateAsync(const ImportOptionTemplateRequest& request, const ImportOptionTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importOptionTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ImportOptionTemplateOutcomeCallable ItagClient::importOptionTemplateCallable(const ImportOptionTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importOptionTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::InitSamplingUserSubTaskOutcome ItagClient::initSamplingUserSubTask(const InitSamplingUserSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitSamplingUserSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitSamplingUserSubTaskOutcome(InitSamplingUserSubTaskResult(outcome.result())); + else + return InitSamplingUserSubTaskOutcome(outcome.error()); +} + +void ItagClient::initSamplingUserSubTaskAsync(const InitSamplingUserSubTaskRequest& request, const InitSamplingUserSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initSamplingUserSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::InitSamplingUserSubTaskOutcomeCallable ItagClient::initSamplingUserSubTaskCallable(const InitSamplingUserSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initSamplingUserSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListAssignedSubUserTaskOutcome ItagClient::listAssignedSubUserTask(const ListAssignedSubUserTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAssignedSubUserTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAssignedSubUserTaskOutcome(ListAssignedSubUserTaskResult(outcome.result())); + else + return ListAssignedSubUserTaskOutcome(outcome.error()); +} + +void ItagClient::listAssignedSubUserTaskAsync(const ListAssignedSubUserTaskRequest& request, const ListAssignedSubUserTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAssignedSubUserTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListAssignedSubUserTaskOutcomeCallable ItagClient::listAssignedSubUserTaskCallable(const ListAssignedSubUserTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAssignedSubUserTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListCheckTaskOutcome ItagClient::listCheckTask(const ListCheckTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCheckTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCheckTaskOutcome(ListCheckTaskResult(outcome.result())); + else + return ListCheckTaskOutcome(outcome.error()); +} + +void ItagClient::listCheckTaskAsync(const ListCheckTaskRequest& request, const ListCheckTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCheckTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListCheckTaskOutcomeCallable ItagClient::listCheckTaskCallable(const ListCheckTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCheckTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListDatasetFieldsOutcome ItagClient::listDatasetFields(const ListDatasetFieldsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDatasetFieldsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDatasetFieldsOutcome(ListDatasetFieldsResult(outcome.result())); + else + return ListDatasetFieldsOutcome(outcome.error()); +} + +void ItagClient::listDatasetFieldsAsync(const ListDatasetFieldsRequest& request, const ListDatasetFieldsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDatasetFields(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListDatasetFieldsOutcomeCallable ItagClient::listDatasetFieldsCallable(const ListDatasetFieldsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDatasetFields(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListFinishedSubUserTaskOutcome ItagClient::listFinishedSubUserTask(const ListFinishedSubUserTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFinishedSubUserTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFinishedSubUserTaskOutcome(ListFinishedSubUserTaskResult(outcome.result())); + else + return ListFinishedSubUserTaskOutcome(outcome.error()); +} + +void ItagClient::listFinishedSubUserTaskAsync(const ListFinishedSubUserTaskRequest& request, const ListFinishedSubUserTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFinishedSubUserTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListFinishedSubUserTaskOutcomeCallable ItagClient::listFinishedSubUserTaskCallable(const ListFinishedSubUserTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFinishedSubUserTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListMarkableTaskOutcome ItagClient::listMarkableTask(const ListMarkableTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMarkableTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMarkableTaskOutcome(ListMarkableTaskResult(outcome.result())); + else + return ListMarkableTaskOutcome(outcome.error()); +} + +void ItagClient::listMarkableTaskAsync(const ListMarkableTaskRequest& request, const ListMarkableTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMarkableTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListMarkableTaskOutcomeCallable ItagClient::listMarkableTaskCallable(const ListMarkableTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMarkableTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListSamplingHandlerUserOutcome ItagClient::listSamplingHandlerUser(const ListSamplingHandlerUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSamplingHandlerUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSamplingHandlerUserOutcome(ListSamplingHandlerUserResult(outcome.result())); + else + return ListSamplingHandlerUserOutcome(outcome.error()); +} + +void ItagClient::listSamplingHandlerUserAsync(const ListSamplingHandlerUserRequest& request, const ListSamplingHandlerUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSamplingHandlerUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListSamplingHandlerUserOutcomeCallable ItagClient::listSamplingHandlerUserCallable(const ListSamplingHandlerUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSamplingHandlerUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListSamplingResultMetaOutcome ItagClient::listSamplingResultMeta(const ListSamplingResultMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSamplingResultMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSamplingResultMetaOutcome(ListSamplingResultMetaResult(outcome.result())); + else + return ListSamplingResultMetaOutcome(outcome.error()); +} + +void ItagClient::listSamplingResultMetaAsync(const ListSamplingResultMetaRequest& request, const ListSamplingResultMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSamplingResultMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListSamplingResultMetaOutcomeCallable ItagClient::listSamplingResultMetaCallable(const ListSamplingResultMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSamplingResultMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListSamplingUsersOutcome ItagClient::listSamplingUsers(const ListSamplingUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSamplingUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSamplingUsersOutcome(ListSamplingUsersResult(outcome.result())); + else + return ListSamplingUsersOutcome(outcome.error()); +} + +void ItagClient::listSamplingUsersAsync(const ListSamplingUsersRequest& request, const ListSamplingUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSamplingUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListSamplingUsersOutcomeCallable ItagClient::listSamplingUsersCallable(const ListSamplingUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSamplingUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListTntConfigOutcome ItagClient::listTntConfig(const ListTntConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTntConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTntConfigOutcome(ListTntConfigResult(outcome.result())); + else + return ListTntConfigOutcome(outcome.error()); +} + +void ItagClient::listTntConfigAsync(const ListTntConfigRequest& request, const ListTntConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTntConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListTntConfigOutcomeCallable ItagClient::listTntConfigCallable(const ListTntConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTntConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ListWorkNodeUsersOutcome ItagClient::listWorkNodeUsers(const ListWorkNodeUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkNodeUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkNodeUsersOutcome(ListWorkNodeUsersResult(outcome.result())); + else + return ListWorkNodeUsersOutcome(outcome.error()); +} + +void ItagClient::listWorkNodeUsersAsync(const ListWorkNodeUsersRequest& request, const ListWorkNodeUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkNodeUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ListWorkNodeUsersOutcomeCallable ItagClient::listWorkNodeUsersCallable(const ListWorkNodeUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkNodeUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ManualCalReportOutcome ItagClient::manualCalReport(const ManualCalReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ManualCalReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ManualCalReportOutcome(ManualCalReportResult(outcome.result())); + else + return ManualCalReportOutcome(outcome.error()); +} + +void ItagClient::manualCalReportAsync(const ManualCalReportRequest& request, const ManualCalReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, manualCalReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ManualCalReportOutcomeCallable ItagClient::manualCalReportCallable(const ManualCalReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->manualCalReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::MngReleaseUserSubTaskOutcome ItagClient::mngReleaseUserSubTask(const MngReleaseUserSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MngReleaseUserSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MngReleaseUserSubTaskOutcome(MngReleaseUserSubTaskResult(outcome.result())); + else + return MngReleaseUserSubTaskOutcome(outcome.error()); +} + +void ItagClient::mngReleaseUserSubTaskAsync(const MngReleaseUserSubTaskRequest& request, const MngReleaseUserSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mngReleaseUserSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::MngReleaseUserSubTaskOutcomeCallable ItagClient::mngReleaseUserSubTaskCallable(const MngReleaseUserSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mngReleaseUserSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::OfflineTaskOutcome ItagClient::offlineTask(const OfflineTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OfflineTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OfflineTaskOutcome(OfflineTaskResult(outcome.result())); + else + return OfflineTaskOutcome(outcome.error()); +} + +void ItagClient::offlineTaskAsync(const OfflineTaskRequest& request, const OfflineTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, offlineTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::OfflineTaskOutcomeCallable ItagClient::offlineTaskCallable(const OfflineTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->offlineTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::OnlineTaskOutcome ItagClient::onlineTask(const OnlineTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OnlineTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OnlineTaskOutcome(OnlineTaskResult(outcome.result())); + else + return OnlineTaskOutcome(outcome.error()); +} + +void ItagClient::onlineTaskAsync(const OnlineTaskRequest& request, const OnlineTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, onlineTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::OnlineTaskOutcomeCallable ItagClient::onlineTaskCallable(const OnlineTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->onlineTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewDataMetaOutcome ItagClient::pageViewDataMeta(const PageViewDataMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewDataMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewDataMetaOutcome(PageViewDataMetaResult(outcome.result())); + else + return PageViewDataMetaOutcome(outcome.error()); +} + +void ItagClient::pageViewDataMetaAsync(const PageViewDataMetaRequest& request, const PageViewDataMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewDataMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewDataMetaOutcomeCallable ItagClient::pageViewDataMetaCallable(const PageViewDataMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewDataMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewDatasetProxyOutcome ItagClient::pageViewDatasetProxy(const PageViewDatasetProxyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewDatasetProxyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewDatasetProxyOutcome(PageViewDatasetProxyResult(outcome.result())); + else + return PageViewDatasetProxyOutcome(outcome.error()); +} + +void ItagClient::pageViewDatasetProxyAsync(const PageViewDatasetProxyRequest& request, const PageViewDatasetProxyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewDatasetProxy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewDatasetProxyOutcomeCallable ItagClient::pageViewDatasetProxyCallable(const PageViewDatasetProxyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewDatasetProxy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewFlowJobOutcome ItagClient::pageViewFlowJob(const PageViewFlowJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewFlowJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewFlowJobOutcome(PageViewFlowJobResult(outcome.result())); + else + return PageViewFlowJobOutcome(outcome.error()); +} + +void ItagClient::pageViewFlowJobAsync(const PageViewFlowJobRequest& request, const PageViewFlowJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewFlowJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewFlowJobOutcomeCallable ItagClient::pageViewFlowJobCallable(const PageViewFlowJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewFlowJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewModelOutcome ItagClient::pageViewModel(const PageViewModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewModelOutcome(PageViewModelResult(outcome.result())); + else + return PageViewModelOutcome(outcome.error()); +} + +void ItagClient::pageViewModelAsync(const PageViewModelRequest& request, const PageViewModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewModelOutcomeCallable ItagClient::pageViewModelCallable(const PageViewModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewMyTntOutcome ItagClient::pageViewMyTnt(const PageViewMyTntRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewMyTntOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewMyTntOutcome(PageViewMyTntResult(outcome.result())); + else + return PageViewMyTntOutcome(outcome.error()); +} + +void ItagClient::pageViewMyTntAsync(const PageViewMyTntRequest& request, const PageViewMyTntAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewMyTnt(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewMyTntOutcomeCallable ItagClient::pageViewMyTntCallable(const PageViewMyTntRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewMyTnt(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewOptionTemplateOutcome ItagClient::pageViewOptionTemplate(const PageViewOptionTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewOptionTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewOptionTemplateOutcome(PageViewOptionTemplateResult(outcome.result())); + else + return PageViewOptionTemplateOutcome(outcome.error()); +} + +void ItagClient::pageViewOptionTemplateAsync(const PageViewOptionTemplateRequest& request, const PageViewOptionTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewOptionTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewOptionTemplateOutcomeCallable ItagClient::pageViewOptionTemplateCallable(const PageViewOptionTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewOptionTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewSubTaskItemOutcome ItagClient::pageViewSubTaskItem(const PageViewSubTaskItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewSubTaskItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewSubTaskItemOutcome(PageViewSubTaskItemResult(outcome.result())); + else + return PageViewSubTaskItemOutcome(outcome.error()); +} + +void ItagClient::pageViewSubTaskItemAsync(const PageViewSubTaskItemRequest& request, const PageViewSubTaskItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewSubTaskItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewSubTaskItemOutcomeCallable ItagClient::pageViewSubTaskItemCallable(const PageViewSubTaskItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewSubTaskItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewTaskOutcome ItagClient::pageViewTask(const PageViewTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewTaskOutcome(PageViewTaskResult(outcome.result())); + else + return PageViewTaskOutcome(outcome.error()); +} + +void ItagClient::pageViewTaskAsync(const PageViewTaskRequest& request, const PageViewTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewTaskOutcomeCallable ItagClient::pageViewTaskCallable(const PageViewTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewTntUserOutcome ItagClient::pageViewTntUser(const PageViewTntUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewTntUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewTntUserOutcome(PageViewTntUserResult(outcome.result())); + else + return PageViewTntUserOutcome(outcome.error()); +} + +void ItagClient::pageViewTntUserAsync(const PageViewTntUserRequest& request, const PageViewTntUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewTntUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewTntUserOutcomeCallable ItagClient::pageViewTntUserCallable(const PageViewTntUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewTntUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewUserOutcome ItagClient::pageViewUser(const PageViewUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewUserOutcome(PageViewUserResult(outcome.result())); + else + return PageViewUserOutcome(outcome.error()); +} + +void ItagClient::pageViewUserAsync(const PageViewUserRequest& request, const PageViewUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewUserOutcomeCallable ItagClient::pageViewUserCallable(const PageViewUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageViewUserGroupOutcome ItagClient::pageViewUserGroup(const PageViewUserGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageViewUserGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageViewUserGroupOutcome(PageViewUserGroupResult(outcome.result())); + else + return PageViewUserGroupOutcome(outcome.error()); +} + +void ItagClient::pageViewUserGroupAsync(const PageViewUserGroupRequest& request, const PageViewUserGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageViewUserGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageViewUserGroupOutcomeCallable ItagClient::pageViewUserGroupCallable(const PageViewUserGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageViewUserGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PageviewSubTaskOutcome ItagClient::pageviewSubTask(const PageviewSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PageviewSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PageviewSubTaskOutcome(PageviewSubTaskResult(outcome.result())); + else + return PageviewSubTaskOutcome(outcome.error()); +} + +void ItagClient::pageviewSubTaskAsync(const PageviewSubTaskRequest& request, const PageviewSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pageviewSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PageviewSubTaskOutcomeCallable ItagClient::pageviewSubTaskCallable(const PageviewSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pageviewSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PollingSampleMarkItemsOutcome ItagClient::pollingSampleMarkItems(const PollingSampleMarkItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PollingSampleMarkItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PollingSampleMarkItemsOutcome(PollingSampleMarkItemsResult(outcome.result())); + else + return PollingSampleMarkItemsOutcome(outcome.error()); +} + +void ItagClient::pollingSampleMarkItemsAsync(const PollingSampleMarkItemsRequest& request, const PollingSampleMarkItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pollingSampleMarkItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PollingSampleMarkItemsOutcomeCallable ItagClient::pollingSampleMarkItemsCallable(const PollingSampleMarkItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pollingSampleMarkItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::PreviewTaskTemplateOutcome ItagClient::previewTaskTemplate(const PreviewTaskTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreviewTaskTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreviewTaskTemplateOutcome(PreviewTaskTemplateResult(outcome.result())); + else + return PreviewTaskTemplateOutcome(outcome.error()); +} + +void ItagClient::previewTaskTemplateAsync(const PreviewTaskTemplateRequest& request, const PreviewTaskTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, previewTaskTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::PreviewTaskTemplateOutcomeCallable ItagClient::previewTaskTemplateCallable(const PreviewTaskTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->previewTaskTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ProxyRobotServiceOutcome ItagClient::proxyRobotService(const ProxyRobotServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ProxyRobotServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ProxyRobotServiceOutcome(ProxyRobotServiceResult(outcome.result())); + else + return ProxyRobotServiceOutcome(outcome.error()); +} + +void ItagClient::proxyRobotServiceAsync(const ProxyRobotServiceRequest& request, const ProxyRobotServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, proxyRobotService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ProxyRobotServiceOutcomeCallable ItagClient::proxyRobotServiceCallable(const ProxyRobotServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->proxyRobotService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::QueryMarkableSubTaskOutcome ItagClient::queryMarkableSubTask(const QueryMarkableSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMarkableSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMarkableSubTaskOutcome(QueryMarkableSubTaskResult(outcome.result())); + else + return QueryMarkableSubTaskOutcome(outcome.error()); +} + +void ItagClient::queryMarkableSubTaskAsync(const QueryMarkableSubTaskRequest& request, const QueryMarkableSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMarkableSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::QueryMarkableSubTaskOutcomeCallable ItagClient::queryMarkableSubTaskCallable(const QueryMarkableSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMarkableSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::QuerySampleMarkItemsOutcome ItagClient::querySampleMarkItems(const QuerySampleMarkItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySampleMarkItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySampleMarkItemsOutcome(QuerySampleMarkItemsResult(outcome.result())); + else + return QuerySampleMarkItemsOutcome(outcome.error()); +} + +void ItagClient::querySampleMarkItemsAsync(const QuerySampleMarkItemsRequest& request, const QuerySampleMarkItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySampleMarkItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::QuerySampleMarkItemsOutcomeCallable ItagClient::querySampleMarkItemsCallable(const QuerySampleMarkItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySampleMarkItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::QuerySamplingPoolSizeOutcome ItagClient::querySamplingPoolSize(const QuerySamplingPoolSizeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySamplingPoolSizeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySamplingPoolSizeOutcome(QuerySamplingPoolSizeResult(outcome.result())); + else + return QuerySamplingPoolSizeOutcome(outcome.error()); +} + +void ItagClient::querySamplingPoolSizeAsync(const QuerySamplingPoolSizeRequest& request, const QuerySamplingPoolSizeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySamplingPoolSize(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::QuerySamplingPoolSizeOutcomeCallable ItagClient::querySamplingPoolSizeCallable(const QuerySamplingPoolSizeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySamplingPoolSize(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::QuerySkipUserSubTaskOutcome ItagClient::querySkipUserSubTask(const QuerySkipUserSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySkipUserSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySkipUserSubTaskOutcome(QuerySkipUserSubTaskResult(outcome.result())); + else + return QuerySkipUserSubTaskOutcome(outcome.error()); +} + +void ItagClient::querySkipUserSubTaskAsync(const QuerySkipUserSubTaskRequest& request, const QuerySkipUserSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySkipUserSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::QuerySkipUserSubTaskOutcomeCallable ItagClient::querySkipUserSubTaskCallable(const QuerySkipUserSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySkipUserSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::RejectSamplingTaskOutcome ItagClient::rejectSamplingTask(const RejectSamplingTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RejectSamplingTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RejectSamplingTaskOutcome(RejectSamplingTaskResult(outcome.result())); + else + return RejectSamplingTaskOutcome(outcome.error()); +} + +void ItagClient::rejectSamplingTaskAsync(const RejectSamplingTaskRequest& request, const RejectSamplingTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rejectSamplingTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::RejectSamplingTaskOutcomeCallable ItagClient::rejectSamplingTaskCallable(const RejectSamplingTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rejectSamplingTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::RejectSubTaskOutcome ItagClient::rejectSubTask(const RejectSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RejectSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RejectSubTaskOutcome(RejectSubTaskResult(outcome.result())); + else + return RejectSubTaskOutcome(outcome.error()); +} + +void ItagClient::rejectSubTaskAsync(const RejectSubTaskRequest& request, const RejectSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rejectSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::RejectSubTaskOutcomeCallable ItagClient::rejectSubTaskCallable(const RejectSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rejectSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::ReleaseUserSubTaskOutcome ItagClient::releaseUserSubTask(const ReleaseUserSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseUserSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseUserSubTaskOutcome(ReleaseUserSubTaskResult(outcome.result())); + else + return ReleaseUserSubTaskOutcome(outcome.error()); +} + +void ItagClient::releaseUserSubTaskAsync(const ReleaseUserSubTaskRequest& request, const ReleaseUserSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseUserSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::ReleaseUserSubTaskOutcomeCallable ItagClient::releaseUserSubTaskCallable(const ReleaseUserSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseUserSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::RemoveMemberOrGroupTaskOutcome ItagClient::removeMemberOrGroupTask(const RemoveMemberOrGroupTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveMemberOrGroupTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveMemberOrGroupTaskOutcome(RemoveMemberOrGroupTaskResult(outcome.result())); + else + return RemoveMemberOrGroupTaskOutcome(outcome.error()); +} + +void ItagClient::removeMemberOrGroupTaskAsync(const RemoveMemberOrGroupTaskRequest& request, const RemoveMemberOrGroupTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeMemberOrGroupTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::RemoveMemberOrGroupTaskOutcomeCallable ItagClient::removeMemberOrGroupTaskCallable(const RemoveMemberOrGroupTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeMemberOrGroupTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::RemoveUserInGroupOutcome ItagClient::removeUserInGroup(const RemoveUserInGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveUserInGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveUserInGroupOutcome(RemoveUserInGroupResult(outcome.result())); + else + return RemoveUserInGroupOutcome(outcome.error()); +} + +void ItagClient::removeUserInGroupAsync(const RemoveUserInGroupRequest& request, const RemoveUserInGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeUserInGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::RemoveUserInGroupOutcomeCallable ItagClient::removeUserInGroupCallable(const RemoveUserInGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeUserInGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::RemoveUserInTntOutcome ItagClient::removeUserInTnt(const RemoveUserInTntRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveUserInTntOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveUserInTntOutcome(RemoveUserInTntResult(outcome.result())); + else + return RemoveUserInTntOutcome(outcome.error()); +} + +void ItagClient::removeUserInTntAsync(const RemoveUserInTntRequest& request, const RemoveUserInTntAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeUserInTnt(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::RemoveUserInTntOutcomeCallable ItagClient::removeUserInTntCallable(const RemoveUserInTntRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeUserInTnt(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::SamplingSubUserTaskListOutcome ItagClient::samplingSubUserTaskList(const SamplingSubUserTaskListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SamplingSubUserTaskListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SamplingSubUserTaskListOutcome(SamplingSubUserTaskListResult(outcome.result())); + else + return SamplingSubUserTaskListOutcome(outcome.error()); +} + +void ItagClient::samplingSubUserTaskListAsync(const SamplingSubUserTaskListRequest& request, const SamplingSubUserTaskListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, samplingSubUserTaskList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::SamplingSubUserTaskListOutcomeCallable ItagClient::samplingSubUserTaskListCallable(const SamplingSubUserTaskListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->samplingSubUserTaskList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::SkipFinishedOutcome ItagClient::skipFinished(const SkipFinishedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SkipFinishedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SkipFinishedOutcome(SkipFinishedResult(outcome.result())); + else + return SkipFinishedOutcome(outcome.error()); +} + +void ItagClient::skipFinishedAsync(const SkipFinishedRequest& request, const SkipFinishedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, skipFinished(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::SkipFinishedOutcomeCallable ItagClient::skipFinishedCallable(const SkipFinishedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->skipFinished(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::SkipUserSubTaskOutcome ItagClient::skipUserSubTask(const SkipUserSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SkipUserSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SkipUserSubTaskOutcome(SkipUserSubTaskResult(outcome.result())); + else + return SkipUserSubTaskOutcome(outcome.error()); +} + +void ItagClient::skipUserSubTaskAsync(const SkipUserSubTaskRequest& request, const SkipUserSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, skipUserSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::SkipUserSubTaskOutcomeCallable ItagClient::skipUserSubTaskCallable(const SkipUserSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->skipUserSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::TaskStageStatOutcome ItagClient::taskStageStat(const TaskStageStatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TaskStageStatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TaskStageStatOutcome(TaskStageStatResult(outcome.result())); + else + return TaskStageStatOutcome(outcome.error()); +} + +void ItagClient::taskStageStatAsync(const TaskStageStatRequest& request, const TaskStageStatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, taskStageStat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::TaskStageStatOutcomeCallable ItagClient::taskStageStatCallable(const TaskStageStatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->taskStageStat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::TestRequestOutcome ItagClient::testRequest(const TestRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TestRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TestRequestOutcome(TestRequestResult(outcome.result())); + else + return TestRequestOutcome(outcome.error()); +} + +void ItagClient::testRequestAsync(const TestRequestRequest& request, const TestRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, testRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::TestRequestOutcomeCallable ItagClient::testRequestCallable(const TestRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->testRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::TransferUserSubTaskOutcome ItagClient::transferUserSubTask(const TransferUserSubTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferUserSubTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferUserSubTaskOutcome(TransferUserSubTaskResult(outcome.result())); + else + return TransferUserSubTaskOutcome(outcome.error()); +} + +void ItagClient::transferUserSubTaskAsync(const TransferUserSubTaskRequest& request, const TransferUserSubTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferUserSubTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::TransferUserSubTaskOutcomeCallable ItagClient::transferUserSubTaskCallable(const TransferUserSubTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferUserSubTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UnpassFeedbackOutcome ItagClient::unpassFeedback(const UnpassFeedbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnpassFeedbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnpassFeedbackOutcome(UnpassFeedbackResult(outcome.result())); + else + return UnpassFeedbackOutcome(outcome.error()); +} + +void ItagClient::unpassFeedbackAsync(const UnpassFeedbackRequest& request, const UnpassFeedbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unpassFeedback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UnpassFeedbackOutcomeCallable ItagClient::unpassFeedbackCallable(const UnpassFeedbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unpassFeedback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateDatasetStateMsgOutcome ItagClient::updateDatasetStateMsg(const UpdateDatasetStateMsgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDatasetStateMsgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDatasetStateMsgOutcome(UpdateDatasetStateMsgResult(outcome.result())); + else + return UpdateDatasetStateMsgOutcome(outcome.error()); +} + +void ItagClient::updateDatasetStateMsgAsync(const UpdateDatasetStateMsgRequest& request, const UpdateDatasetStateMsgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDatasetStateMsg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateDatasetStateMsgOutcomeCallable ItagClient::updateDatasetStateMsgCallable(const UpdateDatasetStateMsgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDatasetStateMsg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateMarkResultOutcome ItagClient::updateMarkResult(const UpdateMarkResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMarkResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMarkResultOutcome(UpdateMarkResultResult(outcome.result())); + else + return UpdateMarkResultOutcome(outcome.error()); +} + +void ItagClient::updateMarkResultAsync(const UpdateMarkResultRequest& request, const UpdateMarkResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMarkResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateMarkResultOutcomeCallable ItagClient::updateMarkResultCallable(const UpdateMarkResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMarkResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateMarkResultByAdminOutcome ItagClient::updateMarkResultByAdmin(const UpdateMarkResultByAdminRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMarkResultByAdminOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMarkResultByAdminOutcome(UpdateMarkResultByAdminResult(outcome.result())); + else + return UpdateMarkResultByAdminOutcome(outcome.error()); +} + +void ItagClient::updateMarkResultByAdminAsync(const UpdateMarkResultByAdminRequest& request, const UpdateMarkResultByAdminAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMarkResultByAdmin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateMarkResultByAdminOutcomeCallable ItagClient::updateMarkResultByAdminCallable(const UpdateMarkResultByAdminRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMarkResultByAdmin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateModelOutcome ItagClient::updateModel(const UpdateModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateModelOutcome(UpdateModelResult(outcome.result())); + else + return UpdateModelOutcome(outcome.error()); +} + +void ItagClient::updateModelAsync(const UpdateModelRequest& request, const UpdateModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateModelOutcomeCallable ItagClient::updateModelCallable(const UpdateModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateTaskOutcome ItagClient::updateTask(const UpdateTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTaskOutcome(UpdateTaskResult(outcome.result())); + else + return UpdateTaskOutcome(outcome.error()); +} + +void ItagClient::updateTaskAsync(const UpdateTaskRequest& request, const UpdateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateTaskOutcomeCallable ItagClient::updateTaskCallable(const UpdateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateTaskDataOutcome ItagClient::updateTaskData(const UpdateTaskDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTaskDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTaskDataOutcome(UpdateTaskDataResult(outcome.result())); + else + return UpdateTaskDataOutcome(outcome.error()); +} + +void ItagClient::updateTaskDataAsync(const UpdateTaskDataRequest& request, const UpdateTaskDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTaskData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateTaskDataOutcomeCallable ItagClient::updateTaskDataCallable(const UpdateTaskDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTaskData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateTaskTemplateOutcome ItagClient::updateTaskTemplate(const UpdateTaskTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTaskTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTaskTemplateOutcome(UpdateTaskTemplateResult(outcome.result())); + else + return UpdateTaskTemplateOutcome(outcome.error()); +} + +void ItagClient::updateTaskTemplateAsync(const UpdateTaskTemplateRequest& request, const UpdateTaskTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTaskTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateTaskTemplateOutcomeCallable ItagClient::updateTaskTemplateCallable(const UpdateTaskTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTaskTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateTemplateOutcome ItagClient::updateTemplate(const UpdateTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTemplateOutcome(UpdateTemplateResult(outcome.result())); + else + return UpdateTemplateOutcome(outcome.error()); +} + +void ItagClient::updateTemplateAsync(const UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateTemplateOutcomeCallable ItagClient::updateTemplateCallable(const UpdateTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateUserNameOutcome ItagClient::updateUserName(const UpdateUserNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserNameOutcome(UpdateUserNameResult(outcome.result())); + else + return UpdateUserNameOutcome(outcome.error()); +} + +void ItagClient::updateUserNameAsync(const UpdateUserNameRequest& request, const UpdateUserNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUserName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateUserNameOutcomeCallable ItagClient::updateUserNameCallable(const UpdateUserNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUserName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UpdateUserRoleInTntOutcome ItagClient::updateUserRoleInTnt(const UpdateUserRoleInTntRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserRoleInTntOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserRoleInTntOutcome(UpdateUserRoleInTntResult(outcome.result())); + else + return UpdateUserRoleInTntOutcome(outcome.error()); +} + +void ItagClient::updateUserRoleInTntAsync(const UpdateUserRoleInTntRequest& request, const UpdateUserRoleInTntAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUserRoleInTnt(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UpdateUserRoleInTntOutcomeCallable ItagClient::updateUserRoleInTntCallable(const UpdateUserRoleInTntRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUserRoleInTnt(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ItagClient::UserSubTaskTimerOutcome ItagClient::userSubTaskTimer(const UserSubTaskTimerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UserSubTaskTimerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UserSubTaskTimerOutcome(UserSubTaskTimerResult(outcome.result())); + else + return UserSubTaskTimerOutcome(outcome.error()); +} + +void ItagClient::userSubTaskTimerAsync(const UserSubTaskTimerRequest& request, const UserSubTaskTimerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, userSubTaskTimer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ItagClient::UserSubTaskTimerOutcomeCallable ItagClient::userSubTaskTimerCallable(const UserSubTaskTimerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->userSubTaskTimer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/itag/src/model/AbandonItemByAdminRequest.cc b/itag/src/model/AbandonItemByAdminRequest.cc new file mode 100644 index 000000000..0a05c5fe4 --- /dev/null +++ b/itag/src/model/AbandonItemByAdminRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AbandonItemByAdminRequest; + +AbandonItemByAdminRequest::AbandonItemByAdminRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markitem/abandonItemByAdmin"}; + setMethod(HttpRequest::Method::Post); +} + +AbandonItemByAdminRequest::~AbandonItemByAdminRequest() {} + +std::string AbandonItemByAdminRequest::getBody() const { + return body_; +} + +void AbandonItemByAdminRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AbandonItemByAdminResult.cc b/itag/src/model/AbandonItemByAdminResult.cc new file mode 100644 index 000000000..422bf3c9e --- /dev/null +++ b/itag/src/model/AbandonItemByAdminResult.cc @@ -0,0 +1,109 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +AbandonItemByAdminResult::AbandonItemByAdminResult() : + ServiceResult() +{} + +AbandonItemByAdminResult::AbandonItemByAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbandonItemByAdminResult::~AbandonItemByAdminResult() +{} + +void AbandonItemByAdminResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["CanCommit"].isNull()) + result_.canCommit = resultNode["CanCommit"].asString() == "true"; + if(!resultNode["CommitMsg"].isNull()) + result_.commitMsg = resultNode["CommitMsg"].asString(); + if(!resultNode["AllUpdateSucc"].isNull()) + result_.allUpdateSucc = resultNode["AllUpdateSucc"].asString() == "true"; + auto allFailListNode = resultNode["FailList"]["FailListItem"]; + for (auto resultNodeFailListFailListItem : allFailListNode) + { + Result::FailListItem failListItemObject; + if(!resultNodeFailListFailListItem["MarkResultId"].isNull()) + failListItemObject.markResultId = resultNodeFailListFailListItem["MarkResultId"].asString(); + if(!resultNodeFailListFailListItem["QuestionId"].isNull()) + failListItemObject.questionId = resultNodeFailListFailListItem["QuestionId"].asString(); + if(!resultNodeFailListFailListItem["MarkResult"].isNull()) + failListItemObject.markResult = resultNodeFailListFailListItem["MarkResult"].asString(); + if(!resultNodeFailListFailListItem["QuestionTitle"].isNull()) + failListItemObject.questionTitle = resultNodeFailListFailListItem["QuestionTitle"].asString(); + if(!resultNodeFailListFailListItem["QuestionType"].isNull()) + failListItemObject.questionType = resultNodeFailListFailListItem["QuestionType"].asString(); + if(!resultNodeFailListFailListItem["Version"].isNull()) + failListItemObject.version = resultNodeFailListFailListItem["Version"].asString(); + result_.failList.push_back(failListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AbandonItemByAdminResult::getMsg()const +{ + return msg_; +} + +bool AbandonItemByAdminResult::getSucc()const +{ + return succ_; +} + +std::string AbandonItemByAdminResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AbandonItemByAdminResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AbandonItemByAdminResult::getCode()const +{ + return code_; +} + +AbandonItemByAdminResult::Result AbandonItemByAdminResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AbandonItemRequest.cc b/itag/src/model/AbandonItemRequest.cc new file mode 100644 index 000000000..cb99f4e8b --- /dev/null +++ b/itag/src/model/AbandonItemRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AbandonItemRequest; + +AbandonItemRequest::AbandonItemRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markitem/abandonItem"}; + setMethod(HttpRequest::Method::Post); +} + +AbandonItemRequest::~AbandonItemRequest() {} + +std::string AbandonItemRequest::getBody() const { + return body_; +} + +void AbandonItemRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AbandonItemResult.cc b/itag/src/model/AbandonItemResult.cc new file mode 100644 index 000000000..3f0f850ab --- /dev/null +++ b/itag/src/model/AbandonItemResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +AbandonItemResult::AbandonItemResult() : + ServiceResult() +{} + +AbandonItemResult::AbandonItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbandonItemResult::~AbandonItemResult() +{} + +void AbandonItemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AbandonItemResult::getMsg()const +{ + return msg_; +} + +long AbandonItemResult::getRt()const +{ + return rt_; +} + +bool AbandonItemResult::getSucc()const +{ + return succ_; +} + +std::string AbandonItemResult::getHost()const +{ + return host_; +} + +std::string AbandonItemResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AbandonItemResult::getErrInfo()const +{ + return errInfo_; +} + +int AbandonItemResult::getCode()const +{ + return code_; +} + +bool AbandonItemResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AcceptSamplingTaskRequest.cc b/itag/src/model/AcceptSamplingTaskRequest.cc new file mode 100644 index 000000000..8d38fb570 --- /dev/null +++ b/itag/src/model/AcceptSamplingTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AcceptSamplingTaskRequest; + +AcceptSamplingTaskRequest::AcceptSamplingTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/accept"}; + setMethod(HttpRequest::Method::Post); +} + +AcceptSamplingTaskRequest::~AcceptSamplingTaskRequest() {} + +std::string AcceptSamplingTaskRequest::getBody() const { + return body_; +} + +void AcceptSamplingTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AcceptSamplingTaskResult.cc b/itag/src/model/AcceptSamplingTaskResult.cc new file mode 100644 index 000000000..cd3619624 --- /dev/null +++ b/itag/src/model/AcceptSamplingTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AcceptSamplingTaskResult::AcceptSamplingTaskResult() : + ServiceResult() +{} + +AcceptSamplingTaskResult::AcceptSamplingTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AcceptSamplingTaskResult::~AcceptSamplingTaskResult() +{} + +void AcceptSamplingTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AcceptSamplingTaskResult::getMsg()const +{ + return msg_; +} + +bool AcceptSamplingTaskResult::getSucc()const +{ + return succ_; +} + +std::string AcceptSamplingTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AcceptSamplingTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AcceptSamplingTaskResult::getCode()const +{ + return code_; +} + +bool AcceptSamplingTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AddMemberOrGroupTaskRequest.cc b/itag/src/model/AddMemberOrGroupTaskRequest.cc new file mode 100644 index 000000000..6ae9aae70 --- /dev/null +++ b/itag/src/model/AddMemberOrGroupTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AddMemberOrGroupTaskRequest; + +AddMemberOrGroupTaskRequest::AddMemberOrGroupTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/addMemberOrGroup2Task"}; + setMethod(HttpRequest::Method::Post); +} + +AddMemberOrGroupTaskRequest::~AddMemberOrGroupTaskRequest() {} + +std::string AddMemberOrGroupTaskRequest::getBody() const { + return body_; +} + +void AddMemberOrGroupTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AddMemberOrGroupTaskResult.cc b/itag/src/model/AddMemberOrGroupTaskResult.cc new file mode 100644 index 000000000..697cd6619 --- /dev/null +++ b/itag/src/model/AddMemberOrGroupTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AddMemberOrGroupTaskResult::AddMemberOrGroupTaskResult() : + ServiceResult() +{} + +AddMemberOrGroupTaskResult::AddMemberOrGroupTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddMemberOrGroupTaskResult::~AddMemberOrGroupTaskResult() +{} + +void AddMemberOrGroupTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AddMemberOrGroupTaskResult::getMsg()const +{ + return msg_; +} + +bool AddMemberOrGroupTaskResult::getSucc()const +{ + return succ_; +} + +std::string AddMemberOrGroupTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddMemberOrGroupTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AddMemberOrGroupTaskResult::getCode()const +{ + return code_; +} + +std::string AddMemberOrGroupTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AddUserRequest.cc b/itag/src/model/AddUserRequest.cc new file mode 100644 index 000000000..66b79ca90 --- /dev/null +++ b/itag/src/model/AddUserRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AddUserRequest; + +AddUserRequest::AddUserRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/user/addUser"}; + setMethod(HttpRequest::Method::Post); +} + +AddUserRequest::~AddUserRequest() {} + +std::string AddUserRequest::getBody() const { + return body_; +} + +void AddUserRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AddUserResult.cc b/itag/src/model/AddUserResult.cc new file mode 100644 index 000000000..572697709 --- /dev/null +++ b/itag/src/model/AddUserResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AddUserResult::AddUserResult() : + ServiceResult() +{} + +AddUserResult::AddUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserResult::~AddUserResult() +{} + +void AddUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AddUserResult::getMsg()const +{ + return msg_; +} + +bool AddUserResult::getSucc()const +{ + return succ_; +} + +std::string AddUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddUserResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AddUserResult::getCode()const +{ + return code_; +} + +long AddUserResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AddUserToGroupRequest.cc b/itag/src/model/AddUserToGroupRequest.cc new file mode 100644 index 000000000..38e6efc08 --- /dev/null +++ b/itag/src/model/AddUserToGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AddUserToGroupRequest; + +AddUserToGroupRequest::AddUserToGroupRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usergroup/addUserToGroup"}; + setMethod(HttpRequest::Method::Post); +} + +AddUserToGroupRequest::~AddUserToGroupRequest() {} + +std::string AddUserToGroupRequest::getBody() const { + return body_; +} + +void AddUserToGroupRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AddUserToGroupResult.cc b/itag/src/model/AddUserToGroupResult.cc new file mode 100644 index 000000000..b14f28602 --- /dev/null +++ b/itag/src/model/AddUserToGroupResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AddUserToGroupResult::AddUserToGroupResult() : + ServiceResult() +{} + +AddUserToGroupResult::AddUserToGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserToGroupResult::~AddUserToGroupResult() +{} + +void AddUserToGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["SuccCount"].isNull()) + result_.succCount = std::stol(resultNode["SuccCount"].asString()); + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stol(resultNode["FailCount"].asString()); + auto allSuccUserListNode = resultNode["SuccUserList"]["SuccUserListItem"]; + for (auto resultNodeSuccUserListSuccUserListItem : allSuccUserListNode) + { + Result::SuccUserListItem succUserListItemObject; + if(!resultNodeSuccUserListSuccUserListItem["UserId"].isNull()) + succUserListItemObject.userId = resultNodeSuccUserListSuccUserListItem["UserId"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["UserName"].isNull()) + succUserListItemObject.userName = resultNodeSuccUserListSuccUserListItem["UserName"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountType"].isNull()) + succUserListItemObject.accountType = resultNodeSuccUserListSuccUserListItem["AccountType"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountNo"].isNull()) + succUserListItemObject.accountNo = resultNodeSuccUserListSuccUserListItem["AccountNo"].asString(); + result_.succUserList.push_back(succUserListItemObject); + } + auto allFailUserListNode = resultNode["FailUserList"]["FailUserListItem"]; + for (auto resultNodeFailUserListFailUserListItem : allFailUserListNode) + { + Result::FailUserListItem failUserListItemObject; + if(!resultNodeFailUserListFailUserListItem["UserId"].isNull()) + failUserListItemObject.userId = resultNodeFailUserListFailUserListItem["UserId"].asString(); + if(!resultNodeFailUserListFailUserListItem["UserName"].isNull()) + failUserListItemObject.userName = resultNodeFailUserListFailUserListItem["UserName"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountType"].isNull()) + failUserListItemObject.accountType = resultNodeFailUserListFailUserListItem["AccountType"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountNo"].isNull()) + failUserListItemObject.accountNo = resultNodeFailUserListFailUserListItem["AccountNo"].asString(); + result_.failUserList.push_back(failUserListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AddUserToGroupResult::getMsg()const +{ + return msg_; +} + +bool AddUserToGroupResult::getSucc()const +{ + return succ_; +} + +std::string AddUserToGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddUserToGroupResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AddUserToGroupResult::getCode()const +{ + return code_; +} + +AddUserToGroupResult::Result AddUserToGroupResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AddUserToTntRequest.cc b/itag/src/model/AddUserToTntRequest.cc new file mode 100644 index 000000000..1940f6c23 --- /dev/null +++ b/itag/src/model/AddUserToTntRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AddUserToTntRequest; + +AddUserToTntRequest::AddUserToTntRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/addUserToTnt"}; + setMethod(HttpRequest::Method::Post); +} + +AddUserToTntRequest::~AddUserToTntRequest() {} + +std::string AddUserToTntRequest::getBody() const { + return body_; +} + +void AddUserToTntRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AddUserToTntResult.cc b/itag/src/model/AddUserToTntResult.cc new file mode 100644 index 000000000..72098e179 --- /dev/null +++ b/itag/src/model/AddUserToTntResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AddUserToTntResult::AddUserToTntResult() : + ServiceResult() +{} + +AddUserToTntResult::AddUserToTntResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserToTntResult::~AddUserToTntResult() +{} + +void AddUserToTntResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["SuccCount"].isNull()) + result_.succCount = std::stol(resultNode["SuccCount"].asString()); + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stol(resultNode["FailCount"].asString()); + auto allSuccUserListNode = resultNode["SuccUserList"]["SuccUserListItem"]; + for (auto resultNodeSuccUserListSuccUserListItem : allSuccUserListNode) + { + Result::SuccUserListItem succUserListItemObject; + if(!resultNodeSuccUserListSuccUserListItem["UserId"].isNull()) + succUserListItemObject.userId = resultNodeSuccUserListSuccUserListItem["UserId"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["UserName"].isNull()) + succUserListItemObject.userName = resultNodeSuccUserListSuccUserListItem["UserName"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountType"].isNull()) + succUserListItemObject.accountType = resultNodeSuccUserListSuccUserListItem["AccountType"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountNo"].isNull()) + succUserListItemObject.accountNo = resultNodeSuccUserListSuccUserListItem["AccountNo"].asString(); + result_.succUserList.push_back(succUserListItemObject); + } + auto allFailUserListNode = resultNode["FailUserList"]["FailUserListItem"]; + for (auto resultNodeFailUserListFailUserListItem : allFailUserListNode) + { + Result::FailUserListItem failUserListItemObject; + if(!resultNodeFailUserListFailUserListItem["UserId"].isNull()) + failUserListItemObject.userId = resultNodeFailUserListFailUserListItem["UserId"].asString(); + if(!resultNodeFailUserListFailUserListItem["UserName"].isNull()) + failUserListItemObject.userName = resultNodeFailUserListFailUserListItem["UserName"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountType"].isNull()) + failUserListItemObject.accountType = resultNodeFailUserListFailUserListItem["AccountType"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountNo"].isNull()) + failUserListItemObject.accountNo = resultNodeFailUserListFailUserListItem["AccountNo"].asString(); + result_.failUserList.push_back(failUserListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AddUserToTntResult::getMsg()const +{ + return msg_; +} + +bool AddUserToTntResult::getSucc()const +{ + return succ_; +} + +std::string AddUserToTntResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddUserToTntResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AddUserToTntResult::getCode()const +{ + return code_; +} + +AddUserToTntResult::Result AddUserToTntResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AppendDataToDatasetRequest.cc b/itag/src/model/AppendDataToDatasetRequest.cc new file mode 100644 index 000000000..aa749087c --- /dev/null +++ b/itag/src/model/AppendDataToDatasetRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AppendDataToDatasetRequest; + +AppendDataToDatasetRequest::AppendDataToDatasetRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/dataproxy/appendData2Dataset"}; + setMethod(HttpRequest::Method::Post); +} + +AppendDataToDatasetRequest::~AppendDataToDatasetRequest() {} + +std::string AppendDataToDatasetRequest::getBody() const { + return body_; +} + +void AppendDataToDatasetRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AppendDataToDatasetResult.cc b/itag/src/model/AppendDataToDatasetResult.cc new file mode 100644 index 000000000..41c24f956 --- /dev/null +++ b/itag/src/model/AppendDataToDatasetResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AppendDataToDatasetResult::AppendDataToDatasetResult() : + ServiceResult() +{} + +AppendDataToDatasetResult::AppendDataToDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AppendDataToDatasetResult::~AppendDataToDatasetResult() +{} + +void AppendDataToDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppendSize"].isNull()) + result_.appendSize = std::stoi(resultNode["AppendSize"].asString()); + auto allIds = resultNode["Ids"]["String"]; + for (auto value : allIds) + result_.ids.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AppendDataToDatasetResult::getMsg()const +{ + return msg_; +} + +bool AppendDataToDatasetResult::getSucc()const +{ + return succ_; +} + +std::string AppendDataToDatasetResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AppendDataToDatasetResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AppendDataToDatasetResult::getCode()const +{ + return code_; +} + +AppendDataToDatasetResult::Result AppendDataToDatasetResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/AsyncDownloadMarkResultRequest.cc b/itag/src/model/AsyncDownloadMarkResultRequest.cc new file mode 100644 index 000000000..9ad83e508 --- /dev/null +++ b/itag/src/model/AsyncDownloadMarkResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::AsyncDownloadMarkResultRequest; + +AsyncDownloadMarkResultRequest::AsyncDownloadMarkResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/markresult/asyncDownloadMarkResult"}; + setMethod(HttpRequest::Method::Post); +} + +AsyncDownloadMarkResultRequest::~AsyncDownloadMarkResultRequest() {} + +std::string AsyncDownloadMarkResultRequest::getBody() const { + return body_; +} + +void AsyncDownloadMarkResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/AsyncDownloadMarkResultResult.cc b/itag/src/model/AsyncDownloadMarkResultResult.cc new file mode 100644 index 000000000..9188ad173 --- /dev/null +++ b/itag/src/model/AsyncDownloadMarkResultResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +AsyncDownloadMarkResultResult::AsyncDownloadMarkResultResult() : + ServiceResult() +{} + +AsyncDownloadMarkResultResult::AsyncDownloadMarkResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AsyncDownloadMarkResultResult::~AsyncDownloadMarkResultResult() +{} + +void AsyncDownloadMarkResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["RunInstId"].isNull()) + result_.runInstId = resultNode["RunInstId"].asString(); + if(!resultNode["FlowId"].isNull()) + result_.flowId = resultNode["FlowId"].asString(); + if(!resultNode["MsgId"].isNull()) + result_.msgId = resultNode["MsgId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string AsyncDownloadMarkResultResult::getMsg()const +{ + return msg_; +} + +bool AsyncDownloadMarkResultResult::getSucc()const +{ + return succ_; +} + +std::string AsyncDownloadMarkResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AsyncDownloadMarkResultResult::getErrInfo()const +{ + return errInfo_; +} + +std::string AsyncDownloadMarkResultResult::getCode()const +{ + return code_; +} + +AsyncDownloadMarkResultResult::Result AsyncDownloadMarkResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/BatchRejectTaskRequest.cc b/itag/src/model/BatchRejectTaskRequest.cc new file mode 100644 index 000000000..e1f703de1 --- /dev/null +++ b/itag/src/model/BatchRejectTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::BatchRejectTaskRequest; + +BatchRejectTaskRequest::BatchRejectTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/batchRejectTask"}; + setMethod(HttpRequest::Method::Post); +} + +BatchRejectTaskRequest::~BatchRejectTaskRequest() {} + +std::string BatchRejectTaskRequest::getBody() const { + return body_; +} + +void BatchRejectTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/BatchRejectTaskResult.cc b/itag/src/model/BatchRejectTaskResult.cc new file mode 100644 index 000000000..8078b3cf4 --- /dev/null +++ b/itag/src/model/BatchRejectTaskResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +BatchRejectTaskResult::BatchRejectTaskResult() : + ServiceResult() +{} + +BatchRejectTaskResult::BatchRejectTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchRejectTaskResult::~BatchRejectTaskResult() +{} + +void BatchRejectTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string BatchRejectTaskResult::getMsg()const +{ + return msg_; +} + +long BatchRejectTaskResult::getRt()const +{ + return rt_; +} + +bool BatchRejectTaskResult::getSucc()const +{ + return succ_; +} + +std::string BatchRejectTaskResult::getHost()const +{ + return host_; +} + +std::string BatchRejectTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string BatchRejectTaskResult::getErrInfo()const +{ + return errInfo_; +} + +int BatchRejectTaskResult::getCode()const +{ + return code_; +} + +bool BatchRejectTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CanCommitRequest.cc b/itag/src/model/CanCommitRequest.cc new file mode 100644 index 000000000..0eb855d39 --- /dev/null +++ b/itag/src/model/CanCommitRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::CanCommitRequest; + +CanCommitRequest::CanCommitRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/canCommit"}; + setMethod(HttpRequest::Method::Post); +} + +CanCommitRequest::~CanCommitRequest() {} + +std::string CanCommitRequest::getBody() const { + return body_; +} + +void CanCommitRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CanCommitResult.cc b/itag/src/model/CanCommitResult.cc new file mode 100644 index 000000000..474cb5b9a --- /dev/null +++ b/itag/src/model/CanCommitResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CanCommitResult::CanCommitResult() : + ServiceResult() +{} + +CanCommitResult::CanCommitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CanCommitResult::~CanCommitResult() +{} + +void CanCommitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CanCommitResult::getMsg()const +{ + return msg_; +} + +bool CanCommitResult::getSucc()const +{ + return succ_; +} + +std::string CanCommitResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CanCommitResult::getErrInfo()const +{ + return errInfo_; +} + +std::string CanCommitResult::getCode()const +{ + return code_; +} + +bool CanCommitResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CheckModelRequest.cc b/itag/src/model/CheckModelRequest.cc new file mode 100644 index 000000000..cede70f1d --- /dev/null +++ b/itag/src/model/CheckModelRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::CheckModelRequest; + +CheckModelRequest::CheckModelRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/check"}; + setMethod(HttpRequest::Method::Post); +} + +CheckModelRequest::~CheckModelRequest() {} + +std::string CheckModelRequest::getBody() const { + return body_; +} + +void CheckModelRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CheckModelResult.cc b/itag/src/model/CheckModelResult.cc new file mode 100644 index 000000000..135d1d86d --- /dev/null +++ b/itag/src/model/CheckModelResult.cc @@ -0,0 +1,121 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +CheckModelResult::CheckModelResult() : + ServiceResult() +{} + +CheckModelResult::CheckModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckModelResult::~CheckModelResult() +{} + +void CheckModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Available"].isNull()) + result_.available = resultNode["Available"].asString() == "true"; + if(!resultNode["IsCommon"].isNull()) + result_.isCommon = resultNode["IsCommon"].asString() == "true"; + auto allParamsNode = resultNode["Params"]["Param"]; + for (auto resultNodeParamsParam : allParamsNode) + { + Result::Param paramObject; + if(!resultNodeParamsParam["Name"].isNull()) + paramObject.name = resultNodeParamsParam["Name"].asString(); + if(!resultNodeParamsParam["Alias"].isNull()) + paramObject.alias = resultNodeParamsParam["Alias"].asString(); + if(!resultNodeParamsParam["Type"].isNull()) + paramObject.type = resultNodeParamsParam["Type"].asString(); + if(!resultNodeParamsParam["Codec"].isNull()) + paramObject.codec = resultNodeParamsParam["Codec"].asString(); + if(!resultNodeParamsParam["Value"].isNull()) + paramObject.value = resultNodeParamsParam["Value"].asString(); + if(!resultNodeParamsParam["DefaultValue"].isNull()) + paramObject.defaultValue = resultNodeParamsParam["DefaultValue"].asString(); + result_.params.push_back(paramObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CheckModelResult::getMsg()const +{ + return msg_; +} + +long CheckModelResult::getRt()const +{ + return rt_; +} + +bool CheckModelResult::getSucc()const +{ + return succ_; +} + +std::string CheckModelResult::getHost()const +{ + return host_; +} + +std::string CheckModelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CheckModelResult::getErrInfo()const +{ + return errInfo_; +} + +int CheckModelResult::getCode()const +{ + return code_; +} + +CheckModelResult::Result CheckModelResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CommitSubTaskRequest.cc b/itag/src/model/CommitSubTaskRequest.cc new file mode 100644 index 000000000..a9dd31fc2 --- /dev/null +++ b/itag/src/model/CommitSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::CommitSubTaskRequest; + +CommitSubTaskRequest::CommitSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/commit"}; + setMethod(HttpRequest::Method::Post); +} + +CommitSubTaskRequest::~CommitSubTaskRequest() {} + +std::string CommitSubTaskRequest::getBody() const { + return body_; +} + +void CommitSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CommitSubTaskResult.cc b/itag/src/model/CommitSubTaskResult.cc new file mode 100644 index 000000000..aa2a89b4e --- /dev/null +++ b/itag/src/model/CommitSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CommitSubTaskResult::CommitSubTaskResult() : + ServiceResult() +{} + +CommitSubTaskResult::CommitSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CommitSubTaskResult::~CommitSubTaskResult() +{} + +void CommitSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CommitSubTaskResult::getMsg()const +{ + return msg_; +} + +bool CommitSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string CommitSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CommitSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string CommitSubTaskResult::getCode()const +{ + return code_; +} + +bool CommitSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CreateDatasetRequest.cc b/itag/src/model/CreateDatasetRequest.cc new file mode 100644 index 000000000..a83520d71 --- /dev/null +++ b/itag/src/model/CreateDatasetRequest.cc @@ -0,0 +1,28 @@ +/* + * 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::Itag::Model::CreateDatasetRequest; + +CreateDatasetRequest::CreateDatasetRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/datasets/createDataset"}; + setMethod(HttpRequest::Method::Post); +} + +CreateDatasetRequest::~CreateDatasetRequest() {} + diff --git a/itag/src/model/CreateDatasetResult.cc b/itag/src/model/CreateDatasetResult.cc new file mode 100644 index 000000000..7b4592f74 --- /dev/null +++ b/itag/src/model/CreateDatasetResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CreateDatasetResult::CreateDatasetResult() : + ServiceResult() +{} + +CreateDatasetResult::CreateDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatasetResult::~CreateDatasetResult() +{} + +void CreateDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CreateDatasetResult::getMsg()const +{ + return msg_; +} + +bool CreateDatasetResult::getSucc()const +{ + return succ_; +} + +std::string CreateDatasetResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateDatasetResult::getErrInfo()const +{ + return errInfo_; +} + +int CreateDatasetResult::getCode()const +{ + return code_; +} + +std::string CreateDatasetResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CreateModelRequest.cc b/itag/src/model/CreateModelRequest.cc new file mode 100644 index 000000000..56098c475 --- /dev/null +++ b/itag/src/model/CreateModelRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::CreateModelRequest; + +CreateModelRequest::CreateModelRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateModelRequest::~CreateModelRequest() {} + +std::string CreateModelRequest::getBody() const { + return body_; +} + +void CreateModelRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CreateModelResult.cc b/itag/src/model/CreateModelResult.cc new file mode 100644 index 000000000..c898eff0e --- /dev/null +++ b/itag/src/model/CreateModelResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +CreateModelResult::CreateModelResult() : + ServiceResult() +{} + +CreateModelResult::CreateModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateModelResult::~CreateModelResult() +{} + +void CreateModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CreateModelResult::getMsg()const +{ + return msg_; +} + +long CreateModelResult::getRt()const +{ + return rt_; +} + +bool CreateModelResult::getSucc()const +{ + return succ_; +} + +std::string CreateModelResult::getHost()const +{ + return host_; +} + +std::string CreateModelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateModelResult::getErrInfo()const +{ + return errInfo_; +} + +int CreateModelResult::getCode()const +{ + return code_; +} + +long CreateModelResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CreateOptionTemplateRequest.cc b/itag/src/model/CreateOptionTemplateRequest.cc new file mode 100644 index 000000000..d9bc07284 --- /dev/null +++ b/itag/src/model/CreateOptionTemplateRequest.cc @@ -0,0 +1,46 @@ +/* + * 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::Itag::Model::CreateOptionTemplateRequest; + +CreateOptionTemplateRequest::CreateOptionTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/createTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +CreateOptionTemplateRequest::~CreateOptionTemplateRequest() {} + +std::string CreateOptionTemplateRequest::getClientToken() const { + return clientToken_; +} + +void CreateOptionTemplateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateOptionTemplateRequest::getBody() const { + return body_; +} + +void CreateOptionTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CreateOptionTemplateResult.cc b/itag/src/model/CreateOptionTemplateResult.cc new file mode 100644 index 000000000..db34dc51d --- /dev/null +++ b/itag/src/model/CreateOptionTemplateResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CreateOptionTemplateResult::CreateOptionTemplateResult() : + ServiceResult() +{} + +CreateOptionTemplateResult::CreateOptionTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOptionTemplateResult::~CreateOptionTemplateResult() +{} + +void CreateOptionTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CreateOptionTemplateResult::getMsg()const +{ + return msg_; +} + +std::string CreateOptionTemplateResult::getRequestId()const +{ + return requestId_; +} + +bool CreateOptionTemplateResult::getSucc()const +{ + return succ_; +} + +std::string CreateOptionTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateOptionTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +int CreateOptionTemplateResult::getCode()const +{ + return code_; +} + +long CreateOptionTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CreateOrUpdateTntConfigRequest.cc b/itag/src/model/CreateOrUpdateTntConfigRequest.cc new file mode 100644 index 000000000..0e62d8c33 --- /dev/null +++ b/itag/src/model/CreateOrUpdateTntConfigRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::CreateOrUpdateTntConfigRequest; + +CreateOrUpdateTntConfigRequest::CreateOrUpdateTntConfigRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/createOrUpdateTntConfig"}; + setMethod(HttpRequest::Method::Post); +} + +CreateOrUpdateTntConfigRequest::~CreateOrUpdateTntConfigRequest() {} + +std::string CreateOrUpdateTntConfigRequest::getBody() const { + return body_; +} + +void CreateOrUpdateTntConfigRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CreateOrUpdateTntConfigResult.cc b/itag/src/model/CreateOrUpdateTntConfigResult.cc new file mode 100644 index 000000000..e01aeda64 --- /dev/null +++ b/itag/src/model/CreateOrUpdateTntConfigResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CreateOrUpdateTntConfigResult::CreateOrUpdateTntConfigResult() : + ServiceResult() +{} + +CreateOrUpdateTntConfigResult::CreateOrUpdateTntConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOrUpdateTntConfigResult::~CreateOrUpdateTntConfigResult() +{} + +void CreateOrUpdateTntConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CreateOrUpdateTntConfigResult::getMsg()const +{ + return msg_; +} + +bool CreateOrUpdateTntConfigResult::getSucc()const +{ + return succ_; +} + +std::string CreateOrUpdateTntConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateOrUpdateTntConfigResult::getErrInfo()const +{ + return errInfo_; +} + +std::string CreateOrUpdateTntConfigResult::getCode()const +{ + return code_; +} + +bool CreateOrUpdateTntConfigResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CreateTaskRequest.cc b/itag/src/model/CreateTaskRequest.cc new file mode 100644 index 000000000..c8624227c --- /dev/null +++ b/itag/src/model/CreateTaskRequest.cc @@ -0,0 +1,28 @@ +/* + * 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::Itag::Model::CreateTaskRequest; + +CreateTaskRequest::CreateTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/createTask"}; + setMethod(HttpRequest::Method::Post); +} + +CreateTaskRequest::~CreateTaskRequest() {} + diff --git a/itag/src/model/CreateTaskResult.cc b/itag/src/model/CreateTaskResult.cc new file mode 100644 index 000000000..9b70f8515 --- /dev/null +++ b/itag/src/model/CreateTaskResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CreateTaskResult::CreateTaskResult() : + ServiceResult() +{} + +CreateTaskResult::CreateTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTaskResult::~CreateTaskResult() +{} + +void CreateTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["FlowRunId"].isNull()) + result_.flowRunId = resultNode["FlowRunId"].asString(); + if(!resultNode["MsgId"].isNull()) + result_.msgId = resultNode["MsgId"].asString(); + if(!resultNode["SlaveMsgId"].isNull()) + result_.slaveMsgId = resultNode["SlaveMsgId"].asString(); + if(!resultNode["RefTaskId"].isNull()) + result_.refTaskId = resultNode["RefTaskId"].asString(); + if(!resultNode["WorkflowId"].isNull()) + result_.workflowId = resultNode["WorkflowId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CreateTaskResult::getMsg()const +{ + return msg_; +} + +bool CreateTaskResult::getSucc()const +{ + return succ_; +} + +std::string CreateTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateTaskResult::getErrInfo()const +{ + return errInfo_; +} + +int CreateTaskResult::getCode()const +{ + return code_; +} + +CreateTaskResult::Result CreateTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/CreateUserGroupRequest.cc b/itag/src/model/CreateUserGroupRequest.cc new file mode 100644 index 000000000..2e4693775 --- /dev/null +++ b/itag/src/model/CreateUserGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::CreateUserGroupRequest; + +CreateUserGroupRequest::CreateUserGroupRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usergroup/createUserGroup"}; + setMethod(HttpRequest::Method::Post); +} + +CreateUserGroupRequest::~CreateUserGroupRequest() {} + +std::string CreateUserGroupRequest::getBody() const { + return body_; +} + +void CreateUserGroupRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/CreateUserGroupResult.cc b/itag/src/model/CreateUserGroupResult.cc new file mode 100644 index 000000000..021e45d22 --- /dev/null +++ b/itag/src/model/CreateUserGroupResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +CreateUserGroupResult::CreateUserGroupResult() : + ServiceResult() +{} + +CreateUserGroupResult::CreateUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserGroupResult::~CreateUserGroupResult() +{} + +void CreateUserGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string CreateUserGroupResult::getMsg()const +{ + return msg_; +} + +bool CreateUserGroupResult::getSucc()const +{ + return succ_; +} + +std::string CreateUserGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateUserGroupResult::getErrInfo()const +{ + return errInfo_; +} + +std::string CreateUserGroupResult::getCode()const +{ + return code_; +} + +std::string CreateUserGroupResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DeleteFeedbackRequest.cc b/itag/src/model/DeleteFeedbackRequest.cc new file mode 100644 index 000000000..f6fd0fd4f --- /dev/null +++ b/itag/src/model/DeleteFeedbackRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::DeleteFeedbackRequest; + +DeleteFeedbackRequest::DeleteFeedbackRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markitem/deleteFeedback"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteFeedbackRequest::~DeleteFeedbackRequest() {} + +std::string DeleteFeedbackRequest::getBody() const { + return body_; +} + +void DeleteFeedbackRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DeleteFeedbackResult.cc b/itag/src/model/DeleteFeedbackResult.cc new file mode 100644 index 000000000..d859c1307 --- /dev/null +++ b/itag/src/model/DeleteFeedbackResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +DeleteFeedbackResult::DeleteFeedbackResult() : + ServiceResult() +{} + +DeleteFeedbackResult::DeleteFeedbackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFeedbackResult::~DeleteFeedbackResult() +{} + +void DeleteFeedbackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stol(resultNode["FailCount"].asString()); + if(!resultNode["TotalCount"].isNull()) + result_.totalCount = std::stol(resultNode["TotalCount"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteFeedbackResult::getMsg()const +{ + return msg_; +} + +bool DeleteFeedbackResult::getSucc()const +{ + return succ_; +} + +std::string DeleteFeedbackResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteFeedbackResult::getErrInfo()const +{ + return errInfo_; +} + +std::string DeleteFeedbackResult::getCode()const +{ + return code_; +} + +DeleteFeedbackResult::Result DeleteFeedbackResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DeleteModelRequest.cc b/itag/src/model/DeleteModelRequest.cc new file mode 100644 index 000000000..d8ad59fc0 --- /dev/null +++ b/itag/src/model/DeleteModelRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::DeleteModelRequest; + +DeleteModelRequest::DeleteModelRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/delete"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteModelRequest::~DeleteModelRequest() {} + +std::string DeleteModelRequest::getBody() const { + return body_; +} + +void DeleteModelRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DeleteModelResult.cc b/itag/src/model/DeleteModelResult.cc new file mode 100644 index 000000000..af74995ee --- /dev/null +++ b/itag/src/model/DeleteModelResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +DeleteModelResult::DeleteModelResult() : + ServiceResult() +{} + +DeleteModelResult::DeleteModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteModelResult::~DeleteModelResult() +{} + +void DeleteModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteModelResult::getMsg()const +{ + return msg_; +} + +long DeleteModelResult::getRt()const +{ + return rt_; +} + +bool DeleteModelResult::getSucc()const +{ + return succ_; +} + +std::string DeleteModelResult::getHost()const +{ + return host_; +} + +std::string DeleteModelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteModelResult::getErrInfo()const +{ + return errInfo_; +} + +int DeleteModelResult::getCode()const +{ + return code_; +} + +ObjectOfAny DeleteModelResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DeleteOptionTemplateRequest.cc b/itag/src/model/DeleteOptionTemplateRequest.cc new file mode 100644 index 000000000..7f2cd21bc --- /dev/null +++ b/itag/src/model/DeleteOptionTemplateRequest.cc @@ -0,0 +1,46 @@ +/* + * 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::Itag::Model::DeleteOptionTemplateRequest; + +DeleteOptionTemplateRequest::DeleteOptionTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/deleteTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteOptionTemplateRequest::~DeleteOptionTemplateRequest() {} + +std::string DeleteOptionTemplateRequest::getClientToken() const { + return clientToken_; +} + +void DeleteOptionTemplateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteOptionTemplateRequest::getBody() const { + return body_; +} + +void DeleteOptionTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DeleteOptionTemplateResult.cc b/itag/src/model/DeleteOptionTemplateResult.cc new file mode 100644 index 000000000..dd13f5d2f --- /dev/null +++ b/itag/src/model/DeleteOptionTemplateResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +DeleteOptionTemplateResult::DeleteOptionTemplateResult() : + ServiceResult() +{} + +DeleteOptionTemplateResult::DeleteOptionTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOptionTemplateResult::~DeleteOptionTemplateResult() +{} + +void DeleteOptionTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteOptionTemplateResult::getMsg()const +{ + return msg_; +} + +bool DeleteOptionTemplateResult::getSucc()const +{ + return succ_; +} + +std::string DeleteOptionTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteOptionTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +int DeleteOptionTemplateResult::getCode()const +{ + return code_; +} + +bool DeleteOptionTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DeleteTaskRequest.cc b/itag/src/model/DeleteTaskRequest.cc new file mode 100644 index 000000000..6541d5306 --- /dev/null +++ b/itag/src/model/DeleteTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::DeleteTaskRequest; + +DeleteTaskRequest::DeleteTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/delete"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteTaskRequest::~DeleteTaskRequest() {} + +std::string DeleteTaskRequest::getBody() const { + return body_; +} + +void DeleteTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DeleteTaskResult.cc b/itag/src/model/DeleteTaskResult.cc new file mode 100644 index 000000000..db50270d1 --- /dev/null +++ b/itag/src/model/DeleteTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +DeleteTaskResult::DeleteTaskResult() : + ServiceResult() +{} + +DeleteTaskResult::DeleteTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTaskResult::~DeleteTaskResult() +{} + +void DeleteTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteTaskResult::getMsg()const +{ + return msg_; +} + +bool DeleteTaskResult::getSucc()const +{ + return succ_; +} + +std::string DeleteTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string DeleteTaskResult::getCode()const +{ + return code_; +} + +bool DeleteTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DeleteUserGroupRequest.cc b/itag/src/model/DeleteUserGroupRequest.cc new file mode 100644 index 000000000..abdbfbd76 --- /dev/null +++ b/itag/src/model/DeleteUserGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::DeleteUserGroupRequest; + +DeleteUserGroupRequest::DeleteUserGroupRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usergroup/deleteUserGroup"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteUserGroupRequest::~DeleteUserGroupRequest() {} + +std::string DeleteUserGroupRequest::getBody() const { + return body_; +} + +void DeleteUserGroupRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DeleteUserGroupResult.cc b/itag/src/model/DeleteUserGroupResult.cc new file mode 100644 index 000000000..ab752e18c --- /dev/null +++ b/itag/src/model/DeleteUserGroupResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +DeleteUserGroupResult::DeleteUserGroupResult() : + ServiceResult() +{} + +DeleteUserGroupResult::DeleteUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserGroupResult::~DeleteUserGroupResult() +{} + +void DeleteUserGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DeleteUserGroupResult::getMsg()const +{ + return msg_; +} + +bool DeleteUserGroupResult::getSucc()const +{ + return succ_; +} + +std::string DeleteUserGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteUserGroupResult::getErrInfo()const +{ + return errInfo_; +} + +std::string DeleteUserGroupResult::getCode()const +{ + return code_; +} + +bool DeleteUserGroupResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DiscardSubTaskRequest.cc b/itag/src/model/DiscardSubTaskRequest.cc new file mode 100644 index 000000000..88d3ad488 --- /dev/null +++ b/itag/src/model/DiscardSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::DiscardSubTaskRequest; + +DiscardSubTaskRequest::DiscardSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usersubtask/discardSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +DiscardSubTaskRequest::~DiscardSubTaskRequest() {} + +std::string DiscardSubTaskRequest::getBody() const { + return body_; +} + +void DiscardSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DiscardSubTaskResult.cc b/itag/src/model/DiscardSubTaskResult.cc new file mode 100644 index 000000000..0cda48a27 --- /dev/null +++ b/itag/src/model/DiscardSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +DiscardSubTaskResult::DiscardSubTaskResult() : + ServiceResult() +{} + +DiscardSubTaskResult::DiscardSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DiscardSubTaskResult::~DiscardSubTaskResult() +{} + +void DiscardSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DiscardSubTaskResult::getMsg()const +{ + return msg_; +} + +bool DiscardSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string DiscardSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DiscardSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string DiscardSubTaskResult::getCode()const +{ + return code_; +} + +bool DiscardSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/DownloadIntPersonSummaryRequest.cc b/itag/src/model/DownloadIntPersonSummaryRequest.cc new file mode 100644 index 000000000..fc87ddc3b --- /dev/null +++ b/itag/src/model/DownloadIntPersonSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::DownloadIntPersonSummaryRequest; + +DownloadIntPersonSummaryRequest::DownloadIntPersonSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/downloadIntPersonSummary"}; + setMethod(HttpRequest::Method::Post); +} + +DownloadIntPersonSummaryRequest::~DownloadIntPersonSummaryRequest() {} + +std::string DownloadIntPersonSummaryRequest::getBody() const { + return body_; +} + +void DownloadIntPersonSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/DownloadIntPersonSummaryResult.cc b/itag/src/model/DownloadIntPersonSummaryResult.cc new file mode 100644 index 000000000..b7a4d2f25 --- /dev/null +++ b/itag/src/model/DownloadIntPersonSummaryResult.cc @@ -0,0 +1,101 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +DownloadIntPersonSummaryResult::DownloadIntPersonSummaryResult() : + ServiceResult() +{} + +DownloadIntPersonSummaryResult::DownloadIntPersonSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadIntPersonSummaryResult::~DownloadIntPersonSummaryResult() +{} + +void DownloadIntPersonSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["DownloadURL"].isNull()) + result_.downloadURL = resultNode["DownloadURL"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DownloadIntPersonSummaryResult::getMsg()const +{ + return msg_; +} + +long DownloadIntPersonSummaryResult::getRt()const +{ + return rt_; +} + +bool DownloadIntPersonSummaryResult::getSucc()const +{ + return succ_; +} + +std::string DownloadIntPersonSummaryResult::getHost()const +{ + return host_; +} + +std::string DownloadIntPersonSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DownloadIntPersonSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int DownloadIntPersonSummaryResult::getCode()const +{ + return code_; +} + +DownloadIntPersonSummaryResult::Result DownloadIntPersonSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ExportOptionTemplateRequest.cc b/itag/src/model/ExportOptionTemplateRequest.cc new file mode 100644 index 000000000..525bd92a8 --- /dev/null +++ b/itag/src/model/ExportOptionTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ExportOptionTemplateRequest; + +ExportOptionTemplateRequest::ExportOptionTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/exportTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +ExportOptionTemplateRequest::~ExportOptionTemplateRequest() {} + +std::string ExportOptionTemplateRequest::getBody() const { + return body_; +} + +void ExportOptionTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ExportOptionTemplateResult.cc b/itag/src/model/ExportOptionTemplateResult.cc new file mode 100644 index 000000000..ccf78f2b0 --- /dev/null +++ b/itag/src/model/ExportOptionTemplateResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ExportOptionTemplateResult::ExportOptionTemplateResult() : + ServiceResult() +{} + +ExportOptionTemplateResult::ExportOptionTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportOptionTemplateResult::~ExportOptionTemplateResult() +{} + +void ExportOptionTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ExportOptionTemplateResult::getMsg()const +{ + return msg_; +} + +bool ExportOptionTemplateResult::getSucc()const +{ + return succ_; +} + +std::string ExportOptionTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ExportOptionTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +int ExportOptionTemplateResult::getCode()const +{ + return code_; +} + +std::string ExportOptionTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ExtendUserAuthInTaskRequest.cc b/itag/src/model/ExtendUserAuthInTaskRequest.cc new file mode 100644 index 000000000..51b71491b --- /dev/null +++ b/itag/src/model/ExtendUserAuthInTaskRequest.cc @@ -0,0 +1,28 @@ +/* + * 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::Itag::Model::ExtendUserAuthInTaskRequest; + +ExtendUserAuthInTaskRequest::ExtendUserAuthInTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/extendUserAuthInTask"}; + setMethod(HttpRequest::Method::Post); +} + +ExtendUserAuthInTaskRequest::~ExtendUserAuthInTaskRequest() {} + diff --git a/itag/src/model/ExtendUserAuthInTaskResult.cc b/itag/src/model/ExtendUserAuthInTaskResult.cc new file mode 100644 index 000000000..366f4cf66 --- /dev/null +++ b/itag/src/model/ExtendUserAuthInTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ExtendUserAuthInTaskResult::ExtendUserAuthInTaskResult() : + ServiceResult() +{} + +ExtendUserAuthInTaskResult::ExtendUserAuthInTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExtendUserAuthInTaskResult::~ExtendUserAuthInTaskResult() +{} + +void ExtendUserAuthInTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ExtendUserAuthInTaskResult::getMsg()const +{ + return msg_; +} + +std::string ExtendUserAuthInTaskResult::getSucc()const +{ + return succ_; +} + +std::string ExtendUserAuthInTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ExtendUserAuthInTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ExtendUserAuthInTaskResult::getCode()const +{ + return code_; +} + +std::string ExtendUserAuthInTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/FetchVideoMarkResultRequest.cc b/itag/src/model/FetchVideoMarkResultRequest.cc new file mode 100644 index 000000000..2c5749b6a --- /dev/null +++ b/itag/src/model/FetchVideoMarkResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::FetchVideoMarkResultRequest; + +FetchVideoMarkResultRequest::FetchVideoMarkResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markresult/fetchMarkResult"}; + setMethod(HttpRequest::Method::Post); +} + +FetchVideoMarkResultRequest::~FetchVideoMarkResultRequest() {} + +std::string FetchVideoMarkResultRequest::getBody() const { + return body_; +} + +void FetchVideoMarkResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/FetchVideoMarkResultResult.cc b/itag/src/model/FetchVideoMarkResultResult.cc new file mode 100644 index 000000000..9b4876112 --- /dev/null +++ b/itag/src/model/FetchVideoMarkResultResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +FetchVideoMarkResultResult::FetchVideoMarkResultResult() : + ServiceResult() +{} + +FetchVideoMarkResultResult::FetchVideoMarkResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FetchVideoMarkResultResult::~FetchVideoMarkResultResult() +{} + +void FetchVideoMarkResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["UserMarkResultId"].isNull()) + result_.userMarkResultId = resultNode["UserMarkResultId"].asString(); + if(!resultNode["MarkResult"].isNull()) + result_.markResult = resultNode["MarkResult"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string FetchVideoMarkResultResult::getMsg()const +{ + return msg_; +} + +long FetchVideoMarkResultResult::getRt()const +{ + return rt_; +} + +bool FetchVideoMarkResultResult::getSucc()const +{ + return succ_; +} + +std::string FetchVideoMarkResultResult::getHost()const +{ + return host_; +} + +std::string FetchVideoMarkResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string FetchVideoMarkResultResult::getErrInfo()const +{ + return errInfo_; +} + +int FetchVideoMarkResultResult::getCode()const +{ + return code_; +} + +FetchVideoMarkResultResult::Result FetchVideoMarkResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/FlowInstanceCallbackRequest.cc b/itag/src/model/FlowInstanceCallbackRequest.cc new file mode 100644 index 000000000..6799c6faa --- /dev/null +++ b/itag/src/model/FlowInstanceCallbackRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::FlowInstanceCallbackRequest; + +FlowInstanceCallbackRequest::FlowInstanceCallbackRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/inner/api/v1/flow/instance/callback"}; + setMethod(HttpRequest::Method::Post); +} + +FlowInstanceCallbackRequest::~FlowInstanceCallbackRequest() {} + +std::string FlowInstanceCallbackRequest::getBody() const { + return body_; +} + +void FlowInstanceCallbackRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/FlowInstanceCallbackResult.cc b/itag/src/model/FlowInstanceCallbackResult.cc new file mode 100644 index 000000000..5c6d03315 --- /dev/null +++ b/itag/src/model/FlowInstanceCallbackResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +FlowInstanceCallbackResult::FlowInstanceCallbackResult() : + ServiceResult() +{} + +FlowInstanceCallbackResult::FlowInstanceCallbackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FlowInstanceCallbackResult::~FlowInstanceCallbackResult() +{} + +void FlowInstanceCallbackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string FlowInstanceCallbackResult::getMsg()const +{ + return msg_; +} + +bool FlowInstanceCallbackResult::getSucc()const +{ + return succ_; +} + +std::string FlowInstanceCallbackResult::getErrorCode()const +{ + return errorCode_; +} + +std::string FlowInstanceCallbackResult::getErrInfo()const +{ + return errInfo_; +} + +std::string FlowInstanceCallbackResult::getCode()const +{ + return code_; +} + +bool FlowInstanceCallbackResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetAssignedCheckTaskSummaryRequest.cc b/itag/src/model/GetAssignedCheckTaskSummaryRequest.cc new file mode 100644 index 000000000..1f30a3b3b --- /dev/null +++ b/itag/src/model/GetAssignedCheckTaskSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetAssignedCheckTaskSummaryRequest; + +GetAssignedCheckTaskSummaryRequest::GetAssignedCheckTaskSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/getAssignedCheckTaskSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetAssignedCheckTaskSummaryRequest::~GetAssignedCheckTaskSummaryRequest() {} + +std::string GetAssignedCheckTaskSummaryRequest::getBody() const { + return body_; +} + +void GetAssignedCheckTaskSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetAssignedCheckTaskSummaryResult.cc b/itag/src/model/GetAssignedCheckTaskSummaryResult.cc new file mode 100644 index 000000000..b09a92787 --- /dev/null +++ b/itag/src/model/GetAssignedCheckTaskSummaryResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetAssignedCheckTaskSummaryResult::GetAssignedCheckTaskSummaryResult() : + ServiceResult() +{} + +GetAssignedCheckTaskSummaryResult::GetAssignedCheckTaskSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAssignedCheckTaskSummaryResult::~GetAssignedCheckTaskSummaryResult() +{} + +void GetAssignedCheckTaskSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalSubTask"].isNull()) + result_.totalSubTask = std::stoi(resultNode["TotalSubTask"].asString()); + if(!resultNode["RejectSubTask"].isNull()) + result_.rejectSubTask = std::stoi(resultNode["RejectSubTask"].asString()); + if(!resultNode["AssignedSubTask"].isNull()) + result_.assignedSubTask = std::stoi(resultNode["AssignedSubTask"].asString()); + if(!resultNode["UncheckSubTask"].isNull()) + result_.uncheckSubTask = std::stoi(resultNode["UncheckSubTask"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetAssignedCheckTaskSummaryResult::getMsg()const +{ + return msg_; +} + +long GetAssignedCheckTaskSummaryResult::getRt()const +{ + return rt_; +} + +bool GetAssignedCheckTaskSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetAssignedCheckTaskSummaryResult::getHost()const +{ + return host_; +} + +std::string GetAssignedCheckTaskSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetAssignedCheckTaskSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetAssignedCheckTaskSummaryResult::getCode()const +{ + return code_; +} + +GetAssignedCheckTaskSummaryResult::Result GetAssignedCheckTaskSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetBizPersonSummaryRequest.cc b/itag/src/model/GetBizPersonSummaryRequest.cc new file mode 100644 index 000000000..8ce88953e --- /dev/null +++ b/itag/src/model/GetBizPersonSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetBizPersonSummaryRequest; + +GetBizPersonSummaryRequest::GetBizPersonSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getBizPersonSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetBizPersonSummaryRequest::~GetBizPersonSummaryRequest() {} + +std::string GetBizPersonSummaryRequest::getBody() const { + return body_; +} + +void GetBizPersonSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetBizPersonSummaryResult.cc b/itag/src/model/GetBizPersonSummaryResult.cc new file mode 100644 index 000000000..508f539b5 --- /dev/null +++ b/itag/src/model/GetBizPersonSummaryResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetBizPersonSummaryResult::GetBizPersonSummaryResult() : + ServiceResult() +{} + +GetBizPersonSummaryResult::GetBizPersonSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBizPersonSummaryResult::~GetBizPersonSummaryResult() +{} + +void GetBizPersonSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetBizPersonSummaryResult::getMsg()const +{ + return msg_; +} + +bool GetBizPersonSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetBizPersonSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetBizPersonSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetBizPersonSummaryResult::getCode()const +{ + return code_; +} + +GetBizPersonSummaryResult::Result GetBizPersonSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetBizSummaryRequest.cc b/itag/src/model/GetBizSummaryRequest.cc new file mode 100644 index 000000000..8610c1948 --- /dev/null +++ b/itag/src/model/GetBizSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetBizSummaryRequest; + +GetBizSummaryRequest::GetBizSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getBizSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetBizSummaryRequest::~GetBizSummaryRequest() {} + +std::string GetBizSummaryRequest::getBody() const { + return body_; +} + +void GetBizSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetBizSummaryResult.cc b/itag/src/model/GetBizSummaryResult.cc new file mode 100644 index 000000000..dfd760219 --- /dev/null +++ b/itag/src/model/GetBizSummaryResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetBizSummaryResult::GetBizSummaryResult() : + ServiceResult() +{} + +GetBizSummaryResult::GetBizSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBizSummaryResult::~GetBizSummaryResult() +{} + +void GetBizSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetBizSummaryResult::getMsg()const +{ + return msg_; +} + +bool GetBizSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetBizSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetBizSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetBizSummaryResult::getCode()const +{ + return code_; +} + +GetBizSummaryResult::Result GetBizSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetCheckUserDetailRequest.cc b/itag/src/model/GetCheckUserDetailRequest.cc new file mode 100644 index 000000000..ee29aef02 --- /dev/null +++ b/itag/src/model/GetCheckUserDetailRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetCheckUserDetailRequest; + +GetCheckUserDetailRequest::GetCheckUserDetailRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getCheckUserDetail"}; + setMethod(HttpRequest::Method::Post); +} + +GetCheckUserDetailRequest::~GetCheckUserDetailRequest() {} + +std::string GetCheckUserDetailRequest::getBody() const { + return body_; +} + +void GetCheckUserDetailRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetCheckUserDetailResult.cc b/itag/src/model/GetCheckUserDetailResult.cc new file mode 100644 index 000000000..557dd41a7 --- /dev/null +++ b/itag/src/model/GetCheckUserDetailResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetCheckUserDetailResult::GetCheckUserDetailResult() : + ServiceResult() +{} + +GetCheckUserDetailResult::GetCheckUserDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCheckUserDetailResult::~GetCheckUserDetailResult() +{} + +void GetCheckUserDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagMarkResultReport"]; + for (auto resultNodeListITagMarkResultReport : allListNode) + { + Result::ITagMarkResultReport iTagMarkResultReportObject; + if(!resultNodeListITagMarkResultReport["TotalDisable"].isNull()) + iTagMarkResultReportObject.totalDisable = std::stoi(resultNodeListITagMarkResultReport["TotalDisable"].asString()); + if(!resultNodeListITagMarkResultReport["UpdateTime"].isNull()) + iTagMarkResultReportObject.updateTime = resultNodeListITagMarkResultReport["UpdateTime"].asString(); + if(!resultNodeListITagMarkResultReport["Sample"].isNull()) + iTagMarkResultReportObject.sample = std::stoi(resultNodeListITagMarkResultReport["Sample"].asString()); + if(!resultNodeListITagMarkResultReport["TotalMark"].isNull()) + iTagMarkResultReportObject.totalMark = std::stoi(resultNodeListITagMarkResultReport["TotalMark"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectMark"].isNull()) + iTagMarkResultReportObject.noRejectMark = std::stoi(resultNodeListITagMarkResultReport["NoRejectMark"].asString()); + if(!resultNodeListITagMarkResultReport["TotalChecked"].isNull()) + iTagMarkResultReportObject.totalChecked = std::stoi(resultNodeListITagMarkResultReport["TotalChecked"].asString()); + if(!resultNodeListITagMarkResultReport["CheckedError"].isNull()) + iTagMarkResultReportObject.checkedError = std::stoi(resultNodeListITagMarkResultReport["CheckedError"].asString()); + if(!resultNodeListITagMarkResultReport["CheckedAccuracy"].isNull()) + iTagMarkResultReportObject.checkedAccuracy = resultNodeListITagMarkResultReport["CheckedAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["CheckedReject"].isNull()) + iTagMarkResultReportObject.checkedReject = std::stoi(resultNodeListITagMarkResultReport["CheckedReject"].asString()); + if(!resultNodeListITagMarkResultReport["CheckedFix"].isNull()) + iTagMarkResultReportObject.checkedFix = std::stoi(resultNodeListITagMarkResultReport["CheckedFix"].asString()); + if(!resultNodeListITagMarkResultReport["TotalSampled"].isNull()) + iTagMarkResultReportObject.totalSampled = std::stoi(resultNodeListITagMarkResultReport["TotalSampled"].asString()); + if(!resultNodeListITagMarkResultReport["SampledError"].isNull()) + iTagMarkResultReportObject.sampledError = std::stoi(resultNodeListITagMarkResultReport["SampledError"].asString()); + if(!resultNodeListITagMarkResultReport["SampledReject"].isNull()) + iTagMarkResultReportObject.sampledReject = std::stoi(resultNodeListITagMarkResultReport["SampledReject"].asString()); + if(!resultNodeListITagMarkResultReport["SampledFix"].isNull()) + iTagMarkResultReportObject.sampledFix = std::stoi(resultNodeListITagMarkResultReport["SampledFix"].asString()); + if(!resultNodeListITagMarkResultReport["SampledAccuracy"].isNull()) + iTagMarkResultReportObject.sampledAccuracy = resultNodeListITagMarkResultReport["SampledAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["TotalSampling"].isNull()) + iTagMarkResultReportObject.totalSampling = std::stoi(resultNodeListITagMarkResultReport["TotalSampling"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingError"].isNull()) + iTagMarkResultReportObject.samplingError = std::stoi(resultNodeListITagMarkResultReport["SamplingError"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingReject"].isNull()) + iTagMarkResultReportObject.samplingReject = std::stoi(resultNodeListITagMarkResultReport["SamplingReject"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingFix"].isNull()) + iTagMarkResultReportObject.samplingFix = std::stoi(resultNodeListITagMarkResultReport["SamplingFix"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingAccuracy"].isNull()) + iTagMarkResultReportObject.samplingAccuracy = resultNodeListITagMarkResultReport["SamplingAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["TotalCheck"].isNull()) + iTagMarkResultReportObject.totalCheck = std::stoi(resultNodeListITagMarkResultReport["TotalCheck"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectCheck"].isNull()) + iTagMarkResultReportObject.noRejectCheck = std::stoi(resultNodeListITagMarkResultReport["NoRejectCheck"].asString()); + if(!resultNodeListITagMarkResultReport["CheckError"].isNull()) + iTagMarkResultReportObject.checkError = std::stoi(resultNodeListITagMarkResultReport["CheckError"].asString()); + if(!resultNodeListITagMarkResultReport["CheckAccuracy"].isNull()) + iTagMarkResultReportObject.checkAccuracy = resultNodeListITagMarkResultReport["CheckAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["CheckReject"].isNull()) + iTagMarkResultReportObject.checkReject = std::stoi(resultNodeListITagMarkResultReport["CheckReject"].asString()); + if(!resultNodeListITagMarkResultReport["CheckFix"].isNull()) + iTagMarkResultReportObject.checkFix = std::stoi(resultNodeListITagMarkResultReport["CheckFix"].asString()); + if(!resultNodeListITagMarkResultReport["UserName"].isNull()) + iTagMarkResultReportObject.userName = resultNodeListITagMarkResultReport["UserName"].asString(); + if(!resultNodeListITagMarkResultReport["UserId"].isNull()) + iTagMarkResultReportObject.userId = resultNodeListITagMarkResultReport["UserId"].asString(); + if(!resultNodeListITagMarkResultReport["TaskId"].isNull()) + iTagMarkResultReportObject.taskId = resultNodeListITagMarkResultReport["TaskId"].asString(); + if(!resultNodeListITagMarkResultReport["TaskName"].isNull()) + iTagMarkResultReportObject.taskName = resultNodeListITagMarkResultReport["TaskName"].asString(); + if(!resultNodeListITagMarkResultReport["BizClassify"].isNull()) + iTagMarkResultReportObject.bizClassify = resultNodeListITagMarkResultReport["BizClassify"].asString(); + if(!resultNodeListITagMarkResultReport["Workflow"].isNull()) + iTagMarkResultReportObject.workflow = resultNodeListITagMarkResultReport["Workflow"].asString(); + if(!resultNodeListITagMarkResultReport["WorkTime"].isNull()) + iTagMarkResultReportObject.workTime = resultNodeListITagMarkResultReport["WorkTime"].asString(); + if(!resultNodeListITagMarkResultReport["TotalPDF"].isNull()) + iTagMarkResultReportObject.totalPDF = std::stol(resultNodeListITagMarkResultReport["TotalPDF"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectPDF"].isNull()) + iTagMarkResultReportObject.noRejectPDF = std::stol(resultNodeListITagMarkResultReport["NoRejectPDF"].asString()); + if(!resultNodeListITagMarkResultReport["TotalAudio"].isNull()) + iTagMarkResultReportObject.totalAudio = std::stol(resultNodeListITagMarkResultReport["TotalAudio"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectAudio"].isNull()) + iTagMarkResultReportObject.noRejectAudio = std::stol(resultNodeListITagMarkResultReport["NoRejectAudio"].asString()); + if(!resultNodeListITagMarkResultReport["TotalVideo"].isNull()) + iTagMarkResultReportObject.totalVideo = std::stol(resultNodeListITagMarkResultReport["TotalVideo"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectVideo"].isNull()) + iTagMarkResultReportObject.noRejectVideo = std::stol(resultNodeListITagMarkResultReport["NoRejectVideo"].asString()); + if(!resultNodeListITagMarkResultReport["MarkTime"].isNull()) + iTagMarkResultReportObject.markTime = resultNodeListITagMarkResultReport["MarkTime"].asString(); + if(!resultNodeListITagMarkResultReport["MarkEfficiency"].isNull()) + iTagMarkResultReportObject.markEfficiency = resultNodeListITagMarkResultReport["MarkEfficiency"].asString(); + if(!resultNodeListITagMarkResultReport["CheckTime"].isNull()) + iTagMarkResultReportObject.checkTime = resultNodeListITagMarkResultReport["CheckTime"].asString(); + if(!resultNodeListITagMarkResultReport["CheckEfficiency"].isNull()) + iTagMarkResultReportObject.checkEfficiency = resultNodeListITagMarkResultReport["CheckEfficiency"].asString(); + result_.list.push_back(iTagMarkResultReportObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetCheckUserDetailResult::getMsg()const +{ + return msg_; +} + +bool GetCheckUserDetailResult::getSucc()const +{ + return succ_; +} + +std::string GetCheckUserDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCheckUserDetailResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetCheckUserDetailResult::getCode()const +{ + return code_; +} + +GetCheckUserDetailResult::Result GetCheckUserDetailResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetCheckUserEfficiencyRequest.cc b/itag/src/model/GetCheckUserEfficiencyRequest.cc new file mode 100644 index 000000000..4fce60e0b --- /dev/null +++ b/itag/src/model/GetCheckUserEfficiencyRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetCheckUserEfficiencyRequest; + +GetCheckUserEfficiencyRequest::GetCheckUserEfficiencyRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getCheckUserEfficiency"}; + setMethod(HttpRequest::Method::Post); +} + +GetCheckUserEfficiencyRequest::~GetCheckUserEfficiencyRequest() {} + +std::string GetCheckUserEfficiencyRequest::getBody() const { + return body_; +} + +void GetCheckUserEfficiencyRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetCheckUserEfficiencyResult.cc b/itag/src/model/GetCheckUserEfficiencyResult.cc new file mode 100644 index 000000000..65bf002ec --- /dev/null +++ b/itag/src/model/GetCheckUserEfficiencyResult.cc @@ -0,0 +1,184 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetCheckUserEfficiencyResult::GetCheckUserEfficiencyResult() : + ServiceResult() +{} + +GetCheckUserEfficiencyResult::GetCheckUserEfficiencyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCheckUserEfficiencyResult::~GetCheckUserEfficiencyResult() +{} + +void GetCheckUserEfficiencyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allUserWorkEfficiencyListNode = resultNode["UserWorkEfficiencyList"]["ITagBaseReportResponse"]; + for (auto resultNodeUserWorkEfficiencyListITagBaseReportResponse : allUserWorkEfficiencyListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeUserWorkEfficiencyListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeUserWorkEfficiencyListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.userWorkEfficiencyList.push_back(iTagBaseReportResponseObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetCheckUserEfficiencyResult::getMsg()const +{ + return msg_; +} + +std::string GetCheckUserEfficiencyResult::getRequestId()const +{ + return requestId_; +} + +bool GetCheckUserEfficiencyResult::getSucc()const +{ + return succ_; +} + +std::string GetCheckUserEfficiencyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCheckUserEfficiencyResult::getErrInfo()const +{ + return errInfo_; +} + +int GetCheckUserEfficiencyResult::getCode()const +{ + return code_; +} + +GetCheckUserEfficiencyResult::Result GetCheckUserEfficiencyResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetCheckUserSummaryRequest.cc b/itag/src/model/GetCheckUserSummaryRequest.cc new file mode 100644 index 000000000..70b7cde9b --- /dev/null +++ b/itag/src/model/GetCheckUserSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetCheckUserSummaryRequest; + +GetCheckUserSummaryRequest::GetCheckUserSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getCheckUserSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetCheckUserSummaryRequest::~GetCheckUserSummaryRequest() {} + +std::string GetCheckUserSummaryRequest::getBody() const { + return body_; +} + +void GetCheckUserSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetCheckUserSummaryResult.cc b/itag/src/model/GetCheckUserSummaryResult.cc new file mode 100644 index 000000000..80b66d264 --- /dev/null +++ b/itag/src/model/GetCheckUserSummaryResult.cc @@ -0,0 +1,218 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetCheckUserSummaryResult::GetCheckUserSummaryResult() : + ServiceResult() +{} + +GetCheckUserSummaryResult::GetCheckUserSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCheckUserSummaryResult::~GetCheckUserSummaryResult() +{} + +void GetCheckUserSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalDisable"].isNull()) + result_.totalDisable = std::stoi(resultNode["TotalDisable"].asString()); + if(!resultNode["UpdateTime"].isNull()) + result_.updateTime = resultNode["UpdateTime"].asString(); + if(!resultNode["Sample"].isNull()) + result_.sample = std::stoi(resultNode["Sample"].asString()); + if(!resultNode["TotalMark"].isNull()) + result_.totalMark = std::stoi(resultNode["TotalMark"].asString()); + if(!resultNode["NoRejectMark"].isNull()) + result_.noRejectMark = std::stoi(resultNode["NoRejectMark"].asString()); + if(!resultNode["TotalChecked"].isNull()) + result_.totalChecked = std::stoi(resultNode["TotalChecked"].asString()); + if(!resultNode["CheckedError"].isNull()) + result_.checkedError = std::stoi(resultNode["CheckedError"].asString()); + if(!resultNode["CheckedAccuracy"].isNull()) + result_.checkedAccuracy = resultNode["CheckedAccuracy"].asString(); + if(!resultNode["CheckedReject"].isNull()) + result_.checkedReject = std::stoi(resultNode["CheckedReject"].asString()); + if(!resultNode["CheckedFix"].isNull()) + result_.checkedFix = std::stoi(resultNode["CheckedFix"].asString()); + if(!resultNode["TotalSampled"].isNull()) + result_.totalSampled = std::stoi(resultNode["TotalSampled"].asString()); + if(!resultNode["SampledError"].isNull()) + result_.sampledError = std::stoi(resultNode["SampledError"].asString()); + if(!resultNode["SampledReject"].isNull()) + result_.sampledReject = std::stoi(resultNode["SampledReject"].asString()); + if(!resultNode["SampledFix"].isNull()) + result_.sampledFix = std::stoi(resultNode["SampledFix"].asString()); + if(!resultNode["SampledAccuracy"].isNull()) + result_.sampledAccuracy = resultNode["SampledAccuracy"].asString(); + if(!resultNode["TotalSampling"].isNull()) + result_.totalSampling = std::stoi(resultNode["TotalSampling"].asString()); + if(!resultNode["SamplingError"].isNull()) + result_.samplingError = std::stoi(resultNode["SamplingError"].asString()); + if(!resultNode["SamplingReject"].isNull()) + result_.samplingReject = std::stoi(resultNode["SamplingReject"].asString()); + if(!resultNode["SamplingFix"].isNull()) + result_.samplingFix = std::stoi(resultNode["SamplingFix"].asString()); + if(!resultNode["SamplingAccuracy"].isNull()) + result_.samplingAccuracy = resultNode["SamplingAccuracy"].asString(); + if(!resultNode["TotalCheck"].isNull()) + result_.totalCheck = std::stoi(resultNode["TotalCheck"].asString()); + if(!resultNode["NoRejectCheck"].isNull()) + result_.noRejectCheck = std::stoi(resultNode["NoRejectCheck"].asString()); + if(!resultNode["CheckError"].isNull()) + result_.checkError = std::stoi(resultNode["CheckError"].asString()); + if(!resultNode["CheckAccuracy"].isNull()) + result_.checkAccuracy = resultNode["CheckAccuracy"].asString(); + if(!resultNode["CheckReject"].isNull()) + result_.checkReject = std::stoi(resultNode["CheckReject"].asString()); + if(!resultNode["CheckFix"].isNull()) + result_.checkFix = std::stoi(resultNode["CheckFix"].asString()); + if(!resultNode["UserName"].isNull()) + result_.userName = resultNode["UserName"].asString(); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["TaskName"].isNull()) + result_.taskName = resultNode["TaskName"].asString(); + if(!resultNode["BizClassify"].isNull()) + result_.bizClassify = resultNode["BizClassify"].asString(); + if(!resultNode["Workflow"].isNull()) + result_.workflow = resultNode["Workflow"].asString(); + if(!resultNode["WorkTime"].isNull()) + result_.workTime = resultNode["WorkTime"].asString(); + if(!resultNode["TotalPDF"].isNull()) + result_.totalPDF = std::stol(resultNode["TotalPDF"].asString()); + if(!resultNode["NoRejectPDF"].isNull()) + result_.noRejectPDF = std::stol(resultNode["NoRejectPDF"].asString()); + if(!resultNode["TotalAudio"].isNull()) + result_.totalAudio = std::stol(resultNode["TotalAudio"].asString()); + if(!resultNode["NoRejectAudio"].isNull()) + result_.noRejectAudio = std::stol(resultNode["NoRejectAudio"].asString()); + if(!resultNode["TotalVideo"].isNull()) + result_.totalVideo = std::stol(resultNode["TotalVideo"].asString()); + if(!resultNode["NoRejectVideo"].isNull()) + result_.noRejectVideo = std::stol(resultNode["NoRejectVideo"].asString()); + if(!resultNode["MarkTime"].isNull()) + result_.markTime = resultNode["MarkTime"].asString(); + if(!resultNode["MarkEfficiency"].isNull()) + result_.markEfficiency = resultNode["MarkEfficiency"].asString(); + if(!resultNode["CheckTime"].isNull()) + result_.checkTime = resultNode["CheckTime"].asString(); + if(!resultNode["CheckEfficiency"].isNull()) + result_.checkEfficiency = resultNode["CheckEfficiency"].asString(); + auto allDailyWorkloadNode = resultNode["DailyWorkload"]["ITagDailyWorkload"]; + for (auto resultNodeDailyWorkloadITagDailyWorkload : allDailyWorkloadNode) + { + Result::ITagDailyWorkload iTagDailyWorkloadObject; + if(!resultNodeDailyWorkloadITagDailyWorkload["TotalMark"].isNull()) + iTagDailyWorkloadObject.totalMark = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["TotalMark"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["NoRejectMark"].isNull()) + iTagDailyWorkloadObject.noRejectMark = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["NoRejectMark"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["TotalCheck"].isNull()) + iTagDailyWorkloadObject.totalCheck = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["TotalCheck"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["NoRejectCheck"].isNull()) + iTagDailyWorkloadObject.noRejectCheck = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["NoRejectCheck"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["WorkTime"].isNull()) + iTagDailyWorkloadObject.workTime = resultNodeDailyWorkloadITagDailyWorkload["WorkTime"].asString(); + result_.dailyWorkload.push_back(iTagDailyWorkloadObject); + } + auto allUserProportionNode = resultNode["UserProportion"]["ITagUserProportion"]; + for (auto resultNodeUserProportionITagUserProportion : allUserProportionNode) + { + Result::ITagUserProportion iTagUserProportionObject; + if(!resultNodeUserProportionITagUserProportion["UserName"].isNull()) + iTagUserProportionObject.userName = resultNodeUserProportionITagUserProportion["UserName"].asString(); + if(!resultNodeUserProportionITagUserProportion["Rate"].isNull()) + iTagUserProportionObject.rate = resultNodeUserProportionITagUserProportion["Rate"].asString(); + result_.userProportion.push_back(iTagUserProportionObject); + } + auto allUserListNode = resultNode["UserList"]["ITagSimpleUserVO"]; + for (auto resultNodeUserListITagSimpleUserVO : allUserListNode) + { + Result::ITagSimpleUserVO iTagSimpleUserVOObject; + if(!resultNodeUserListITagSimpleUserVO["UserId"].isNull()) + iTagSimpleUserVOObject.userId = resultNodeUserListITagSimpleUserVO["UserId"].asString(); + if(!resultNodeUserListITagSimpleUserVO["UserName"].isNull()) + iTagSimpleUserVOObject.userName = resultNodeUserListITagSimpleUserVO["UserName"].asString(); + if(!resultNodeUserListITagSimpleUserVO["AccountType"].isNull()) + iTagSimpleUserVOObject.accountType = resultNodeUserListITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeUserListITagSimpleUserVO["AccountNo"].isNull()) + iTagSimpleUserVOObject.accountNo = resultNodeUserListITagSimpleUserVO["AccountNo"].asString(); + result_.userList.push_back(iTagSimpleUserVOObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetCheckUserSummaryResult::getMsg()const +{ + return msg_; +} + +std::string GetCheckUserSummaryResult::getRequestId()const +{ + return requestId_; +} + +bool GetCheckUserSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetCheckUserSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCheckUserSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetCheckUserSummaryResult::getCode()const +{ + return code_; +} + +GetCheckUserSummaryResult::Result GetCheckUserSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetCommitSummaryRequest.cc b/itag/src/model/GetCommitSummaryRequest.cc new file mode 100644 index 000000000..45659c381 --- /dev/null +++ b/itag/src/model/GetCommitSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetCommitSummaryRequest; + +GetCommitSummaryRequest::GetCommitSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/getCommitSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetCommitSummaryRequest::~GetCommitSummaryRequest() {} + +std::string GetCommitSummaryRequest::getBody() const { + return body_; +} + +void GetCommitSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetCommitSummaryResult.cc b/itag/src/model/GetCommitSummaryResult.cc new file mode 100644 index 000000000..d076503c0 --- /dev/null +++ b/itag/src/model/GetCommitSummaryResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetCommitSummaryResult::GetCommitSummaryResult() : + ServiceResult() +{} + +GetCommitSummaryResult::GetCommitSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCommitSummaryResult::~GetCommitSummaryResult() +{} + +void GetCommitSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["CommitItem"].isNull()) + result_.commitItem = std::stoi(resultNode["CommitItem"].asString()); + if(!resultNode["CommitSubTask"].isNull()) + result_.commitSubTask = std::stoi(resultNode["CommitSubTask"].asString()); + if(!resultNode["RejectItem"].isNull()) + result_.rejectItem = std::stoi(resultNode["RejectItem"].asString()); + if(!resultNode["RejectSubTask"].isNull()) + result_.rejectSubTask = std::stoi(resultNode["RejectSubTask"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetCommitSummaryResult::getMsg()const +{ + return msg_; +} + +long GetCommitSummaryResult::getRt()const +{ + return rt_; +} + +bool GetCommitSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetCommitSummaryResult::getHost()const +{ + return host_; +} + +std::string GetCommitSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCommitSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetCommitSummaryResult::getCode()const +{ + return code_; +} + +GetCommitSummaryResult::Result GetCommitSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetDatasetProxyRequest.cc b/itag/src/model/GetDatasetProxyRequest.cc new file mode 100644 index 000000000..b8ad74555 --- /dev/null +++ b/itag/src/model/GetDatasetProxyRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetDatasetProxyRequest; + +GetDatasetProxyRequest::GetDatasetProxyRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/dataproxy/getDatasetProxy"}; + setMethod(HttpRequest::Method::Post); +} + +GetDatasetProxyRequest::~GetDatasetProxyRequest() {} + +std::string GetDatasetProxyRequest::getBody() const { + return body_; +} + +void GetDatasetProxyRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetDatasetProxyResult.cc b/itag/src/model/GetDatasetProxyResult.cc new file mode 100644 index 000000000..1cc8f1054 --- /dev/null +++ b/itag/src/model/GetDatasetProxyResult.cc @@ -0,0 +1,165 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetDatasetProxyResult::GetDatasetProxyResult() : + ServiceResult() +{} + +GetDatasetProxyResult::GetDatasetProxyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDatasetProxyResult::~GetDatasetProxyResult() +{} + +void GetDatasetProxyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Id"].isNull()) + result_.id = resultNode["Id"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); + if(!resultNode["Source"].isNull()) + result_.source = resultNode["Source"].asString(); + if(!resultNode["SourceBizId"].isNull()) + result_.sourceBizId = resultNode["SourceBizId"].asString(); + if(!resultNode["ProxyTarget"].isNull()) + result_.proxyTarget = resultNode["ProxyTarget"].asString(); + if(!resultNode["ProxyConfigs"].isNull()) + result_.proxyConfigs = resultNode["ProxyConfigs"].asString(); + if(!resultNode["SafetyLevel"].isNull()) + result_.safetyLevel = std::stoi(resultNode["SafetyLevel"].asString()); + if(!resultNode["SharedMode"].isNull()) + result_.sharedMode = resultNode["SharedMode"].asString(); + if(!resultNode["TotalNum"].isNull()) + result_.totalNum = std::stol(resultNode["TotalNum"].asString()); + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = std::stoi(resultNode["Status"].asString()); + if(!resultNode["RunMsg"].isNull()) + result_.runMsg = resultNode["RunMsg"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["SortKey"].isNull()) + result_.sortKey = resultNode["SortKey"].asString(); + auto schemaNode = resultNode["Schema"]; + auto allFieldsNode = schemaNode["Fields"]["ITagDatasetField"]; + for (auto schemaNodeFieldsITagDatasetField : allFieldsNode) + { + Result::Schema::ITagDatasetField iTagDatasetFieldObject; + if(!schemaNodeFieldsITagDatasetField["FieldName"].isNull()) + iTagDatasetFieldObject.fieldName = schemaNodeFieldsITagDatasetField["FieldName"].asString(); + if(!schemaNodeFieldsITagDatasetField["Type"].isNull()) + iTagDatasetFieldObject.type = schemaNodeFieldsITagDatasetField["Type"].asString(); + if(!schemaNodeFieldsITagDatasetField["Sensitive"].isNull()) + iTagDatasetFieldObject.sensitive = schemaNodeFieldsITagDatasetField["Sensitive"].asString() == "true"; + if(!schemaNodeFieldsITagDatasetField["Classify"].isNull()) + iTagDatasetFieldObject.classify = schemaNodeFieldsITagDatasetField["Classify"].asString(); + if(!schemaNodeFieldsITagDatasetField["Exif"].isNull()) + iTagDatasetFieldObject.exif = schemaNodeFieldsITagDatasetField["Exif"].asString(); + if(!schemaNodeFieldsITagDatasetField["sortKey"].isNull()) + iTagDatasetFieldObject.sortKey = schemaNodeFieldsITagDatasetField["sortKey"].asString() == "true"; + if(!schemaNodeFieldsITagDatasetField["FieldDesc"].isNull()) + iTagDatasetFieldObject.fieldDesc = schemaNodeFieldsITagDatasetField["FieldDesc"].asString(); + if(!schemaNodeFieldsITagDatasetField["FieldClassify"].isNull()) + iTagDatasetFieldObject.fieldClassify = schemaNodeFieldsITagDatasetField["FieldClassify"].asString(); + if(!schemaNodeFieldsITagDatasetField["Alias"].isNull()) + iTagDatasetFieldObject.alias = schemaNodeFieldsITagDatasetField["Alias"].asString(); + if(!schemaNodeFieldsITagDatasetField["FieldType"].isNull()) + iTagDatasetFieldObject.fieldType = schemaNodeFieldsITagDatasetField["FieldType"].asString(); + result_.schema.fields.push_back(iTagDatasetFieldObject); + } + auto creatorNode = resultNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = resultNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto allFieldTypes = resultNode["FieldTypes"]["String"]; + for (auto value : allFieldTypes) + result_.fieldTypes.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetDatasetProxyResult::getMsg()const +{ + return msg_; +} + +bool GetDatasetProxyResult::getSucc()const +{ + return succ_; +} + +std::string GetDatasetProxyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDatasetProxyResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetDatasetProxyResult::getCode()const +{ + return code_; +} + +GetDatasetProxyResult::Result GetDatasetProxyResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetFlowJobRequest.cc b/itag/src/model/GetFlowJobRequest.cc new file mode 100644 index 000000000..e85776128 --- /dev/null +++ b/itag/src/model/GetFlowJobRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetFlowJobRequest; + +GetFlowJobRequest::GetFlowJobRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/flowjob/getFlowJob"}; + setMethod(HttpRequest::Method::Post); +} + +GetFlowJobRequest::~GetFlowJobRequest() {} + +std::string GetFlowJobRequest::getBody() const { + return body_; +} + +void GetFlowJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetFlowJobResult.cc b/itag/src/model/GetFlowJobResult.cc new file mode 100644 index 000000000..f359f9b99 --- /dev/null +++ b/itag/src/model/GetFlowJobResult.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetFlowJobResult::GetFlowJobResult() : + ServiceResult() +{} + +GetFlowJobResult::GetFlowJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFlowJobResult::~GetFlowJobResult() +{} + +void GetFlowJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["RunInstId"].isNull()) + result_.runInstId = resultNode["RunInstId"].asString(); + if(!resultNode["FlowId"].isNull()) + result_.flowId = resultNode["FlowId"].asString(); + if(!resultNode["State"].isNull()) + result_.state = resultNode["State"].asString(); + if(!resultNode["RunMsg"].isNull()) + result_.runMsg = resultNode["RunMsg"].asString(); + if(!resultNode["LogView"].isNull()) + result_.logView = resultNode["LogView"].asString(); + if(!resultNode["RunRet"].isNull()) + result_.runRet = resultNode["RunRet"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto creatorNode = resultNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = resultNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetFlowJobResult::getMsg()const +{ + return msg_; +} + +bool GetFlowJobResult::getSucc()const +{ + return succ_; +} + +std::string GetFlowJobResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetFlowJobResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetFlowJobResult::getCode()const +{ + return code_; +} + +GetFlowJobResult::Result GetFlowJobResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetGroupHandlingSummaryRequest.cc b/itag/src/model/GetGroupHandlingSummaryRequest.cc new file mode 100644 index 000000000..a55d6fe44 --- /dev/null +++ b/itag/src/model/GetGroupHandlingSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetGroupHandlingSummaryRequest; + +GetGroupHandlingSummaryRequest::GetGroupHandlingSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getGroupHandlingSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetGroupHandlingSummaryRequest::~GetGroupHandlingSummaryRequest() {} + +std::string GetGroupHandlingSummaryRequest::getBody() const { + return body_; +} + +void GetGroupHandlingSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetGroupHandlingSummaryResult.cc b/itag/src/model/GetGroupHandlingSummaryResult.cc new file mode 100644 index 000000000..c7cd336e9 --- /dev/null +++ b/itag/src/model/GetGroupHandlingSummaryResult.cc @@ -0,0 +1,98 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetGroupHandlingSummaryResult::GetGroupHandlingSummaryResult() : + ServiceResult() +{} + +GetGroupHandlingSummaryResult::GetGroupHandlingSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGroupHandlingSummaryResult::~GetGroupHandlingSummaryResult() +{} + +void GetGroupHandlingSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Marking"].isNull()) + result_.marking = std::stoi(resultNode["Marking"].asString()); + if(!resultNode["Checking"].isNull()) + result_.checking = std::stoi(resultNode["Checking"].asString()); + if(!resultNode["MarkingFromReject"].isNull()) + result_.markingFromReject = std::stoi(resultNode["MarkingFromReject"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetGroupHandlingSummaryResult::getMsg()const +{ + return msg_; +} + +std::string GetGroupHandlingSummaryResult::getRequestId()const +{ + return requestId_; +} + +bool GetGroupHandlingSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetGroupHandlingSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetGroupHandlingSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetGroupHandlingSummaryResult::getCode()const +{ + return code_; +} + +GetGroupHandlingSummaryResult::Result GetGroupHandlingSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetGroupTaskDetailRequest.cc b/itag/src/model/GetGroupTaskDetailRequest.cc new file mode 100644 index 000000000..a495e053e --- /dev/null +++ b/itag/src/model/GetGroupTaskDetailRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetGroupTaskDetailRequest; + +GetGroupTaskDetailRequest::GetGroupTaskDetailRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getGroupTaskDetail"}; + setMethod(HttpRequest::Method::Post); +} + +GetGroupTaskDetailRequest::~GetGroupTaskDetailRequest() {} + +std::string GetGroupTaskDetailRequest::getBody() const { + return body_; +} + +void GetGroupTaskDetailRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetGroupTaskDetailResult.cc b/itag/src/model/GetGroupTaskDetailResult.cc new file mode 100644 index 000000000..edb1a2b3c --- /dev/null +++ b/itag/src/model/GetGroupTaskDetailResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetGroupTaskDetailResult::GetGroupTaskDetailResult() : + ServiceResult() +{} + +GetGroupTaskDetailResult::GetGroupTaskDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGroupTaskDetailResult::~GetGroupTaskDetailResult() +{} + +void GetGroupTaskDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetGroupTaskDetailResult::getMsg()const +{ + return msg_; +} + +bool GetGroupTaskDetailResult::getSucc()const +{ + return succ_; +} + +std::string GetGroupTaskDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetGroupTaskDetailResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetGroupTaskDetailResult::getCode()const +{ + return code_; +} + +GetGroupTaskDetailResult::Result GetGroupTaskDetailResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetGroupTaskPersonDetailRequest.cc b/itag/src/model/GetGroupTaskPersonDetailRequest.cc new file mode 100644 index 000000000..4df92879f --- /dev/null +++ b/itag/src/model/GetGroupTaskPersonDetailRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetGroupTaskPersonDetailRequest; + +GetGroupTaskPersonDetailRequest::GetGroupTaskPersonDetailRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getGroupTaskPersonDetail"}; + setMethod(HttpRequest::Method::Post); +} + +GetGroupTaskPersonDetailRequest::~GetGroupTaskPersonDetailRequest() {} + +std::string GetGroupTaskPersonDetailRequest::getBody() const { + return body_; +} + +void GetGroupTaskPersonDetailRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetGroupTaskPersonDetailResult.cc b/itag/src/model/GetGroupTaskPersonDetailResult.cc new file mode 100644 index 000000000..275cc8b9b --- /dev/null +++ b/itag/src/model/GetGroupTaskPersonDetailResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetGroupTaskPersonDetailResult::GetGroupTaskPersonDetailResult() : + ServiceResult() +{} + +GetGroupTaskPersonDetailResult::GetGroupTaskPersonDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGroupTaskPersonDetailResult::~GetGroupTaskPersonDetailResult() +{} + +void GetGroupTaskPersonDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetGroupTaskPersonDetailResult::getMsg()const +{ + return msg_; +} + +bool GetGroupTaskPersonDetailResult::getSucc()const +{ + return succ_; +} + +std::string GetGroupTaskPersonDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetGroupTaskPersonDetailResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetGroupTaskPersonDetailResult::getCode()const +{ + return code_; +} + +GetGroupTaskPersonDetailResult::Result GetGroupTaskPersonDetailResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetHistoryMarkResultRequest.cc b/itag/src/model/GetHistoryMarkResultRequest.cc new file mode 100644 index 000000000..1dc0b598d --- /dev/null +++ b/itag/src/model/GetHistoryMarkResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetHistoryMarkResultRequest; + +GetHistoryMarkResultRequest::GetHistoryMarkResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markitem/getHistoryMarkResult"}; + setMethod(HttpRequest::Method::Post); +} + +GetHistoryMarkResultRequest::~GetHistoryMarkResultRequest() {} + +std::string GetHistoryMarkResultRequest::getBody() const { + return body_; +} + +void GetHistoryMarkResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetHistoryMarkResultResult.cc b/itag/src/model/GetHistoryMarkResultResult.cc new file mode 100644 index 000000000..4d57ac280 --- /dev/null +++ b/itag/src/model/GetHistoryMarkResultResult.cc @@ -0,0 +1,135 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetHistoryMarkResultResult::GetHistoryMarkResultResult() : + ServiceResult() +{} + +GetHistoryMarkResultResult::GetHistoryMarkResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHistoryMarkResultResult::~GetHistoryMarkResultResult() +{} + +void GetHistoryMarkResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["WorkNode"].isNull()) + resultObject.workNode = valueResultResultItem["WorkNode"].asString(); + if(!valueResultResultItem["AccountNo"].isNull()) + resultObject.accountNo = valueResultResultItem["AccountNo"].asString(); + if(!valueResultResultItem["Name"].isNull()) + resultObject.name = valueResultResultItem["Name"].asString(); + auto allUserMarkResultsNode = valueResultResultItem["UserMarkResults"]["UserMarkResult"]; + for (auto valueResultResultItemUserMarkResultsUserMarkResult : allUserMarkResultsNode) + { + ResultItem::UserMarkResult userMarkResultsObject; + if(!valueResultResultItemUserMarkResultsUserMarkResult["MarkResultId"].isNull()) + userMarkResultsObject.markResultId = valueResultResultItemUserMarkResultsUserMarkResult["MarkResultId"].asString(); + if(!valueResultResultItemUserMarkResultsUserMarkResult["MarkTitle"].isNull()) + userMarkResultsObject.markTitle = valueResultResultItemUserMarkResultsUserMarkResult["MarkTitle"].asString(); + if(!valueResultResultItemUserMarkResultsUserMarkResult["MarkResult"].isNull()) + userMarkResultsObject.markResult = valueResultResultItemUserMarkResultsUserMarkResult["MarkResult"].asString(); + if(!valueResultResultItemUserMarkResultsUserMarkResult["QuestionId"].isNull()) + userMarkResultsObject.questionId = valueResultResultItemUserMarkResultsUserMarkResult["QuestionId"].asString(); + if(!valueResultResultItemUserMarkResultsUserMarkResult["ResultType"].isNull()) + userMarkResultsObject.resultType = valueResultResultItemUserMarkResultsUserMarkResult["ResultType"].asString(); + if(!valueResultResultItemUserMarkResultsUserMarkResult["Version"].isNull()) + userMarkResultsObject.version = valueResultResultItemUserMarkResultsUserMarkResult["Version"].asString(); + if(!valueResultResultItemUserMarkResultsUserMarkResult["MarkTime"].isNull()) + userMarkResultsObject.markTime = valueResultResultItemUserMarkResultsUserMarkResult["MarkTime"].asString(); + auto progressNode = value["Progress"]; + if(!progressNode["Total"].isNull()) + userMarkResultsObject.progress.total = std::stoi(progressNode["Total"].asString()); + if(!progressNode["Finished"].isNull()) + userMarkResultsObject.progress.finished = std::stoi(progressNode["Finished"].asString()); + resultObject.userMarkResults.push_back(userMarkResultsObject); + } + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetHistoryMarkResultResult::getMsg()const +{ + return msg_; +} + +long GetHistoryMarkResultResult::getRt()const +{ + return rt_; +} + +bool GetHistoryMarkResultResult::getSucc()const +{ + return succ_; +} + +std::string GetHistoryMarkResultResult::getHost()const +{ + return host_; +} + +std::string GetHistoryMarkResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetHistoryMarkResultResult::getErrInfo()const +{ + return errInfo_; +} + +int GetHistoryMarkResultResult::getCode()const +{ + return code_; +} + +std::vector GetHistoryMarkResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetIntWholeSummaryRequest.cc b/itag/src/model/GetIntWholeSummaryRequest.cc new file mode 100644 index 000000000..62d477c08 --- /dev/null +++ b/itag/src/model/GetIntWholeSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetIntWholeSummaryRequest; + +GetIntWholeSummaryRequest::GetIntWholeSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getIntWholeSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetIntWholeSummaryRequest::~GetIntWholeSummaryRequest() {} + +std::string GetIntWholeSummaryRequest::getBody() const { + return body_; +} + +void GetIntWholeSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetIntWholeSummaryResult.cc b/itag/src/model/GetIntWholeSummaryResult.cc new file mode 100644 index 000000000..2277606e6 --- /dev/null +++ b/itag/src/model/GetIntWholeSummaryResult.cc @@ -0,0 +1,194 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetIntWholeSummaryResult::GetIntWholeSummaryResult() : + ServiceResult() +{} + +GetIntWholeSummaryResult::GetIntWholeSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetIntWholeSummaryResult::~GetIntWholeSummaryResult() +{} + +void GetIntWholeSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalDisable"].isNull()) + result_.totalDisable = std::stoi(resultNode["TotalDisable"].asString()); + if(!resultNode["UpdateTime"].isNull()) + result_.updateTime = resultNode["UpdateTime"].asString(); + if(!resultNode["Sample"].isNull()) + result_.sample = std::stoi(resultNode["Sample"].asString()); + if(!resultNode["TotalMark"].isNull()) + result_.totalMark = std::stoi(resultNode["TotalMark"].asString()); + if(!resultNode["NoRejectMark"].isNull()) + result_.noRejectMark = std::stoi(resultNode["NoRejectMark"].asString()); + if(!resultNode["TotalChecked"].isNull()) + result_.totalChecked = std::stoi(resultNode["TotalChecked"].asString()); + if(!resultNode["CheckedError"].isNull()) + result_.checkedError = std::stoi(resultNode["CheckedError"].asString()); + if(!resultNode["CheckedAccuracy"].isNull()) + result_.checkedAccuracy = std::stof(resultNode["CheckedAccuracy"].asString()); + if(!resultNode["CheckedReject"].isNull()) + result_.checkedReject = std::stoi(resultNode["CheckedReject"].asString()); + if(!resultNode["CheckedFix"].isNull()) + result_.checkedFix = std::stoi(resultNode["CheckedFix"].asString()); + if(!resultNode["TotalSampled"].isNull()) + result_.totalSampled = std::stoi(resultNode["TotalSampled"].asString()); + if(!resultNode["SampledError"].isNull()) + result_.sampledError = std::stoi(resultNode["SampledError"].asString()); + if(!resultNode["SampledReject"].isNull()) + result_.sampledReject = std::stoi(resultNode["SampledReject"].asString()); + if(!resultNode["SampledFix"].isNull()) + result_.sampledFix = std::stoi(resultNode["SampledFix"].asString()); + if(!resultNode["SampledAccuracy"].isNull()) + result_.sampledAccuracy = std::stof(resultNode["SampledAccuracy"].asString()); + if(!resultNode["TotalSampling"].isNull()) + result_.totalSampling = std::stoi(resultNode["TotalSampling"].asString()); + if(!resultNode["SamplingError"].isNull()) + result_.samplingError = std::stoi(resultNode["SamplingError"].asString()); + if(!resultNode["SamplingReject"].isNull()) + result_.samplingReject = std::stoi(resultNode["SamplingReject"].asString()); + if(!resultNode["SamplingFix"].isNull()) + result_.samplingFix = std::stoi(resultNode["SamplingFix"].asString()); + if(!resultNode["SamplingAccuracy"].isNull()) + result_.samplingAccuracy = std::stof(resultNode["SamplingAccuracy"].asString()); + if(!resultNode["TotalCheck"].isNull()) + result_.totalCheck = std::stoi(resultNode["TotalCheck"].asString()); + if(!resultNode["NoRejectCheck"].isNull()) + result_.noRejectCheck = std::stoi(resultNode["NoRejectCheck"].asString()); + if(!resultNode["CheckError"].isNull()) + result_.checkError = std::stoi(resultNode["CheckError"].asString()); + if(!resultNode["CheckAccuracy"].isNull()) + result_.checkAccuracy = std::stof(resultNode["CheckAccuracy"].asString()); + if(!resultNode["CheckReject"].isNull()) + result_.checkReject = std::stoi(resultNode["CheckReject"].asString()); + if(!resultNode["CheckFix"].isNull()) + result_.checkFix = std::stoi(resultNode["CheckFix"].asString()); + if(!resultNode["UserName"].isNull()) + result_.userName = resultNode["UserName"].asString(); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["TaskName"].isNull()) + result_.taskName = resultNode["TaskName"].asString(); + if(!resultNode["BizClassify"].isNull()) + result_.bizClassify = resultNode["BizClassify"].asString(); + if(!resultNode["Workflow"].isNull()) + result_.workflow = resultNode["Workflow"].asString(); + if(!resultNode["WorkTime"].isNull()) + result_.workTime = resultNode["WorkTime"].asString(); + if(!resultNode["TotalPDF"].isNull()) + result_.totalPDF = std::stol(resultNode["TotalPDF"].asString()); + if(!resultNode["NoRejectPDF"].isNull()) + result_.noRejectPDF = std::stol(resultNode["NoRejectPDF"].asString()); + if(!resultNode["TotalAudio"].isNull()) + result_.totalAudio = std::stol(resultNode["TotalAudio"].asString()); + if(!resultNode["NoRejectAudio"].isNull()) + result_.noRejectAudio = std::stol(resultNode["NoRejectAudio"].asString()); + if(!resultNode["TotalVideo"].isNull()) + result_.totalVideo = std::stol(resultNode["TotalVideo"].asString()); + if(!resultNode["NoRejectVideo"].isNull()) + result_.noRejectVideo = std::stol(resultNode["NoRejectVideo"].asString()); + if(!resultNode["MarkTime"].isNull()) + result_.markTime = std::stof(resultNode["MarkTime"].asString()); + if(!resultNode["MarkEfficiency"].isNull()) + result_.markEfficiency = std::stof(resultNode["MarkEfficiency"].asString()); + if(!resultNode["CheckTime"].isNull()) + result_.checkTime = std::stof(resultNode["CheckTime"].asString()); + if(!resultNode["CheckEfficiency"].isNull()) + result_.checkEfficiency = std::stof(resultNode["CheckEfficiency"].asString()); + auto allDailyWorkloadNode = resultNode["DailyWorkload"]["ITagDailyWorkload"]; + for (auto resultNodeDailyWorkloadITagDailyWorkload : allDailyWorkloadNode) + { + Result::ITagDailyWorkload iTagDailyWorkloadObject; + if(!resultNodeDailyWorkloadITagDailyWorkload["TotalMark"].isNull()) + iTagDailyWorkloadObject.totalMark = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["TotalMark"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["NoRejectMark"].isNull()) + iTagDailyWorkloadObject.noRejectMark = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["NoRejectMark"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["TotalCheck"].isNull()) + iTagDailyWorkloadObject.totalCheck = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["TotalCheck"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["NoRejectCheck"].isNull()) + iTagDailyWorkloadObject.noRejectCheck = std::stoi(resultNodeDailyWorkloadITagDailyWorkload["NoRejectCheck"].asString()); + if(!resultNodeDailyWorkloadITagDailyWorkload["WorkTime"].isNull()) + iTagDailyWorkloadObject.workTime = resultNodeDailyWorkloadITagDailyWorkload["WorkTime"].asString(); + result_.dailyWorkload.push_back(iTagDailyWorkloadObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetIntWholeSummaryResult::getMsg()const +{ + return msg_; +} + +std::string GetIntWholeSummaryResult::getRequestId()const +{ + return requestId_; +} + +bool GetIntWholeSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetIntWholeSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetIntWholeSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetIntWholeSummaryResult::getCode()const +{ + return code_; +} + +GetIntWholeSummaryResult::Result GetIntWholeSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkPersonDetailRequest.cc b/itag/src/model/GetMarkPersonDetailRequest.cc new file mode 100644 index 000000000..4d936f24d --- /dev/null +++ b/itag/src/model/GetMarkPersonDetailRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkPersonDetailRequest; + +GetMarkPersonDetailRequest::GetMarkPersonDetailRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/report/getMarkPersonDetail"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkPersonDetailRequest::~GetMarkPersonDetailRequest() {} + +std::string GetMarkPersonDetailRequest::getBody() const { + return body_; +} + +void GetMarkPersonDetailRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkPersonDetailResult.cc b/itag/src/model/GetMarkPersonDetailResult.cc new file mode 100644 index 000000000..39daf1c3f --- /dev/null +++ b/itag/src/model/GetMarkPersonDetailResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkPersonDetailResult::GetMarkPersonDetailResult() : + ServiceResult() +{} + +GetMarkPersonDetailResult::GetMarkPersonDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkPersonDetailResult::~GetMarkPersonDetailResult() +{} + +void GetMarkPersonDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkPersonDetailResult::getMsg()const +{ + return msg_; +} + +bool GetMarkPersonDetailResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkPersonDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkPersonDetailResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetMarkPersonDetailResult::getCode()const +{ + return code_; +} + +GetMarkPersonDetailResult::Result GetMarkPersonDetailResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkPersonHandlingSummaryRequest.cc b/itag/src/model/GetMarkPersonHandlingSummaryRequest.cc new file mode 100644 index 000000000..5acb7eb6f --- /dev/null +++ b/itag/src/model/GetMarkPersonHandlingSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkPersonHandlingSummaryRequest; + +GetMarkPersonHandlingSummaryRequest::GetMarkPersonHandlingSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/report/getMarkPersonHandlingSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkPersonHandlingSummaryRequest::~GetMarkPersonHandlingSummaryRequest() {} + +std::string GetMarkPersonHandlingSummaryRequest::getBody() const { + return body_; +} + +void GetMarkPersonHandlingSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkPersonHandlingSummaryResult.cc b/itag/src/model/GetMarkPersonHandlingSummaryResult.cc new file mode 100644 index 000000000..ab251efe1 --- /dev/null +++ b/itag/src/model/GetMarkPersonHandlingSummaryResult.cc @@ -0,0 +1,98 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkPersonHandlingSummaryResult::GetMarkPersonHandlingSummaryResult() : + ServiceResult() +{} + +GetMarkPersonHandlingSummaryResult::GetMarkPersonHandlingSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkPersonHandlingSummaryResult::~GetMarkPersonHandlingSummaryResult() +{} + +void GetMarkPersonHandlingSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Marking"].isNull()) + result_.marking = std::stoi(resultNode["Marking"].asString()); + if(!resultNode["Checking"].isNull()) + result_.checking = std::stoi(resultNode["Checking"].asString()); + if(!resultNode["MarkingFromReject"].isNull()) + result_.markingFromReject = std::stoi(resultNode["MarkingFromReject"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkPersonHandlingSummaryResult::getMsg()const +{ + return msg_; +} + +std::string GetMarkPersonHandlingSummaryResult::getRequestId()const +{ + return requestId_; +} + +bool GetMarkPersonHandlingSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkPersonHandlingSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkPersonHandlingSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetMarkPersonHandlingSummaryResult::getCode()const +{ + return code_; +} + +GetMarkPersonHandlingSummaryResult::Result GetMarkPersonHandlingSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkQuantityRequest.cc b/itag/src/model/GetMarkQuantityRequest.cc new file mode 100644 index 000000000..3cacf9ac3 --- /dev/null +++ b/itag/src/model/GetMarkQuantityRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkQuantityRequest; + +GetMarkQuantityRequest::GetMarkQuantityRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getMarkQuantity"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkQuantityRequest::~GetMarkQuantityRequest() {} + +std::string GetMarkQuantityRequest::getBody() const { + return body_; +} + +void GetMarkQuantityRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkQuantityResult.cc b/itag/src/model/GetMarkQuantityResult.cc new file mode 100644 index 000000000..a8589ec46 --- /dev/null +++ b/itag/src/model/GetMarkQuantityResult.cc @@ -0,0 +1,178 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkQuantityResult::GetMarkQuantityResult() : + ServiceResult() +{} + +GetMarkQuantityResult::GetMarkQuantityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkQuantityResult::~GetMarkQuantityResult() +{} + +void GetMarkQuantityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalDisable"].isNull()) + result_.totalDisable = std::stoi(resultNode["TotalDisable"].asString()); + if(!resultNode["UpdateTime"].isNull()) + result_.updateTime = resultNode["UpdateTime"].asString(); + if(!resultNode["Sample"].isNull()) + result_.sample = std::stoi(resultNode["Sample"].asString()); + if(!resultNode["TotalMark"].isNull()) + result_.totalMark = std::stoi(resultNode["TotalMark"].asString()); + if(!resultNode["NoRejectMark"].isNull()) + result_.noRejectMark = std::stoi(resultNode["NoRejectMark"].asString()); + if(!resultNode["TotalChecked"].isNull()) + result_.totalChecked = std::stoi(resultNode["TotalChecked"].asString()); + if(!resultNode["CheckedError"].isNull()) + result_.checkedError = std::stoi(resultNode["CheckedError"].asString()); + if(!resultNode["CheckedAccuracy"].isNull()) + result_.checkedAccuracy = std::stof(resultNode["CheckedAccuracy"].asString()); + if(!resultNode["CheckedReject"].isNull()) + result_.checkedReject = std::stoi(resultNode["CheckedReject"].asString()); + if(!resultNode["CheckedFix"].isNull()) + result_.checkedFix = std::stoi(resultNode["CheckedFix"].asString()); + if(!resultNode["TotalSampled"].isNull()) + result_.totalSampled = std::stoi(resultNode["TotalSampled"].asString()); + if(!resultNode["SampledError"].isNull()) + result_.sampledError = std::stoi(resultNode["SampledError"].asString()); + if(!resultNode["SampledReject"].isNull()) + result_.sampledReject = std::stoi(resultNode["SampledReject"].asString()); + if(!resultNode["SampledFix"].isNull()) + result_.sampledFix = std::stoi(resultNode["SampledFix"].asString()); + if(!resultNode["SampledAccuracy"].isNull()) + result_.sampledAccuracy = std::stof(resultNode["SampledAccuracy"].asString()); + if(!resultNode["TotalSampling"].isNull()) + result_.totalSampling = std::stoi(resultNode["TotalSampling"].asString()); + if(!resultNode["SamplingError"].isNull()) + result_.samplingError = std::stoi(resultNode["SamplingError"].asString()); + if(!resultNode["SamplingReject"].isNull()) + result_.samplingReject = std::stoi(resultNode["SamplingReject"].asString()); + if(!resultNode["SamplingFix"].isNull()) + result_.samplingFix = std::stoi(resultNode["SamplingFix"].asString()); + if(!resultNode["SamplingAccuracy"].isNull()) + result_.samplingAccuracy = std::stof(resultNode["SamplingAccuracy"].asString()); + if(!resultNode["TotalCheck"].isNull()) + result_.totalCheck = std::stoi(resultNode["TotalCheck"].asString()); + if(!resultNode["NoRejectCheck"].isNull()) + result_.noRejectCheck = std::stoi(resultNode["NoRejectCheck"].asString()); + if(!resultNode["CheckError"].isNull()) + result_.checkError = std::stoi(resultNode["CheckError"].asString()); + if(!resultNode["CheckAccuracy"].isNull()) + result_.checkAccuracy = std::stof(resultNode["CheckAccuracy"].asString()); + if(!resultNode["CheckReject"].isNull()) + result_.checkReject = std::stoi(resultNode["CheckReject"].asString()); + if(!resultNode["CheckFix"].isNull()) + result_.checkFix = std::stoi(resultNode["CheckFix"].asString()); + if(!resultNode["UserName"].isNull()) + result_.userName = resultNode["UserName"].asString(); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["TaskName"].isNull()) + result_.taskName = resultNode["TaskName"].asString(); + if(!resultNode["BizClassify"].isNull()) + result_.bizClassify = resultNode["BizClassify"].asString(); + if(!resultNode["Workflow"].isNull()) + result_.workflow = resultNode["Workflow"].asString(); + if(!resultNode["WorkTime"].isNull()) + result_.workTime = resultNode["WorkTime"].asString(); + if(!resultNode["TotalPDF"].isNull()) + result_.totalPDF = std::stol(resultNode["TotalPDF"].asString()); + if(!resultNode["NoRejectPDF"].isNull()) + result_.noRejectPDF = std::stol(resultNode["NoRejectPDF"].asString()); + if(!resultNode["TotalAudio"].isNull()) + result_.totalAudio = std::stol(resultNode["TotalAudio"].asString()); + if(!resultNode["NoRejectAudio"].isNull()) + result_.noRejectAudio = std::stol(resultNode["NoRejectAudio"].asString()); + if(!resultNode["TotalVideo"].isNull()) + result_.totalVideo = std::stol(resultNode["TotalVideo"].asString()); + if(!resultNode["NoRejectVideo"].isNull()) + result_.noRejectVideo = std::stol(resultNode["NoRejectVideo"].asString()); + if(!resultNode["MarkTime"].isNull()) + result_.markTime = std::stof(resultNode["MarkTime"].asString()); + if(!resultNode["MarkEfficiency"].isNull()) + result_.markEfficiency = std::stof(resultNode["MarkEfficiency"].asString()); + if(!resultNode["CheckTime"].isNull()) + result_.checkTime = std::stof(resultNode["CheckTime"].asString()); + if(!resultNode["CheckEfficiency"].isNull()) + result_.checkEfficiency = std::stof(resultNode["CheckEfficiency"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkQuantityResult::getMsg()const +{ + return msg_; +} + +std::string GetMarkQuantityResult::getRequestId()const +{ + return requestId_; +} + +bool GetMarkQuantityResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkQuantityResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkQuantityResult::getErrInfo()const +{ + return errInfo_; +} + +int GetMarkQuantityResult::getCode()const +{ + return code_; +} + +GetMarkQuantityResult::Result GetMarkQuantityResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkResultRequest.cc b/itag/src/model/GetMarkResultRequest.cc new file mode 100644 index 000000000..40b2ee07d --- /dev/null +++ b/itag/src/model/GetMarkResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkResultRequest; + +GetMarkResultRequest::GetMarkResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getMarkResult"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkResultRequest::~GetMarkResultRequest() {} + +std::string GetMarkResultRequest::getBody() const { + return body_; +} + +void GetMarkResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkResultResult.cc b/itag/src/model/GetMarkResultResult.cc new file mode 100644 index 000000000..8638d7d3d --- /dev/null +++ b/itag/src/model/GetMarkResultResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkResultResult::GetMarkResultResult() : + ServiceResult() +{} + +GetMarkResultResult::GetMarkResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkResultResult::~GetMarkResultResult() +{} + +void GetMarkResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagMarkResultReport"]; + for (auto resultNodeListITagMarkResultReport : allListNode) + { + Result::ITagMarkResultReport iTagMarkResultReportObject; + if(!resultNodeListITagMarkResultReport["UpdateTime"].isNull()) + iTagMarkResultReportObject.updateTime = resultNodeListITagMarkResultReport["UpdateTime"].asString(); + if(!resultNodeListITagMarkResultReport["LabelType"].isNull()) + iTagMarkResultReportObject.labelType = resultNodeListITagMarkResultReport["LabelType"].asString(); + if(!resultNodeListITagMarkResultReport["MarkTitle"].isNull()) + iTagMarkResultReportObject.markTitle = resultNodeListITagMarkResultReport["MarkTitle"].asString(); + auto allLabelListNode = resultNodeListITagMarkResultReport["LabelList"]["ITagMarkResultDetail"]; + for (auto resultNodeListITagMarkResultReportLabelListITagMarkResultDetail : allLabelListNode) + { + Result::ITagMarkResultReport::ITagMarkResultDetail labelListObject; + if(!resultNodeListITagMarkResultReportLabelListITagMarkResultDetail["LabelName"].isNull()) + labelListObject.labelName = resultNodeListITagMarkResultReportLabelListITagMarkResultDetail["LabelName"].asString(); + if(!resultNodeListITagMarkResultReportLabelListITagMarkResultDetail["LabelRate"].isNull()) + labelListObject.labelRate = resultNodeListITagMarkResultReportLabelListITagMarkResultDetail["LabelRate"].asString(); + if(!resultNodeListITagMarkResultReportLabelListITagMarkResultDetail["LabelCount"].isNull()) + labelListObject.labelCount = std::stoi(resultNodeListITagMarkResultReportLabelListITagMarkResultDetail["LabelCount"].asString()); + iTagMarkResultReportObject.labelList.push_back(labelListObject); + } + result_.list.push_back(iTagMarkResultReportObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkResultResult::getMsg()const +{ + return msg_; +} + +bool GetMarkResultResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkResultResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetMarkResultResult::getCode()const +{ + return code_; +} + +GetMarkResultResult::Result GetMarkResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkUserDetailRequest.cc b/itag/src/model/GetMarkUserDetailRequest.cc new file mode 100644 index 000000000..fa6c29781 --- /dev/null +++ b/itag/src/model/GetMarkUserDetailRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkUserDetailRequest; + +GetMarkUserDetailRequest::GetMarkUserDetailRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getMarkUserDetail"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkUserDetailRequest::~GetMarkUserDetailRequest() {} + +std::string GetMarkUserDetailRequest::getBody() const { + return body_; +} + +void GetMarkUserDetailRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkUserDetailResult.cc b/itag/src/model/GetMarkUserDetailResult.cc new file mode 100644 index 000000000..64dbd7d71 --- /dev/null +++ b/itag/src/model/GetMarkUserDetailResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkUserDetailResult::GetMarkUserDetailResult() : + ServiceResult() +{} + +GetMarkUserDetailResult::GetMarkUserDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkUserDetailResult::~GetMarkUserDetailResult() +{} + +void GetMarkUserDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagMarkResultReport"]; + for (auto resultNodeListITagMarkResultReport : allListNode) + { + Result::ITagMarkResultReport iTagMarkResultReportObject; + if(!resultNodeListITagMarkResultReport["TotalDisable"].isNull()) + iTagMarkResultReportObject.totalDisable = std::stoi(resultNodeListITagMarkResultReport["TotalDisable"].asString()); + if(!resultNodeListITagMarkResultReport["UpdateTime"].isNull()) + iTagMarkResultReportObject.updateTime = resultNodeListITagMarkResultReport["UpdateTime"].asString(); + if(!resultNodeListITagMarkResultReport["Sample"].isNull()) + iTagMarkResultReportObject.sample = std::stoi(resultNodeListITagMarkResultReport["Sample"].asString()); + if(!resultNodeListITagMarkResultReport["TotalMark"].isNull()) + iTagMarkResultReportObject.totalMark = std::stoi(resultNodeListITagMarkResultReport["TotalMark"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectMark"].isNull()) + iTagMarkResultReportObject.noRejectMark = std::stoi(resultNodeListITagMarkResultReport["NoRejectMark"].asString()); + if(!resultNodeListITagMarkResultReport["TotalChecked"].isNull()) + iTagMarkResultReportObject.totalChecked = std::stoi(resultNodeListITagMarkResultReport["TotalChecked"].asString()); + if(!resultNodeListITagMarkResultReport["CheckedError"].isNull()) + iTagMarkResultReportObject.checkedError = std::stoi(resultNodeListITagMarkResultReport["CheckedError"].asString()); + if(!resultNodeListITagMarkResultReport["CheckedAccuracy"].isNull()) + iTagMarkResultReportObject.checkedAccuracy = resultNodeListITagMarkResultReport["CheckedAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["CheckedReject"].isNull()) + iTagMarkResultReportObject.checkedReject = std::stoi(resultNodeListITagMarkResultReport["CheckedReject"].asString()); + if(!resultNodeListITagMarkResultReport["CheckedFix"].isNull()) + iTagMarkResultReportObject.checkedFix = std::stoi(resultNodeListITagMarkResultReport["CheckedFix"].asString()); + if(!resultNodeListITagMarkResultReport["TotalSampled"].isNull()) + iTagMarkResultReportObject.totalSampled = std::stoi(resultNodeListITagMarkResultReport["TotalSampled"].asString()); + if(!resultNodeListITagMarkResultReport["SampledError"].isNull()) + iTagMarkResultReportObject.sampledError = std::stoi(resultNodeListITagMarkResultReport["SampledError"].asString()); + if(!resultNodeListITagMarkResultReport["SampledReject"].isNull()) + iTagMarkResultReportObject.sampledReject = std::stoi(resultNodeListITagMarkResultReport["SampledReject"].asString()); + if(!resultNodeListITagMarkResultReport["SampledFix"].isNull()) + iTagMarkResultReportObject.sampledFix = std::stoi(resultNodeListITagMarkResultReport["SampledFix"].asString()); + if(!resultNodeListITagMarkResultReport["SampledAccuracy"].isNull()) + iTagMarkResultReportObject.sampledAccuracy = resultNodeListITagMarkResultReport["SampledAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["TotalSampling"].isNull()) + iTagMarkResultReportObject.totalSampling = std::stoi(resultNodeListITagMarkResultReport["TotalSampling"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingError"].isNull()) + iTagMarkResultReportObject.samplingError = std::stoi(resultNodeListITagMarkResultReport["SamplingError"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingReject"].isNull()) + iTagMarkResultReportObject.samplingReject = std::stoi(resultNodeListITagMarkResultReport["SamplingReject"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingFix"].isNull()) + iTagMarkResultReportObject.samplingFix = std::stoi(resultNodeListITagMarkResultReport["SamplingFix"].asString()); + if(!resultNodeListITagMarkResultReport["SamplingAccuracy"].isNull()) + iTagMarkResultReportObject.samplingAccuracy = resultNodeListITagMarkResultReport["SamplingAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["TotalCheck"].isNull()) + iTagMarkResultReportObject.totalCheck = std::stoi(resultNodeListITagMarkResultReport["TotalCheck"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectCheck"].isNull()) + iTagMarkResultReportObject.noRejectCheck = std::stoi(resultNodeListITagMarkResultReport["NoRejectCheck"].asString()); + if(!resultNodeListITagMarkResultReport["CheckError"].isNull()) + iTagMarkResultReportObject.checkError = std::stoi(resultNodeListITagMarkResultReport["CheckError"].asString()); + if(!resultNodeListITagMarkResultReport["CheckAccuracy"].isNull()) + iTagMarkResultReportObject.checkAccuracy = resultNodeListITagMarkResultReport["CheckAccuracy"].asString(); + if(!resultNodeListITagMarkResultReport["CheckReject"].isNull()) + iTagMarkResultReportObject.checkReject = std::stoi(resultNodeListITagMarkResultReport["CheckReject"].asString()); + if(!resultNodeListITagMarkResultReport["CheckFix"].isNull()) + iTagMarkResultReportObject.checkFix = std::stoi(resultNodeListITagMarkResultReport["CheckFix"].asString()); + if(!resultNodeListITagMarkResultReport["UserName"].isNull()) + iTagMarkResultReportObject.userName = resultNodeListITagMarkResultReport["UserName"].asString(); + if(!resultNodeListITagMarkResultReport["UserId"].isNull()) + iTagMarkResultReportObject.userId = resultNodeListITagMarkResultReport["UserId"].asString(); + if(!resultNodeListITagMarkResultReport["TaskId"].isNull()) + iTagMarkResultReportObject.taskId = resultNodeListITagMarkResultReport["TaskId"].asString(); + if(!resultNodeListITagMarkResultReport["TaskName"].isNull()) + iTagMarkResultReportObject.taskName = resultNodeListITagMarkResultReport["TaskName"].asString(); + if(!resultNodeListITagMarkResultReport["BizClassify"].isNull()) + iTagMarkResultReportObject.bizClassify = resultNodeListITagMarkResultReport["BizClassify"].asString(); + if(!resultNodeListITagMarkResultReport["Workflow"].isNull()) + iTagMarkResultReportObject.workflow = resultNodeListITagMarkResultReport["Workflow"].asString(); + if(!resultNodeListITagMarkResultReport["WorkTime"].isNull()) + iTagMarkResultReportObject.workTime = resultNodeListITagMarkResultReport["WorkTime"].asString(); + if(!resultNodeListITagMarkResultReport["TotalPDF"].isNull()) + iTagMarkResultReportObject.totalPDF = std::stol(resultNodeListITagMarkResultReport["TotalPDF"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectPDF"].isNull()) + iTagMarkResultReportObject.noRejectPDF = std::stol(resultNodeListITagMarkResultReport["NoRejectPDF"].asString()); + if(!resultNodeListITagMarkResultReport["TotalAudio"].isNull()) + iTagMarkResultReportObject.totalAudio = std::stol(resultNodeListITagMarkResultReport["TotalAudio"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectAudio"].isNull()) + iTagMarkResultReportObject.noRejectAudio = std::stol(resultNodeListITagMarkResultReport["NoRejectAudio"].asString()); + if(!resultNodeListITagMarkResultReport["TotalVideo"].isNull()) + iTagMarkResultReportObject.totalVideo = std::stol(resultNodeListITagMarkResultReport["TotalVideo"].asString()); + if(!resultNodeListITagMarkResultReport["NoRejectVideo"].isNull()) + iTagMarkResultReportObject.noRejectVideo = std::stol(resultNodeListITagMarkResultReport["NoRejectVideo"].asString()); + if(!resultNodeListITagMarkResultReport["MarkTime"].isNull()) + iTagMarkResultReportObject.markTime = resultNodeListITagMarkResultReport["MarkTime"].asString(); + if(!resultNodeListITagMarkResultReport["MarkEfficiency"].isNull()) + iTagMarkResultReportObject.markEfficiency = resultNodeListITagMarkResultReport["MarkEfficiency"].asString(); + if(!resultNodeListITagMarkResultReport["CheckTime"].isNull()) + iTagMarkResultReportObject.checkTime = resultNodeListITagMarkResultReport["CheckTime"].asString(); + if(!resultNodeListITagMarkResultReport["CheckEfficiency"].isNull()) + iTagMarkResultReportObject.checkEfficiency = resultNodeListITagMarkResultReport["CheckEfficiency"].asString(); + result_.list.push_back(iTagMarkResultReportObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkUserDetailResult::getMsg()const +{ + return msg_; +} + +bool GetMarkUserDetailResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkUserDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkUserDetailResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetMarkUserDetailResult::getCode()const +{ + return code_; +} + +GetMarkUserDetailResult::Result GetMarkUserDetailResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkUserEfficiencyRequest.cc b/itag/src/model/GetMarkUserEfficiencyRequest.cc new file mode 100644 index 000000000..a729a94ce --- /dev/null +++ b/itag/src/model/GetMarkUserEfficiencyRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkUserEfficiencyRequest; + +GetMarkUserEfficiencyRequest::GetMarkUserEfficiencyRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getMarkUserEfficiency"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkUserEfficiencyRequest::~GetMarkUserEfficiencyRequest() {} + +std::string GetMarkUserEfficiencyRequest::getBody() const { + return body_; +} + +void GetMarkUserEfficiencyRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkUserEfficiencyResult.cc b/itag/src/model/GetMarkUserEfficiencyResult.cc new file mode 100644 index 000000000..7ed768975 --- /dev/null +++ b/itag/src/model/GetMarkUserEfficiencyResult.cc @@ -0,0 +1,184 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkUserEfficiencyResult::GetMarkUserEfficiencyResult() : + ServiceResult() +{} + +GetMarkUserEfficiencyResult::GetMarkUserEfficiencyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkUserEfficiencyResult::~GetMarkUserEfficiencyResult() +{} + +void GetMarkUserEfficiencyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allUserWorkEfficiencyListNode = resultNode["UserWorkEfficiencyList"]["ITagBaseReportResponse"]; + for (auto resultNodeUserWorkEfficiencyListITagBaseReportResponse : allUserWorkEfficiencyListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeUserWorkEfficiencyListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeUserWorkEfficiencyListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeUserWorkEfficiencyListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeUserWorkEfficiencyListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeUserWorkEfficiencyListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeUserWorkEfficiencyListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeUserWorkEfficiencyListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.userWorkEfficiencyList.push_back(iTagBaseReportResponseObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkUserEfficiencyResult::getMsg()const +{ + return msg_; +} + +std::string GetMarkUserEfficiencyResult::getRequestId()const +{ + return requestId_; +} + +bool GetMarkUserEfficiencyResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkUserEfficiencyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkUserEfficiencyResult::getErrInfo()const +{ + return errInfo_; +} + +int GetMarkUserEfficiencyResult::getCode()const +{ + return code_; +} + +GetMarkUserEfficiencyResult::Result GetMarkUserEfficiencyResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetMarkUserSummaryRequest.cc b/itag/src/model/GetMarkUserSummaryRequest.cc new file mode 100644 index 000000000..23171261b --- /dev/null +++ b/itag/src/model/GetMarkUserSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetMarkUserSummaryRequest; + +GetMarkUserSummaryRequest::GetMarkUserSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getMarkUserSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetMarkUserSummaryRequest::~GetMarkUserSummaryRequest() {} + +std::string GetMarkUserSummaryRequest::getBody() const { + return body_; +} + +void GetMarkUserSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetMarkUserSummaryResult.cc b/itag/src/model/GetMarkUserSummaryResult.cc new file mode 100644 index 000000000..edc0db64f --- /dev/null +++ b/itag/src/model/GetMarkUserSummaryResult.cc @@ -0,0 +1,178 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetMarkUserSummaryResult::GetMarkUserSummaryResult() : + ServiceResult() +{} + +GetMarkUserSummaryResult::GetMarkUserSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMarkUserSummaryResult::~GetMarkUserSummaryResult() +{} + +void GetMarkUserSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalDisable"].isNull()) + result_.totalDisable = std::stoi(resultNode["TotalDisable"].asString()); + if(!resultNode["UpdateTime"].isNull()) + result_.updateTime = resultNode["UpdateTime"].asString(); + if(!resultNode["Sample"].isNull()) + result_.sample = std::stoi(resultNode["Sample"].asString()); + if(!resultNode["TotalMark"].isNull()) + result_.totalMark = std::stoi(resultNode["TotalMark"].asString()); + if(!resultNode["NoRejectMark"].isNull()) + result_.noRejectMark = std::stoi(resultNode["NoRejectMark"].asString()); + if(!resultNode["TotalChecked"].isNull()) + result_.totalChecked = std::stoi(resultNode["TotalChecked"].asString()); + if(!resultNode["CheckedError"].isNull()) + result_.checkedError = std::stoi(resultNode["CheckedError"].asString()); + if(!resultNode["CheckedAccuracy"].isNull()) + result_.checkedAccuracy = std::stof(resultNode["CheckedAccuracy"].asString()); + if(!resultNode["CheckedReject"].isNull()) + result_.checkedReject = std::stoi(resultNode["CheckedReject"].asString()); + if(!resultNode["CheckedFix"].isNull()) + result_.checkedFix = std::stoi(resultNode["CheckedFix"].asString()); + if(!resultNode["TotalSampled"].isNull()) + result_.totalSampled = std::stoi(resultNode["TotalSampled"].asString()); + if(!resultNode["SampledError"].isNull()) + result_.sampledError = std::stoi(resultNode["SampledError"].asString()); + if(!resultNode["SampledReject"].isNull()) + result_.sampledReject = std::stoi(resultNode["SampledReject"].asString()); + if(!resultNode["SampledFix"].isNull()) + result_.sampledFix = std::stoi(resultNode["SampledFix"].asString()); + if(!resultNode["SampledAccuracy"].isNull()) + result_.sampledAccuracy = std::stof(resultNode["SampledAccuracy"].asString()); + if(!resultNode["TotalSampling"].isNull()) + result_.totalSampling = std::stoi(resultNode["TotalSampling"].asString()); + if(!resultNode["SamplingError"].isNull()) + result_.samplingError = std::stoi(resultNode["SamplingError"].asString()); + if(!resultNode["SamplingReject"].isNull()) + result_.samplingReject = std::stoi(resultNode["SamplingReject"].asString()); + if(!resultNode["SamplingFix"].isNull()) + result_.samplingFix = std::stoi(resultNode["SamplingFix"].asString()); + if(!resultNode["SamplingAccuracy"].isNull()) + result_.samplingAccuracy = std::stof(resultNode["SamplingAccuracy"].asString()); + if(!resultNode["TotalCheck"].isNull()) + result_.totalCheck = std::stoi(resultNode["TotalCheck"].asString()); + if(!resultNode["NoRejectCheck"].isNull()) + result_.noRejectCheck = std::stoi(resultNode["NoRejectCheck"].asString()); + if(!resultNode["CheckError"].isNull()) + result_.checkError = std::stoi(resultNode["CheckError"].asString()); + if(!resultNode["CheckAccuracy"].isNull()) + result_.checkAccuracy = std::stof(resultNode["CheckAccuracy"].asString()); + if(!resultNode["CheckReject"].isNull()) + result_.checkReject = std::stoi(resultNode["CheckReject"].asString()); + if(!resultNode["CheckFix"].isNull()) + result_.checkFix = std::stoi(resultNode["CheckFix"].asString()); + if(!resultNode["UserName"].isNull()) + result_.userName = resultNode["UserName"].asString(); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["TaskName"].isNull()) + result_.taskName = resultNode["TaskName"].asString(); + if(!resultNode["BizClassify"].isNull()) + result_.bizClassify = resultNode["BizClassify"].asString(); + if(!resultNode["Workflow"].isNull()) + result_.workflow = resultNode["Workflow"].asString(); + if(!resultNode["WorkTime"].isNull()) + result_.workTime = resultNode["WorkTime"].asString(); + if(!resultNode["TotalPDF"].isNull()) + result_.totalPDF = std::stol(resultNode["TotalPDF"].asString()); + if(!resultNode["NoRejectPDF"].isNull()) + result_.noRejectPDF = std::stol(resultNode["NoRejectPDF"].asString()); + if(!resultNode["TotalAudio"].isNull()) + result_.totalAudio = std::stol(resultNode["TotalAudio"].asString()); + if(!resultNode["NoRejectAudio"].isNull()) + result_.noRejectAudio = std::stol(resultNode["NoRejectAudio"].asString()); + if(!resultNode["TotalVideo"].isNull()) + result_.totalVideo = std::stol(resultNode["TotalVideo"].asString()); + if(!resultNode["NoRejectVideo"].isNull()) + result_.noRejectVideo = std::stol(resultNode["NoRejectVideo"].asString()); + if(!resultNode["MarkTime"].isNull()) + result_.markTime = std::stof(resultNode["MarkTime"].asString()); + if(!resultNode["MarkEfficiency"].isNull()) + result_.markEfficiency = std::stof(resultNode["MarkEfficiency"].asString()); + if(!resultNode["CheckTime"].isNull()) + result_.checkTime = std::stof(resultNode["CheckTime"].asString()); + if(!resultNode["CheckEfficiency"].isNull()) + result_.checkEfficiency = std::stof(resultNode["CheckEfficiency"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetMarkUserSummaryResult::getMsg()const +{ + return msg_; +} + +std::string GetMarkUserSummaryResult::getRequestId()const +{ + return requestId_; +} + +bool GetMarkUserSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetMarkUserSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMarkUserSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetMarkUserSummaryResult::getCode()const +{ + return code_; +} + +GetMarkUserSummaryResult::Result GetMarkUserSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetModelByIdRequest.cc b/itag/src/model/GetModelByIdRequest.cc new file mode 100644 index 000000000..a432f2bb9 --- /dev/null +++ b/itag/src/model/GetModelByIdRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetModelByIdRequest; + +GetModelByIdRequest::GetModelByIdRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/queryById"}; + setMethod(HttpRequest::Method::Post); +} + +GetModelByIdRequest::~GetModelByIdRequest() {} + +std::string GetModelByIdRequest::getBody() const { + return body_; +} + +void GetModelByIdRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetModelByIdResult.cc b/itag/src/model/GetModelByIdResult.cc new file mode 100644 index 000000000..af5fcd4f0 --- /dev/null +++ b/itag/src/model/GetModelByIdResult.cc @@ -0,0 +1,236 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetModelByIdResult::GetModelByIdResult() : + ServiceResult() +{} + +GetModelByIdResult::GetModelByIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetModelByIdResult::~GetModelByIdResult() +{} + +void GetModelByIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Id"].isNull()) + result_.id = resultNode["Id"].asString(); + if(!resultNode["CreatorId"].isNull()) + result_.creatorId = resultNode["CreatorId"].asString(); + if(!resultNode["CreatorAccount"].isNull()) + result_.creatorAccount = resultNode["CreatorAccount"].asString(); + if(!resultNode["CreatorName"].isNull()) + result_.creatorName = resultNode["CreatorName"].asString(); + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["Type"].isNull()) + result_.type = resultNode["Type"].asString(); + if(!resultNode["Source"].isNull()) + result_.source = resultNode["Source"].asString(); + if(!resultNode["Remark"].isNull()) + result_.remark = resultNode["Remark"].asString(); + if(!resultNode["Async"].isNull()) + result_.async = resultNode["Async"].asString() == "true"; + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto modelConfigNode = resultNode["ModelConfig"]; + if(!modelConfigNode["Host"].isNull()) + result_.modelConfig.host = modelConfigNode["Host"].asString(); + if(!modelConfigNode["RequestType"].isNull()) + result_.modelConfig.requestType = modelConfigNode["RequestType"].asString(); + if(!modelConfigNode["ContentType"].isNull()) + result_.modelConfig.contentType = modelConfigNode["ContentType"].asString(); + if(!modelConfigNode["QpsLimit"].isNull()) + result_.modelConfig.qpsLimit = std::stol(modelConfigNode["QpsLimit"].asString()); + if(!modelConfigNode["ServiceCode"].isNull()) + result_.modelConfig.serviceCode = modelConfigNode["ServiceCode"].asString(); + if(!modelConfigNode["AppId"].isNull()) + result_.modelConfig.appId = modelConfigNode["AppId"].asString(); + if(!modelConfigNode["Token"].isNull()) + result_.modelConfig.token = modelConfigNode["Token"].asString(); + if(!modelConfigNode["PaiModelTarget"].isNull()) + result_.modelConfig.paiModelTarget = modelConfigNode["PaiModelTarget"].asString(); + if(!modelConfigNode["UdfContent"].isNull()) + result_.modelConfig.udfContent = modelConfigNode["UdfContent"].asString(); + auto paramConfigNode = resultNode["ParamConfig"]; + auto allPresetParamNode = paramConfigNode["PresetParam"]["PresetParamItem"]; + for (auto paramConfigNodePresetParamPresetParamItem : allPresetParamNode) + { + Result::ParamConfig::PresetParamItem presetParamItemObject; + if(!paramConfigNodePresetParamPresetParamItem["Name"].isNull()) + presetParamItemObject.name = paramConfigNodePresetParamPresetParamItem["Name"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Alias"].isNull()) + presetParamItemObject.alias = paramConfigNodePresetParamPresetParamItem["Alias"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Type"].isNull()) + presetParamItemObject.type = paramConfigNodePresetParamPresetParamItem["Type"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Codec"].isNull()) + presetParamItemObject.codec = paramConfigNodePresetParamPresetParamItem["Codec"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Value"].isNull()) + presetParamItemObject.value = paramConfigNodePresetParamPresetParamItem["Value"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["DefaultValue"].isNull()) + presetParamItemObject.defaultValue = paramConfigNodePresetParamPresetParamItem["DefaultValue"].asString(); + result_.paramConfig.presetParam.push_back(presetParamItemObject); + } + auto allPostParamNode = paramConfigNode["PostParam"]["PostParamItem"]; + for (auto paramConfigNodePostParamPostParamItem : allPostParamNode) + { + Result::ParamConfig::PostParamItem postParamItemObject; + if(!paramConfigNodePostParamPostParamItem["Name"].isNull()) + postParamItemObject.name = paramConfigNodePostParamPostParamItem["Name"].asString(); + if(!paramConfigNodePostParamPostParamItem["Alias"].isNull()) + postParamItemObject.alias = paramConfigNodePostParamPostParamItem["Alias"].asString(); + if(!paramConfigNodePostParamPostParamItem["Type"].isNull()) + postParamItemObject.type = paramConfigNodePostParamPostParamItem["Type"].asString(); + if(!paramConfigNodePostParamPostParamItem["Codec"].isNull()) + postParamItemObject.codec = paramConfigNodePostParamPostParamItem["Codec"].asString(); + if(!paramConfigNodePostParamPostParamItem["Value"].isNull()) + postParamItemObject.value = paramConfigNodePostParamPostParamItem["Value"].asString(); + if(!paramConfigNodePostParamPostParamItem["DefaultValue"].isNull()) + postParamItemObject.defaultValue = paramConfigNodePostParamPostParamItem["DefaultValue"].asString(); + result_.paramConfig.postParam.push_back(postParamItemObject); + } + auto allResponseParamNode = paramConfigNode["ResponseParam"]["ResponseParamItem"]; + for (auto paramConfigNodeResponseParamResponseParamItem : allResponseParamNode) + { + Result::ParamConfig::ResponseParamItem responseParamItemObject; + if(!paramConfigNodeResponseParamResponseParamItem["ResultKey"].isNull()) + responseParamItemObject.resultKey = paramConfigNodeResponseParamResponseParamItem["ResultKey"].asString(); + if(!paramConfigNodeResponseParamResponseParamItem["ResultPath"].isNull()) + responseParamItemObject.resultPath = paramConfigNodeResponseParamResponseParamItem["ResultPath"].asString(); + result_.paramConfig.responseParam.push_back(responseParamItemObject); + } + auto modelExtendConfigNode = resultNode["ModelExtendConfig"]; + if(!modelExtendConfigNode["PostUdfModelId"].isNull()) + result_.modelExtendConfig.postUdfModelId = std::stol(modelExtendConfigNode["PostUdfModelId"].asString()); + if(!modelExtendConfigNode["PreUdfModelId"].isNull()) + result_.modelExtendConfig.preUdfModelId = std::stol(modelExtendConfigNode["PreUdfModelId"].asString()); + if(!modelExtendConfigNode["Extra"].isNull()) + result_.modelExtendConfig.extra = modelExtendConfigNode["Extra"].asString(); + auto asyncConfigNode = modelExtendConfigNode["AsyncConfig"]; + if(!asyncConfigNode["ModelId"].isNull()) + result_.modelExtendConfig.asyncConfig.modelId = std::stol(asyncConfigNode["ModelId"].asString()); + auto allAggModelIds = modelExtendConfigNode["AggModelIds"]["AggModelId"]; + for (auto value : allAggModelIds) + result_.modelExtendConfig.aggModelIds.push_back(value.asString()); + auto creatorNode = resultNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.creator.accountNo = creatorNode["AccountNo"].asString(); + if(!creatorNode["Email"].isNull()) + result_.creator.email = creatorNode["Email"].asString(); + if(!creatorNode["PamNo"].isNull()) + result_.creator.pamNo = creatorNode["PamNo"].asString(); + if(!creatorNode["SupplierId"].isNull()) + result_.creator.supplierId = creatorNode["SupplierId"].asString(); + if(!creatorNode["SupplierName"].isNull()) + result_.creator.supplierName = creatorNode["SupplierName"].asString(); + auto modifierNode = resultNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!modifierNode["Email"].isNull()) + result_.modifier.email = modifierNode["Email"].asString(); + if(!modifierNode["PamNo"].isNull()) + result_.modifier.pamNo = modifierNode["PamNo"].asString(); + if(!modifierNode["SupplierId"].isNull()) + result_.modifier.supplierId = modifierNode["SupplierId"].asString(); + if(!modifierNode["SupplierName"].isNull()) + result_.modifier.supplierName = modifierNode["SupplierName"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetModelByIdResult::getMsg()const +{ + return msg_; +} + +long GetModelByIdResult::getRt()const +{ + return rt_; +} + +bool GetModelByIdResult::getSucc()const +{ + return succ_; +} + +std::string GetModelByIdResult::getHost()const +{ + return host_; +} + +std::string GetModelByIdResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetModelByIdResult::getErrInfo()const +{ + return errInfo_; +} + +int GetModelByIdResult::getCode()const +{ + return code_; +} + +GetModelByIdResult::Result GetModelByIdResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetOptionTemplateRequest.cc b/itag/src/model/GetOptionTemplateRequest.cc new file mode 100644 index 000000000..7038cae7c --- /dev/null +++ b/itag/src/model/GetOptionTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetOptionTemplateRequest; + +GetOptionTemplateRequest::GetOptionTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/getTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +GetOptionTemplateRequest::~GetOptionTemplateRequest() {} + +std::string GetOptionTemplateRequest::getBody() const { + return body_; +} + +void GetOptionTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetOptionTemplateResult.cc b/itag/src/model/GetOptionTemplateResult.cc new file mode 100644 index 000000000..51974e251 --- /dev/null +++ b/itag/src/model/GetOptionTemplateResult.cc @@ -0,0 +1,307 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetOptionTemplateResult::GetOptionTemplateResult() : + ServiceResult() +{} + +GetOptionTemplateResult::GetOptionTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOptionTemplateResult::~GetOptionTemplateResult() +{} + +void GetOptionTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Id"].isNull()) + result_.id = resultNode["Id"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); + if(!resultNode["Exif"].isNull()) + result_.exif = resultNode["Exif"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = std::stoi(resultNode["Status"].asString()); + if(!resultNode["SharedMode"].isNull()) + result_.sharedMode = resultNode["SharedMode"].asString(); + if(!resultNode["Type"].isNull()) + result_.type = resultNode["Type"].asString(); + if(!resultNode["Classify"].isNull()) + result_.classify = resultNode["Classify"].asString(); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto allQuestionConfigsNode = resultNode["QuestionConfigs"]["QuestionConfigDTO"]; + for (auto resultNodeQuestionConfigsQuestionConfigDTO : allQuestionConfigsNode) + { + Result::QuestionConfigDTO questionConfigDTOObject; + if(!resultNodeQuestionConfigsQuestionConfigDTO["Id"].isNull()) + questionConfigDTOObject.id = resultNodeQuestionConfigsQuestionConfigDTO["Id"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["MarkTitle"].isNull()) + questionConfigDTOObject.markTitle = resultNodeQuestionConfigsQuestionConfigDTO["MarkTitle"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].isNull()) + questionConfigDTOObject.markTitleAlias = resultNodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["Type"].isNull()) + questionConfigDTOObject.type = resultNodeQuestionConfigsQuestionConfigDTO["Type"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["MustFill"].isNull()) + questionConfigDTOObject.mustFill = resultNodeQuestionConfigsQuestionConfigDTO["MustFill"].asString() == "true"; + if(!resultNodeQuestionConfigsQuestionConfigDTO["Display"].isNull()) + questionConfigDTOObject.display = resultNodeQuestionConfigsQuestionConfigDTO["Display"].asString() == "true"; + if(!resultNodeQuestionConfigsQuestionConfigDTO["Selected"].isNull()) + questionConfigDTOObject.selected = resultNodeQuestionConfigsQuestionConfigDTO["Selected"].asString() == "true"; + if(!resultNodeQuestionConfigsQuestionConfigDTO["SelectGroup"].isNull()) + questionConfigDTOObject.selectGroup = resultNodeQuestionConfigsQuestionConfigDTO["SelectGroup"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["DefaultResult"].isNull()) + questionConfigDTOObject.defaultResult = resultNodeQuestionConfigsQuestionConfigDTO["DefaultResult"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["Rule"].isNull()) + questionConfigDTOObject.rule = resultNodeQuestionConfigsQuestionConfigDTO["Rule"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTO["Exif"].isNull()) + questionConfigDTOObject.exif = resultNodeQuestionConfigsQuestionConfigDTO["Exif"].asString(); + auto allOptionsNode = resultNodeQuestionConfigsQuestionConfigDTO["Options"]["QuestionOption"]; + for (auto resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption : allOptionsNode) + { + Result::QuestionConfigDTO::QuestionOption optionsObject; + if(!resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].isNull()) + optionsObject.label = resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].isNull()) + optionsObject.key = resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].isNull()) + optionsObject.color = resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].isNull()) + optionsObject.value = resultNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].asString(); + auto allChildren1 = value["Children"]["QuestionOption"]; + for (auto value : allChildren1) + optionsObject.children1.push_back(value.asString()); + questionConfigDTOObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = resultNodeQuestionConfigsQuestionConfigDTO["RobotConfigs"]["TemplateRobotConfig"]; + for (auto resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::QuestionConfigDTO::TemplateRobotConfig robotConfigsObject; + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::QuestionConfigDTO::TemplateRobotConfig::RobotParam paramsObject; + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = resultNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigDTOObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigDTOObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigDTOObject.preOptions.push_back(value.asString()); + result_.questionConfigs.push_back(questionConfigDTOObject); + } + auto viewConfigsNode = resultNode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["DisplayFieldDTO"]; + for (auto viewConfigsNodeFieldsDisplayFieldDTO : allFieldsNode) + { + Result::ViewConfigs::DisplayFieldDTO displayFieldDTOObject; + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].isNull()) + displayFieldDTOObject.fieldName = viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Type"].isNull()) + displayFieldDTOObject.type = viewConfigsNodeFieldsDisplayFieldDTO["Type"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].isNull()) + displayFieldDTOObject.corsProxy = viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Hide"].isNull()) + displayFieldDTOObject.hide = viewConfigsNodeFieldsDisplayFieldDTO["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].isNull()) + displayFieldDTOObject.convertor = viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].isNull()) + displayFieldDTOObject.plugins = viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].isNull()) + displayFieldDTOObject.fieldNames = viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].asString(); + auto visitInfoNode = value["VisitInfo"]; + auto ossConfNode = visitInfoNode["OssConf"]; + if(!ossConfNode["OssEndpoint"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossEndpoint = ossConfNode["OssEndpoint"].asString(); + if(!ossConfNode["OssAk"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAk = ossConfNode["OssAk"].asString(); + if(!ossConfNode["OssAs"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAs = ossConfNode["OssAs"].asString(); + if(!ossConfNode["OssOwner"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossOwner = ossConfNode["OssOwner"].asString(); + if(!ossConfNode["OssBucket"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossBucket = ossConfNode["OssBucket"].asString(); + if(!ossConfNode["Folder"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.folder = ossConfNode["Folder"].asString(); + if(!ossConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.expiredTime = std::stol(ossConfNode["ExpiredTime"].asString()); + auto aftsConfNode = visitInfoNode["AftsConf"]; + if(!aftsConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.aftsConf.expiredTime = std::stoi(aftsConfNode["ExpiredTime"].asString()); + auto allRelationQuestionIds = value["RelationQuestionIds"]["String"]; + for (auto value : allRelationQuestionIds) + displayFieldDTOObject.relationQuestionIds.push_back(value.asString()); + result_.viewConfigs.fields.push_back(displayFieldDTOObject); + } + auto creatorNode = resultNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = resultNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto robotConfigNode = resultNode["RobotConfig"]; + if(!robotConfigNode["Source"].isNull()) + result_.robotConfig.source = robotConfigNode["Source"].asString(); + auto allModelServiceConfigsNode = robotConfigNode["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfig : allModelServiceConfigsNode) + { + Result::RobotConfig::ModelServiceConfig modelServiceConfigObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfigObject.serviceId = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfigObject.serviceName = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParamsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParamsNode) + { + Result::RobotConfig::ModelServiceConfig::ModelServiceConfig$PostParamPair postParamsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParamsObject.key = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParamsObject.value = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfigObject.postParams.push_back(postParamsObject); + } + auto allResultMappingsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappingsNode) + { + Result::RobotConfig::ModelServiceConfig::ModelServiceConfig$ResultMappingPair resultMappingsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappingsObject.questionId = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappingsObject.resultKey = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappingsObject.markTitle = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfigObject.resultMappings.push_back(resultMappingsObject); + } + result_.robotConfig.modelServiceConfigs.push_back(modelServiceConfigObject); + } + auto effectStepNode = robotConfigNode["EffectStep"]; + if(!effectStepNode["PreProcess"].isNull()) + result_.robotConfig.effectStep.preProcess = effectStepNode["PreProcess"].asString() == "true"; + if(!effectStepNode["PreLabel"].isNull()) + result_.robotConfig.effectStep.preLabel = effectStepNode["PreLabel"].asString() == "true"; + if(!effectStepNode["Label"].isNull()) + result_.robotConfig.effectStep.label = effectStepNode["Label"].asString() == "true"; + auto processConfigNode = effectStepNode["ProcessConfig"]; + auto allRelateColumn = processConfigNode["RelateColumn"]["String"]; + for (auto value : allRelateColumn) + result_.robotConfig.effectStep.processConfig.relateColumn.push_back(value.asString()); + auto allTags = resultNode["Tags"]["String"]; + for (auto value : allTags) + result_.tags.push_back(value.asString()); + auto allAbandonReasons = resultNode["AbandonReasons"]["String"]; + for (auto value : allAbandonReasons) + result_.abandonReasons.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetOptionTemplateResult::getMsg()const +{ + return msg_; +} + +bool GetOptionTemplateResult::getSucc()const +{ + return succ_; +} + +std::string GetOptionTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetOptionTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +int GetOptionTemplateResult::getCode()const +{ + return code_; +} + +GetOptionTemplateResult::Result GetOptionTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetOrCreateTntInstByBizNoRequest.cc b/itag/src/model/GetOrCreateTntInstByBizNoRequest.cc new file mode 100644 index 000000000..4332fb408 --- /dev/null +++ b/itag/src/model/GetOrCreateTntInstByBizNoRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetOrCreateTntInstByBizNoRequest; + +GetOrCreateTntInstByBizNoRequest::GetOrCreateTntInstByBizNoRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/getOrCreateTntInstByBizNo"}; + setMethod(HttpRequest::Method::Post); +} + +GetOrCreateTntInstByBizNoRequest::~GetOrCreateTntInstByBizNoRequest() {} + +std::string GetOrCreateTntInstByBizNoRequest::getBody() const { + return body_; +} + +void GetOrCreateTntInstByBizNoRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetOrCreateTntInstByBizNoResult.cc b/itag/src/model/GetOrCreateTntInstByBizNoResult.cc new file mode 100644 index 000000000..195a4a7a1 --- /dev/null +++ b/itag/src/model/GetOrCreateTntInstByBizNoResult.cc @@ -0,0 +1,113 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetOrCreateTntInstByBizNoResult::GetOrCreateTntInstByBizNoResult() : + ServiceResult() +{} + +GetOrCreateTntInstByBizNoResult::GetOrCreateTntInstByBizNoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrCreateTntInstByBizNoResult::~GetOrCreateTntInstByBizNoResult() +{} + +void GetOrCreateTntInstByBizNoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["BizNO"].isNull()) + result_.bizNO = resultNode["BizNO"].asString(); + auto creatorNode = resultNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = resultNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetOrCreateTntInstByBizNoResult::getMsg()const +{ + return msg_; +} + +bool GetOrCreateTntInstByBizNoResult::getSucc()const +{ + return succ_; +} + +std::string GetOrCreateTntInstByBizNoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetOrCreateTntInstByBizNoResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetOrCreateTntInstByBizNoResult::getCode()const +{ + return code_; +} + +GetOrCreateTntInstByBizNoResult::Result GetOrCreateTntInstByBizNoResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetPersonSummaryRequest.cc b/itag/src/model/GetPersonSummaryRequest.cc new file mode 100644 index 000000000..826785cec --- /dev/null +++ b/itag/src/model/GetPersonSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetPersonSummaryRequest; + +GetPersonSummaryRequest::GetPersonSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getPersonSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetPersonSummaryRequest::~GetPersonSummaryRequest() {} + +std::string GetPersonSummaryRequest::getBody() const { + return body_; +} + +void GetPersonSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetPersonSummaryResult.cc b/itag/src/model/GetPersonSummaryResult.cc new file mode 100644 index 000000000..95b35a28c --- /dev/null +++ b/itag/src/model/GetPersonSummaryResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetPersonSummaryResult::GetPersonSummaryResult() : + ServiceResult() +{} + +GetPersonSummaryResult::GetPersonSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPersonSummaryResult::~GetPersonSummaryResult() +{} + +void GetPersonSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetPersonSummaryResult::getMsg()const +{ + return msg_; +} + +bool GetPersonSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetPersonSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPersonSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetPersonSummaryResult::getCode()const +{ + return code_; +} + +GetPersonSummaryResult::Result GetPersonSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetSamplingSummaryRequest.cc b/itag/src/model/GetSamplingSummaryRequest.cc new file mode 100644 index 000000000..6e66585ea --- /dev/null +++ b/itag/src/model/GetSamplingSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetSamplingSummaryRequest; + +GetSamplingSummaryRequest::GetSamplingSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/getSamplingSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetSamplingSummaryRequest::~GetSamplingSummaryRequest() {} + +std::string GetSamplingSummaryRequest::getBody() const { + return body_; +} + +void GetSamplingSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetSamplingSummaryResult.cc b/itag/src/model/GetSamplingSummaryResult.cc new file mode 100644 index 000000000..991dfd4f8 --- /dev/null +++ b/itag/src/model/GetSamplingSummaryResult.cc @@ -0,0 +1,131 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetSamplingSummaryResult::GetSamplingSummaryResult() : + ServiceResult() +{} + +GetSamplingSummaryResult::GetSamplingSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSamplingSummaryResult::~GetSamplingSummaryResult() +{} + +void GetSamplingSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalSubTask"].isNull()) + result_.totalSubTask = std::stoi(resultNode["TotalSubTask"].asString()); + if(!resultNode["TotalItem"].isNull()) + result_.totalItem = std::stoi(resultNode["TotalItem"].asString()); + if(!resultNode["ActualItem"].isNull()) + result_.actualItem = std::stoi(resultNode["ActualItem"].asString()); + if(!resultNode["ActualSubTask"].isNull()) + result_.actualSubTask = std::stoi(resultNode["ActualSubTask"].asString()); + if(!resultNode["Accuracy"].isNull()) + result_.accuracy = std::stof(resultNode["Accuracy"].asString()); + if(!resultNode["ErrorItem"].isNull()) + result_.errorItem = std::stoi(resultNode["ErrorItem"].asString()); + if(!resultNode["NoFixedItem"].isNull()) + result_.noFixedItem = std::stoi(resultNode["NoFixedItem"].asString()); + auto allPersonSummaryDTOListNode = resultNode["PersonSummaryDTOList"]["PersonSummaryDTOListItem"]; + for (auto resultNodePersonSummaryDTOListPersonSummaryDTOListItem : allPersonSummaryDTOListNode) + { + Result::PersonSummaryDTOListItem personSummaryDTOListItemObject; + if(!resultNodePersonSummaryDTOListPersonSummaryDTOListItem["UserName"].isNull()) + personSummaryDTOListItemObject.userName = resultNodePersonSummaryDTOListPersonSummaryDTOListItem["UserName"].asString(); + if(!resultNodePersonSummaryDTOListPersonSummaryDTOListItem["UserId"].isNull()) + personSummaryDTOListItemObject.userId = resultNodePersonSummaryDTOListPersonSummaryDTOListItem["UserId"].asString(); + if(!resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonTotalItem"].isNull()) + personSummaryDTOListItemObject.personTotalItem = std::stoi(resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonTotalItem"].asString()); + if(!resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonActualItem"].isNull()) + personSummaryDTOListItemObject.personActualItem = std::stoi(resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonActualItem"].asString()); + if(!resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonErrorItem"].isNull()) + personSummaryDTOListItemObject.personErrorItem = std::stoi(resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonErrorItem"].asString()); + if(!resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonAccuracy"].isNull()) + personSummaryDTOListItemObject.personAccuracy = std::stof(resultNodePersonSummaryDTOListPersonSummaryDTOListItem["PersonAccuracy"].asString()); + result_.personSummaryDTOList.push_back(personSummaryDTOListItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetSamplingSummaryResult::getMsg()const +{ + return msg_; +} + +long GetSamplingSummaryResult::getRt()const +{ + return rt_; +} + +bool GetSamplingSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetSamplingSummaryResult::getHost()const +{ + return host_; +} + +std::string GetSamplingSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSamplingSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +int GetSamplingSummaryResult::getCode()const +{ + return code_; +} + +GetSamplingSummaryResult::Result GetSamplingSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetSubTaskDownloadSystemResultRequest.cc b/itag/src/model/GetSubTaskDownloadSystemResultRequest.cc new file mode 100644 index 000000000..8dbe73025 --- /dev/null +++ b/itag/src/model/GetSubTaskDownloadSystemResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetSubTaskDownloadSystemResultRequest; + +GetSubTaskDownloadSystemResultRequest::GetSubTaskDownloadSystemResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/markresult/getSubTaskDownloadSystemResult"}; + setMethod(HttpRequest::Method::Post); +} + +GetSubTaskDownloadSystemResultRequest::~GetSubTaskDownloadSystemResultRequest() {} + +std::string GetSubTaskDownloadSystemResultRequest::getBody() const { + return body_; +} + +void GetSubTaskDownloadSystemResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetSubTaskDownloadSystemResultResult.cc b/itag/src/model/GetSubTaskDownloadSystemResultResult.cc new file mode 100644 index 000000000..e81682395 --- /dev/null +++ b/itag/src/model/GetSubTaskDownloadSystemResultResult.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetSubTaskDownloadSystemResultResult::GetSubTaskDownloadSystemResultResult() : + ServiceResult() +{} + +GetSubTaskDownloadSystemResultResult::GetSubTaskDownloadSystemResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSubTaskDownloadSystemResultResult::~GetSubTaskDownloadSystemResultResult() +{} + +void GetSubTaskDownloadSystemResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["SubTaskId"].isNull()) + result_.subTaskId = resultNode["SubTaskId"].asString(); + if(!resultNode["WorkNode"].isNull()) + result_.workNode = resultNode["WorkNode"].asString(); + if(!resultNode["UserMarkItemListMap"].isNull()) + result_.userMarkItemListMap = resultNode["UserMarkItemListMap"].asString(); + if(!resultNode["UserSubTaskMap"].isNull()) + result_.userSubTaskMap = resultNode["UserSubTaskMap"].asString(); + auto allMarkItemListNode = resultNode["MarkItemList"]["ITagSimpleMarkItemDTO"]; + for (auto resultNodeMarkItemListITagSimpleMarkItemDTO : allMarkItemListNode) + { + Result::ITagSimpleMarkItemDTO iTagSimpleMarkItemDTOObject; + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["MarkItemId"].isNull()) + iTagSimpleMarkItemDTOObject.markItemId = resultNodeMarkItemListITagSimpleMarkItemDTO["MarkItemId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["DataId"].isNull()) + iTagSimpleMarkItemDTOObject.dataId = resultNodeMarkItemListITagSimpleMarkItemDTO["DataId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["DatasetId"].isNull()) + iTagSimpleMarkItemDTOObject.datasetId = resultNodeMarkItemListITagSimpleMarkItemDTO["DatasetId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["State"].isNull()) + iTagSimpleMarkItemDTOObject.state = resultNodeMarkItemListITagSimpleMarkItemDTO["State"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["Mine"].isNull()) + iTagSimpleMarkItemDTOObject.mine = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["Mine"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["RejectFlag"].isNull()) + iTagSimpleMarkItemDTOObject.rejectFlag = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["RejectFlag"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["FixedFlag"].isNull()) + iTagSimpleMarkItemDTOObject.fixedFlag = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["FixedFlag"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["AbandonFlag"].isNull()) + iTagSimpleMarkItemDTOObject.abandonFlag = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["AbandonFlag"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["Weight"].isNull()) + iTagSimpleMarkItemDTOObject.weight = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["Weight"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["DataMeta"].isNull()) + iTagSimpleMarkItemDTOObject.dataMeta = resultNodeMarkItemListITagSimpleMarkItemDTO["DataMeta"].asString(); + auto allMarkResultListNode = resultNodeMarkItemListITagSimpleMarkItemDTO["MarkResultList"]["ITagSimpleUserMarkResultDTO"]; + for (auto resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO : allMarkResultListNode) + { + Result::ITagSimpleMarkItemDTO::ITagSimpleUserMarkResultDTO markResultListObject; + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].isNull()) + markResultListObject.markResultId = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].isNull()) + markResultListObject.markTitle = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].isNull()) + markResultListObject.markResult = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].isNull()) + markResultListObject.questionId = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].isNull()) + markResultListObject.resultType = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].isNull()) + markResultListObject.version = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].asString(); + iTagSimpleMarkItemDTOObject.markResultList.push_back(markResultListObject); + } + result_.markItemList.push_back(iTagSimpleMarkItemDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetSubTaskDownloadSystemResultResult::getMsg()const +{ + return msg_; +} + +bool GetSubTaskDownloadSystemResultResult::getSucc()const +{ + return succ_; +} + +std::string GetSubTaskDownloadSystemResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSubTaskDownloadSystemResultResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetSubTaskDownloadSystemResultResult::getCode()const +{ + return code_; +} + +GetSubTaskDownloadSystemResultResult::Result GetSubTaskDownloadSystemResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetSubTaskDownloadUserResultRequest.cc b/itag/src/model/GetSubTaskDownloadUserResultRequest.cc new file mode 100644 index 000000000..0e8ad4726 --- /dev/null +++ b/itag/src/model/GetSubTaskDownloadUserResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetSubTaskDownloadUserResultRequest; + +GetSubTaskDownloadUserResultRequest::GetSubTaskDownloadUserResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/markresult/getSubTaskDownloadUserResult"}; + setMethod(HttpRequest::Method::Post); +} + +GetSubTaskDownloadUserResultRequest::~GetSubTaskDownloadUserResultRequest() {} + +std::string GetSubTaskDownloadUserResultRequest::getBody() const { + return body_; +} + +void GetSubTaskDownloadUserResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetSubTaskDownloadUserResultResult.cc b/itag/src/model/GetSubTaskDownloadUserResultResult.cc new file mode 100644 index 000000000..aa356fffa --- /dev/null +++ b/itag/src/model/GetSubTaskDownloadUserResultResult.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetSubTaskDownloadUserResultResult::GetSubTaskDownloadUserResultResult() : + ServiceResult() +{} + +GetSubTaskDownloadUserResultResult::GetSubTaskDownloadUserResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSubTaskDownloadUserResultResult::~GetSubTaskDownloadUserResultResult() +{} + +void GetSubTaskDownloadUserResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["SubTaskId"].isNull()) + result_.subTaskId = resultNode["SubTaskId"].asString(); + if(!resultNode["WorkNode"].isNull()) + result_.workNode = resultNode["WorkNode"].asString(); + if(!resultNode["UserMarkItemListMap"].isNull()) + result_.userMarkItemListMap = resultNode["UserMarkItemListMap"].asString(); + if(!resultNode["UserSubTaskMap"].isNull()) + result_.userSubTaskMap = resultNode["UserSubTaskMap"].asString(); + auto allMarkItemListNode = resultNode["MarkItemList"]["ITagSimpleMarkItemDTO"]; + for (auto resultNodeMarkItemListITagSimpleMarkItemDTO : allMarkItemListNode) + { + Result::ITagSimpleMarkItemDTO iTagSimpleMarkItemDTOObject; + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["MarkItemId"].isNull()) + iTagSimpleMarkItemDTOObject.markItemId = resultNodeMarkItemListITagSimpleMarkItemDTO["MarkItemId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["DataId"].isNull()) + iTagSimpleMarkItemDTOObject.dataId = resultNodeMarkItemListITagSimpleMarkItemDTO["DataId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["DatasetId"].isNull()) + iTagSimpleMarkItemDTOObject.datasetId = resultNodeMarkItemListITagSimpleMarkItemDTO["DatasetId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["State"].isNull()) + iTagSimpleMarkItemDTOObject.state = resultNodeMarkItemListITagSimpleMarkItemDTO["State"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["Mine"].isNull()) + iTagSimpleMarkItemDTOObject.mine = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["Mine"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["RejectFlag"].isNull()) + iTagSimpleMarkItemDTOObject.rejectFlag = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["RejectFlag"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["FixedFlag"].isNull()) + iTagSimpleMarkItemDTOObject.fixedFlag = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["FixedFlag"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["AbandonFlag"].isNull()) + iTagSimpleMarkItemDTOObject.abandonFlag = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["AbandonFlag"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["Weight"].isNull()) + iTagSimpleMarkItemDTOObject.weight = std::stoi(resultNodeMarkItemListITagSimpleMarkItemDTO["Weight"].asString()); + if(!resultNodeMarkItemListITagSimpleMarkItemDTO["DataMeta"].isNull()) + iTagSimpleMarkItemDTOObject.dataMeta = resultNodeMarkItemListITagSimpleMarkItemDTO["DataMeta"].asString(); + auto allMarkResultListNode = resultNodeMarkItemListITagSimpleMarkItemDTO["MarkResultList"]["ITagSimpleUserMarkResultDTO"]; + for (auto resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO : allMarkResultListNode) + { + Result::ITagSimpleMarkItemDTO::ITagSimpleUserMarkResultDTO markResultListObject; + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].isNull()) + markResultListObject.markResultId = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].isNull()) + markResultListObject.markTitle = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].isNull()) + markResultListObject.markResult = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].isNull()) + markResultListObject.questionId = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].isNull()) + markResultListObject.resultType = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].isNull()) + markResultListObject.version = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].asString(); + if(!resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = resultNodeMarkItemListITagSimpleMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].asString(); + iTagSimpleMarkItemDTOObject.markResultList.push_back(markResultListObject); + } + result_.markItemList.push_back(iTagSimpleMarkItemDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetSubTaskDownloadUserResultResult::getMsg()const +{ + return msg_; +} + +bool GetSubTaskDownloadUserResultResult::getSucc()const +{ + return succ_; +} + +std::string GetSubTaskDownloadUserResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSubTaskDownloadUserResultResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetSubTaskDownloadUserResultResult::getCode()const +{ + return code_; +} + +GetSubTaskDownloadUserResultResult::Result GetSubTaskDownloadUserResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetSubTaskSummaryRequest.cc b/itag/src/model/GetSubTaskSummaryRequest.cc new file mode 100644 index 000000000..6a4c767a6 --- /dev/null +++ b/itag/src/model/GetSubTaskSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetSubTaskSummaryRequest; + +GetSubTaskSummaryRequest::GetSubTaskSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/getSubTaskSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetSubTaskSummaryRequest::~GetSubTaskSummaryRequest() {} + +std::string GetSubTaskSummaryRequest::getBody() const { + return body_; +} + +void GetSubTaskSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetSubTaskSummaryResult.cc b/itag/src/model/GetSubTaskSummaryResult.cc new file mode 100644 index 000000000..306256383 --- /dev/null +++ b/itag/src/model/GetSubTaskSummaryResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetSubTaskSummaryResult::GetSubTaskSummaryResult() : + ServiceResult() +{} + +GetSubTaskSummaryResult::GetSubTaskSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSubTaskSummaryResult::~GetSubTaskSummaryResult() +{} + +void GetSubTaskSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["FailItemCount"].isNull()) + result_.failItemCount = std::stoi(resultNode["FailItemCount"].asString()); + if(!resultNode["TotalItemCount"].isNull()) + result_.totalItemCount = std::stoi(resultNode["TotalItemCount"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetSubTaskSummaryResult::getMsg()const +{ + return msg_; +} + +bool GetSubTaskSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetSubTaskSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSubTaskSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetSubTaskSummaryResult::getCode()const +{ + return code_; +} + +GetSubTaskSummaryResult::Result GetSubTaskSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTaskPersonSummaryRequest.cc b/itag/src/model/GetTaskPersonSummaryRequest.cc new file mode 100644 index 000000000..2579ef40c --- /dev/null +++ b/itag/src/model/GetTaskPersonSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTaskPersonSummaryRequest; + +GetTaskPersonSummaryRequest::GetTaskPersonSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getTaskPersonSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetTaskPersonSummaryRequest::~GetTaskPersonSummaryRequest() {} + +std::string GetTaskPersonSummaryRequest::getBody() const { + return body_; +} + +void GetTaskPersonSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTaskPersonSummaryResult.cc b/itag/src/model/GetTaskPersonSummaryResult.cc new file mode 100644 index 000000000..717d90860 --- /dev/null +++ b/itag/src/model/GetTaskPersonSummaryResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTaskPersonSummaryResult::GetTaskPersonSummaryResult() : + ServiceResult() +{} + +GetTaskPersonSummaryResult::GetTaskPersonSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskPersonSummaryResult::~GetTaskPersonSummaryResult() +{} + +void GetTaskPersonSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTaskPersonSummaryResult::getMsg()const +{ + return msg_; +} + +bool GetTaskPersonSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetTaskPersonSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTaskPersonSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetTaskPersonSummaryResult::getCode()const +{ + return code_; +} + +GetTaskPersonSummaryResult::Result GetTaskPersonSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTaskProcessInfoRequest.cc b/itag/src/model/GetTaskProcessInfoRequest.cc new file mode 100644 index 000000000..8efc783c5 --- /dev/null +++ b/itag/src/model/GetTaskProcessInfoRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTaskProcessInfoRequest; + +GetTaskProcessInfoRequest::GetTaskProcessInfoRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/getTaskProcessInfo"}; + setMethod(HttpRequest::Method::Post); +} + +GetTaskProcessInfoRequest::~GetTaskProcessInfoRequest() {} + +std::string GetTaskProcessInfoRequest::getBody() const { + return body_; +} + +void GetTaskProcessInfoRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTaskProcessInfoResult.cc b/itag/src/model/GetTaskProcessInfoResult.cc new file mode 100644 index 000000000..d5b3e35df --- /dev/null +++ b/itag/src/model/GetTaskProcessInfoResult.cc @@ -0,0 +1,108 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTaskProcessInfoResult::GetTaskProcessInfoResult() : + ServiceResult() +{} + +GetTaskProcessInfoResult::GetTaskProcessInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskProcessInfoResult::~GetTaskProcessInfoResult() +{} + +void GetTaskProcessInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["NodeSummary"].isNull()) + result_.nodeSummary = resultNode["NodeSummary"].asString(); + if(!resultNode["Stage"].isNull()) + result_.stage = resultNode["Stage"].asString(); + auto summaryNode = resultNode["Summary"]; + if(!summaryNode["Node"].isNull()) + result_.summary.node = summaryNode["Node"].asString(); + if(!summaryNode["TotalSubTask"].isNull()) + result_.summary.totalSubTask = std::stoi(summaryNode["TotalSubTask"].asString()); + if(!summaryNode["FinishedSubTask"].isNull()) + result_.summary.finishedSubTask = std::stoi(summaryNode["FinishedSubTask"].asString()); + if(!summaryNode["TotalItem"].isNull()) + result_.summary.totalItem = std::stoi(summaryNode["TotalItem"].asString()); + if(!summaryNode["FinishedItem"].isNull()) + result_.summary.finishedItem = std::stoi(summaryNode["FinishedItem"].asString()); + if(!summaryNode["State"].isNull()) + result_.summary.state = summaryNode["State"].asString(); + if(!summaryNode["FixedItem"].isNull()) + result_.summary.fixedItem = std::stol(summaryNode["FixedItem"].asString()); + if(!summaryNode["AbandonItem"].isNull()) + result_.summary.abandonItem = std::stol(summaryNode["AbandonItem"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTaskProcessInfoResult::getMsg()const +{ + return msg_; +} + +bool GetTaskProcessInfoResult::getSucc()const +{ + return succ_; +} + +std::string GetTaskProcessInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTaskProcessInfoResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetTaskProcessInfoResult::getCode()const +{ + return code_; +} + +GetTaskProcessInfoResult::Result GetTaskProcessInfoResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTaskRequest.cc b/itag/src/model/GetTaskRequest.cc new file mode 100644 index 000000000..4503b1d80 --- /dev/null +++ b/itag/src/model/GetTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTaskRequest; + +GetTaskRequest::GetTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/getTask"}; + setMethod(HttpRequest::Method::Post); +} + +GetTaskRequest::~GetTaskRequest() {} + +std::string GetTaskRequest::getBody() const { + return body_; +} + +void GetTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTaskResult.cc b/itag/src/model/GetTaskResult.cc new file mode 100644 index 000000000..f030bcd05 --- /dev/null +++ b/itag/src/model/GetTaskResult.cc @@ -0,0 +1,532 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTaskResult::GetTaskResult() : + ServiceResult() +{} + +GetTaskResult::GetTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskResult::~GetTaskResult() +{} + +void GetTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TaskName"].isNull()) + result_.taskName = resultNode["TaskName"].asString(); + if(!resultNode["TaskId"].isNull()) + result_.taskId = resultNode["TaskId"].asString(); + if(!resultNode["TemplateId"].isNull()) + result_.templateId = resultNode["TemplateId"].asString(); + if(!resultNode["ProjectId"].isNull()) + result_.projectId = std::stol(resultNode["ProjectId"].asString()); + if(!resultNode["TaskType"].isNull()) + result_.taskType = resultNode["TaskType"].asString(); + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["TntInstName"].isNull()) + result_.tntInstName = resultNode["TntInstName"].asString(); + if(!resultNode["Remark"].isNull()) + result_.remark = resultNode["Remark"].asString(); + if(!resultNode["AllowAppendData"].isNull()) + result_.allowAppendData = resultNode["AllowAppendData"].asString() == "true"; + if(!resultNode["Channel"].isNull()) + result_.channel = resultNode["Channel"].asString(); + if(!resultNode["SafetyLevel"].isNull()) + result_.safetyLevel = std::stoi(resultNode["SafetyLevel"].asString()); + if(!resultNode["RelateTaskConfig"].isNull()) + result_.relateTaskConfig = resultNode["RelateTaskConfig"].asString(); + if(!resultNode["Exif"].isNull()) + result_.exif = resultNode["Exif"].asString(); + if(!resultNode["MineConfigs"].isNull()) + result_.mineConfigs = resultNode["MineConfigs"].asString(); + if(!resultNode["VoteConfigs"].isNull()) + result_.voteConfigs = resultNode["VoteConfigs"].asString(); + if(!resultNode["RunMsg"].isNull()) + result_.runMsg = resultNode["RunMsg"].asString(); + if(!resultNode["Archived"].isNull()) + result_.archived = resultNode["Archived"].asString() == "true"; + if(!resultNode["Stage"].isNull()) + result_.stage = resultNode["Stage"].asString(); + if(!resultNode["ArchivedInfos"].isNull()) + result_.archivedInfos = resultNode["ArchivedInfos"].asString(); + if(!resultNode["AlertTime"].isNull()) + result_.alertTime = std::stoi(resultNode["AlertTime"].asString()); + if(!resultNode["Status"].isNull()) + result_.status = std::stoi(resultNode["Status"].asString()); + if(!resultNode["GmtCreate"].isNull()) + result_.gmtCreate = resultNode["GmtCreate"].asString(); + if(!resultNode["GmtModified"].isNull()) + result_.gmtModified = resultNode["GmtModified"].asString(); + auto allDatasetProxyRelationsNode = resultNode["DatasetProxyRelations"]["TaskDatasetProxyRelation"]; + for (auto resultNodeDatasetProxyRelationsTaskDatasetProxyRelation : allDatasetProxyRelationsNode) + { + Result::TaskDatasetProxyRelation taskDatasetProxyRelationObject; + if(!resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["DatasetId"].isNull()) + taskDatasetProxyRelationObject.datasetId = resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["DatasetId"].asString(); + if(!resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["Source"].isNull()) + taskDatasetProxyRelationObject.source = resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["Source"].asString(); + if(!resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["SourceBizId"].isNull()) + taskDatasetProxyRelationObject.sourceBizId = resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["SourceBizId"].asString(); + if(!resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["DatasetType"].isNull()) + taskDatasetProxyRelationObject.datasetType = resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["DatasetType"].asString(); + if(!resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["Exif"].isNull()) + taskDatasetProxyRelationObject.exif = resultNodeDatasetProxyRelationsTaskDatasetProxyRelation["Exif"].asString(); + result_.datasetProxyRelations.push_back(taskDatasetProxyRelationObject); + } + auto allAdminsNode = resultNode["Admins"]["ITagSimpleUserVO"]; + for (auto resultNodeAdminsITagSimpleUserVO : allAdminsNode) + { + Result::ITagSimpleUserVO iTagSimpleUserVOObject; + if(!resultNodeAdminsITagSimpleUserVO["UserId"].isNull()) + iTagSimpleUserVOObject.userId = resultNodeAdminsITagSimpleUserVO["UserId"].asString(); + if(!resultNodeAdminsITagSimpleUserVO["UserName"].isNull()) + iTagSimpleUserVOObject.userName = resultNodeAdminsITagSimpleUserVO["UserName"].asString(); + if(!resultNodeAdminsITagSimpleUserVO["AccountType"].isNull()) + iTagSimpleUserVOObject.accountType = resultNodeAdminsITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeAdminsITagSimpleUserVO["AccountNo"].isNull()) + iTagSimpleUserVOObject.accountNo = resultNodeAdminsITagSimpleUserVO["AccountNo"].asString(); + result_.admins.push_back(iTagSimpleUserVOObject); + } + auto allTaskWorkFlowNode = resultNode["TaskWorkFlow"]["ITagTaskWorkflowConfig"]; + for (auto resultNodeTaskWorkFlowITagTaskWorkflowConfig : allTaskWorkFlowNode) + { + Result::ITagTaskWorkflowConfig iTagTaskWorkflowConfigObject; + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfig["NodeName"].isNull()) + iTagTaskWorkflowConfigObject.nodeName = resultNodeTaskWorkFlowITagTaskWorkflowConfig["NodeName"].asString(); + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfig["Exif"].isNull()) + iTagTaskWorkflowConfigObject.exif = resultNodeTaskWorkFlowITagTaskWorkflowConfig["Exif"].asString(); + auto allUsersNode = resultNodeTaskWorkFlowITagTaskWorkflowConfig["Users"]["ITagSimpleUserVO"]; + for (auto resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO : allUsersNode) + { + Result::ITagTaskWorkflowConfig::ITagSimpleUserVO1 usersObject; + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserId"].isNull()) + usersObject.userId = resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserId"].asString(); + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserName"].isNull()) + usersObject.userName = resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserName"].asString(); + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountType"].isNull()) + usersObject.accountType = resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountNo"].isNull()) + usersObject.accountNo = resultNodeTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountNo"].asString(); + iTagTaskWorkflowConfigObject.users.push_back(usersObject); + } + auto allGroupsNode = resultNodeTaskWorkFlowITagTaskWorkflowConfig["Groups"]["ITagSimpleUserGroupVO"]; + for (auto resultNodeTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO : allGroupsNode) + { + Result::ITagTaskWorkflowConfig::ITagSimpleUserGroupVO groupsObject; + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupId"].isNull()) + groupsObject.groupId = resultNodeTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupId"].asString(); + if(!resultNodeTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupName"].isNull()) + groupsObject.groupName = resultNodeTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupName"].asString(); + iTagTaskWorkflowConfigObject.groups.push_back(groupsObject); + } + result_.taskWorkFlow.push_back(iTagTaskWorkflowConfigObject); + } + auto optionTemplateDTONode = resultNode["OptionTemplateDTO"]; + if(!optionTemplateDTONode["Id"].isNull()) + result_.optionTemplateDTO.id = optionTemplateDTONode["Id"].asString(); + if(!optionTemplateDTONode["Name"].isNull()) + result_.optionTemplateDTO.name = optionTemplateDTONode["Name"].asString(); + if(!optionTemplateDTONode["TntInstId"].isNull()) + result_.optionTemplateDTO.tntInstId = optionTemplateDTONode["TntInstId"].asString(); + if(!optionTemplateDTONode["Description"].isNull()) + result_.optionTemplateDTO.description = optionTemplateDTONode["Description"].asString(); + if(!optionTemplateDTONode["Exif"].isNull()) + result_.optionTemplateDTO.exif = optionTemplateDTONode["Exif"].asString(); + if(!optionTemplateDTONode["Status"].isNull()) + result_.optionTemplateDTO.status = std::stoi(optionTemplateDTONode["Status"].asString()); + if(!optionTemplateDTONode["SharedMode"].isNull()) + result_.optionTemplateDTO.sharedMode = optionTemplateDTONode["SharedMode"].asString(); + if(!optionTemplateDTONode["Type"].isNull()) + result_.optionTemplateDTO.type = optionTemplateDTONode["Type"].asString(); + if(!optionTemplateDTONode["Classify"].isNull()) + result_.optionTemplateDTO.classify = optionTemplateDTONode["Classify"].asString(); + if(!optionTemplateDTONode["GmtCreate"].isNull()) + result_.optionTemplateDTO.gmtCreate = optionTemplateDTONode["GmtCreate"].asString(); + if(!optionTemplateDTONode["GmtModified"].isNull()) + result_.optionTemplateDTO.gmtModified = optionTemplateDTONode["GmtModified"].asString(); + auto allQuestionConfigsNode = optionTemplateDTONode["QuestionConfigs"]["QuestionConfigDTO"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTO : allQuestionConfigsNode) + { + Result::OptionTemplateDTO::QuestionConfigDTO questionConfigDTOObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Id"].isNull()) + questionConfigDTOObject.id = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Id"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitle"].isNull()) + questionConfigDTOObject.markTitle = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitle"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].isNull()) + questionConfigDTOObject.markTitleAlias = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Type"].isNull()) + questionConfigDTOObject.type = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Type"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MustFill"].isNull()) + questionConfigDTOObject.mustFill = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MustFill"].asString() == "true"; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Display"].isNull()) + questionConfigDTOObject.display = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Display"].asString() == "true"; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Selected"].isNull()) + questionConfigDTOObject.selected = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Selected"].asString() == "true"; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["SelectGroup"].isNull()) + questionConfigDTOObject.selectGroup = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["SelectGroup"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["DefaultResult"].isNull()) + questionConfigDTOObject.defaultResult = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["DefaultResult"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Rule"].isNull()) + questionConfigDTOObject.rule = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Rule"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Exif"].isNull()) + questionConfigDTOObject.exif = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Exif"].asString(); + auto allOptionsNode = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Options"]["QuestionOption"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption : allOptionsNode) + { + Result::OptionTemplateDTO::QuestionConfigDTO::QuestionOption optionsObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].asString(); + auto allChildren5 = value["Children"]["QuestionOption"]; + for (auto value : allChildren5) + optionsObject.children5.push_back(value.asString()); + questionConfigDTOObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::OptionTemplateDTO::QuestionConfigDTO::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::OptionTemplateDTO::QuestionConfigDTO::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigDTOObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigDTOObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigDTOObject.preOptions.push_back(value.asString()); + result_.optionTemplateDTO.questionConfigs.push_back(questionConfigDTOObject); + } + auto viewConfigsNode = optionTemplateDTONode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["DisplayFieldDTO"]; + for (auto viewConfigsNodeFieldsDisplayFieldDTO : allFieldsNode) + { + Result::OptionTemplateDTO::ViewConfigs::DisplayFieldDTO displayFieldDTOObject; + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].isNull()) + displayFieldDTOObject.fieldName = viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Type"].isNull()) + displayFieldDTOObject.type = viewConfigsNodeFieldsDisplayFieldDTO["Type"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].isNull()) + displayFieldDTOObject.corsProxy = viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Hide"].isNull()) + displayFieldDTOObject.hide = viewConfigsNodeFieldsDisplayFieldDTO["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].isNull()) + displayFieldDTOObject.convertor = viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].isNull()) + displayFieldDTOObject.plugins = viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].isNull()) + displayFieldDTOObject.fieldNames = viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].asString(); + auto visitInfoNode = value["VisitInfo"]; + auto ossConfNode = visitInfoNode["OssConf"]; + if(!ossConfNode["OssEndpoint"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossEndpoint = ossConfNode["OssEndpoint"].asString(); + if(!ossConfNode["OssAk"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAk = ossConfNode["OssAk"].asString(); + if(!ossConfNode["OssAs"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAs = ossConfNode["OssAs"].asString(); + if(!ossConfNode["OssOwner"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossOwner = ossConfNode["OssOwner"].asString(); + if(!ossConfNode["OssBucket"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossBucket = ossConfNode["OssBucket"].asString(); + if(!ossConfNode["Folder"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.folder = ossConfNode["Folder"].asString(); + if(!ossConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.expiredTime = std::stol(ossConfNode["ExpiredTime"].asString()); + auto aftsConfNode = visitInfoNode["AftsConf"]; + if(!aftsConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.aftsConf.expiredTime = std::stoi(aftsConfNode["ExpiredTime"].asString()); + auto allRelationQuestionIds = value["RelationQuestionIds"]["String"]; + for (auto value : allRelationQuestionIds) + displayFieldDTOObject.relationQuestionIds.push_back(value.asString()); + result_.optionTemplateDTO.viewConfigs.fields.push_back(displayFieldDTOObject); + } + auto creator3Node = optionTemplateDTONode["Creator"]; + if(!creator3Node["UserId"].isNull()) + result_.optionTemplateDTO.creator3.userId = creator3Node["UserId"].asString(); + if(!creator3Node["UserName"].isNull()) + result_.optionTemplateDTO.creator3.userName = creator3Node["UserName"].asString(); + if(!creator3Node["AccountType"].isNull()) + result_.optionTemplateDTO.creator3.accountType = creator3Node["AccountType"].asString(); + if(!creator3Node["AccountNo"].isNull()) + result_.optionTemplateDTO.creator3.accountNo = creator3Node["AccountNo"].asString(); + auto modifier4Node = optionTemplateDTONode["Modifier"]; + if(!modifier4Node["UserId"].isNull()) + result_.optionTemplateDTO.modifier4.userId = modifier4Node["UserId"].asString(); + if(!modifier4Node["UserName"].isNull()) + result_.optionTemplateDTO.modifier4.userName = modifier4Node["UserName"].asString(); + if(!modifier4Node["AccountType"].isNull()) + result_.optionTemplateDTO.modifier4.accountType = modifier4Node["AccountType"].asString(); + if(!modifier4Node["AccountNo"].isNull()) + result_.optionTemplateDTO.modifier4.accountNo = modifier4Node["AccountNo"].asString(); + auto robotConfigNode = optionTemplateDTONode["RobotConfig"]; + if(!robotConfigNode["Source"].isNull()) + result_.optionTemplateDTO.robotConfig.source = robotConfigNode["Source"].asString(); + auto allModelServiceConfigsNode = robotConfigNode["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfig : allModelServiceConfigsNode) + { + Result::OptionTemplateDTO::RobotConfig::ModelServiceConfig modelServiceConfigObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfigObject.serviceId = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfigObject.serviceName = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParamsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParamsNode) + { + Result::OptionTemplateDTO::RobotConfig::ModelServiceConfig::ModelServiceConfig$PostParamPair postParamsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParamsObject.key = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParamsObject.value = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfigObject.postParams.push_back(postParamsObject); + } + auto allResultMappingsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappingsNode) + { + Result::OptionTemplateDTO::RobotConfig::ModelServiceConfig::ModelServiceConfig$ResultMappingPair resultMappingsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappingsObject.questionId = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappingsObject.resultKey = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappingsObject.markTitle = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfigObject.resultMappings.push_back(resultMappingsObject); + } + result_.optionTemplateDTO.robotConfig.modelServiceConfigs.push_back(modelServiceConfigObject); + } + auto effectStepNode = robotConfigNode["EffectStep"]; + if(!effectStepNode["PreProcess"].isNull()) + result_.optionTemplateDTO.robotConfig.effectStep.preProcess = effectStepNode["PreProcess"].asString() == "true"; + if(!effectStepNode["PreLabel"].isNull()) + result_.optionTemplateDTO.robotConfig.effectStep.preLabel = effectStepNode["PreLabel"].asString() == "true"; + if(!effectStepNode["Label"].isNull()) + result_.optionTemplateDTO.robotConfig.effectStep.label = effectStepNode["Label"].asString() == "true"; + auto processConfigNode = effectStepNode["ProcessConfig"]; + auto allRelateColumn = processConfigNode["RelateColumn"]["String"]; + for (auto value : allRelateColumn) + result_.optionTemplateDTO.robotConfig.effectStep.processConfig.relateColumn.push_back(value.asString()); + auto allTags2 = optionTemplateDTONode["Tags"]["String"]; + for (auto value : allTags2) + result_.optionTemplateDTO.tags2.push_back(value.asString()); + auto allAbandonReasons = optionTemplateDTONode["AbandonReasons"]["String"]; + for (auto value : allAbandonReasons) + result_.optionTemplateDTO.abandonReasons.push_back(value.asString()); + auto taskTemplateConfigNode = resultNode["TaskTemplateConfig"]; + if(!taskTemplateConfigNode["Exif"].isNull()) + result_.taskTemplateConfig.exif = taskTemplateConfigNode["Exif"].asString(); + if(!taskTemplateConfigNode["TemplateOptionMap"].isNull()) + result_.taskTemplateConfig.templateOptionMap = taskTemplateConfigNode["TemplateOptionMap"].asString(); + if(!taskTemplateConfigNode["TemplateRelationId"].isNull()) + result_.taskTemplateConfig.templateRelationId = taskTemplateConfigNode["TemplateRelationId"].asString(); + if(!taskTemplateConfigNode["ResourceKey"].isNull()) + result_.taskTemplateConfig.resourceKey = taskTemplateConfigNode["ResourceKey"].asString(); + auto robotConfig6Node = taskTemplateConfigNode["RobotConfig"]; + if(!robotConfig6Node["Source"].isNull()) + result_.taskTemplateConfig.robotConfig6.source = robotConfig6Node["Source"].asString(); + auto allModelServiceConfigs8Node = robotConfig6Node["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfig6NodeModelServiceConfigsModelServiceConfig : allModelServiceConfigs8Node) + { + Result::TaskTemplateConfig::RobotConfig6::ModelServiceConfig9 modelServiceConfig9Object; + if(!robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfig9Object.serviceId = robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfig9Object.serviceName = robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParams10Node = robotConfig6NodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParams10Node) + { + Result::TaskTemplateConfig::RobotConfig6::ModelServiceConfig9::ModelServiceConfig$PostParamPair12 postParams10Object; + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParams10Object.key = robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParams10Object.value = robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfig9Object.postParams10.push_back(postParams10Object); + } + auto allResultMappings11Node = robotConfig6NodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappings11Node) + { + Result::TaskTemplateConfig::RobotConfig6::ModelServiceConfig9::ModelServiceConfig$ResultMappingPair13 resultMappings11Object; + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappings11Object.questionId = robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappings11Object.resultKey = robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappings11Object.markTitle = robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfig9Object.resultMappings11.push_back(resultMappings11Object); + } + result_.taskTemplateConfig.robotConfig6.modelServiceConfigs8.push_back(modelServiceConfig9Object); + } + auto effectStep7Node = robotConfig6Node["EffectStep"]; + if(!effectStep7Node["PreProcess"].isNull()) + result_.taskTemplateConfig.robotConfig6.effectStep7.preProcess = effectStep7Node["PreProcess"].asString() == "true"; + if(!effectStep7Node["PreLabel"].isNull()) + result_.taskTemplateConfig.robotConfig6.effectStep7.preLabel = effectStep7Node["PreLabel"].asString() == "true"; + if(!effectStep7Node["Label"].isNull()) + result_.taskTemplateConfig.robotConfig6.effectStep7.label = effectStep7Node["Label"].asString() == "true"; + auto processConfig14Node = effectStep7Node["ProcessConfig"]; + auto allRelateColumn15 = processConfig14Node["RelateColumn"]["String"]; + for (auto value : allRelateColumn15) + result_.taskTemplateConfig.robotConfig6.effectStep7.processConfig14.relateColumn15.push_back(value.asString()); + auto allSelectQuestions = taskTemplateConfigNode["SelectQuestions"]["String"]; + for (auto value : allSelectQuestions) + result_.taskTemplateConfig.selectQuestions.push_back(value.asString()); + auto bizInfoNode = resultNode["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + result_.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + result_.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + result_.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto assignConfigNode = resultNode["AssignConfig"]; + if(!assignConfigNode["AssignType"].isNull()) + result_.assignConfig.assignType = assignConfigNode["AssignType"].asString(); + if(!assignConfigNode["AssignCount"].isNull()) + result_.assignConfig.assignCount = std::stoi(assignConfigNode["AssignCount"].asString()); + if(!assignConfigNode["AssignSubTaskCount"].isNull()) + result_.assignConfig.assignSubTaskCount = std::stoi(assignConfigNode["AssignSubTaskCount"].asString()); + if(!assignConfigNode["AssignField"].isNull()) + result_.assignConfig.assignField = assignConfigNode["AssignField"].asString(); + auto noticeConfigNode = resultNode["NoticeConfig"]; + if(!noticeConfigNode["DingHook"].isNull()) + result_.noticeConfig.dingHook = noticeConfigNode["DingHook"].asString(); + if(!noticeConfigNode["SubTaskAlertGap"].isNull()) + result_.noticeConfig.subTaskAlertGap = noticeConfigNode["SubTaskAlertGap"].asString(); + auto allListenActions = noticeConfigNode["ListenActions"]["String"]; + for (auto value : allListenActions) + result_.noticeConfig.listenActions.push_back(value.asString()); + auto resultCallbackConfigNode = resultNode["ResultCallbackConfig"]; + if(!resultCallbackConfigNode["RetMsgMode"].isNull()) + result_.resultCallbackConfig.retMsgMode = resultCallbackConfigNode["RetMsgMode"].asString(); + if(!resultCallbackConfigNode["Exif"].isNull()) + result_.resultCallbackConfig.exif = resultCallbackConfigNode["Exif"].asString(); + auto creatorNode = resultNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = resultNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto allWorkflowNodes = resultNode["WorkflowNodes"]["String"]; + for (auto value : allWorkflowNodes) + result_.workflowNodes.push_back(value.asString()); + auto allTags = resultNode["Tags"]["String"]; + for (auto value : allTags) + result_.tags.push_back(value.asString()); + auto allSupportDownloadTypes = resultNode["SupportDownloadTypes"]["SupportDownloadType"]; + for (auto value : allSupportDownloadTypes) + result_.supportDownloadTypes.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTaskResult::getMsg()const +{ + return msg_; +} + +bool GetTaskResult::getSucc()const +{ + return succ_; +} + +std::string GetTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetTaskResult::getCode()const +{ + return code_; +} + +GetTaskResult::Result GetTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTaskStatTypesRequest.cc b/itag/src/model/GetTaskStatTypesRequest.cc new file mode 100644 index 000000000..07d2d0723 --- /dev/null +++ b/itag/src/model/GetTaskStatTypesRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTaskStatTypesRequest; + +GetTaskStatTypesRequest::GetTaskStatTypesRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getTaskStatTypes"}; + setMethod(HttpRequest::Method::Post); +} + +GetTaskStatTypesRequest::~GetTaskStatTypesRequest() {} + +std::string GetTaskStatTypesRequest::getBody() const { + return body_; +} + +void GetTaskStatTypesRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTaskStatTypesResult.cc b/itag/src/model/GetTaskStatTypesResult.cc new file mode 100644 index 000000000..747e07ab1 --- /dev/null +++ b/itag/src/model/GetTaskStatTypesResult.cc @@ -0,0 +1,101 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTaskStatTypesResult::GetTaskStatTypesResult() : + ServiceResult() +{} + +GetTaskStatTypesResult::GetTaskStatTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskStatTypesResult::~GetTaskStatTypesResult() +{} + +void GetTaskStatTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResult = value["Result"]["Result"]; + for (const auto &item : allResult) + result_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTaskStatTypesResult::getMsg()const +{ + return msg_; +} + +long GetTaskStatTypesResult::getRt()const +{ + return rt_; +} + +bool GetTaskStatTypesResult::getSucc()const +{ + return succ_; +} + +std::string GetTaskStatTypesResult::getHost()const +{ + return host_; +} + +std::string GetTaskStatTypesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTaskStatTypesResult::getErrInfo()const +{ + return errInfo_; +} + +int GetTaskStatTypesResult::getCode()const +{ + return code_; +} + +std::vector GetTaskStatTypesResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTaskSummaryRequest.cc b/itag/src/model/GetTaskSummaryRequest.cc new file mode 100644 index 000000000..ebd31fe24 --- /dev/null +++ b/itag/src/model/GetTaskSummaryRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTaskSummaryRequest; + +GetTaskSummaryRequest::GetTaskSummaryRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getTaskSummary"}; + setMethod(HttpRequest::Method::Post); +} + +GetTaskSummaryRequest::~GetTaskSummaryRequest() {} + +std::string GetTaskSummaryRequest::getBody() const { + return body_; +} + +void GetTaskSummaryRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTaskSummaryResult.cc b/itag/src/model/GetTaskSummaryResult.cc new file mode 100644 index 000000000..34e6e5d26 --- /dev/null +++ b/itag/src/model/GetTaskSummaryResult.cc @@ -0,0 +1,185 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTaskSummaryResult::GetTaskSummaryResult() : + ServiceResult() +{} + +GetTaskSummaryResult::GetTaskSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskSummaryResult::~GetTaskSummaryResult() +{} + +void GetTaskSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagBaseReportResponse"]; + for (auto resultNodeListITagBaseReportResponse : allListNode) + { + Result::ITagBaseReportResponse iTagBaseReportResponseObject; + if(!resultNodeListITagBaseReportResponse["TotalDisable"].isNull()) + iTagBaseReportResponseObject.totalDisable = std::stoi(resultNodeListITagBaseReportResponse["TotalDisable"].asString()); + if(!resultNodeListITagBaseReportResponse["UpdateTime"].isNull()) + iTagBaseReportResponseObject.updateTime = resultNodeListITagBaseReportResponse["UpdateTime"].asString(); + if(!resultNodeListITagBaseReportResponse["Sample"].isNull()) + iTagBaseReportResponseObject.sample = std::stoi(resultNodeListITagBaseReportResponse["Sample"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalMark"].isNull()) + iTagBaseReportResponseObject.totalMark = std::stoi(resultNodeListITagBaseReportResponse["TotalMark"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectMark"].isNull()) + iTagBaseReportResponseObject.noRejectMark = std::stoi(resultNodeListITagBaseReportResponse["NoRejectMark"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalChecked"].isNull()) + iTagBaseReportResponseObject.totalChecked = std::stoi(resultNodeListITagBaseReportResponse["TotalChecked"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedError"].isNull()) + iTagBaseReportResponseObject.checkedError = std::stoi(resultNodeListITagBaseReportResponse["CheckedError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedAccuracy"].isNull()) + iTagBaseReportResponseObject.checkedAccuracy = resultNodeListITagBaseReportResponse["CheckedAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckedReject"].isNull()) + iTagBaseReportResponseObject.checkedReject = std::stoi(resultNodeListITagBaseReportResponse["CheckedReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckedFix"].isNull()) + iTagBaseReportResponseObject.checkedFix = std::stoi(resultNodeListITagBaseReportResponse["CheckedFix"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalSampled"].isNull()) + iTagBaseReportResponseObject.totalSampled = std::stoi(resultNodeListITagBaseReportResponse["TotalSampled"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledError"].isNull()) + iTagBaseReportResponseObject.sampledError = std::stoi(resultNodeListITagBaseReportResponse["SampledError"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledReject"].isNull()) + iTagBaseReportResponseObject.sampledReject = std::stoi(resultNodeListITagBaseReportResponse["SampledReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledFix"].isNull()) + iTagBaseReportResponseObject.sampledFix = std::stoi(resultNodeListITagBaseReportResponse["SampledFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SampledAccuracy"].isNull()) + iTagBaseReportResponseObject.sampledAccuracy = resultNodeListITagBaseReportResponse["SampledAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalSampling"].isNull()) + iTagBaseReportResponseObject.totalSampling = std::stoi(resultNodeListITagBaseReportResponse["TotalSampling"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingError"].isNull()) + iTagBaseReportResponseObject.samplingError = std::stoi(resultNodeListITagBaseReportResponse["SamplingError"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingReject"].isNull()) + iTagBaseReportResponseObject.samplingReject = std::stoi(resultNodeListITagBaseReportResponse["SamplingReject"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingFix"].isNull()) + iTagBaseReportResponseObject.samplingFix = std::stoi(resultNodeListITagBaseReportResponse["SamplingFix"].asString()); + if(!resultNodeListITagBaseReportResponse["SamplingAccuracy"].isNull()) + iTagBaseReportResponseObject.samplingAccuracy = resultNodeListITagBaseReportResponse["SamplingAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalCheck"].isNull()) + iTagBaseReportResponseObject.totalCheck = std::stoi(resultNodeListITagBaseReportResponse["TotalCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectCheck"].isNull()) + iTagBaseReportResponseObject.noRejectCheck = std::stoi(resultNodeListITagBaseReportResponse["NoRejectCheck"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckError"].isNull()) + iTagBaseReportResponseObject.checkError = std::stoi(resultNodeListITagBaseReportResponse["CheckError"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckAccuracy"].isNull()) + iTagBaseReportResponseObject.checkAccuracy = resultNodeListITagBaseReportResponse["CheckAccuracy"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckReject"].isNull()) + iTagBaseReportResponseObject.checkReject = std::stoi(resultNodeListITagBaseReportResponse["CheckReject"].asString()); + if(!resultNodeListITagBaseReportResponse["CheckFix"].isNull()) + iTagBaseReportResponseObject.checkFix = std::stoi(resultNodeListITagBaseReportResponse["CheckFix"].asString()); + if(!resultNodeListITagBaseReportResponse["UserName"].isNull()) + iTagBaseReportResponseObject.userName = resultNodeListITagBaseReportResponse["UserName"].asString(); + if(!resultNodeListITagBaseReportResponse["UserId"].isNull()) + iTagBaseReportResponseObject.userId = resultNodeListITagBaseReportResponse["UserId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskId"].isNull()) + iTagBaseReportResponseObject.taskId = resultNodeListITagBaseReportResponse["TaskId"].asString(); + if(!resultNodeListITagBaseReportResponse["TaskName"].isNull()) + iTagBaseReportResponseObject.taskName = resultNodeListITagBaseReportResponse["TaskName"].asString(); + if(!resultNodeListITagBaseReportResponse["BizClassify"].isNull()) + iTagBaseReportResponseObject.bizClassify = resultNodeListITagBaseReportResponse["BizClassify"].asString(); + if(!resultNodeListITagBaseReportResponse["Workflow"].isNull()) + iTagBaseReportResponseObject.workflow = resultNodeListITagBaseReportResponse["Workflow"].asString(); + if(!resultNodeListITagBaseReportResponse["WorkTime"].isNull()) + iTagBaseReportResponseObject.workTime = resultNodeListITagBaseReportResponse["WorkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["TotalPDF"].isNull()) + iTagBaseReportResponseObject.totalPDF = std::stol(resultNodeListITagBaseReportResponse["TotalPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectPDF"].isNull()) + iTagBaseReportResponseObject.noRejectPDF = std::stol(resultNodeListITagBaseReportResponse["NoRejectPDF"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalAudio"].isNull()) + iTagBaseReportResponseObject.totalAudio = std::stol(resultNodeListITagBaseReportResponse["TotalAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectAudio"].isNull()) + iTagBaseReportResponseObject.noRejectAudio = std::stol(resultNodeListITagBaseReportResponse["NoRejectAudio"].asString()); + if(!resultNodeListITagBaseReportResponse["TotalVideo"].isNull()) + iTagBaseReportResponseObject.totalVideo = std::stol(resultNodeListITagBaseReportResponse["TotalVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["NoRejectVideo"].isNull()) + iTagBaseReportResponseObject.noRejectVideo = std::stol(resultNodeListITagBaseReportResponse["NoRejectVideo"].asString()); + if(!resultNodeListITagBaseReportResponse["MarkTime"].isNull()) + iTagBaseReportResponseObject.markTime = resultNodeListITagBaseReportResponse["MarkTime"].asString(); + if(!resultNodeListITagBaseReportResponse["MarkEfficiency"].isNull()) + iTagBaseReportResponseObject.markEfficiency = resultNodeListITagBaseReportResponse["MarkEfficiency"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckTime"].isNull()) + iTagBaseReportResponseObject.checkTime = resultNodeListITagBaseReportResponse["CheckTime"].asString(); + if(!resultNodeListITagBaseReportResponse["CheckEfficiency"].isNull()) + iTagBaseReportResponseObject.checkEfficiency = resultNodeListITagBaseReportResponse["CheckEfficiency"].asString(); + result_.list.push_back(iTagBaseReportResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTaskSummaryResult::getMsg()const +{ + return msg_; +} + +bool GetTaskSummaryResult::getSucc()const +{ + return succ_; +} + +std::string GetTaskSummaryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTaskSummaryResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetTaskSummaryResult::getCode()const +{ + return code_; +} + +GetTaskSummaryResult::Result GetTaskSummaryResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTntConfListValueRequest.cc b/itag/src/model/GetTntConfListValueRequest.cc new file mode 100644 index 000000000..11614e867 --- /dev/null +++ b/itag/src/model/GetTntConfListValueRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTntConfListValueRequest; + +GetTntConfListValueRequest::GetTntConfListValueRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/getTntConfListValue"}; + setMethod(HttpRequest::Method::Post); +} + +GetTntConfListValueRequest::~GetTntConfListValueRequest() {} + +std::string GetTntConfListValueRequest::getBody() const { + return body_; +} + +void GetTntConfListValueRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTntConfListValueResult.cc b/itag/src/model/GetTntConfListValueResult.cc new file mode 100644 index 000000000..3011565ee --- /dev/null +++ b/itag/src/model/GetTntConfListValueResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTntConfListValueResult::GetTntConfListValueResult() : + ServiceResult() +{} + +GetTntConfListValueResult::GetTntConfListValueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTntConfListValueResult::~GetTntConfListValueResult() +{} + +void GetTntConfListValueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["PropKey"].isNull()) + resultObject.propKey = valueResultResultItem["PropKey"].asString(); + if(!valueResultResultItem["TntInstId"].isNull()) + resultObject.tntInstId = valueResultResultItem["TntInstId"].asString(); + if(!valueResultResultItem["PropValue"].isNull()) + resultObject.propValue = valueResultResultItem["PropValue"].asString(); + auto allPropListValue = value["PropListValue"]["PropListValue"]; + for (auto value : allPropListValue) + resultObject.propListValue.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTntConfListValueResult::getMsg()const +{ + return msg_; +} + +bool GetTntConfListValueResult::getSucc()const +{ + return succ_; +} + +std::string GetTntConfListValueResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTntConfListValueResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetTntConfListValueResult::getCode()const +{ + return code_; +} + +std::vector GetTntConfListValueResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetTntUserRoleRequest.cc b/itag/src/model/GetTntUserRoleRequest.cc new file mode 100644 index 000000000..acaf9547d --- /dev/null +++ b/itag/src/model/GetTntUserRoleRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetTntUserRoleRequest; + +GetTntUserRoleRequest::GetTntUserRoleRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/getTntUserRole"}; + setMethod(HttpRequest::Method::Post); +} + +GetTntUserRoleRequest::~GetTntUserRoleRequest() {} + +std::string GetTntUserRoleRequest::getBody() const { + return body_; +} + +void GetTntUserRoleRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetTntUserRoleResult.cc b/itag/src/model/GetTntUserRoleResult.cc new file mode 100644 index 000000000..b25c14fa8 --- /dev/null +++ b/itag/src/model/GetTntUserRoleResult.cc @@ -0,0 +1,111 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetTntUserRoleResult::GetTntUserRoleResult() : + ServiceResult() +{} + +GetTntUserRoleResult::GetTntUserRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTntUserRoleResult::~GetTntUserRoleResult() +{} + +void GetTntUserRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Role"].isNull()) + result_.role = resultNode["Role"].asString(); + if(!resultNode["Self"].isNull()) + result_.self = resultNode["Self"].asString() == "true"; + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["Email"].isNull()) + result_.email = resultNode["Email"].asString(); + if(!resultNode["Phone"].isNull()) + result_.phone = resultNode["Phone"].asString(); + if(!resultNode["SupplierId"].isNull()) + result_.supplierId = resultNode["SupplierId"].asString(); + if(!resultNode["Org"].isNull()) + result_.org = resultNode["Org"].asString(); + if(!resultNode["RefUserId"].isNull()) + result_.refUserId = resultNode["RefUserId"].asString(); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["UserName"].isNull()) + result_.userName = resultNode["UserName"].asString(); + if(!resultNode["AccountType"].isNull()) + result_.accountType = resultNode["AccountType"].asString(); + if(!resultNode["AccountNo"].isNull()) + result_.accountNo = resultNode["AccountNo"].asString(); + if(!resultNode["BizNo"].isNull()) + result_.bizNo = resultNode["BizNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetTntUserRoleResult::getMsg()const +{ + return msg_; +} + +bool GetTntUserRoleResult::getSucc()const +{ + return succ_; +} + +std::string GetTntUserRoleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetTntUserRoleResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetTntUserRoleResult::getCode()const +{ + return code_; +} + +GetTntUserRoleResult::Result GetTntUserRoleResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetUpdateTimeRequest.cc b/itag/src/model/GetUpdateTimeRequest.cc new file mode 100644 index 000000000..f46c764d1 --- /dev/null +++ b/itag/src/model/GetUpdateTimeRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetUpdateTimeRequest; + +GetUpdateTimeRequest::GetUpdateTimeRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/getUpdateTime"}; + setMethod(HttpRequest::Method::Post); +} + +GetUpdateTimeRequest::~GetUpdateTimeRequest() {} + +std::string GetUpdateTimeRequest::getBody() const { + return body_; +} + +void GetUpdateTimeRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetUpdateTimeResult.cc b/itag/src/model/GetUpdateTimeResult.cc new file mode 100644 index 000000000..b33dca9e6 --- /dev/null +++ b/itag/src/model/GetUpdateTimeResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetUpdateTimeResult::GetUpdateTimeResult() : + ServiceResult() +{} + +GetUpdateTimeResult::GetUpdateTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUpdateTimeResult::~GetUpdateTimeResult() +{} + +void GetUpdateTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetUpdateTimeResult::getMsg()const +{ + return msg_; +} + +bool GetUpdateTimeResult::getSucc()const +{ + return succ_; +} + +std::string GetUpdateTimeResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetUpdateTimeResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetUpdateTimeResult::getCode()const +{ + return code_; +} + +std::string GetUpdateTimeResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetUserMarkItemInfoRequest.cc b/itag/src/model/GetUserMarkItemInfoRequest.cc new file mode 100644 index 000000000..2987dc097 --- /dev/null +++ b/itag/src/model/GetUserMarkItemInfoRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetUserMarkItemInfoRequest; + +GetUserMarkItemInfoRequest::GetUserMarkItemInfoRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markitem/getUserMarkItemInfo"}; + setMethod(HttpRequest::Method::Post); +} + +GetUserMarkItemInfoRequest::~GetUserMarkItemInfoRequest() {} + +std::string GetUserMarkItemInfoRequest::getBody() const { + return body_; +} + +void GetUserMarkItemInfoRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetUserMarkItemInfoResult.cc b/itag/src/model/GetUserMarkItemInfoResult.cc new file mode 100644 index 000000000..fdf8edc99 --- /dev/null +++ b/itag/src/model/GetUserMarkItemInfoResult.cc @@ -0,0 +1,223 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetUserMarkItemInfoResult::GetUserMarkItemInfoResult() : + ServiceResult() +{} + +GetUserMarkItemInfoResult::GetUserMarkItemInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserMarkItemInfoResult::~GetUserMarkItemInfoResult() +{} + +void GetUserMarkItemInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto msgInfoNode = value["MsgInfo"]; + if(!msgInfoNode["Msg"].isNull()) + msgInfo_.msg = msgInfoNode["Msg"].asString(); + if(!msgInfoNode["MsgCn"].isNull()) + msgInfo_.msgCn = msgInfoNode["MsgCn"].asString(); + auto resultNode = value["Result"]; + if(!resultNode["UserMarkItemId"].isNull()) + result_.userMarkItemId = resultNode["UserMarkItemId"].asString(); + if(!resultNode["ConfirmRange"].isNull()) + result_.confirmRange = resultNode["ConfirmRange"].asString(); + if(!resultNode["IsConfirmed"].isNull()) + result_.isConfirmed = resultNode["IsConfirmed"].asString(); + if(!resultNode["NeedConfirm"].isNull()) + result_.needConfirm = resultNode["NeedConfirm"].asString(); + if(!resultNode["FeedbackRemark"].isNull()) + result_.feedbackRemark = resultNode["FeedbackRemark"].asString(); + if(!resultNode["FeedbackFlag"].isNull()) + result_.feedbackFlag = std::stoi(resultNode["FeedbackFlag"].asString()); + if(!resultNode["Operator"].isNull()) + result_._operator = resultNode["Operator"].asString(); + if(!resultNode["IsVoteEqual"].isNull()) + result_.isVoteEqual = resultNode["IsVoteEqual"].asString() == "true"; + if(!resultNode["MarkItemId"].isNull()) + result_.markItemId = resultNode["MarkItemId"].asString(); + if(!resultNode["DataId"].isNull()) + result_.dataId = resultNode["DataId"].asString(); + if(!resultNode["DatasetId"].isNull()) + result_.datasetId = resultNode["DatasetId"].asString(); + if(!resultNode["State"].isNull()) + result_.state = resultNode["State"].asString(); + if(!resultNode["Mine"].isNull()) + result_.mine = std::stoi(resultNode["Mine"].asString()); + if(!resultNode["SubTaskId"].isNull()) + result_.subTaskId = resultNode["SubTaskId"].asString(); + if(!resultNode["RejectFlag"].isNull()) + result_.rejectFlag = std::stoi(resultNode["RejectFlag"].asString()); + if(!resultNode["FixedFlag"].isNull()) + result_.fixedFlag = std::stoi(resultNode["FixedFlag"].asString()); + if(!resultNode["AbandonFlag"].isNull()) + result_.abandonFlag = std::stoi(resultNode["AbandonFlag"].asString()); + if(!resultNode["AbandonRemark"].isNull()) + result_.abandonRemark = resultNode["AbandonRemark"].asString(); + if(!resultNode["Weight"].isNull()) + result_.weight = std::stoi(resultNode["Weight"].asString()); + if(!resultNode["DataMeta"].isNull()) + result_.dataMeta = resultNode["DataMeta"].asString(); + auto allMarkResultListNode = resultNode["MarkResultList"]["MarkResultListItem"]; + for (auto resultNodeMarkResultListMarkResultListItem : allMarkResultListNode) + { + Result::MarkResultListItem markResultListItemObject; + if(!resultNodeMarkResultListMarkResultListItem["UserMarkResultId"].isNull()) + markResultListItemObject.userMarkResultId = resultNodeMarkResultListMarkResultListItem["UserMarkResultId"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["IsNeedVoteJudge"].isNull()) + markResultListItemObject.isNeedVoteJudge = resultNodeMarkResultListMarkResultListItem["IsNeedVoteJudge"].asString() == "true"; + if(!resultNodeMarkResultListMarkResultListItem["MarkResultId"].isNull()) + markResultListItemObject.markResultId = resultNodeMarkResultListMarkResultListItem["MarkResultId"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["MarkTitle"].isNull()) + markResultListItemObject.markTitle = resultNodeMarkResultListMarkResultListItem["MarkTitle"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["MarkResult"].isNull()) + markResultListItemObject.markResult = resultNodeMarkResultListMarkResultListItem["MarkResult"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["QuestionId"].isNull()) + markResultListItemObject.questionId = resultNodeMarkResultListMarkResultListItem["QuestionId"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["ResultType"].isNull()) + markResultListItemObject.resultType = resultNodeMarkResultListMarkResultListItem["ResultType"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["Version"].isNull()) + markResultListItemObject.version = resultNodeMarkResultListMarkResultListItem["Version"].asString(); + if(!resultNodeMarkResultListMarkResultListItem["MarkTime"].isNull()) + markResultListItemObject.markTime = resultNodeMarkResultListMarkResultListItem["MarkTime"].asString(); + auto progressNode = value["Progress"]; + if(!progressNode["Total"].isNull()) + markResultListItemObject.progress.total = std::stoi(progressNode["Total"].asString()); + if(!progressNode["Finished"].isNull()) + markResultListItemObject.progress.finished = std::stoi(progressNode["Finished"].asString()); + result_.markResultList.push_back(markResultListItemObject); + } + auto allVoteInfoListNode = resultNode["VoteInfoList"]["VoteInfoListItem"]; + for (auto resultNodeVoteInfoListVoteInfoListItem : allVoteInfoListNode) + { + Result::VoteInfoListItem voteInfoListItemObject; + if(!resultNodeVoteInfoListVoteInfoListItem["UserId"].isNull()) + voteInfoListItemObject.userId = resultNodeVoteInfoListVoteInfoListItem["UserId"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItem["UserName"].isNull()) + voteInfoListItemObject.userName = resultNodeVoteInfoListVoteInfoListItem["UserName"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItem["WorkFlow"].isNull()) + voteInfoListItemObject.workFlow = resultNodeVoteInfoListVoteInfoListItem["WorkFlow"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItem["UserMarkItemId"].isNull()) + voteInfoListItemObject.userMarkItemId = resultNodeVoteInfoListVoteInfoListItem["UserMarkItemId"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItem["IsAccept"].isNull()) + voteInfoListItemObject.isAccept = resultNodeVoteInfoListVoteInfoListItem["IsAccept"].asString() == "true"; + auto allMarkResultList1Node = resultNodeVoteInfoListVoteInfoListItem["MarkResultList"]["MarkResultListItem"]; + for (auto resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem : allMarkResultList1Node) + { + Result::VoteInfoListItem::MarkResultListItem2 markResultList1Object; + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["UserMarkResultId"].isNull()) + markResultList1Object.userMarkResultId = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["UserMarkResultId"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["IsNeedVoteJudge"].isNull()) + markResultList1Object.isNeedVoteJudge = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["IsNeedVoteJudge"].asString() == "true"; + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkResultId"].isNull()) + markResultList1Object.markResultId = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkResultId"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkTitle"].isNull()) + markResultList1Object.markTitle = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkTitle"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkResult"].isNull()) + markResultList1Object.markResult = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkResult"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["QuestionId"].isNull()) + markResultList1Object.questionId = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["QuestionId"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["ResultType"].isNull()) + markResultList1Object.resultType = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["ResultType"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["Version"].isNull()) + markResultList1Object.version = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["Version"].asString(); + if(!resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkTime"].isNull()) + markResultList1Object.markTime = resultNodeVoteInfoListVoteInfoListItemMarkResultListMarkResultListItem["MarkTime"].asString(); + auto progress3Node = value["Progress"]; + if(!progress3Node["Total"].isNull()) + markResultList1Object.progress3.total = std::stoi(progress3Node["Total"].asString()); + if(!progress3Node["Finished"].isNull()) + markResultList1Object.progress3.finished = std::stoi(progress3Node["Finished"].asString()); + voteInfoListItemObject.markResultList1.push_back(markResultList1Object); + } + result_.voteInfoList.push_back(voteInfoListItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetUserMarkItemInfoResult::getMsg()const +{ + return msg_; +} + +long GetUserMarkItemInfoResult::getRt()const +{ + return rt_; +} + +GetUserMarkItemInfoResult::MsgInfo GetUserMarkItemInfoResult::getMsgInfo()const +{ + return msgInfo_; +} + +bool GetUserMarkItemInfoResult::getSucc()const +{ + return succ_; +} + +std::string GetUserMarkItemInfoResult::getTraceId()const +{ + return traceId_; +} + +std::string GetUserMarkItemInfoResult::getHost()const +{ + return host_; +} + +std::string GetUserMarkItemInfoResult::getErrorCode()const +{ + return errorCode_; +} + +int GetUserMarkItemInfoResult::getCode()const +{ + return code_; +} + +GetUserMarkItemInfoResult::Result GetUserMarkItemInfoResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/GetUserRequest.cc b/itag/src/model/GetUserRequest.cc new file mode 100644 index 000000000..0067d2b3e --- /dev/null +++ b/itag/src/model/GetUserRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/user/getUser"}; + setMethod(HttpRequest::Method::Post); +} + +GetUserRequest::~GetUserRequest() {} + +std::string GetUserRequest::getBody() const { + return body_; +} + +void GetUserRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/GetUserResult.cc b/itag/src/model/GetUserResult.cc new file mode 100644 index 000000000..549bc05ec --- /dev/null +++ b/itag/src/model/GetUserResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +GetUserResult::GetUserResult() : + ServiceResult() +{} + +GetUserResult::GetUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserResult::~GetUserResult() +{} + +void GetUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Email"].isNull()) + result_.email = resultNode["Email"].asString(); + if(!resultNode["Phone"].isNull()) + result_.phone = resultNode["Phone"].asString(); + if(!resultNode["SupplierId"].isNull()) + result_.supplierId = resultNode["SupplierId"].asString(); + if(!resultNode["Org"].isNull()) + result_.org = resultNode["Org"].asString(); + if(!resultNode["RefUserId"].isNull()) + result_.refUserId = resultNode["RefUserId"].asString(); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["UserName"].isNull()) + result_.userName = resultNode["UserName"].asString(); + if(!resultNode["AccountType"].isNull()) + result_.accountType = resultNode["AccountType"].asString(); + if(!resultNode["AccountNo"].isNull()) + result_.accountNo = resultNode["AccountNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string GetUserResult::getMsg()const +{ + return msg_; +} + +bool GetUserResult::getSucc()const +{ + return succ_; +} + +std::string GetUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetUserResult::getErrInfo()const +{ + return errInfo_; +} + +std::string GetUserResult::getCode()const +{ + return code_; +} + +GetUserResult::Result GetUserResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ImportOptionTemplateRequest.cc b/itag/src/model/ImportOptionTemplateRequest.cc new file mode 100644 index 000000000..bf020b85f --- /dev/null +++ b/itag/src/model/ImportOptionTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ImportOptionTemplateRequest; + +ImportOptionTemplateRequest::ImportOptionTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/importTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +ImportOptionTemplateRequest::~ImportOptionTemplateRequest() {} + +std::string ImportOptionTemplateRequest::getBody() const { + return body_; +} + +void ImportOptionTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ImportOptionTemplateResult.cc b/itag/src/model/ImportOptionTemplateResult.cc new file mode 100644 index 000000000..297b269d8 --- /dev/null +++ b/itag/src/model/ImportOptionTemplateResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ImportOptionTemplateResult::ImportOptionTemplateResult() : + ServiceResult() +{} + +ImportOptionTemplateResult::ImportOptionTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportOptionTemplateResult::~ImportOptionTemplateResult() +{} + +void ImportOptionTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ImportOptionTemplateResult::getMsg()const +{ + return msg_; +} + +bool ImportOptionTemplateResult::getSucc()const +{ + return succ_; +} + +std::string ImportOptionTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ImportOptionTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +int ImportOptionTemplateResult::getCode()const +{ + return code_; +} + +long ImportOptionTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/InitSamplingUserSubTaskRequest.cc b/itag/src/model/InitSamplingUserSubTaskRequest.cc new file mode 100644 index 000000000..d950bd508 --- /dev/null +++ b/itag/src/model/InitSamplingUserSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::InitSamplingUserSubTaskRequest; + +InitSamplingUserSubTaskRequest::InitSamplingUserSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/initUserSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +InitSamplingUserSubTaskRequest::~InitSamplingUserSubTaskRequest() {} + +std::string InitSamplingUserSubTaskRequest::getBody() const { + return body_; +} + +void InitSamplingUserSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/InitSamplingUserSubTaskResult.cc b/itag/src/model/InitSamplingUserSubTaskResult.cc new file mode 100644 index 000000000..84815cd5d --- /dev/null +++ b/itag/src/model/InitSamplingUserSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +InitSamplingUserSubTaskResult::InitSamplingUserSubTaskResult() : + ServiceResult() +{} + +InitSamplingUserSubTaskResult::InitSamplingUserSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitSamplingUserSubTaskResult::~InitSamplingUserSubTaskResult() +{} + +void InitSamplingUserSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string InitSamplingUserSubTaskResult::getMsg()const +{ + return msg_; +} + +bool InitSamplingUserSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string InitSamplingUserSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string InitSamplingUserSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string InitSamplingUserSubTaskResult::getCode()const +{ + return code_; +} + +long InitSamplingUserSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListAssignedSubUserTaskRequest.cc b/itag/src/model/ListAssignedSubUserTaskRequest.cc new file mode 100644 index 000000000..bbf825efb --- /dev/null +++ b/itag/src/model/ListAssignedSubUserTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListAssignedSubUserTaskRequest; + +ListAssignedSubUserTaskRequest::ListAssignedSubUserTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/task/listAssignedSubUserTask"}; + setMethod(HttpRequest::Method::Post); +} + +ListAssignedSubUserTaskRequest::~ListAssignedSubUserTaskRequest() {} + +std::string ListAssignedSubUserTaskRequest::getBody() const { + return body_; +} + +void ListAssignedSubUserTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListAssignedSubUserTaskResult.cc b/itag/src/model/ListAssignedSubUserTaskResult.cc new file mode 100644 index 000000000..ef8ddfa82 --- /dev/null +++ b/itag/src/model/ListAssignedSubUserTaskResult.cc @@ -0,0 +1,125 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListAssignedSubUserTaskResult::ListAssignedSubUserTaskResult() : + ServiceResult() +{} + +ListAssignedSubUserTaskResult::ListAssignedSubUserTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAssignedSubUserTaskResult::~ListAssignedSubUserTaskResult() +{} + +void ListAssignedSubUserTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["TaskId"].isNull()) + listItemObject.taskId = resultNodeListListItem["TaskId"].asString(); + if(!resultNodeListListItem["TaskName"].isNull()) + listItemObject.taskName = resultNodeListListItem["TaskName"].asString(); + if(!resultNodeListListItem["Count"].isNull()) + listItemObject.count = std::stol(resultNodeListListItem["Count"].asString()); + if(!resultNodeListListItem["State"].isNull()) + listItemObject.state = resultNodeListListItem["State"].asString(); + if(!resultNodeListListItem["SubTaskId"].isNull()) + listItemObject.subTaskId = std::stol(resultNodeListListItem["SubTaskId"].asString()); + if(!resultNodeListListItem["CanRelease"].isNull()) + listItemObject.canRelease = resultNodeListListItem["CanRelease"].asString() == "true"; + if(!resultNodeListListItem["CanReassign"].isNull()) + listItemObject.canReassign = resultNodeListListItem["CanReassign"].asString() == "true"; + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + listItemObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + listItemObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + listItemObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + listItemObject.creator.accountNo = creatorNode["AccountNo"].asString(); + auto allTags = value["Tags"]["Tags"]; + for (auto value : allTags) + listItemObject.tags.push_back(value.asString()); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListAssignedSubUserTaskResult::getMsg()const +{ + return msg_; +} + +bool ListAssignedSubUserTaskResult::getSucc()const +{ + return succ_; +} + +std::string ListAssignedSubUserTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListAssignedSubUserTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListAssignedSubUserTaskResult::getCode()const +{ + return code_; +} + +ListAssignedSubUserTaskResult::Result ListAssignedSubUserTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListCheckTaskRequest.cc b/itag/src/model/ListCheckTaskRequest.cc new file mode 100644 index 000000000..f221db07f --- /dev/null +++ b/itag/src/model/ListCheckTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListCheckTaskRequest; + +ListCheckTaskRequest::ListCheckTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/listCheckTask"}; + setMethod(HttpRequest::Method::Post); +} + +ListCheckTaskRequest::~ListCheckTaskRequest() {} + +std::string ListCheckTaskRequest::getBody() const { + return body_; +} + +void ListCheckTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListCheckTaskResult.cc b/itag/src/model/ListCheckTaskResult.cc new file mode 100644 index 000000000..a92cba665 --- /dev/null +++ b/itag/src/model/ListCheckTaskResult.cc @@ -0,0 +1,161 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListCheckTaskResult::ListCheckTaskResult() : + ServiceResult() +{} + +ListCheckTaskResult::ListCheckTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCheckTaskResult::~ListCheckTaskResult() +{} + +void ListCheckTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["CanRelease"].isNull()) + resultObject.canRelease = valueResultResultItem["CanRelease"].asString() == "true"; + if(!valueResultResultItem["CanReassign"].isNull()) + resultObject.canReassign = valueResultResultItem["CanReassign"].asString() == "true"; + if(!valueResultResultItem["SubTaskId"].isNull()) + resultObject.subTaskId = valueResultResultItem["SubTaskId"].asString(); + if(!valueResultResultItem["UserSubTaskId"].isNull()) + resultObject.userSubTaskId = valueResultResultItem["UserSubTaskId"].asString(); + if(!valueResultResultItem["TaskName"].isNull()) + resultObject.taskName = valueResultResultItem["TaskName"].asString(); + if(!valueResultResultItem["TaskId"].isNull()) + resultObject.taskId = valueResultResultItem["TaskId"].asString(); + if(!valueResultResultItem["Source"].isNull()) + resultObject.source = valueResultResultItem["Source"].asString(); + if(!valueResultResultItem["State"].isNull()) + resultObject.state = valueResultResultItem["State"].asString(); + if(!valueResultResultItem["GmtCreate"].isNull()) + resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString(); + if(!valueResultResultItem["GmtModified"].isNull()) + resultObject.gmtModified = valueResultResultItem["GmtModified"].asString(); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + resultObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + resultObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + resultObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + resultObject.creator.accountNo = creatorNode["AccountNo"].asString(); + if(!creatorNode["Email"].isNull()) + resultObject.creator.email = creatorNode["Email"].asString(); + if(!creatorNode["PamNo"].isNull()) + resultObject.creator.pamNo = creatorNode["PamNo"].asString(); + if(!creatorNode["SupplierId"].isNull()) + resultObject.creator.supplierId = creatorNode["SupplierId"].asString(); + if(!creatorNode["SupplierName"].isNull()) + resultObject.creator.supplierName = creatorNode["SupplierName"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + resultObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + resultObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + resultObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + resultObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!modifierNode["Email"].isNull()) + resultObject.modifier.email = modifierNode["Email"].asString(); + if(!modifierNode["PamNo"].isNull()) + resultObject.modifier.pamNo = modifierNode["PamNo"].asString(); + if(!modifierNode["SupplierId"].isNull()) + resultObject.modifier.supplierId = modifierNode["SupplierId"].asString(); + if(!modifierNode["SupplierName"].isNull()) + resultObject.modifier.supplierName = modifierNode["SupplierName"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + resultObject.tags.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListCheckTaskResult::getMsg()const +{ + return msg_; +} + +long ListCheckTaskResult::getRt()const +{ + return rt_; +} + +bool ListCheckTaskResult::getSucc()const +{ + return succ_; +} + +std::string ListCheckTaskResult::getHost()const +{ + return host_; +} + +std::string ListCheckTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListCheckTaskResult::getErrInfo()const +{ + return errInfo_; +} + +int ListCheckTaskResult::getCode()const +{ + return code_; +} + +std::vector ListCheckTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListDatasetFieldsRequest.cc b/itag/src/model/ListDatasetFieldsRequest.cc new file mode 100644 index 000000000..78c8065d8 --- /dev/null +++ b/itag/src/model/ListDatasetFieldsRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListDatasetFieldsRequest; + +ListDatasetFieldsRequest::ListDatasetFieldsRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/dataproxy/listDatasetFields"}; + setMethod(HttpRequest::Method::Post); +} + +ListDatasetFieldsRequest::~ListDatasetFieldsRequest() {} + +std::string ListDatasetFieldsRequest::getBody() const { + return body_; +} + +void ListDatasetFieldsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListDatasetFieldsResult.cc b/itag/src/model/ListDatasetFieldsResult.cc new file mode 100644 index 000000000..f78ddc06d --- /dev/null +++ b/itag/src/model/ListDatasetFieldsResult.cc @@ -0,0 +1,110 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListDatasetFieldsResult::ListDatasetFieldsResult() : + ServiceResult() +{} + +ListDatasetFieldsResult::ListDatasetFieldsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatasetFieldsResult::~ListDatasetFieldsResult() +{} + +void ListDatasetFieldsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ITagDatasetField"]; + for (auto valueResultITagDatasetField : allResultNode) + { + ITagDatasetField resultObject; + if(!valueResultITagDatasetField["FieldName"].isNull()) + resultObject.fieldName = valueResultITagDatasetField["FieldName"].asString(); + if(!valueResultITagDatasetField["Type"].isNull()) + resultObject.type = valueResultITagDatasetField["Type"].asString(); + if(!valueResultITagDatasetField["Sensitive"].isNull()) + resultObject.sensitive = valueResultITagDatasetField["Sensitive"].asString() == "true"; + if(!valueResultITagDatasetField["Classify"].isNull()) + resultObject.classify = valueResultITagDatasetField["Classify"].asString(); + if(!valueResultITagDatasetField["Exif"].isNull()) + resultObject.exif = valueResultITagDatasetField["Exif"].asString(); + if(!valueResultITagDatasetField["sortKey"].isNull()) + resultObject.sortKey = valueResultITagDatasetField["sortKey"].asString() == "true"; + if(!valueResultITagDatasetField["FieldDesc"].isNull()) + resultObject.fieldDesc = valueResultITagDatasetField["FieldDesc"].asString(); + if(!valueResultITagDatasetField["FieldClassify"].isNull()) + resultObject.fieldClassify = valueResultITagDatasetField["FieldClassify"].asString(); + if(!valueResultITagDatasetField["Alias"].isNull()) + resultObject.alias = valueResultITagDatasetField["Alias"].asString(); + if(!valueResultITagDatasetField["FieldType"].isNull()) + resultObject.fieldType = valueResultITagDatasetField["FieldType"].asString(); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListDatasetFieldsResult::getMsg()const +{ + return msg_; +} + +bool ListDatasetFieldsResult::getSucc()const +{ + return succ_; +} + +std::string ListDatasetFieldsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListDatasetFieldsResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListDatasetFieldsResult::getCode()const +{ + return code_; +} + +std::vector ListDatasetFieldsResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListFinishedSubUserTaskRequest.cc b/itag/src/model/ListFinishedSubUserTaskRequest.cc new file mode 100644 index 000000000..479bc771d --- /dev/null +++ b/itag/src/model/ListFinishedSubUserTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListFinishedSubUserTaskRequest; + +ListFinishedSubUserTaskRequest::ListFinishedSubUserTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/task/listFinishedSubUserTask"}; + setMethod(HttpRequest::Method::Post); +} + +ListFinishedSubUserTaskRequest::~ListFinishedSubUserTaskRequest() {} + +std::string ListFinishedSubUserTaskRequest::getBody() const { + return body_; +} + +void ListFinishedSubUserTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListFinishedSubUserTaskResult.cc b/itag/src/model/ListFinishedSubUserTaskResult.cc new file mode 100644 index 000000000..96327b629 --- /dev/null +++ b/itag/src/model/ListFinishedSubUserTaskResult.cc @@ -0,0 +1,165 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListFinishedSubUserTaskResult::ListFinishedSubUserTaskResult() : + ServiceResult() +{} + +ListFinishedSubUserTaskResult::ListFinishedSubUserTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFinishedSubUserTaskResult::~ListFinishedSubUserTaskResult() +{} + +void ListFinishedSubUserTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stoi(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stoi(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["SubTaskId"].isNull()) + listItemObject.subTaskId = resultNodeListListItem["SubTaskId"].asString(); + if(!resultNodeListListItem["TaskName"].isNull()) + listItemObject.taskName = resultNodeListListItem["TaskName"].asString(); + if(!resultNodeListListItem["TaskId"].isNull()) + listItemObject.taskId = resultNodeListListItem["TaskId"].asString(); + if(!resultNodeListListItem["State"].isNull()) + listItemObject.state = resultNodeListListItem["State"].asString(); + if(!resultNodeListListItem["WorkTime"].isNull()) + listItemObject.workTime = resultNodeListListItem["WorkTime"].asString(); + if(!resultNodeListListItem["WorkNode"].isNull()) + listItemObject.workNode = resultNodeListListItem["WorkNode"].asString(); + if(!resultNodeListListItem["UserSubTaskId"].isNull()) + listItemObject.userSubTaskId = resultNodeListListItem["UserSubTaskId"].asString(); + if(!resultNodeListListItem["GmtCreate"].isNull()) + listItemObject.gmtCreate = resultNodeListListItem["GmtCreate"].asString(); + if(!resultNodeListListItem["GmtModified"].isNull()) + listItemObject.gmtModified = resultNodeListListItem["GmtModified"].asString(); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + listItemObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + listItemObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + listItemObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + listItemObject.creator.accountNo = creatorNode["AccountNo"].asString(); + if(!creatorNode["Email"].isNull()) + listItemObject.creator.email = creatorNode["Email"].asString(); + if(!creatorNode["PamNo"].isNull()) + listItemObject.creator.pamNo = creatorNode["PamNo"].asString(); + if(!creatorNode["SupplierId"].isNull()) + listItemObject.creator.supplierId = creatorNode["SupplierId"].asString(); + if(!creatorNode["SupplierName"].isNull()) + listItemObject.creator.supplierName = creatorNode["SupplierName"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + listItemObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + listItemObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + listItemObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + listItemObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!modifierNode["Email"].isNull()) + listItemObject.modifier.email = modifierNode["Email"].asString(); + if(!modifierNode["PamNo"].isNull()) + listItemObject.modifier.pamNo = modifierNode["PamNo"].asString(); + if(!modifierNode["SupplierId"].isNull()) + listItemObject.modifier.supplierId = modifierNode["SupplierId"].asString(); + if(!modifierNode["SupplierName"].isNull()) + listItemObject.modifier.supplierName = modifierNode["SupplierName"].asString(); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListFinishedSubUserTaskResult::getMsg()const +{ + return msg_; +} + +long ListFinishedSubUserTaskResult::getRt()const +{ + return rt_; +} + +bool ListFinishedSubUserTaskResult::getSucc()const +{ + return succ_; +} + +std::string ListFinishedSubUserTaskResult::getHost()const +{ + return host_; +} + +std::string ListFinishedSubUserTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListFinishedSubUserTaskResult::getErrInfo()const +{ + return errInfo_; +} + +int ListFinishedSubUserTaskResult::getCode()const +{ + return code_; +} + +ListFinishedSubUserTaskResult::Result ListFinishedSubUserTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListMarkableTaskRequest.cc b/itag/src/model/ListMarkableTaskRequest.cc new file mode 100644 index 000000000..79b239f96 --- /dev/null +++ b/itag/src/model/ListMarkableTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListMarkableTaskRequest; + +ListMarkableTaskRequest::ListMarkableTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/task/listMarkableTask"}; + setMethod(HttpRequest::Method::Post); +} + +ListMarkableTaskRequest::~ListMarkableTaskRequest() {} + +std::string ListMarkableTaskRequest::getBody() const { + return body_; +} + +void ListMarkableTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListMarkableTaskResult.cc b/itag/src/model/ListMarkableTaskResult.cc new file mode 100644 index 000000000..4f6b6e1c9 --- /dev/null +++ b/itag/src/model/ListMarkableTaskResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListMarkableTaskResult::ListMarkableTaskResult() : + ServiceResult() +{} + +ListMarkableTaskResult::ListMarkableTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMarkableTaskResult::~ListMarkableTaskResult() +{} + +void ListMarkableTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["TaskId"].isNull()) + listItemObject.taskId = resultNodeListListItem["TaskId"].asString(); + if(!resultNodeListListItem["TaskName"].isNull()) + listItemObject.taskName = resultNodeListListItem["TaskName"].asString(); + if(!resultNodeListListItem["Count"].isNull()) + listItemObject.count = std::stol(resultNodeListListItem["Count"].asString()); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + listItemObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + listItemObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + listItemObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + listItemObject.creator.accountNo = creatorNode["AccountNo"].asString(); + auto allTags = value["Tags"]["Tags"]; + for (auto value : allTags) + listItemObject.tags.push_back(value.asString()); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListMarkableTaskResult::getMsg()const +{ + return msg_; +} + +bool ListMarkableTaskResult::getSucc()const +{ + return succ_; +} + +std::string ListMarkableTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMarkableTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListMarkableTaskResult::getCode()const +{ + return code_; +} + +ListMarkableTaskResult::Result ListMarkableTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListSamplingHandlerUserRequest.cc b/itag/src/model/ListSamplingHandlerUserRequest.cc new file mode 100644 index 000000000..911004c81 --- /dev/null +++ b/itag/src/model/ListSamplingHandlerUserRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListSamplingHandlerUserRequest; + +ListSamplingHandlerUserRequest::ListSamplingHandlerUserRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/listHandlerUsers"}; + setMethod(HttpRequest::Method::Post); +} + +ListSamplingHandlerUserRequest::~ListSamplingHandlerUserRequest() {} + +std::string ListSamplingHandlerUserRequest::getBody() const { + return body_; +} + +void ListSamplingHandlerUserRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListSamplingHandlerUserResult.cc b/itag/src/model/ListSamplingHandlerUserResult.cc new file mode 100644 index 000000000..9a66d78b8 --- /dev/null +++ b/itag/src/model/ListSamplingHandlerUserResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListSamplingHandlerUserResult::ListSamplingHandlerUserResult() : + ServiceResult() +{} + +ListSamplingHandlerUserResult::ListSamplingHandlerUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSamplingHandlerUserResult::~ListSamplingHandlerUserResult() +{} + +void ListSamplingHandlerUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto iTagSamplingStatsDTONode = resultNode["ITagSamplingStatsDTO"]; + if(!iTagSamplingStatsDTONode["HasNonCompleteTask"].isNull()) + result_.iTagSamplingStatsDTO.hasNonCompleteTask = std::stoi(iTagSamplingStatsDTONode["HasNonCompleteTask"].asString()); + if(!iTagSamplingStatsDTONode["SubUserTaskId"].isNull()) + result_.iTagSamplingStatsDTO.subUserTaskId = iTagSamplingStatsDTONode["SubUserTaskId"].asString(); + if(!iTagSamplingStatsDTONode["WorkUserMap"].isNull()) + result_.iTagSamplingStatsDTO.workUserMap = iTagSamplingStatsDTONode["WorkUserMap"].asString(); + if(!iTagSamplingStatsDTONode["MarkResultKVMap"].isNull()) + result_.iTagSamplingStatsDTO.markResultKVMap = iTagSamplingStatsDTONode["MarkResultKVMap"].asString(); + if(!iTagSamplingStatsDTONode["TotalSubTaskCount"].isNull()) + result_.iTagSamplingStatsDTO.totalSubTaskCount = iTagSamplingStatsDTONode["TotalSubTaskCount"].asString(); + if(!iTagSamplingStatsDTONode["TotalMarkItemCount"].isNull()) + result_.iTagSamplingStatsDTO.totalMarkItemCount = iTagSamplingStatsDTONode["TotalMarkItemCount"].asString(); + if(!iTagSamplingStatsDTONode["SubTaskAndMarkItemMap"].isNull()) + result_.iTagSamplingStatsDTO.subTaskAndMarkItemMap = iTagSamplingStatsDTONode["SubTaskAndMarkItemMap"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListSamplingHandlerUserResult::getMsg()const +{ + return msg_; +} + +bool ListSamplingHandlerUserResult::getSucc()const +{ + return succ_; +} + +std::string ListSamplingHandlerUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSamplingHandlerUserResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListSamplingHandlerUserResult::getCode()const +{ + return code_; +} + +ListSamplingHandlerUserResult::Result ListSamplingHandlerUserResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListSamplingResultMetaRequest.cc b/itag/src/model/ListSamplingResultMetaRequest.cc new file mode 100644 index 000000000..da4d51047 --- /dev/null +++ b/itag/src/model/ListSamplingResultMetaRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListSamplingResultMetaRequest; + +ListSamplingResultMetaRequest::ListSamplingResultMetaRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/listResultMeta"}; + setMethod(HttpRequest::Method::Post); +} + +ListSamplingResultMetaRequest::~ListSamplingResultMetaRequest() {} + +std::string ListSamplingResultMetaRequest::getBody() const { + return body_; +} + +void ListSamplingResultMetaRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListSamplingResultMetaResult.cc b/itag/src/model/ListSamplingResultMetaResult.cc new file mode 100644 index 000000000..7c03a3fd4 --- /dev/null +++ b/itag/src/model/ListSamplingResultMetaResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListSamplingResultMetaResult::ListSamplingResultMetaResult() : + ServiceResult() +{} + +ListSamplingResultMetaResult::ListSamplingResultMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSamplingResultMetaResult::~ListSamplingResultMetaResult() +{} + +void ListSamplingResultMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto iTagSamplingStatsDTONode = resultNode["ITagSamplingStatsDTO"]; + if(!iTagSamplingStatsDTONode["HasNonCompleteTask"].isNull()) + result_.iTagSamplingStatsDTO.hasNonCompleteTask = std::stoi(iTagSamplingStatsDTONode["HasNonCompleteTask"].asString()); + if(!iTagSamplingStatsDTONode["SubUserTaskId"].isNull()) + result_.iTagSamplingStatsDTO.subUserTaskId = iTagSamplingStatsDTONode["SubUserTaskId"].asString(); + if(!iTagSamplingStatsDTONode["WorkUserMap"].isNull()) + result_.iTagSamplingStatsDTO.workUserMap = iTagSamplingStatsDTONode["WorkUserMap"].asString(); + if(!iTagSamplingStatsDTONode["MarkResultKVMap"].isNull()) + result_.iTagSamplingStatsDTO.markResultKVMap = iTagSamplingStatsDTONode["MarkResultKVMap"].asString(); + if(!iTagSamplingStatsDTONode["TotalSubTaskCount"].isNull()) + result_.iTagSamplingStatsDTO.totalSubTaskCount = iTagSamplingStatsDTONode["TotalSubTaskCount"].asString(); + if(!iTagSamplingStatsDTONode["TotalMarkItemCount"].isNull()) + result_.iTagSamplingStatsDTO.totalMarkItemCount = iTagSamplingStatsDTONode["TotalMarkItemCount"].asString(); + if(!iTagSamplingStatsDTONode["SubTaskAndMarkItemMap"].isNull()) + result_.iTagSamplingStatsDTO.subTaskAndMarkItemMap = iTagSamplingStatsDTONode["SubTaskAndMarkItemMap"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListSamplingResultMetaResult::getMsg()const +{ + return msg_; +} + +bool ListSamplingResultMetaResult::getSucc()const +{ + return succ_; +} + +std::string ListSamplingResultMetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSamplingResultMetaResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListSamplingResultMetaResult::getCode()const +{ + return code_; +} + +ListSamplingResultMetaResult::Result ListSamplingResultMetaResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListSamplingUsersRequest.cc b/itag/src/model/ListSamplingUsersRequest.cc new file mode 100644 index 000000000..d00eb26c4 --- /dev/null +++ b/itag/src/model/ListSamplingUsersRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListSamplingUsersRequest; + +ListSamplingUsersRequest::ListSamplingUsersRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/task/listSamplingUsers"}; + setMethod(HttpRequest::Method::Post); +} + +ListSamplingUsersRequest::~ListSamplingUsersRequest() {} + +std::string ListSamplingUsersRequest::getBody() const { + return body_; +} + +void ListSamplingUsersRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListSamplingUsersResult.cc b/itag/src/model/ListSamplingUsersResult.cc new file mode 100644 index 000000000..9d273d1e2 --- /dev/null +++ b/itag/src/model/ListSamplingUsersResult.cc @@ -0,0 +1,129 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListSamplingUsersResult::ListSamplingUsersResult() : + ServiceResult() +{} + +ListSamplingUsersResult::ListSamplingUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSamplingUsersResult::~ListSamplingUsersResult() +{} + +void ListSamplingUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stoi(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stoi(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["UserId"].isNull()) + listItemObject.userId = resultNodeListListItem["UserId"].asString(); + if(!resultNodeListListItem["UserName"].isNull()) + listItemObject.userName = resultNodeListListItem["UserName"].asString(); + if(!resultNodeListListItem["AccountType"].isNull()) + listItemObject.accountType = resultNodeListListItem["AccountType"].asString(); + if(!resultNodeListListItem["AccountNo"].isNull()) + listItemObject.accountNo = resultNodeListListItem["AccountNo"].asString(); + if(!resultNodeListListItem["Email"].isNull()) + listItemObject.email = resultNodeListListItem["Email"].asString(); + if(!resultNodeListListItem["PamNo"].isNull()) + listItemObject.pamNo = resultNodeListListItem["PamNo"].asString(); + if(!resultNodeListListItem["SupplierId"].isNull()) + listItemObject.supplierId = resultNodeListListItem["SupplierId"].asString(); + if(!resultNodeListListItem["SupplierName"].isNull()) + listItemObject.supplierName = resultNodeListListItem["SupplierName"].asString(); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListSamplingUsersResult::getMsg()const +{ + return msg_; +} + +long ListSamplingUsersResult::getRt()const +{ + return rt_; +} + +bool ListSamplingUsersResult::getSucc()const +{ + return succ_; +} + +std::string ListSamplingUsersResult::getHost()const +{ + return host_; +} + +std::string ListSamplingUsersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSamplingUsersResult::getErrInfo()const +{ + return errInfo_; +} + +int ListSamplingUsersResult::getCode()const +{ + return code_; +} + +ListSamplingUsersResult::Result ListSamplingUsersResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListTntConfigRequest.cc b/itag/src/model/ListTntConfigRequest.cc new file mode 100644 index 000000000..b85d2437f --- /dev/null +++ b/itag/src/model/ListTntConfigRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListTntConfigRequest; + +ListTntConfigRequest::ListTntConfigRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/listTntConfig"}; + setMethod(HttpRequest::Method::Post); +} + +ListTntConfigRequest::~ListTntConfigRequest() {} + +std::string ListTntConfigRequest::getBody() const { + return body_; +} + +void ListTntConfigRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListTntConfigResult.cc b/itag/src/model/ListTntConfigResult.cc new file mode 100644 index 000000000..21e36d880 --- /dev/null +++ b/itag/src/model/ListTntConfigResult.cc @@ -0,0 +1,94 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListTntConfigResult::ListTntConfigResult() : + ServiceResult() +{} + +ListTntConfigResult::ListTntConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTntConfigResult::~ListTntConfigResult() +{} + +void ListTntConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PropKey"].isNull()) + result_.propKey = resultNode["PropKey"].asString(); + if(!resultNode["TntInstId"].isNull()) + result_.tntInstId = resultNode["TntInstId"].asString(); + if(!resultNode["PropValue"].isNull()) + result_.propValue = resultNode["PropValue"].asString(); + auto allPropListValue = resultNode["PropListValue"]["PropListValue"]; + for (auto value : allPropListValue) + result_.propListValue.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListTntConfigResult::getMsg()const +{ + return msg_; +} + +bool ListTntConfigResult::getSucc()const +{ + return succ_; +} + +std::string ListTntConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListTntConfigResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListTntConfigResult::getCode()const +{ + return code_; +} + +ListTntConfigResult::Result ListTntConfigResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ListWorkNodeUsersRequest.cc b/itag/src/model/ListWorkNodeUsersRequest.cc new file mode 100644 index 000000000..7057ba702 --- /dev/null +++ b/itag/src/model/ListWorkNodeUsersRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ListWorkNodeUsersRequest; + +ListWorkNodeUsersRequest::ListWorkNodeUsersRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/listWorkNodeUsers"}; + setMethod(HttpRequest::Method::Post); +} + +ListWorkNodeUsersRequest::~ListWorkNodeUsersRequest() {} + +std::string ListWorkNodeUsersRequest::getBody() const { + return body_; +} + +void ListWorkNodeUsersRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ListWorkNodeUsersResult.cc b/itag/src/model/ListWorkNodeUsersResult.cc new file mode 100644 index 000000000..44e9e296d --- /dev/null +++ b/itag/src/model/ListWorkNodeUsersResult.cc @@ -0,0 +1,108 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +ListWorkNodeUsersResult::ListWorkNodeUsersResult() : + ServiceResult() +{} + +ListWorkNodeUsersResult::ListWorkNodeUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkNodeUsersResult::~ListWorkNodeUsersResult() +{} + +void ListWorkNodeUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagSimpleUserVO"]; + for (auto resultNodeListITagSimpleUserVO : allListNode) + { + Result::ITagSimpleUserVO iTagSimpleUserVOObject; + auto iTagSimpleUserVO1Node = value["ITagSimpleUserVO"]; + if(!iTagSimpleUserVO1Node["UserId"].isNull()) + iTagSimpleUserVOObject.iTagSimpleUserVO1.userId = iTagSimpleUserVO1Node["UserId"].asString(); + if(!iTagSimpleUserVO1Node["UserName"].isNull()) + iTagSimpleUserVOObject.iTagSimpleUserVO1.userName = iTagSimpleUserVO1Node["UserName"].asString(); + if(!iTagSimpleUserVO1Node["AccountType"].isNull()) + iTagSimpleUserVOObject.iTagSimpleUserVO1.accountType = iTagSimpleUserVO1Node["AccountType"].asString(); + if(!iTagSimpleUserVO1Node["AccountNo"].isNull()) + iTagSimpleUserVOObject.iTagSimpleUserVO1.accountNo = iTagSimpleUserVO1Node["AccountNo"].asString(); + result_.list.push_back(iTagSimpleUserVOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListWorkNodeUsersResult::getMsg()const +{ + return msg_; +} + +bool ListWorkNodeUsersResult::getSucc()const +{ + return succ_; +} + +std::string ListWorkNodeUsersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListWorkNodeUsersResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ListWorkNodeUsersResult::getCode()const +{ + return code_; +} + +ListWorkNodeUsersResult::Result ListWorkNodeUsersResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ManualCalReportRequest.cc b/itag/src/model/ManualCalReportRequest.cc new file mode 100644 index 000000000..566e68ad3 --- /dev/null +++ b/itag/src/model/ManualCalReportRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ManualCalReportRequest; + +ManualCalReportRequest::ManualCalReportRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/inner/api/v1/dataSync/manualCalReport"}; + setMethod(HttpRequest::Method::Post); +} + +ManualCalReportRequest::~ManualCalReportRequest() {} + +std::string ManualCalReportRequest::getBody() const { + return body_; +} + +void ManualCalReportRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ManualCalReportResult.cc b/itag/src/model/ManualCalReportResult.cc new file mode 100644 index 000000000..a7e7e97ea --- /dev/null +++ b/itag/src/model/ManualCalReportResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ManualCalReportResult::ManualCalReportResult() : + ServiceResult() +{} + +ManualCalReportResult::ManualCalReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ManualCalReportResult::~ManualCalReportResult() +{} + +void ManualCalReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ManualCalReportResult::getMsg()const +{ + return msg_; +} + +bool ManualCalReportResult::getSucc()const +{ + return succ_; +} + +std::string ManualCalReportResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ManualCalReportResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ManualCalReportResult::getCode()const +{ + return code_; +} + +std::string ManualCalReportResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/MngReleaseUserSubTaskRequest.cc b/itag/src/model/MngReleaseUserSubTaskRequest.cc new file mode 100644 index 000000000..da0c2cdd0 --- /dev/null +++ b/itag/src/model/MngReleaseUserSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::MngReleaseUserSubTaskRequest; + +MngReleaseUserSubTaskRequest::MngReleaseUserSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usersubtask/mngReleaseUserSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +MngReleaseUserSubTaskRequest::~MngReleaseUserSubTaskRequest() {} + +std::string MngReleaseUserSubTaskRequest::getBody() const { + return body_; +} + +void MngReleaseUserSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/MngReleaseUserSubTaskResult.cc b/itag/src/model/MngReleaseUserSubTaskResult.cc new file mode 100644 index 000000000..59c78613f --- /dev/null +++ b/itag/src/model/MngReleaseUserSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +MngReleaseUserSubTaskResult::MngReleaseUserSubTaskResult() : + ServiceResult() +{} + +MngReleaseUserSubTaskResult::MngReleaseUserSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MngReleaseUserSubTaskResult::~MngReleaseUserSubTaskResult() +{} + +void MngReleaseUserSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string MngReleaseUserSubTaskResult::getMsg()const +{ + return msg_; +} + +bool MngReleaseUserSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string MngReleaseUserSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string MngReleaseUserSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string MngReleaseUserSubTaskResult::getCode()const +{ + return code_; +} + +bool MngReleaseUserSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/OfflineTaskRequest.cc b/itag/src/model/OfflineTaskRequest.cc new file mode 100644 index 000000000..df57830a9 --- /dev/null +++ b/itag/src/model/OfflineTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::OfflineTaskRequest; + +OfflineTaskRequest::OfflineTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/offline"}; + setMethod(HttpRequest::Method::Post); +} + +OfflineTaskRequest::~OfflineTaskRequest() {} + +std::string OfflineTaskRequest::getBody() const { + return body_; +} + +void OfflineTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/OfflineTaskResult.cc b/itag/src/model/OfflineTaskResult.cc new file mode 100644 index 000000000..36eedc1bc --- /dev/null +++ b/itag/src/model/OfflineTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +OfflineTaskResult::OfflineTaskResult() : + ServiceResult() +{} + +OfflineTaskResult::OfflineTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OfflineTaskResult::~OfflineTaskResult() +{} + +void OfflineTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string OfflineTaskResult::getMsg()const +{ + return msg_; +} + +bool OfflineTaskResult::getSucc()const +{ + return succ_; +} + +std::string OfflineTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string OfflineTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string OfflineTaskResult::getCode()const +{ + return code_; +} + +bool OfflineTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/OnlineTaskRequest.cc b/itag/src/model/OnlineTaskRequest.cc new file mode 100644 index 000000000..db3c150a3 --- /dev/null +++ b/itag/src/model/OnlineTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::OnlineTaskRequest; + +OnlineTaskRequest::OnlineTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/online"}; + setMethod(HttpRequest::Method::Post); +} + +OnlineTaskRequest::~OnlineTaskRequest() {} + +std::string OnlineTaskRequest::getBody() const { + return body_; +} + +void OnlineTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/OnlineTaskResult.cc b/itag/src/model/OnlineTaskResult.cc new file mode 100644 index 000000000..a87cba6e8 --- /dev/null +++ b/itag/src/model/OnlineTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +OnlineTaskResult::OnlineTaskResult() : + ServiceResult() +{} + +OnlineTaskResult::OnlineTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OnlineTaskResult::~OnlineTaskResult() +{} + +void OnlineTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string OnlineTaskResult::getMsg()const +{ + return msg_; +} + +bool OnlineTaskResult::getSucc()const +{ + return succ_; +} + +std::string OnlineTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string OnlineTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string OnlineTaskResult::getCode()const +{ + return code_; +} + +bool OnlineTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewDataMetaRequest.cc b/itag/src/model/PageViewDataMetaRequest.cc new file mode 100644 index 000000000..269cb64cc --- /dev/null +++ b/itag/src/model/PageViewDataMetaRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewDataMetaRequest; + +PageViewDataMetaRequest::PageViewDataMetaRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/dataproxy/pageViewDataMeta"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewDataMetaRequest::~PageViewDataMetaRequest() {} + +std::string PageViewDataMetaRequest::getBody() const { + return body_; +} + +void PageViewDataMetaRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewDataMetaResult.cc b/itag/src/model/PageViewDataMetaResult.cc new file mode 100644 index 000000000..2049bac85 --- /dev/null +++ b/itag/src/model/PageViewDataMetaResult.cc @@ -0,0 +1,111 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewDataMetaResult::PageViewDataMetaResult() : + ServiceResult() +{} + +PageViewDataMetaResult::PageViewDataMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewDataMetaResult::~PageViewDataMetaResult() +{} + +void PageViewDataMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["DatasetId"].isNull()) + listItemObject.datasetId = resultNodeListListItem["DatasetId"].asString(); + if(!resultNodeListListItem["Id"].isNull()) + listItemObject.id = resultNodeListListItem["Id"].asString(); + if(!resultNodeListListItem["OutDataId"].isNull()) + listItemObject.outDataId = resultNodeListListItem["OutDataId"].asString(); + if(!resultNodeListListItem["OutGroupKey"].isNull()) + listItemObject.outGroupKey = resultNodeListListItem["OutGroupKey"].asString(); + if(!resultNodeListListItem["BatchNo"].isNull()) + listItemObject.batchNo = resultNodeListListItem["BatchNo"].asString(); + if(!resultNodeListListItem["MetaInfos"].isNull()) + listItemObject.metaInfos = resultNodeListListItem["MetaInfos"].asString(); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewDataMetaResult::getMsg()const +{ + return msg_; +} + +bool PageViewDataMetaResult::getSucc()const +{ + return succ_; +} + +std::string PageViewDataMetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewDataMetaResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewDataMetaResult::getCode()const +{ + return code_; +} + +PageViewDataMetaResult::Result PageViewDataMetaResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewDatasetProxyRequest.cc b/itag/src/model/PageViewDatasetProxyRequest.cc new file mode 100644 index 000000000..a2c2dd499 --- /dev/null +++ b/itag/src/model/PageViewDatasetProxyRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewDatasetProxyRequest; + +PageViewDatasetProxyRequest::PageViewDatasetProxyRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/dataproxy/pageViewDatasetProxy"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewDatasetProxyRequest::~PageViewDatasetProxyRequest() {} + +std::string PageViewDatasetProxyRequest::getBody() const { + return body_; +} + +void PageViewDatasetProxyRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewDatasetProxyResult.cc b/itag/src/model/PageViewDatasetProxyResult.cc new file mode 100644 index 000000000..000c75fe0 --- /dev/null +++ b/itag/src/model/PageViewDatasetProxyResult.cc @@ -0,0 +1,172 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewDatasetProxyResult::PageViewDatasetProxyResult() : + ServiceResult() +{} + +PageViewDatasetProxyResult::PageViewDatasetProxyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewDatasetProxyResult::~PageViewDatasetProxyResult() +{} + +void PageViewDatasetProxyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["GmtCreate"].isNull()) + listItemObject.gmtCreate = resultNodeListListItem["GmtCreate"].asString(); + if(!resultNodeListListItem["GmtModified"].isNull()) + listItemObject.gmtModified = resultNodeListListItem["GmtModified"].asString(); + if(!resultNodeListListItem["Name"].isNull()) + listItemObject.name = resultNodeListListItem["Name"].asString(); + if(!resultNodeListListItem["Description"].isNull()) + listItemObject.description = resultNodeListListItem["Description"].asString(); + if(!resultNodeListListItem["Source"].isNull()) + listItemObject.source = resultNodeListListItem["Source"].asString(); + if(!resultNodeListListItem["SourceBizId"].isNull()) + listItemObject.sourceBizId = resultNodeListListItem["SourceBizId"].asString(); + if(!resultNodeListListItem["ProxyTarget"].isNull()) + listItemObject.proxyTarget = resultNodeListListItem["ProxyTarget"].asString(); + if(!resultNodeListListItem["ProxyConfigs"].isNull()) + listItemObject.proxyConfigs = resultNodeListListItem["ProxyConfigs"].asString(); + if(!resultNodeListListItem["SafetyLevel"].isNull()) + listItemObject.safetyLevel = std::stol(resultNodeListListItem["SafetyLevel"].asString()); + if(!resultNodeListListItem["sharedMode"].isNull()) + listItemObject.sharedMode = resultNodeListListItem["sharedMode"].asString(); + if(!resultNodeListListItem["TotalNum"].isNull()) + listItemObject.totalNum = std::stol(resultNodeListListItem["TotalNum"].asString()); + if(!resultNodeListListItem["TntInstId"].isNull()) + listItemObject.tntInstId = resultNodeListListItem["TntInstId"].asString(); + if(!resultNodeListListItem["Status"].isNull()) + listItemObject.status = std::stol(resultNodeListListItem["Status"].asString()); + if(!resultNodeListListItem["RunMsg"].isNull()) + listItemObject.runMsg = resultNodeListListItem["RunMsg"].asString(); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + listItemObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + listItemObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + listItemObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + listItemObject.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + listItemObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + listItemObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + listItemObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + listItemObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto schemaNode = value["Schema"]; + auto allFieldsNode = schemaNode["Fields"]["FieldsItem"]; + for (auto schemaNodeFieldsFieldsItem : allFieldsNode) + { + Result::ListItem::Schema::FieldsItem fieldsItemObject; + if(!schemaNodeFieldsFieldsItem["FieldName"].isNull()) + fieldsItemObject.fieldName = schemaNodeFieldsFieldsItem["FieldName"].asString(); + if(!schemaNodeFieldsFieldsItem["Type"].isNull()) + fieldsItemObject.type = schemaNodeFieldsFieldsItem["Type"].asString(); + if(!schemaNodeFieldsFieldsItem["Sensitive"].isNull()) + fieldsItemObject.sensitive = schemaNodeFieldsFieldsItem["Sensitive"].asString() == "true"; + if(!schemaNodeFieldsFieldsItem["Classify"].isNull()) + fieldsItemObject.classify = schemaNodeFieldsFieldsItem["Classify"].asString(); + if(!schemaNodeFieldsFieldsItem["Exif"].isNull()) + fieldsItemObject.exif = schemaNodeFieldsFieldsItem["Exif"].asString(); + if(!schemaNodeFieldsFieldsItem["sortKey"].isNull()) + fieldsItemObject.sortKey = schemaNodeFieldsFieldsItem["sortKey"].asString() == "true"; + if(!schemaNodeFieldsFieldsItem["FieldDesc"].isNull()) + fieldsItemObject.fieldDesc = schemaNodeFieldsFieldsItem["FieldDesc"].asString(); + if(!schemaNodeFieldsFieldsItem["FieldClassify"].isNull()) + fieldsItemObject.fieldClassify = schemaNodeFieldsFieldsItem["FieldClassify"].asString(); + if(!schemaNodeFieldsFieldsItem["Alias"].isNull()) + fieldsItemObject.alias = schemaNodeFieldsFieldsItem["Alias"].asString(); + if(!schemaNodeFieldsFieldsItem["FieldType"].isNull()) + fieldsItemObject.fieldType = schemaNodeFieldsFieldsItem["FieldType"].asString(); + listItemObject.schema.fields.push_back(fieldsItemObject); + } + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewDatasetProxyResult::getMsg()const +{ + return msg_; +} + +bool PageViewDatasetProxyResult::getSucc()const +{ + return succ_; +} + +std::string PageViewDatasetProxyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewDatasetProxyResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewDatasetProxyResult::getCode()const +{ + return code_; +} + +PageViewDatasetProxyResult::Result PageViewDatasetProxyResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewFlowJobRequest.cc b/itag/src/model/PageViewFlowJobRequest.cc new file mode 100644 index 000000000..45b87feae --- /dev/null +++ b/itag/src/model/PageViewFlowJobRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewFlowJobRequest; + +PageViewFlowJobRequest::PageViewFlowJobRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/flowjob/pageViewFlowJob"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewFlowJobRequest::~PageViewFlowJobRequest() {} + +std::string PageViewFlowJobRequest::getBody() const { + return body_; +} + +void PageViewFlowJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewFlowJobResult.cc b/itag/src/model/PageViewFlowJobResult.cc new file mode 100644 index 000000000..465aca5f4 --- /dev/null +++ b/itag/src/model/PageViewFlowJobResult.cc @@ -0,0 +1,133 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewFlowJobResult::PageViewFlowJobResult() : + ServiceResult() +{} + +PageViewFlowJobResult::PageViewFlowJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewFlowJobResult::~PageViewFlowJobResult() +{} + +void PageViewFlowJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagFlowJobStatResponse"]; + for (auto resultNodeListITagFlowJobStatResponse : allListNode) + { + Result::ITagFlowJobStatResponse iTagFlowJobStatResponseObject; + if(!resultNodeListITagFlowJobStatResponse["RunInstId"].isNull()) + iTagFlowJobStatResponseObject.runInstId = resultNodeListITagFlowJobStatResponse["RunInstId"].asString(); + if(!resultNodeListITagFlowJobStatResponse["FlowId"].isNull()) + iTagFlowJobStatResponseObject.flowId = resultNodeListITagFlowJobStatResponse["FlowId"].asString(); + if(!resultNodeListITagFlowJobStatResponse["State"].isNull()) + iTagFlowJobStatResponseObject.state = resultNodeListITagFlowJobStatResponse["State"].asString(); + if(!resultNodeListITagFlowJobStatResponse["RunMsg"].isNull()) + iTagFlowJobStatResponseObject.runMsg = resultNodeListITagFlowJobStatResponse["RunMsg"].asString(); + if(!resultNodeListITagFlowJobStatResponse["LogView"].isNull()) + iTagFlowJobStatResponseObject.logView = resultNodeListITagFlowJobStatResponse["LogView"].asString(); + if(!resultNodeListITagFlowJobStatResponse["RunRet"].isNull()) + iTagFlowJobStatResponseObject.runRet = resultNodeListITagFlowJobStatResponse["RunRet"].asString(); + if(!resultNodeListITagFlowJobStatResponse["GmtCreate"].isNull()) + iTagFlowJobStatResponseObject.gmtCreate = resultNodeListITagFlowJobStatResponse["GmtCreate"].asString(); + if(!resultNodeListITagFlowJobStatResponse["GmtModified"].isNull()) + iTagFlowJobStatResponseObject.gmtModified = resultNodeListITagFlowJobStatResponse["GmtModified"].asString(); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + iTagFlowJobStatResponseObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + iTagFlowJobStatResponseObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + iTagFlowJobStatResponseObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + iTagFlowJobStatResponseObject.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + iTagFlowJobStatResponseObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + iTagFlowJobStatResponseObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + iTagFlowJobStatResponseObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + iTagFlowJobStatResponseObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + result_.list.push_back(iTagFlowJobStatResponseObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewFlowJobResult::getMsg()const +{ + return msg_; +} + +bool PageViewFlowJobResult::getSucc()const +{ + return succ_; +} + +std::string PageViewFlowJobResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewFlowJobResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewFlowJobResult::getCode()const +{ + return code_; +} + +PageViewFlowJobResult::Result PageViewFlowJobResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewModelRequest.cc b/itag/src/model/PageViewModelRequest.cc new file mode 100644 index 000000000..c5f4d76d1 --- /dev/null +++ b/itag/src/model/PageViewModelRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewModelRequest; + +PageViewModelRequest::PageViewModelRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/pageViewModelList"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewModelRequest::~PageViewModelRequest() {} + +std::string PageViewModelRequest::getBody() const { + return body_; +} + +void PageViewModelRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewModelResult.cc b/itag/src/model/PageViewModelResult.cc new file mode 100644 index 000000000..4976b03b3 --- /dev/null +++ b/itag/src/model/PageViewModelResult.cc @@ -0,0 +1,273 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewModelResult::PageViewModelResult() : + ServiceResult() +{} + +PageViewModelResult::PageViewModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewModelResult::~PageViewModelResult() +{} + +void PageViewModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stoi(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stoi(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["Id"].isNull()) + listItemObject.id = resultNodeListListItem["Id"].asString(); + if(!resultNodeListListItem["CreatorId"].isNull()) + listItemObject.creatorId = resultNodeListListItem["CreatorId"].asString(); + if(!resultNodeListListItem["CreatorAccount"].isNull()) + listItemObject.creatorAccount = resultNodeListListItem["CreatorAccount"].asString(); + if(!resultNodeListListItem["CreatorName"].isNull()) + listItemObject.creatorName = resultNodeListListItem["CreatorName"].asString(); + if(!resultNodeListListItem["TntInstId"].isNull()) + listItemObject.tntInstId = resultNodeListListItem["TntInstId"].asString(); + if(!resultNodeListListItem["Name"].isNull()) + listItemObject.name = resultNodeListListItem["Name"].asString(); + if(!resultNodeListListItem["Type"].isNull()) + listItemObject.type = resultNodeListListItem["Type"].asString(); + if(!resultNodeListListItem["Source"].isNull()) + listItemObject.source = resultNodeListListItem["Source"].asString(); + if(!resultNodeListListItem["Remark"].isNull()) + listItemObject.remark = resultNodeListListItem["Remark"].asString(); + if(!resultNodeListListItem["Async"].isNull()) + listItemObject.async = resultNodeListListItem["Async"].asString() == "true"; + if(!resultNodeListListItem["GmtCreate"].isNull()) + listItemObject.gmtCreate = resultNodeListListItem["GmtCreate"].asString(); + if(!resultNodeListListItem["GmtModified"].isNull()) + listItemObject.gmtModified = resultNodeListListItem["GmtModified"].asString(); + if(!resultNodeListListItem["ModelTag"].isNull()) + listItemObject.modelTag = resultNodeListListItem["ModelTag"].asString(); + if(!resultNodeListListItem["UdfType"].isNull()) + listItemObject.udfType = resultNodeListListItem["UdfType"].asString(); + auto modelConfigNode = value["ModelConfig"]; + if(!modelConfigNode["Host"].isNull()) + listItemObject.modelConfig.host = modelConfigNode["Host"].asString(); + if(!modelConfigNode["RequestType"].isNull()) + listItemObject.modelConfig.requestType = modelConfigNode["RequestType"].asString(); + if(!modelConfigNode["ContentType"].isNull()) + listItemObject.modelConfig.contentType = modelConfigNode["ContentType"].asString(); + if(!modelConfigNode["QpsLimit"].isNull()) + listItemObject.modelConfig.qpsLimit = std::stol(modelConfigNode["QpsLimit"].asString()); + if(!modelConfigNode["ServiceCode"].isNull()) + listItemObject.modelConfig.serviceCode = modelConfigNode["ServiceCode"].asString(); + if(!modelConfigNode["AppId"].isNull()) + listItemObject.modelConfig.appId = modelConfigNode["AppId"].asString(); + if(!modelConfigNode["Token"].isNull()) + listItemObject.modelConfig.token = modelConfigNode["Token"].asString(); + if(!modelConfigNode["PaiModelTarget"].isNull()) + listItemObject.modelConfig.paiModelTarget = modelConfigNode["PaiModelTarget"].asString(); + if(!modelConfigNode["UdfContent"].isNull()) + listItemObject.modelConfig.udfContent = modelConfigNode["UdfContent"].asString(); + auto paramConfigNode = value["ParamConfig"]; + auto allPresetParamNode = paramConfigNode["PresetParam"]["PresetParamItem"]; + for (auto paramConfigNodePresetParamPresetParamItem : allPresetParamNode) + { + Result::ListItem::ParamConfig::PresetParamItem presetParamItemObject; + if(!paramConfigNodePresetParamPresetParamItem["Name"].isNull()) + presetParamItemObject.name = paramConfigNodePresetParamPresetParamItem["Name"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Alias"].isNull()) + presetParamItemObject.alias = paramConfigNodePresetParamPresetParamItem["Alias"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Type"].isNull()) + presetParamItemObject.type = paramConfigNodePresetParamPresetParamItem["Type"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Codec"].isNull()) + presetParamItemObject.codec = paramConfigNodePresetParamPresetParamItem["Codec"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["Value"].isNull()) + presetParamItemObject.value = paramConfigNodePresetParamPresetParamItem["Value"].asString(); + if(!paramConfigNodePresetParamPresetParamItem["DefaultValue"].isNull()) + presetParamItemObject.defaultValue = paramConfigNodePresetParamPresetParamItem["DefaultValue"].asString(); + listItemObject.paramConfig.presetParam.push_back(presetParamItemObject); + } + auto allPostParamNode = paramConfigNode["PostParam"]["PostParamItem"]; + for (auto paramConfigNodePostParamPostParamItem : allPostParamNode) + { + Result::ListItem::ParamConfig::PostParamItem postParamItemObject; + if(!paramConfigNodePostParamPostParamItem["Name"].isNull()) + postParamItemObject.name = paramConfigNodePostParamPostParamItem["Name"].asString(); + if(!paramConfigNodePostParamPostParamItem["Alias"].isNull()) + postParamItemObject.alias = paramConfigNodePostParamPostParamItem["Alias"].asString(); + if(!paramConfigNodePostParamPostParamItem["Type"].isNull()) + postParamItemObject.type = paramConfigNodePostParamPostParamItem["Type"].asString(); + if(!paramConfigNodePostParamPostParamItem["Codec"].isNull()) + postParamItemObject.codec = paramConfigNodePostParamPostParamItem["Codec"].asString(); + if(!paramConfigNodePostParamPostParamItem["Value"].isNull()) + postParamItemObject.value = paramConfigNodePostParamPostParamItem["Value"].asString(); + if(!paramConfigNodePostParamPostParamItem["DefaultValue"].isNull()) + postParamItemObject.defaultValue = paramConfigNodePostParamPostParamItem["DefaultValue"].asString(); + listItemObject.paramConfig.postParam.push_back(postParamItemObject); + } + auto allResponseParamNode = paramConfigNode["ResponseParam"]["ResponseParamItem"]; + for (auto paramConfigNodeResponseParamResponseParamItem : allResponseParamNode) + { + Result::ListItem::ParamConfig::ResponseParamItem responseParamItemObject; + if(!paramConfigNodeResponseParamResponseParamItem["ResultKey"].isNull()) + responseParamItemObject.resultKey = paramConfigNodeResponseParamResponseParamItem["ResultKey"].asString(); + if(!paramConfigNodeResponseParamResponseParamItem["ResultPath"].isNull()) + responseParamItemObject.resultPath = paramConfigNodeResponseParamResponseParamItem["ResultPath"].asString(); + listItemObject.paramConfig.responseParam.push_back(responseParamItemObject); + } + auto modelExtendConfigNode = value["ModelExtendConfig"]; + if(!modelExtendConfigNode["PostUdfModelId"].isNull()) + listItemObject.modelExtendConfig.postUdfModelId = std::stol(modelExtendConfigNode["PostUdfModelId"].asString()); + if(!modelExtendConfigNode["PreUdfModelId"].isNull()) + listItemObject.modelExtendConfig.preUdfModelId = std::stol(modelExtendConfigNode["PreUdfModelId"].asString()); + if(!modelExtendConfigNode["Extra"].isNull()) + listItemObject.modelExtendConfig.extra = modelExtendConfigNode["Extra"].asString(); + auto asyncConfigNode = modelExtendConfigNode["AsyncConfig"]; + if(!asyncConfigNode["ModelId"].isNull()) + listItemObject.modelExtendConfig.asyncConfig.modelId = std::stol(asyncConfigNode["ModelId"].asString()); + auto allAggModelIds = modelExtendConfigNode["AggModelIds"]["AggModelId"]; + for (auto value : allAggModelIds) + listItemObject.modelExtendConfig.aggModelIds.push_back(value.asString()); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + listItemObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + listItemObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + listItemObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + listItemObject.creator.accountNo = creatorNode["AccountNo"].asString(); + if(!creatorNode["Email"].isNull()) + listItemObject.creator.email = creatorNode["Email"].asString(); + if(!creatorNode["PamNo"].isNull()) + listItemObject.creator.pamNo = creatorNode["PamNo"].asString(); + if(!creatorNode["SupplierId"].isNull()) + listItemObject.creator.supplierId = creatorNode["SupplierId"].asString(); + if(!creatorNode["SupplierName"].isNull()) + listItemObject.creator.supplierName = creatorNode["SupplierName"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + listItemObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + listItemObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + listItemObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + listItemObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!modifierNode["Email"].isNull()) + listItemObject.modifier.email = modifierNode["Email"].asString(); + if(!modifierNode["PamNo"].isNull()) + listItemObject.modifier.pamNo = modifierNode["PamNo"].asString(); + if(!modifierNode["SupplierId"].isNull()) + listItemObject.modifier.supplierId = modifierNode["SupplierId"].asString(); + if(!modifierNode["SupplierName"].isNull()) + listItemObject.modifier.supplierName = modifierNode["SupplierName"].asString(); + auto demoModelConfigNode = value["DemoModelConfig"]; + if(!demoModelConfigNode["Host"].isNull()) + listItemObject.demoModelConfig.host = demoModelConfigNode["Host"].asString(); + if(!demoModelConfigNode["RequestType"].isNull()) + listItemObject.demoModelConfig.requestType = demoModelConfigNode["RequestType"].asString(); + if(!demoModelConfigNode["ContentType"].isNull()) + listItemObject.demoModelConfig.contentType = demoModelConfigNode["ContentType"].asString(); + if(!demoModelConfigNode["QpsLimit"].isNull()) + listItemObject.demoModelConfig.qpsLimit = std::stol(demoModelConfigNode["QpsLimit"].asString()); + if(!demoModelConfigNode["ServiceCode"].isNull()) + listItemObject.demoModelConfig.serviceCode = demoModelConfigNode["ServiceCode"].asString(); + if(!demoModelConfigNode["AppId"].isNull()) + listItemObject.demoModelConfig.appId = demoModelConfigNode["AppId"].asString(); + if(!demoModelConfigNode["Token"].isNull()) + listItemObject.demoModelConfig.token = demoModelConfigNode["Token"].asString(); + if(!demoModelConfigNode["PaiModelTarget"].isNull()) + listItemObject.demoModelConfig.paiModelTarget = demoModelConfigNode["PaiModelTarget"].asString(); + if(!demoModelConfigNode["UdfContent"].isNull()) + listItemObject.demoModelConfig.udfContent = demoModelConfigNode["UdfContent"].asString(); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewModelResult::getMsg()const +{ + return msg_; +} + +long PageViewModelResult::getRt()const +{ + return rt_; +} + +bool PageViewModelResult::getSucc()const +{ + return succ_; +} + +std::string PageViewModelResult::getHost()const +{ + return host_; +} + +std::string PageViewModelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewModelResult::getErrInfo()const +{ + return errInfo_; +} + +int PageViewModelResult::getCode()const +{ + return code_; +} + +PageViewModelResult::Result PageViewModelResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewMyTntRequest.cc b/itag/src/model/PageViewMyTntRequest.cc new file mode 100644 index 000000000..74c6cce01 --- /dev/null +++ b/itag/src/model/PageViewMyTntRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewMyTntRequest; + +PageViewMyTntRequest::PageViewMyTntRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/pageViewMyTnt"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewMyTntRequest::~PageViewMyTntRequest() {} + +std::string PageViewMyTntRequest::getBody() const { + return body_; +} + +void PageViewMyTntRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewMyTntResult.cc b/itag/src/model/PageViewMyTntResult.cc new file mode 100644 index 000000000..b31e648b9 --- /dev/null +++ b/itag/src/model/PageViewMyTntResult.cc @@ -0,0 +1,124 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewMyTntResult::PageViewMyTntResult() : + ServiceResult() +{} + +PageViewMyTntResult::PageViewMyTntResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewMyTntResult::~PageViewMyTntResult() +{} + +void PageViewMyTntResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto listNode = resultNode["List"]; + if(!listNode["GmtCreate"].isNull()) + result_.list.gmtCreate = listNode["GmtCreate"].asString(); + if(!listNode["GmtModified"].isNull()) + result_.list.gmtModified = listNode["GmtModified"].asString(); + if(!listNode["TntInstId"].isNull()) + result_.list.tntInstId = listNode["TntInstId"].asString(); + if(!listNode["Name"].isNull()) + result_.list.name = listNode["Name"].asString(); + if(!listNode["BizNO"].isNull()) + result_.list.bizNO = listNode["BizNO"].asString(); + if(!listNode["Role"].isNull()) + result_.list.role = listNode["Role"].asString(); + auto creatorNode = listNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.list.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.list.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.list.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.list.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = listNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.list.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.list.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.list.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.list.modifier.accountNo = modifierNode["AccountNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewMyTntResult::getMsg()const +{ + return msg_; +} + +bool PageViewMyTntResult::getSucc()const +{ + return succ_; +} + +std::string PageViewMyTntResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewMyTntResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewMyTntResult::getCode()const +{ + return code_; +} + +PageViewMyTntResult::Result PageViewMyTntResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewOptionTemplateRequest.cc b/itag/src/model/PageViewOptionTemplateRequest.cc new file mode 100644 index 000000000..75381b311 --- /dev/null +++ b/itag/src/model/PageViewOptionTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewOptionTemplateRequest; + +PageViewOptionTemplateRequest::PageViewOptionTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/pageViewTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewOptionTemplateRequest::~PageViewOptionTemplateRequest() {} + +std::string PageViewOptionTemplateRequest::getBody() const { + return body_; +} + +void PageViewOptionTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewOptionTemplateResult.cc b/itag/src/model/PageViewOptionTemplateResult.cc new file mode 100644 index 000000000..db986bc18 --- /dev/null +++ b/itag/src/model/PageViewOptionTemplateResult.cc @@ -0,0 +1,321 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewOptionTemplateResult::PageViewOptionTemplateResult() : + ServiceResult() +{} + +PageViewOptionTemplateResult::PageViewOptionTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewOptionTemplateResult::~PageViewOptionTemplateResult() +{} + +void PageViewOptionTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stoi(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stoi(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["Id"].isNull()) + listItemObject.id = resultNodeListListItem["Id"].asString(); + if(!resultNodeListListItem["Name"].isNull()) + listItemObject.name = resultNodeListListItem["Name"].asString(); + if(!resultNodeListListItem["TntInstId"].isNull()) + listItemObject.tntInstId = resultNodeListListItem["TntInstId"].asString(); + if(!resultNodeListListItem["Description"].isNull()) + listItemObject.description = resultNodeListListItem["Description"].asString(); + if(!resultNodeListListItem["Exif"].isNull()) + listItemObject.exif = resultNodeListListItem["Exif"].asString(); + if(!resultNodeListListItem["Status"].isNull()) + listItemObject.status = std::stoi(resultNodeListListItem["Status"].asString()); + if(!resultNodeListListItem["SharedMode"].isNull()) + listItemObject.sharedMode = resultNodeListListItem["SharedMode"].asString(); + if(!resultNodeListListItem["Type"].isNull()) + listItemObject.type = resultNodeListListItem["Type"].asString(); + if(!resultNodeListListItem["Classify"].isNull()) + listItemObject.classify = resultNodeListListItem["Classify"].asString(); + if(!resultNodeListListItem["GmtCreate"].isNull()) + listItemObject.gmtCreate = resultNodeListListItem["GmtCreate"].asString(); + if(!resultNodeListListItem["GmtModified"].isNull()) + listItemObject.gmtModified = resultNodeListListItem["GmtModified"].asString(); + auto allQuestionConfigsNode = resultNodeListListItem["QuestionConfigs"]["QuestionConfigDTO"]; + for (auto resultNodeListListItemQuestionConfigsQuestionConfigDTO : allQuestionConfigsNode) + { + Result::ListItem::QuestionConfigDTO questionConfigsObject; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["Id"].isNull()) + questionConfigsObject.id = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Id"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["MarkTitle"].isNull()) + questionConfigsObject.markTitle = resultNodeListListItemQuestionConfigsQuestionConfigDTO["MarkTitle"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].isNull()) + questionConfigsObject.markTitleAlias = resultNodeListListItemQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["Type"].isNull()) + questionConfigsObject.type = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Type"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["MustFill"].isNull()) + questionConfigsObject.mustFill = resultNodeListListItemQuestionConfigsQuestionConfigDTO["MustFill"].asString() == "true"; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["Display"].isNull()) + questionConfigsObject.display = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Display"].asString() == "true"; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["Selected"].isNull()) + questionConfigsObject.selected = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Selected"].asString() == "true"; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["SelectGroup"].isNull()) + questionConfigsObject.selectGroup = resultNodeListListItemQuestionConfigsQuestionConfigDTO["SelectGroup"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["DefaultResult"].isNull()) + questionConfigsObject.defaultResult = resultNodeListListItemQuestionConfigsQuestionConfigDTO["DefaultResult"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["Rule"].isNull()) + questionConfigsObject.rule = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Rule"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTO["Exif"].isNull()) + questionConfigsObject.exif = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Exif"].asString(); + auto allOptionsNode = resultNodeListListItemQuestionConfigsQuestionConfigDTO["Options"]["QuestionOption"]; + for (auto resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption : allOptionsNode) + { + Result::ListItem::QuestionConfigDTO::QuestionOption optionsObject; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].isNull()) + optionsObject.label = resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].isNull()) + optionsObject.key = resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].isNull()) + optionsObject.color = resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].isNull()) + optionsObject.value = resultNodeListListItemQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].asString(); + auto allChildren1 = value["Children"]["QuestionOption"]; + for (auto value : allChildren1) + optionsObject.children1.push_back(value.asString()); + questionConfigsObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = resultNodeListListItemQuestionConfigsQuestionConfigDTO["RobotConfigs"]["TemplateRobotConfig"]; + for (auto resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::ListItem::QuestionConfigDTO::TemplateRobotConfig robotConfigsObject; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::ListItem::QuestionConfigDTO::TemplateRobotConfig::RobotParam paramsObject; + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = resultNodeListListItemQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigsObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigsObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigsObject.preOptions.push_back(value.asString()); + listItemObject.questionConfigs.push_back(questionConfigsObject); + } + auto viewConfigsNode = value["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["DisplayFieldDTO"]; + for (auto viewConfigsNodeFieldsDisplayFieldDTO : allFieldsNode) + { + Result::ListItem::ViewConfigs::DisplayFieldDTO displayFieldDTOObject; + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].isNull()) + displayFieldDTOObject.fieldName = viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Type"].isNull()) + displayFieldDTOObject.type = viewConfigsNodeFieldsDisplayFieldDTO["Type"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].isNull()) + displayFieldDTOObject.corsProxy = viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Hide"].isNull()) + displayFieldDTOObject.hide = viewConfigsNodeFieldsDisplayFieldDTO["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].isNull()) + displayFieldDTOObject.convertor = viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].isNull()) + displayFieldDTOObject.plugins = viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].isNull()) + displayFieldDTOObject.fieldNames = viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].asString(); + auto visitInfoNode = value["VisitInfo"]; + auto ossConfNode = visitInfoNode["OssConf"]; + if(!ossConfNode["OssEndpoint"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossEndpoint = ossConfNode["OssEndpoint"].asString(); + if(!ossConfNode["OssAk"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAk = ossConfNode["OssAk"].asString(); + if(!ossConfNode["OssAs"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAs = ossConfNode["OssAs"].asString(); + if(!ossConfNode["OssOwner"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossOwner = ossConfNode["OssOwner"].asString(); + if(!ossConfNode["OssBucket"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossBucket = ossConfNode["OssBucket"].asString(); + if(!ossConfNode["Folder"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.folder = ossConfNode["Folder"].asString(); + if(!ossConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.expiredTime = std::stol(ossConfNode["ExpiredTime"].asString()); + auto aftsConfNode = visitInfoNode["AftsConf"]; + if(!aftsConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.aftsConf.expiredTime = std::stoi(aftsConfNode["ExpiredTime"].asString()); + auto allRelationQuestionIds = value["RelationQuestionIds"]["String"]; + for (auto value : allRelationQuestionIds) + displayFieldDTOObject.relationQuestionIds.push_back(value.asString()); + listItemObject.viewConfigs.fields.push_back(displayFieldDTOObject); + } + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + listItemObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + listItemObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + listItemObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + listItemObject.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + listItemObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + listItemObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + listItemObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + listItemObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto robotConfigNode = value["RobotConfig"]; + if(!robotConfigNode["Source"].isNull()) + listItemObject.robotConfig.source = robotConfigNode["Source"].asString(); + auto allModelServiceConfigsNode = robotConfigNode["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfig : allModelServiceConfigsNode) + { + Result::ListItem::RobotConfig::ModelServiceConfig modelServiceConfigObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfigObject.serviceId = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfigObject.serviceName = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParamsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParamsNode) + { + Result::ListItem::RobotConfig::ModelServiceConfig::ModelServiceConfig$PostParamPair postParamsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParamsObject.key = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParamsObject.value = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfigObject.postParams.push_back(postParamsObject); + } + auto allResultMappingsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappingsNode) + { + Result::ListItem::RobotConfig::ModelServiceConfig::ModelServiceConfig$ResultMappingPair resultMappingsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappingsObject.questionId = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappingsObject.resultKey = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappingsObject.markTitle = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfigObject.resultMappings.push_back(resultMappingsObject); + } + listItemObject.robotConfig.modelServiceConfigs.push_back(modelServiceConfigObject); + } + auto effectStepNode = robotConfigNode["EffectStep"]; + if(!effectStepNode["PreProcess"].isNull()) + listItemObject.robotConfig.effectStep.preProcess = effectStepNode["PreProcess"].asString() == "true"; + if(!effectStepNode["PreLabel"].isNull()) + listItemObject.robotConfig.effectStep.preLabel = effectStepNode["PreLabel"].asString() == "true"; + if(!effectStepNode["Label"].isNull()) + listItemObject.robotConfig.effectStep.label = effectStepNode["Label"].asString() == "true"; + auto processConfigNode = effectStepNode["ProcessConfig"]; + auto allRelateColumn = processConfigNode["RelateColumn"]["String"]; + for (auto value : allRelateColumn) + listItemObject.robotConfig.effectStep.processConfig.relateColumn.push_back(value.asString()); + auto allTags = value["Tags"]["String"]; + for (auto value : allTags) + listItemObject.tags.push_back(value.asString()); + auto allAbandonReasons = value["AbandonReasons"]["String"]; + for (auto value : allAbandonReasons) + listItemObject.abandonReasons.push_back(value.asString()); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewOptionTemplateResult::getMsg()const +{ + return msg_; +} + +bool PageViewOptionTemplateResult::getSucc()const +{ + return succ_; +} + +std::string PageViewOptionTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewOptionTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +int PageViewOptionTemplateResult::getCode()const +{ + return code_; +} + +PageViewOptionTemplateResult::Result PageViewOptionTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewSubTaskItemRequest.cc b/itag/src/model/PageViewSubTaskItemRequest.cc new file mode 100644 index 000000000..09c608fcf --- /dev/null +++ b/itag/src/model/PageViewSubTaskItemRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewSubTaskItemRequest; + +PageViewSubTaskItemRequest::PageViewSubTaskItemRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/subtask/pageViewSubTaskItem"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewSubTaskItemRequest::~PageViewSubTaskItemRequest() {} + +std::string PageViewSubTaskItemRequest::getBody() const { + return body_; +} + +void PageViewSubTaskItemRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewSubTaskItemResult.cc b/itag/src/model/PageViewSubTaskItemResult.cc new file mode 100644 index 000000000..b01eafe5e --- /dev/null +++ b/itag/src/model/PageViewSubTaskItemResult.cc @@ -0,0 +1,332 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewSubTaskItemResult::PageViewSubTaskItemResult() : + ServiceResult() +{} + +PageViewSubTaskItemResult::PageViewSubTaskItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewSubTaskItemResult::~PageViewSubTaskItemResult() +{} + +void PageViewSubTaskItemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stoi(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stoi(resultNode["PageSize"].asString()); + auto allListNode = resultNode["List"]["MarkItemList"]; + for (auto resultNodeListMarkItemList : allListNode) + { + Result::MarkItemList markItemListObject; + if(!resultNodeListMarkItemList["MarkItemId"].isNull()) + markItemListObject.markItemId = resultNodeListMarkItemList["MarkItemId"].asString(); + if(!resultNodeListMarkItemList["DataId"].isNull()) + markItemListObject.dataId = resultNodeListMarkItemList["DataId"].asString(); + if(!resultNodeListMarkItemList["DatasetId"].isNull()) + markItemListObject.datasetId = resultNodeListMarkItemList["DatasetId"].asString(); + if(!resultNodeListMarkItemList["State"].isNull()) + markItemListObject.state = resultNodeListMarkItemList["State"].asString(); + if(!resultNodeListMarkItemList["Mine"].isNull()) + markItemListObject.mine = std::stol(resultNodeListMarkItemList["Mine"].asString()); + if(!resultNodeListMarkItemList["RejectFlag"].isNull()) + markItemListObject.rejectFlag = std::stol(resultNodeListMarkItemList["RejectFlag"].asString()); + if(!resultNodeListMarkItemList["FixedFlag"].isNull()) + markItemListObject.fixedFlag = std::stol(resultNodeListMarkItemList["FixedFlag"].asString()); + if(!resultNodeListMarkItemList["AbandonFlag"].isNull()) + markItemListObject.abandonFlag = std::stol(resultNodeListMarkItemList["AbandonFlag"].asString()); + if(!resultNodeListMarkItemList["Weight"].isNull()) + markItemListObject.weight = std::stol(resultNodeListMarkItemList["Weight"].asString()); + if(!resultNodeListMarkItemList["DataMeta"].isNull()) + markItemListObject.dataMeta = resultNodeListMarkItemList["DataMeta"].asString(); + auto allMarkResultListNode = resultNodeListMarkItemList["MarkResultList"]["MarkResultListItem"]; + for (auto resultNodeListMarkItemListMarkResultListMarkResultListItem : allMarkResultListNode) + { + Result::MarkItemList::MarkResultListItem markResultListObject; + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = resultNodeListMarkItemListMarkResultListMarkResultListItem["UserMarkResultId"].asString(); + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["MarkResultId"].isNull()) + markResultListObject.markResultId = resultNodeListMarkItemListMarkResultListMarkResultListItem["MarkResultId"].asString(); + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["MarkTitle"].isNull()) + markResultListObject.markTitle = resultNodeListMarkItemListMarkResultListMarkResultListItem["MarkTitle"].asString(); + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["MarkResult"].isNull()) + markResultListObject.markResult = resultNodeListMarkItemListMarkResultListMarkResultListItem["MarkResult"].asString(); + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["QuestionId"].isNull()) + markResultListObject.questionId = resultNodeListMarkItemListMarkResultListMarkResultListItem["QuestionId"].asString(); + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["ResultType"].isNull()) + markResultListObject.resultType = resultNodeListMarkItemListMarkResultListMarkResultListItem["ResultType"].asString(); + if(!resultNodeListMarkItemListMarkResultListMarkResultListItem["Version"].isNull()) + markResultListObject.version = resultNodeListMarkItemListMarkResultListMarkResultListItem["Version"].asString(); + markItemListObject.markResultList.push_back(markResultListObject); + } + result_.list.push_back(markItemListObject); + } + auto taskInfoNode = resultNode["TaskInfo"]; + if(!taskInfoNode["TaskName"].isNull()) + result_.taskInfo.taskName = taskInfoNode["TaskName"].asString(); + if(!taskInfoNode["TaskId"].isNull()) + result_.taskInfo.taskId = taskInfoNode["TaskId"].asString(); + if(!taskInfoNode["TaskType"].isNull()) + result_.taskInfo.taskType = taskInfoNode["TaskType"].asString(); + if(!taskInfoNode["Channel"].isNull()) + result_.taskInfo.channel = taskInfoNode["Channel"].asString(); + if(!taskInfoNode["SafetyLevel"].isNull()) + result_.taskInfo.safetyLevel = std::stol(taskInfoNode["SafetyLevel"].asString()); + auto bizInfoNode = taskInfoNode["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + result_.taskInfo.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + result_.taskInfo.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + result_.taskInfo.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto subTaskNode = resultNode["SubTask"]; + if(!subTaskNode["SubTaskId"].isNull()) + result_.subTask.subTaskId = subTaskNode["SubTaskId"].asString(); + auto subUserTaskNode = resultNode["SubUserTask"]; + if(!subUserTaskNode["UserSubTaskId"].isNull()) + result_.subUserTask.userSubTaskId = subUserTaskNode["UserSubTaskId"].asString(); + if(!subUserTaskNode["SubTaskId"].isNull()) + result_.subUserTask.subTaskId = subUserTaskNode["SubTaskId"].asString(); + if(!subUserTaskNode["WorkNode"].isNull()) + result_.subUserTask.workNode = subUserTaskNode["WorkNode"].asString(); + if(!subUserTaskNode["State"].isNull()) + result_.subUserTask.state = subUserTaskNode["State"].asString(); + if(!subUserTaskNode["VoteIdx"].isNull()) + result_.subUserTask.voteIdx = std::stol(subUserTaskNode["VoteIdx"].asString()); + if(!subUserTaskNode["LastUserSubTaskId"].isNull()) + result_.subUserTask.lastUserSubTaskId = subUserTaskNode["LastUserSubTaskId"].asString(); + if(!subUserTaskNode["OperateFlag"].isNull()) + result_.subUserTask.operateFlag = subUserTaskNode["OperateFlag"].asString(); + if(!subUserTaskNode["RejectFlag"].isNull()) + result_.subUserTask.rejectFlag = std::stol(subUserTaskNode["RejectFlag"].asString()); + if(!subUserTaskNode["RejectRemark"].isNull()) + result_.subUserTask.rejectRemark = subUserTaskNode["RejectRemark"].asString(); + if(!subUserTaskNode["GmtTimeout"].isNull()) + result_.subUserTask.gmtTimeout = subUserTaskNode["GmtTimeout"].asString(); + if(!subUserTaskNode["ExternalBizNo"].isNull()) + result_.subUserTask.externalBizNo = subUserTaskNode["ExternalBizNo"].asString(); + auto handlerNode = subUserTaskNode["Handler"]; + if(!handlerNode["UserId"].isNull()) + result_.subUserTask.handler.userId = handlerNode["UserId"].asString(); + if(!handlerNode["UserName"].isNull()) + result_.subUserTask.handler.userName = handlerNode["UserName"].asString(); + if(!handlerNode["AccountType"].isNull()) + result_.subUserTask.handler.accountType = handlerNode["AccountType"].asString(); + if(!handlerNode["AccountNo"].isNull()) + result_.subUserTask.handler.accountNo = handlerNode["AccountNo"].asString(); + auto optionTemplateNode = resultNode["OptionTemplate"]; + if(!optionTemplateNode["GmtCreate"].isNull()) + result_.optionTemplate.gmtCreate = optionTemplateNode["GmtCreate"].asString(); + if(!optionTemplateNode["GmtModified"].isNull()) + result_.optionTemplate.gmtModified = optionTemplateNode["GmtModified"].asString(); + if(!optionTemplateNode["Id"].isNull()) + result_.optionTemplate.id = optionTemplateNode["Id"].asString(); + if(!optionTemplateNode["Name"].isNull()) + result_.optionTemplate.name = optionTemplateNode["Name"].asString(); + if(!optionTemplateNode["TntInstId"].isNull()) + result_.optionTemplate.tntInstId = optionTemplateNode["TntInstId"].asString(); + if(!optionTemplateNode["Description"].isNull()) + result_.optionTemplate.description = optionTemplateNode["Description"].asString(); + if(!optionTemplateNode["Exif"].isNull()) + result_.optionTemplate.exif = optionTemplateNode["Exif"].asString(); + if(!optionTemplateNode["Status"].isNull()) + result_.optionTemplate.status = std::stol(optionTemplateNode["Status"].asString()); + if(!optionTemplateNode["SharedMode"].isNull()) + result_.optionTemplate.sharedMode = optionTemplateNode["SharedMode"].asString(); + if(!optionTemplateNode["Type"].isNull()) + result_.optionTemplate.type = optionTemplateNode["Type"].asString(); + if(!optionTemplateNode["Classify"].isNull()) + result_.optionTemplate.classify = optionTemplateNode["Classify"].asString(); + auto allQuestionConfigsNode = optionTemplateNode["QuestionConfigs"]["QuestionConfigsItem"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItem : allQuestionConfigsNode) + { + Result::OptionTemplate::QuestionConfigsItem questionConfigsItemObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Id"].isNull()) + questionConfigsItemObject.id = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Id"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitle"].isNull()) + questionConfigsItemObject.markTitle = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitle"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitleAlias"].isNull()) + questionConfigsItemObject.markTitleAlias = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitleAlias"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Type"].isNull()) + questionConfigsItemObject.type = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MustFill"].isNull()) + questionConfigsItemObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MustFill"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Display"].isNull()) + questionConfigsItemObject.display = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Display"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Selected"].isNull()) + questionConfigsItemObject.selected = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Selected"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["SelectGroup"].isNull()) + questionConfigsItemObject.selectGroup = optionTemplateNodeQuestionConfigsQuestionConfigsItem["SelectGroup"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["DefaultResult"].isNull()) + questionConfigsItemObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItem["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Rule"].isNull()) + questionConfigsItemObject.rule = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Rule"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Exif"].isNull()) + questionConfigsItemObject.exif = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Exif"].asString(); + auto allOptionsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Options"]["QuestionOption"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption : allOptionsNode) + { + Result::OptionTemplate::QuestionConfigsItem::QuestionOption optionsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Label"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Key"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Color"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Value"].asString(); + auto allChildren1 = value["Children"]["QuestionOption"]; + for (auto value : allChildren1) + optionsObject.children1.push_back(value.asString()); + questionConfigsItemObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItem["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::OptionTemplate::QuestionConfigsItem::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::OptionTemplate::QuestionConfigsItem::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigsItemObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigsItemObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigsItemObject.preOptions.push_back(value.asString()); + result_.optionTemplate.questionConfigs.push_back(questionConfigsItemObject); + } + auto viewConfigsNode = optionTemplateNode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["FieldsItem"]; + for (auto viewConfigsNodeFieldsFieldsItem : allFieldsNode) + { + Result::OptionTemplate::ViewConfigs::FieldsItem fieldsItemObject; + if(!viewConfigsNodeFieldsFieldsItem["FieldName"].isNull()) + fieldsItemObject.fieldName = viewConfigsNodeFieldsFieldsItem["FieldName"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["Type"].isNull()) + fieldsItemObject.type = viewConfigsNodeFieldsFieldsItem["Type"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["CorsProxy"].isNull()) + fieldsItemObject.corsProxy = viewConfigsNodeFieldsFieldsItem["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsFieldsItem["Hide"].isNull()) + fieldsItemObject.hide = viewConfigsNodeFieldsFieldsItem["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsFieldsItem["Convertor"].isNull()) + fieldsItemObject.convertor = viewConfigsNodeFieldsFieldsItem["Convertor"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["VisitInfo"].isNull()) + fieldsItemObject.visitInfo = viewConfigsNodeFieldsFieldsItem["VisitInfo"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["Plugins"].isNull()) + fieldsItemObject.plugins = viewConfigsNodeFieldsFieldsItem["Plugins"].asString(); + auto allRelationQuestionIds = value["RelationQuestionIds"]["RelationQuestionIds"]; + for (auto value : allRelationQuestionIds) + fieldsItemObject.relationQuestionIds.push_back(value.asString()); + result_.optionTemplate.viewConfigs.fields.push_back(fieldsItemObject); + } + auto allTags = optionTemplateNode["Tags"]["Tags"]; + for (auto value : allTags) + result_.optionTemplate.tags.push_back(value.asString()); + auto allAbandonReasons = optionTemplateNode["AbandonReasons"]["AbandonReasons"]; + for (auto value : allAbandonReasons) + result_.optionTemplate.abandonReasons.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewSubTaskItemResult::getMsg()const +{ + return msg_; +} + +bool PageViewSubTaskItemResult::getSucc()const +{ + return succ_; +} + +std::string PageViewSubTaskItemResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewSubTaskItemResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewSubTaskItemResult::getCode()const +{ + return code_; +} + +PageViewSubTaskItemResult::Result PageViewSubTaskItemResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewTaskRequest.cc b/itag/src/model/PageViewTaskRequest.cc new file mode 100644 index 000000000..0c06182ca --- /dev/null +++ b/itag/src/model/PageViewTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewTaskRequest; + +PageViewTaskRequest::PageViewTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/pageViewTask"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewTaskRequest::~PageViewTaskRequest() {} + +std::string PageViewTaskRequest::getBody() const { + return body_; +} + +void PageViewTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewTaskResult.cc b/itag/src/model/PageViewTaskResult.cc new file mode 100644 index 000000000..9f13d00b1 --- /dev/null +++ b/itag/src/model/PageViewTaskResult.cc @@ -0,0 +1,546 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewTaskResult::PageViewTaskResult() : + ServiceResult() +{} + +PageViewTaskResult::PageViewTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewTaskResult::~PageViewTaskResult() +{} + +void PageViewTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagTaskDTO"]; + for (auto resultNodeListITagTaskDTO : allListNode) + { + Result::ITagTaskDTO iTagTaskDTOObject; + if(!resultNodeListITagTaskDTO["TaskName"].isNull()) + iTagTaskDTOObject.taskName = resultNodeListITagTaskDTO["TaskName"].asString(); + if(!resultNodeListITagTaskDTO["TaskId"].isNull()) + iTagTaskDTOObject.taskId = resultNodeListITagTaskDTO["TaskId"].asString(); + if(!resultNodeListITagTaskDTO["TemplateId"].isNull()) + iTagTaskDTOObject.templateId = resultNodeListITagTaskDTO["TemplateId"].asString(); + if(!resultNodeListITagTaskDTO["ProjectId"].isNull()) + iTagTaskDTOObject.projectId = std::stol(resultNodeListITagTaskDTO["ProjectId"].asString()); + if(!resultNodeListITagTaskDTO["TaskType"].isNull()) + iTagTaskDTOObject.taskType = resultNodeListITagTaskDTO["TaskType"].asString(); + if(!resultNodeListITagTaskDTO["TntInstId"].isNull()) + iTagTaskDTOObject.tntInstId = resultNodeListITagTaskDTO["TntInstId"].asString(); + if(!resultNodeListITagTaskDTO["TntInstName"].isNull()) + iTagTaskDTOObject.tntInstName = resultNodeListITagTaskDTO["TntInstName"].asString(); + if(!resultNodeListITagTaskDTO["Remark"].isNull()) + iTagTaskDTOObject.remark = resultNodeListITagTaskDTO["Remark"].asString(); + if(!resultNodeListITagTaskDTO["AllowAppendData"].isNull()) + iTagTaskDTOObject.allowAppendData = resultNodeListITagTaskDTO["AllowAppendData"].asString() == "true"; + if(!resultNodeListITagTaskDTO["Channel"].isNull()) + iTagTaskDTOObject.channel = resultNodeListITagTaskDTO["Channel"].asString(); + if(!resultNodeListITagTaskDTO["SafetyLevel"].isNull()) + iTagTaskDTOObject.safetyLevel = std::stoi(resultNodeListITagTaskDTO["SafetyLevel"].asString()); + if(!resultNodeListITagTaskDTO["RelateTaskConfig"].isNull()) + iTagTaskDTOObject.relateTaskConfig = resultNodeListITagTaskDTO["RelateTaskConfig"].asString(); + if(!resultNodeListITagTaskDTO["Exif"].isNull()) + iTagTaskDTOObject.exif = resultNodeListITagTaskDTO["Exif"].asString(); + if(!resultNodeListITagTaskDTO["MineConfigs"].isNull()) + iTagTaskDTOObject.mineConfigs = resultNodeListITagTaskDTO["MineConfigs"].asString(); + if(!resultNodeListITagTaskDTO["VoteConfigs"].isNull()) + iTagTaskDTOObject.voteConfigs = resultNodeListITagTaskDTO["VoteConfigs"].asString(); + if(!resultNodeListITagTaskDTO["RunMsg"].isNull()) + iTagTaskDTOObject.runMsg = resultNodeListITagTaskDTO["RunMsg"].asString(); + if(!resultNodeListITagTaskDTO["Archived"].isNull()) + iTagTaskDTOObject.archived = resultNodeListITagTaskDTO["Archived"].asString() == "true"; + if(!resultNodeListITagTaskDTO["Stage"].isNull()) + iTagTaskDTOObject.stage = resultNodeListITagTaskDTO["Stage"].asString(); + if(!resultNodeListITagTaskDTO["ArchivedInfos"].isNull()) + iTagTaskDTOObject.archivedInfos = resultNodeListITagTaskDTO["ArchivedInfos"].asString(); + if(!resultNodeListITagTaskDTO["AlertTime"].isNull()) + iTagTaskDTOObject.alertTime = std::stoi(resultNodeListITagTaskDTO["AlertTime"].asString()); + if(!resultNodeListITagTaskDTO["Status"].isNull()) + iTagTaskDTOObject.status = std::stoi(resultNodeListITagTaskDTO["Status"].asString()); + if(!resultNodeListITagTaskDTO["GmtCreate"].isNull()) + iTagTaskDTOObject.gmtCreate = resultNodeListITagTaskDTO["GmtCreate"].asString(); + if(!resultNodeListITagTaskDTO["GmtModified"].isNull()) + iTagTaskDTOObject.gmtModified = resultNodeListITagTaskDTO["GmtModified"].asString(); + auto allDatasetProxyRelationsNode = resultNodeListITagTaskDTO["DatasetProxyRelations"]["TaskDatasetProxyRelation"]; + for (auto resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation : allDatasetProxyRelationsNode) + { + Result::ITagTaskDTO::TaskDatasetProxyRelation datasetProxyRelationsObject; + if(!resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["DatasetId"].isNull()) + datasetProxyRelationsObject.datasetId = resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["DatasetId"].asString(); + if(!resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["Source"].isNull()) + datasetProxyRelationsObject.source = resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["Source"].asString(); + if(!resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["SourceBizId"].isNull()) + datasetProxyRelationsObject.sourceBizId = resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["SourceBizId"].asString(); + if(!resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["DatasetType"].isNull()) + datasetProxyRelationsObject.datasetType = resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["DatasetType"].asString(); + if(!resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["Exif"].isNull()) + datasetProxyRelationsObject.exif = resultNodeListITagTaskDTODatasetProxyRelationsTaskDatasetProxyRelation["Exif"].asString(); + iTagTaskDTOObject.datasetProxyRelations.push_back(datasetProxyRelationsObject); + } + auto allAdminsNode = resultNodeListITagTaskDTO["Admins"]["ITagSimpleUserVO"]; + for (auto resultNodeListITagTaskDTOAdminsITagSimpleUserVO : allAdminsNode) + { + Result::ITagTaskDTO::ITagSimpleUserVO adminsObject; + if(!resultNodeListITagTaskDTOAdminsITagSimpleUserVO["UserId"].isNull()) + adminsObject.userId = resultNodeListITagTaskDTOAdminsITagSimpleUserVO["UserId"].asString(); + if(!resultNodeListITagTaskDTOAdminsITagSimpleUserVO["UserName"].isNull()) + adminsObject.userName = resultNodeListITagTaskDTOAdminsITagSimpleUserVO["UserName"].asString(); + if(!resultNodeListITagTaskDTOAdminsITagSimpleUserVO["AccountType"].isNull()) + adminsObject.accountType = resultNodeListITagTaskDTOAdminsITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeListITagTaskDTOAdminsITagSimpleUserVO["AccountNo"].isNull()) + adminsObject.accountNo = resultNodeListITagTaskDTOAdminsITagSimpleUserVO["AccountNo"].asString(); + iTagTaskDTOObject.admins.push_back(adminsObject); + } + auto allTaskWorkFlowNode = resultNodeListITagTaskDTO["TaskWorkFlow"]["ITagTaskWorkflowConfig"]; + for (auto resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig : allTaskWorkFlowNode) + { + Result::ITagTaskDTO::ITagTaskWorkflowConfig taskWorkFlowObject; + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig["NodeName"].isNull()) + taskWorkFlowObject.nodeName = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig["NodeName"].asString(); + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig["Exif"].isNull()) + taskWorkFlowObject.exif = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig["Exif"].asString(); + auto allUsersNode = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig["Users"]["ITagSimpleUserVO"]; + for (auto resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO : allUsersNode) + { + Result::ITagTaskDTO::ITagTaskWorkflowConfig::ITagSimpleUserVO1 usersObject; + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserId"].isNull()) + usersObject.userId = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserId"].asString(); + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserName"].isNull()) + usersObject.userName = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["UserName"].asString(); + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountType"].isNull()) + usersObject.accountType = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountNo"].isNull()) + usersObject.accountNo = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigUsersITagSimpleUserVO["AccountNo"].asString(); + taskWorkFlowObject.users.push_back(usersObject); + } + auto allGroupsNode = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfig["Groups"]["ITagSimpleUserGroupVO"]; + for (auto resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO : allGroupsNode) + { + Result::ITagTaskDTO::ITagTaskWorkflowConfig::ITagSimpleUserGroupVO groupsObject; + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupId"].isNull()) + groupsObject.groupId = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupId"].asString(); + if(!resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupName"].isNull()) + groupsObject.groupName = resultNodeListITagTaskDTOTaskWorkFlowITagTaskWorkflowConfigGroupsITagSimpleUserGroupVO["GroupName"].asString(); + taskWorkFlowObject.groups.push_back(groupsObject); + } + iTagTaskDTOObject.taskWorkFlow.push_back(taskWorkFlowObject); + } + auto optionTemplateDTONode = value["OptionTemplateDTO"]; + if(!optionTemplateDTONode["Id"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.id = optionTemplateDTONode["Id"].asString(); + if(!optionTemplateDTONode["Name"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.name = optionTemplateDTONode["Name"].asString(); + if(!optionTemplateDTONode["TntInstId"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.tntInstId = optionTemplateDTONode["TntInstId"].asString(); + if(!optionTemplateDTONode["Description"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.description = optionTemplateDTONode["Description"].asString(); + if(!optionTemplateDTONode["Exif"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.exif = optionTemplateDTONode["Exif"].asString(); + if(!optionTemplateDTONode["Status"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.status = std::stoi(optionTemplateDTONode["Status"].asString()); + if(!optionTemplateDTONode["SharedMode"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.sharedMode = optionTemplateDTONode["SharedMode"].asString(); + if(!optionTemplateDTONode["Type"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.type = optionTemplateDTONode["Type"].asString(); + if(!optionTemplateDTONode["Classify"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.classify = optionTemplateDTONode["Classify"].asString(); + if(!optionTemplateDTONode["GmtCreate"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.gmtCreate = optionTemplateDTONode["GmtCreate"].asString(); + if(!optionTemplateDTONode["GmtModified"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.gmtModified = optionTemplateDTONode["GmtModified"].asString(); + auto allQuestionConfigsNode = optionTemplateDTONode["QuestionConfigs"]["QuestionConfigDTO"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTO : allQuestionConfigsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::QuestionConfigDTO questionConfigDTOObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Id"].isNull()) + questionConfigDTOObject.id = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Id"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitle"].isNull()) + questionConfigDTOObject.markTitle = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitle"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].isNull()) + questionConfigDTOObject.markTitleAlias = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Type"].isNull()) + questionConfigDTOObject.type = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Type"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MustFill"].isNull()) + questionConfigDTOObject.mustFill = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["MustFill"].asString() == "true"; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Display"].isNull()) + questionConfigDTOObject.display = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Display"].asString() == "true"; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Selected"].isNull()) + questionConfigDTOObject.selected = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Selected"].asString() == "true"; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["SelectGroup"].isNull()) + questionConfigDTOObject.selectGroup = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["SelectGroup"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["DefaultResult"].isNull()) + questionConfigDTOObject.defaultResult = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["DefaultResult"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Rule"].isNull()) + questionConfigDTOObject.rule = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Rule"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Exif"].isNull()) + questionConfigDTOObject.exif = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Exif"].asString(); + auto allOptionsNode = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["Options"]["QuestionOption"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption : allOptionsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::QuestionConfigDTO::QuestionOption optionsObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateDTONodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].asString(); + auto allChildren5 = value["Children"]["QuestionOption"]; + for (auto value : allChildren5) + optionsObject.children5.push_back(value.asString()); + questionConfigDTOObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateDTONodeQuestionConfigsQuestionConfigDTO["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::QuestionConfigDTO::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::QuestionConfigDTO::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateDTONodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigDTOObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigDTOObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigDTOObject.preOptions.push_back(value.asString()); + iTagTaskDTOObject.optionTemplateDTO.questionConfigs.push_back(questionConfigDTOObject); + } + auto viewConfigsNode = optionTemplateDTONode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["DisplayFieldDTO"]; + for (auto viewConfigsNodeFieldsDisplayFieldDTO : allFieldsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::ViewConfigs::DisplayFieldDTO displayFieldDTOObject; + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].isNull()) + displayFieldDTOObject.fieldName = viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Type"].isNull()) + displayFieldDTOObject.type = viewConfigsNodeFieldsDisplayFieldDTO["Type"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].isNull()) + displayFieldDTOObject.corsProxy = viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Hide"].isNull()) + displayFieldDTOObject.hide = viewConfigsNodeFieldsDisplayFieldDTO["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].isNull()) + displayFieldDTOObject.convertor = viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].isNull()) + displayFieldDTOObject.plugins = viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].isNull()) + displayFieldDTOObject.fieldNames = viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].asString(); + auto visitInfoNode = value["VisitInfo"]; + auto ossConfNode = visitInfoNode["OssConf"]; + if(!ossConfNode["OssEndpoint"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossEndpoint = ossConfNode["OssEndpoint"].asString(); + if(!ossConfNode["OssAk"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAk = ossConfNode["OssAk"].asString(); + if(!ossConfNode["OssAs"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAs = ossConfNode["OssAs"].asString(); + if(!ossConfNode["OssOwner"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossOwner = ossConfNode["OssOwner"].asString(); + if(!ossConfNode["OssBucket"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossBucket = ossConfNode["OssBucket"].asString(); + if(!ossConfNode["Folder"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.folder = ossConfNode["Folder"].asString(); + if(!ossConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.expiredTime = std::stol(ossConfNode["ExpiredTime"].asString()); + auto aftsConfNode = visitInfoNode["AftsConf"]; + if(!aftsConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.aftsConf.expiredTime = std::stoi(aftsConfNode["ExpiredTime"].asString()); + auto allRelationQuestionIds = value["RelationQuestionIds"]["String"]; + for (auto value : allRelationQuestionIds) + displayFieldDTOObject.relationQuestionIds.push_back(value.asString()); + iTagTaskDTOObject.optionTemplateDTO.viewConfigs.fields.push_back(displayFieldDTOObject); + } + auto creator3Node = optionTemplateDTONode["Creator"]; + if(!creator3Node["UserId"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.creator3.userId = creator3Node["UserId"].asString(); + if(!creator3Node["UserName"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.creator3.userName = creator3Node["UserName"].asString(); + if(!creator3Node["AccountType"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.creator3.accountType = creator3Node["AccountType"].asString(); + if(!creator3Node["AccountNo"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.creator3.accountNo = creator3Node["AccountNo"].asString(); + auto modifier4Node = optionTemplateDTONode["Modifier"]; + if(!modifier4Node["UserId"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.modifier4.userId = modifier4Node["UserId"].asString(); + if(!modifier4Node["UserName"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.modifier4.userName = modifier4Node["UserName"].asString(); + if(!modifier4Node["AccountType"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.modifier4.accountType = modifier4Node["AccountType"].asString(); + if(!modifier4Node["AccountNo"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.modifier4.accountNo = modifier4Node["AccountNo"].asString(); + auto robotConfigNode = optionTemplateDTONode["RobotConfig"]; + if(!robotConfigNode["Source"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.robotConfig.source = robotConfigNode["Source"].asString(); + auto allModelServiceConfigsNode = robotConfigNode["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfig : allModelServiceConfigsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::RobotConfig::ModelServiceConfig modelServiceConfigObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfigObject.serviceId = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfigObject.serviceName = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParamsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParamsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::RobotConfig::ModelServiceConfig::ModelServiceConfig$PostParamPair postParamsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParamsObject.key = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParamsObject.value = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfigObject.postParams.push_back(postParamsObject); + } + auto allResultMappingsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappingsNode) + { + Result::ITagTaskDTO::OptionTemplateDTO::RobotConfig::ModelServiceConfig::ModelServiceConfig$ResultMappingPair resultMappingsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappingsObject.questionId = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappingsObject.resultKey = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappingsObject.markTitle = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfigObject.resultMappings.push_back(resultMappingsObject); + } + iTagTaskDTOObject.optionTemplateDTO.robotConfig.modelServiceConfigs.push_back(modelServiceConfigObject); + } + auto effectStepNode = robotConfigNode["EffectStep"]; + if(!effectStepNode["PreProcess"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.robotConfig.effectStep.preProcess = effectStepNode["PreProcess"].asString() == "true"; + if(!effectStepNode["PreLabel"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.robotConfig.effectStep.preLabel = effectStepNode["PreLabel"].asString() == "true"; + if(!effectStepNode["Label"].isNull()) + iTagTaskDTOObject.optionTemplateDTO.robotConfig.effectStep.label = effectStepNode["Label"].asString() == "true"; + auto processConfigNode = effectStepNode["ProcessConfig"]; + auto allRelateColumn = processConfigNode["RelateColumn"]["String"]; + for (auto value : allRelateColumn) + iTagTaskDTOObject.optionTemplateDTO.robotConfig.effectStep.processConfig.relateColumn.push_back(value.asString()); + auto allTags2 = optionTemplateDTONode["Tags"]["String"]; + for (auto value : allTags2) + iTagTaskDTOObject.optionTemplateDTO.tags2.push_back(value.asString()); + auto allAbandonReasons = optionTemplateDTONode["AbandonReasons"]["String"]; + for (auto value : allAbandonReasons) + iTagTaskDTOObject.optionTemplateDTO.abandonReasons.push_back(value.asString()); + auto taskTemplateConfigNode = value["TaskTemplateConfig"]; + if(!taskTemplateConfigNode["Exif"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.exif = taskTemplateConfigNode["Exif"].asString(); + if(!taskTemplateConfigNode["TemplateOptionMap"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.templateOptionMap = taskTemplateConfigNode["TemplateOptionMap"].asString(); + if(!taskTemplateConfigNode["TemplateRelationId"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.templateRelationId = taskTemplateConfigNode["TemplateRelationId"].asString(); + if(!taskTemplateConfigNode["ResourceKey"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.resourceKey = taskTemplateConfigNode["ResourceKey"].asString(); + auto robotConfig6Node = taskTemplateConfigNode["RobotConfig"]; + if(!robotConfig6Node["Source"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.robotConfig6.source = robotConfig6Node["Source"].asString(); + auto allModelServiceConfigs8Node = robotConfig6Node["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfig6NodeModelServiceConfigsModelServiceConfig : allModelServiceConfigs8Node) + { + Result::ITagTaskDTO::TaskTemplateConfig::RobotConfig6::ModelServiceConfig9 modelServiceConfig9Object; + if(!robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfig9Object.serviceId = robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfig9Object.serviceName = robotConfig6NodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParams10Node = robotConfig6NodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParams10Node) + { + Result::ITagTaskDTO::TaskTemplateConfig::RobotConfig6::ModelServiceConfig9::ModelServiceConfig$PostParamPair12 postParams10Object; + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParams10Object.key = robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParams10Object.value = robotConfig6NodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfig9Object.postParams10.push_back(postParams10Object); + } + auto allResultMappings11Node = robotConfig6NodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappings11Node) + { + Result::ITagTaskDTO::TaskTemplateConfig::RobotConfig6::ModelServiceConfig9::ModelServiceConfig$ResultMappingPair13 resultMappings11Object; + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappings11Object.questionId = robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappings11Object.resultKey = robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappings11Object.markTitle = robotConfig6NodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfig9Object.resultMappings11.push_back(resultMappings11Object); + } + iTagTaskDTOObject.taskTemplateConfig.robotConfig6.modelServiceConfigs8.push_back(modelServiceConfig9Object); + } + auto effectStep7Node = robotConfig6Node["EffectStep"]; + if(!effectStep7Node["PreProcess"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.robotConfig6.effectStep7.preProcess = effectStep7Node["PreProcess"].asString() == "true"; + if(!effectStep7Node["PreLabel"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.robotConfig6.effectStep7.preLabel = effectStep7Node["PreLabel"].asString() == "true"; + if(!effectStep7Node["Label"].isNull()) + iTagTaskDTOObject.taskTemplateConfig.robotConfig6.effectStep7.label = effectStep7Node["Label"].asString() == "true"; + auto processConfig14Node = effectStep7Node["ProcessConfig"]; + auto allRelateColumn15 = processConfig14Node["RelateColumn"]["String"]; + for (auto value : allRelateColumn15) + iTagTaskDTOObject.taskTemplateConfig.robotConfig6.effectStep7.processConfig14.relateColumn15.push_back(value.asString()); + auto allSelectQuestions = taskTemplateConfigNode["SelectQuestions"]["String"]; + for (auto value : allSelectQuestions) + iTagTaskDTOObject.taskTemplateConfig.selectQuestions.push_back(value.asString()); + auto bizInfoNode = value["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + iTagTaskDTOObject.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + iTagTaskDTOObject.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + iTagTaskDTOObject.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto assignConfigNode = value["AssignConfig"]; + if(!assignConfigNode["AssignType"].isNull()) + iTagTaskDTOObject.assignConfig.assignType = assignConfigNode["AssignType"].asString(); + if(!assignConfigNode["AssignCount"].isNull()) + iTagTaskDTOObject.assignConfig.assignCount = std::stoi(assignConfigNode["AssignCount"].asString()); + if(!assignConfigNode["AssignSubTaskCount"].isNull()) + iTagTaskDTOObject.assignConfig.assignSubTaskCount = std::stoi(assignConfigNode["AssignSubTaskCount"].asString()); + if(!assignConfigNode["AssignField"].isNull()) + iTagTaskDTOObject.assignConfig.assignField = assignConfigNode["AssignField"].asString(); + auto noticeConfigNode = value["NoticeConfig"]; + if(!noticeConfigNode["DingHook"].isNull()) + iTagTaskDTOObject.noticeConfig.dingHook = noticeConfigNode["DingHook"].asString(); + if(!noticeConfigNode["SubTaskAlertGap"].isNull()) + iTagTaskDTOObject.noticeConfig.subTaskAlertGap = noticeConfigNode["SubTaskAlertGap"].asString(); + auto allListenActions = noticeConfigNode["ListenActions"]["String"]; + for (auto value : allListenActions) + iTagTaskDTOObject.noticeConfig.listenActions.push_back(value.asString()); + auto resultCallbackConfigNode = value["ResultCallbackConfig"]; + if(!resultCallbackConfigNode["RetMsgMode"].isNull()) + iTagTaskDTOObject.resultCallbackConfig.retMsgMode = resultCallbackConfigNode["RetMsgMode"].asString(); + if(!resultCallbackConfigNode["Exif"].isNull()) + iTagTaskDTOObject.resultCallbackConfig.exif = resultCallbackConfigNode["Exif"].asString(); + auto creatorNode = value["Creator"]; + if(!creatorNode["UserId"].isNull()) + iTagTaskDTOObject.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + iTagTaskDTOObject.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + iTagTaskDTOObject.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + iTagTaskDTOObject.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = value["Modifier"]; + if(!modifierNode["UserId"].isNull()) + iTagTaskDTOObject.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + iTagTaskDTOObject.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + iTagTaskDTOObject.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + iTagTaskDTOObject.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto allWorkflowNodes = value["WorkflowNodes"]["String"]; + for (auto value : allWorkflowNodes) + iTagTaskDTOObject.workflowNodes.push_back(value.asString()); + auto allTags = value["Tags"]["String"]; + for (auto value : allTags) + iTagTaskDTOObject.tags.push_back(value.asString()); + auto allSupportDownloadTypes = value["SupportDownloadTypes"]["SupportDownloadType"]; + for (auto value : allSupportDownloadTypes) + iTagTaskDTOObject.supportDownloadTypes.push_back(value.asString()); + result_.list.push_back(iTagTaskDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewTaskResult::getMsg()const +{ + return msg_; +} + +bool PageViewTaskResult::getSucc()const +{ + return succ_; +} + +std::string PageViewTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewTaskResult::getCode()const +{ + return code_; +} + +PageViewTaskResult::Result PageViewTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewTntUserRequest.cc b/itag/src/model/PageViewTntUserRequest.cc new file mode 100644 index 000000000..e1a42b3b0 --- /dev/null +++ b/itag/src/model/PageViewTntUserRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewTntUserRequest; + +PageViewTntUserRequest::PageViewTntUserRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/pageViewTntUser"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewTntUserRequest::~PageViewTntUserRequest() {} + +std::string PageViewTntUserRequest::getBody() const { + return body_; +} + +void PageViewTntUserRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewTntUserResult.cc b/itag/src/model/PageViewTntUserResult.cc new file mode 100644 index 000000000..554139477 --- /dev/null +++ b/itag/src/model/PageViewTntUserResult.cc @@ -0,0 +1,125 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewTntUserResult::PageViewTntUserResult() : + ServiceResult() +{} + +PageViewTntUserResult::PageViewTntUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewTntUserResult::~PageViewTntUserResult() +{} + +void PageViewTntUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ListItem"]; + for (auto resultNodeListListItem : allListNode) + { + Result::ListItem listItemObject; + if(!resultNodeListListItem["Role"].isNull()) + listItemObject.role = resultNodeListListItem["Role"].asString(); + if(!resultNodeListListItem["Self"].isNull()) + listItemObject.self = resultNodeListListItem["Self"].asString() == "true"; + if(!resultNodeListListItem["TntInstId"].isNull()) + listItemObject.tntInstId = resultNodeListListItem["TntInstId"].asString(); + if(!resultNodeListListItem["Email"].isNull()) + listItemObject.email = resultNodeListListItem["Email"].asString(); + if(!resultNodeListListItem["Phone"].isNull()) + listItemObject.phone = resultNodeListListItem["Phone"].asString(); + if(!resultNodeListListItem["SupplierId"].isNull()) + listItemObject.supplierId = resultNodeListListItem["SupplierId"].asString(); + if(!resultNodeListListItem["Org"].isNull()) + listItemObject.org = resultNodeListListItem["Org"].asString(); + if(!resultNodeListListItem["RefUserId"].isNull()) + listItemObject.refUserId = resultNodeListListItem["RefUserId"].asString(); + if(!resultNodeListListItem["UserId"].isNull()) + listItemObject.userId = resultNodeListListItem["UserId"].asString(); + if(!resultNodeListListItem["UserName"].isNull()) + listItemObject.userName = resultNodeListListItem["UserName"].asString(); + if(!resultNodeListListItem["AccountType"].isNull()) + listItemObject.accountType = resultNodeListListItem["AccountType"].asString(); + if(!resultNodeListListItem["AccountNo"].isNull()) + listItemObject.accountNo = resultNodeListListItem["AccountNo"].asString(); + if(!resultNodeListListItem["BizNo"].isNull()) + listItemObject.bizNo = resultNodeListListItem["BizNo"].asString(); + result_.list.push_back(listItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewTntUserResult::getMsg()const +{ + return msg_; +} + +bool PageViewTntUserResult::getSucc()const +{ + return succ_; +} + +std::string PageViewTntUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewTntUserResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewTntUserResult::getCode()const +{ + return code_; +} + +PageViewTntUserResult::Result PageViewTntUserResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewUserGroupRequest.cc b/itag/src/model/PageViewUserGroupRequest.cc new file mode 100644 index 000000000..00bba0ee4 --- /dev/null +++ b/itag/src/model/PageViewUserGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewUserGroupRequest; + +PageViewUserGroupRequest::PageViewUserGroupRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usergroup/pageViewUserGroup"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewUserGroupRequest::~PageViewUserGroupRequest() {} + +std::string PageViewUserGroupRequest::getBody() const { + return body_; +} + +void PageViewUserGroupRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewUserGroupResult.cc b/itag/src/model/PageViewUserGroupResult.cc new file mode 100644 index 000000000..b3c7a09f4 --- /dev/null +++ b/itag/src/model/PageViewUserGroupResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewUserGroupResult::PageViewUserGroupResult() : + ServiceResult() +{} + +PageViewUserGroupResult::PageViewUserGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewUserGroupResult::~PageViewUserGroupResult() +{} + +void PageViewUserGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto listNode = resultNode["List"]; + if(!listNode["TntInstId"].isNull()) + result_.list.tntInstId = listNode["TntInstId"].asString(); + if(!listNode["GroupId"].isNull()) + result_.list.groupId = listNode["GroupId"].asString(); + if(!listNode["GroupName"].isNull()) + result_.list.groupName = listNode["GroupName"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewUserGroupResult::getMsg()const +{ + return msg_; +} + +bool PageViewUserGroupResult::getSucc()const +{ + return succ_; +} + +std::string PageViewUserGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewUserGroupResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewUserGroupResult::getCode()const +{ + return code_; +} + +PageViewUserGroupResult::Result PageViewUserGroupResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageViewUserRequest.cc b/itag/src/model/PageViewUserRequest.cc new file mode 100644 index 000000000..ac557c834 --- /dev/null +++ b/itag/src/model/PageViewUserRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageViewUserRequest; + +PageViewUserRequest::PageViewUserRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/user/pageViewUser"}; + setMethod(HttpRequest::Method::Post); +} + +PageViewUserRequest::~PageViewUserRequest() {} + +std::string PageViewUserRequest::getBody() const { + return body_; +} + +void PageViewUserRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageViewUserResult.cc b/itag/src/model/PageViewUserResult.cc new file mode 100644 index 000000000..9e054065f --- /dev/null +++ b/itag/src/model/PageViewUserResult.cc @@ -0,0 +1,112 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageViewUserResult::PageViewUserResult() : + ServiceResult() +{} + +PageViewUserResult::PageViewUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageViewUserResult::~PageViewUserResult() +{} + +void PageViewUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto listNode = resultNode["List"]; + if(!listNode["UserId"].isNull()) + result_.list.userId = listNode["UserId"].asString(); + if(!listNode["UserName"].isNull()) + result_.list.userName = listNode["UserName"].asString(); + if(!listNode["AccountType"].isNull()) + result_.list.accountType = listNode["AccountType"].asString(); + if(!listNode["AccountNo"].isNull()) + result_.list.accountNo = listNode["AccountNo"].asString(); + if(!listNode["Email"].isNull()) + result_.list.email = listNode["Email"].asString(); + if(!listNode["Phone"].isNull()) + result_.list.phone = listNode["Phone"].asString(); + if(!listNode["SupplierId"].isNull()) + result_.list.supplierId = listNode["SupplierId"].asString(); + if(!listNode["Org"].isNull()) + result_.list.org = listNode["Org"].asString(); + if(!listNode["RefUserId"].isNull()) + result_.list.refUserId = listNode["RefUserId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageViewUserResult::getMsg()const +{ + return msg_; +} + +bool PageViewUserResult::getSucc()const +{ + return succ_; +} + +std::string PageViewUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageViewUserResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageViewUserResult::getCode()const +{ + return code_; +} + +PageViewUserResult::Result PageViewUserResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PageviewSubTaskRequest.cc b/itag/src/model/PageviewSubTaskRequest.cc new file mode 100644 index 000000000..766b61412 --- /dev/null +++ b/itag/src/model/PageviewSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PageviewSubTaskRequest; + +PageviewSubTaskRequest::PageviewSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/subtask/pageviewSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +PageviewSubTaskRequest::~PageviewSubTaskRequest() {} + +std::string PageviewSubTaskRequest::getBody() const { + return body_; +} + +void PageviewSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PageviewSubTaskResult.cc b/itag/src/model/PageviewSubTaskResult.cc new file mode 100644 index 000000000..c07780ef3 --- /dev/null +++ b/itag/src/model/PageviewSubTaskResult.cc @@ -0,0 +1,126 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PageviewSubTaskResult::PageviewSubTaskResult() : + ServiceResult() +{} + +PageviewSubTaskResult::PageviewSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PageviewSubTaskResult::~PageviewSubTaskResult() +{} + +void PageviewSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagSubTaskDTO"]; + for (auto resultNodeListITagSubTaskDTO : allListNode) + { + Result::ITagSubTaskDTO iTagSubTaskDTOObject; + if(!resultNodeListITagSubTaskDTO["Id"].isNull()) + iTagSubTaskDTOObject.id = resultNodeListITagSubTaskDTO["Id"].asString(); + if(!resultNodeListITagSubTaskDTO["TaskId"].isNull()) + iTagSubTaskDTOObject.taskId = resultNodeListITagSubTaskDTO["TaskId"].asString(); + if(!resultNodeListITagSubTaskDTO["CurrentWorkNode"].isNull()) + iTagSubTaskDTOObject.currentWorkNode = resultNodeListITagSubTaskDTO["CurrentWorkNode"].asString(); + if(!resultNodeListITagSubTaskDTO["CurrentUserSubTaskId"].isNull()) + iTagSubTaskDTOObject.currentUserSubTaskId = resultNodeListITagSubTaskDTO["CurrentUserSubTaskId"].asString(); + if(!resultNodeListITagSubTaskDTO["WorkNodeState"].isNull()) + iTagSubTaskDTOObject.workNodeState = resultNodeListITagSubTaskDTO["WorkNodeState"].asString(); + if(!resultNodeListITagSubTaskDTO["WorkNodeUsers"].isNull()) + iTagSubTaskDTOObject.workNodeUsers = resultNodeListITagSubTaskDTO["WorkNodeUsers"].asString(); + if(!resultNodeListITagSubTaskDTO["CanReassign"].isNull()) + iTagSubTaskDTOObject.canReassign = resultNodeListITagSubTaskDTO["CanReassign"].asString() == "true"; + if(!resultNodeListITagSubTaskDTO["CanRelease"].isNull()) + iTagSubTaskDTOObject.canRelease = resultNodeListITagSubTaskDTO["CanRelease"].asString() == "true"; + if(!resultNodeListITagSubTaskDTO["CanDiscard"].isNull()) + iTagSubTaskDTOObject.canDiscard = resultNodeListITagSubTaskDTO["CanDiscard"].asString() == "true"; + auto currentHandlerNode = value["CurrentHandler"]; + if(!currentHandlerNode["UserId"].isNull()) + iTagSubTaskDTOObject.currentHandler.userId = currentHandlerNode["UserId"].asString(); + if(!currentHandlerNode["UserName"].isNull()) + iTagSubTaskDTOObject.currentHandler.userName = currentHandlerNode["UserName"].asString(); + if(!currentHandlerNode["AccountType"].isNull()) + iTagSubTaskDTOObject.currentHandler.accountType = currentHandlerNode["AccountType"].asString(); + if(!currentHandlerNode["AccountNo"].isNull()) + iTagSubTaskDTOObject.currentHandler.accountNo = currentHandlerNode["AccountNo"].asString(); + result_.list.push_back(iTagSubTaskDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PageviewSubTaskResult::getMsg()const +{ + return msg_; +} + +bool PageviewSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string PageviewSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PageviewSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PageviewSubTaskResult::getCode()const +{ + return code_; +} + +PageviewSubTaskResult::Result PageviewSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PollingSampleMarkItemsRequest.cc b/itag/src/model/PollingSampleMarkItemsRequest.cc new file mode 100644 index 000000000..b6449a228 --- /dev/null +++ b/itag/src/model/PollingSampleMarkItemsRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PollingSampleMarkItemsRequest; + +PollingSampleMarkItemsRequest::PollingSampleMarkItemsRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/pollingSampleMarkItems"}; + setMethod(HttpRequest::Method::Post); +} + +PollingSampleMarkItemsRequest::~PollingSampleMarkItemsRequest() {} + +std::string PollingSampleMarkItemsRequest::getBody() const { + return body_; +} + +void PollingSampleMarkItemsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PollingSampleMarkItemsResult.cc b/itag/src/model/PollingSampleMarkItemsResult.cc new file mode 100644 index 000000000..e88716ece --- /dev/null +++ b/itag/src/model/PollingSampleMarkItemsResult.cc @@ -0,0 +1,439 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PollingSampleMarkItemsResult::PollingSampleMarkItemsResult() : + ServiceResult() +{} + +PollingSampleMarkItemsResult::PollingSampleMarkItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PollingSampleMarkItemsResult::~PollingSampleMarkItemsResult() +{} + +void PollingSampleMarkItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["HasNonCompleteTask"].isNull()) + result_.hasNonCompleteTask = std::stoi(resultNode["HasNonCompleteTask"].asString()); + if(!resultNode["SampleRecordId"].isNull()) + result_.sampleRecordId = resultNode["SampleRecordId"].asString(); + if(!resultNode["NeedPolling"].isNull()) + result_.needPolling = resultNode["NeedPolling"].asString() == "true"; + if(!resultNode["TotalMarkItemCount"].isNull()) + result_.totalMarkItemCount = resultNode["TotalMarkItemCount"].asString(); + auto iTagMarkableWorkTaskDTONode = resultNode["ITagMarkableWorkTaskDTO"]; + auto allMarkItemListNode = iTagMarkableWorkTaskDTONode["MarkItemList"]["ITagSimpleUserMarkItemDTO"]; + for (auto iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO : allMarkItemListNode) + { + Result::ITagMarkableWorkTaskDTO::ITagSimpleUserMarkItemDTO iTagSimpleUserMarkItemDTOObject; + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["UserMarkItemId"].isNull()) + iTagSimpleUserMarkItemDTOObject.userMarkItemId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["UserMarkItemId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackRemark"].isNull()) + iTagSimpleUserMarkItemDTOObject.feedbackRemark = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackRemark"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.feedbackFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Operator"].isNull()) + iTagSimpleUserMarkItemDTOObject._operator = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Operator"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["MarkItemId"].isNull()) + iTagSimpleUserMarkItemDTOObject.markItemId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["MarkItemId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataId"].isNull()) + iTagSimpleUserMarkItemDTOObject.dataId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DatasetId"].isNull()) + iTagSimpleUserMarkItemDTOObject.datasetId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DatasetId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["State"].isNull()) + iTagSimpleUserMarkItemDTOObject.state = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["State"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Mine"].isNull()) + iTagSimpleUserMarkItemDTOObject.mine = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Mine"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["SubTaskId"].isNull()) + iTagSimpleUserMarkItemDTOObject.subTaskId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["SubTaskId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["RejectFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.rejectFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["RejectFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FixedFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.fixedFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FixedFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.abandonFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonRemark"].isNull()) + iTagSimpleUserMarkItemDTOObject.abandonRemark = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonRemark"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Weight"].isNull()) + iTagSimpleUserMarkItemDTOObject.weight = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Weight"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataMeta"].isNull()) + iTagSimpleUserMarkItemDTOObject.dataMeta = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataMeta"].asString(); + auto allMarkResultListNode = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["MarkResultList"]["ITagSimpleUserMarkResultDTO"]; + for (auto iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO : allMarkResultListNode) + { + Result::ITagMarkableWorkTaskDTO::ITagSimpleUserMarkItemDTO::ITagSimpleUserMarkResultDTO markResultListObject; + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].isNull()) + markResultListObject.markResultId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].isNull()) + markResultListObject.markTitle = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].isNull()) + markResultListObject.markResult = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].isNull()) + markResultListObject.questionId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].isNull()) + markResultListObject.resultType = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].isNull()) + markResultListObject.version = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].asString(); + iTagSimpleUserMarkItemDTOObject.markResultList.push_back(markResultListObject); + } + result_.iTagMarkableWorkTaskDTO.markItemList.push_back(iTagSimpleUserMarkItemDTOObject); + } + auto taskInfoNode = iTagMarkableWorkTaskDTONode["TaskInfo"]; + if(!taskInfoNode["TaskName"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.taskName = taskInfoNode["TaskName"].asString(); + if(!taskInfoNode["TaskId"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.taskId = taskInfoNode["TaskId"].asString(); + if(!taskInfoNode["TaskType"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.taskType = taskInfoNode["TaskType"].asString(); + if(!taskInfoNode["Channel"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.channel = taskInfoNode["Channel"].asString(); + if(!taskInfoNode["SafetyLevel"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.safetyLevel = std::stoi(taskInfoNode["SafetyLevel"].asString()); + auto bizInfoNode = taskInfoNode["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + result_.iTagMarkableWorkTaskDTO.taskInfo.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto subTaskNode = iTagMarkableWorkTaskDTONode["SubTask"]; + if(!subTaskNode["SubTaskId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subTask.subTaskId = subTaskNode["SubTaskId"].asString(); + if(!subTaskNode["TaskId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subTask.taskId = subTaskNode["TaskId"].asString(); + auto handlerNode = subTaskNode["Handler"]; + if(!handlerNode["UserId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subTask.handler.userId = handlerNode["UserId"].asString(); + if(!handlerNode["UserName"].isNull()) + result_.iTagMarkableWorkTaskDTO.subTask.handler.userName = handlerNode["UserName"].asString(); + if(!handlerNode["AccountType"].isNull()) + result_.iTagMarkableWorkTaskDTO.subTask.handler.accountType = handlerNode["AccountType"].asString(); + if(!handlerNode["AccountNo"].isNull()) + result_.iTagMarkableWorkTaskDTO.subTask.handler.accountNo = handlerNode["AccountNo"].asString(); + auto subUserTaskNode = iTagMarkableWorkTaskDTONode["SubUserTask"]; + if(!subUserTaskNode["UserSubTaskId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.userSubTaskId = subUserTaskNode["UserSubTaskId"].asString(); + if(!subUserTaskNode["SubTaskId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.subTaskId = subUserTaskNode["SubTaskId"].asString(); + if(!subUserTaskNode["WorkNode"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.workNode = subUserTaskNode["WorkNode"].asString(); + if(!subUserTaskNode["State"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.state = subUserTaskNode["State"].asString(); + if(!subUserTaskNode["VoteIdx"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.voteIdx = std::stoi(subUserTaskNode["VoteIdx"].asString()); + if(!subUserTaskNode["LastUserSubTaskId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.lastUserSubTaskId = subUserTaskNode["LastUserSubTaskId"].asString(); + if(!subUserTaskNode["OperateFlag"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.operateFlag = subUserTaskNode["OperateFlag"].asString(); + if(!subUserTaskNode["RejectFlag"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.rejectFlag = std::stoi(subUserTaskNode["RejectFlag"].asString()); + if(!subUserTaskNode["RejectRemark"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.rejectRemark = subUserTaskNode["RejectRemark"].asString(); + if(!subUserTaskNode["GmtTimeout"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.gmtTimeout = subUserTaskNode["GmtTimeout"].asString(); + if(!subUserTaskNode["ExternalBizNo"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.externalBizNo = subUserTaskNode["ExternalBizNo"].asString(); + auto handler1Node = subUserTaskNode["Handler"]; + if(!handler1Node["UserId"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.handler1.userId = handler1Node["UserId"].asString(); + if(!handler1Node["UserName"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.handler1.userName = handler1Node["UserName"].asString(); + if(!handler1Node["AccountType"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.handler1.accountType = handler1Node["AccountType"].asString(); + if(!handler1Node["AccountNo"].isNull()) + result_.iTagMarkableWorkTaskDTO.subUserTask.handler1.accountNo = handler1Node["AccountNo"].asString(); + auto optionTemplateNode = iTagMarkableWorkTaskDTONode["OptionTemplate"]; + if(!optionTemplateNode["Id"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.id = optionTemplateNode["Id"].asString(); + if(!optionTemplateNode["Name"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.name = optionTemplateNode["Name"].asString(); + if(!optionTemplateNode["TntInstId"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.tntInstId = optionTemplateNode["TntInstId"].asString(); + if(!optionTemplateNode["Description"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.description = optionTemplateNode["Description"].asString(); + if(!optionTemplateNode["Exif"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.exif = optionTemplateNode["Exif"].asString(); + if(!optionTemplateNode["Status"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.status = std::stoi(optionTemplateNode["Status"].asString()); + if(!optionTemplateNode["SharedMode"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.sharedMode = optionTemplateNode["SharedMode"].asString(); + if(!optionTemplateNode["Type"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.type = optionTemplateNode["Type"].asString(); + if(!optionTemplateNode["Classify"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.classify = optionTemplateNode["Classify"].asString(); + if(!optionTemplateNode["GmtCreate"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.gmtCreate = optionTemplateNode["GmtCreate"].asString(); + if(!optionTemplateNode["GmtModified"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.gmtModified = optionTemplateNode["GmtModified"].asString(); + auto allQuestionConfigsNode = optionTemplateNode["QuestionConfigs"]["QuestionConfigDTO"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTO : allQuestionConfigsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO questionConfigDTOObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Id"].isNull()) + questionConfigDTOObject.id = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Id"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitle"].isNull()) + questionConfigDTOObject.markTitle = optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitle"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].isNull()) + questionConfigDTOObject.markTitleAlias = optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Type"].isNull()) + questionConfigDTOObject.type = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["MustFill"].isNull()) + questionConfigDTOObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigDTO["MustFill"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Display"].isNull()) + questionConfigDTOObject.display = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Display"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Selected"].isNull()) + questionConfigDTOObject.selected = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Selected"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["SelectGroup"].isNull()) + questionConfigDTOObject.selectGroup = optionTemplateNodeQuestionConfigsQuestionConfigDTO["SelectGroup"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["DefaultResult"].isNull()) + questionConfigDTOObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigDTO["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Rule"].isNull()) + questionConfigDTOObject.rule = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Rule"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Exif"].isNull()) + questionConfigDTOObject.exif = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Exif"].asString(); + auto allOptionsNode = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Options"]["QuestionOption"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption : allOptionsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO::QuestionOption optionsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].asString(); + auto allChildren2 = value["Children"]["QuestionOption"]; + for (auto value : allChildren2) + optionsObject.children2.push_back(value.asString()); + questionConfigDTOObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateNodeQuestionConfigsQuestionConfigDTO["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigDTOObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigDTOObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigDTOObject.preOptions.push_back(value.asString()); + result_.iTagMarkableWorkTaskDTO.optionTemplate.questionConfigs.push_back(questionConfigDTOObject); + } + auto viewConfigsNode = optionTemplateNode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["DisplayFieldDTO"]; + for (auto viewConfigsNodeFieldsDisplayFieldDTO : allFieldsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::ViewConfigs::DisplayFieldDTO displayFieldDTOObject; + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].isNull()) + displayFieldDTOObject.fieldName = viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Type"].isNull()) + displayFieldDTOObject.type = viewConfigsNodeFieldsDisplayFieldDTO["Type"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].isNull()) + displayFieldDTOObject.corsProxy = viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Hide"].isNull()) + displayFieldDTOObject.hide = viewConfigsNodeFieldsDisplayFieldDTO["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].isNull()) + displayFieldDTOObject.convertor = viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].isNull()) + displayFieldDTOObject.plugins = viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].isNull()) + displayFieldDTOObject.fieldNames = viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].asString(); + auto visitInfoNode = value["VisitInfo"]; + auto ossConfNode = visitInfoNode["OssConf"]; + if(!ossConfNode["OssEndpoint"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossEndpoint = ossConfNode["OssEndpoint"].asString(); + if(!ossConfNode["OssAk"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAk = ossConfNode["OssAk"].asString(); + if(!ossConfNode["OssAs"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAs = ossConfNode["OssAs"].asString(); + if(!ossConfNode["OssOwner"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossOwner = ossConfNode["OssOwner"].asString(); + if(!ossConfNode["OssBucket"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossBucket = ossConfNode["OssBucket"].asString(); + if(!ossConfNode["Folder"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.folder = ossConfNode["Folder"].asString(); + if(!ossConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.expiredTime = std::stol(ossConfNode["ExpiredTime"].asString()); + auto aftsConfNode = visitInfoNode["AftsConf"]; + if(!aftsConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.aftsConf.expiredTime = std::stoi(aftsConfNode["ExpiredTime"].asString()); + auto allRelationQuestionIds = value["RelationQuestionIds"]["String"]; + for (auto value : allRelationQuestionIds) + displayFieldDTOObject.relationQuestionIds.push_back(value.asString()); + result_.iTagMarkableWorkTaskDTO.optionTemplate.viewConfigs.fields.push_back(displayFieldDTOObject); + } + auto creatorNode = optionTemplateNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = optionTemplateNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto robotConfigNode = optionTemplateNode["RobotConfig"]; + if(!robotConfigNode["Source"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.source = robotConfigNode["Source"].asString(); + auto allModelServiceConfigsNode = robotConfigNode["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfig : allModelServiceConfigsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::RobotConfig::ModelServiceConfig modelServiceConfigObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfigObject.serviceId = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfigObject.serviceName = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParamsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParamsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::RobotConfig::ModelServiceConfig::ModelServiceConfig$PostParamPair postParamsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParamsObject.key = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParamsObject.value = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfigObject.postParams.push_back(postParamsObject); + } + auto allResultMappingsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappingsNode) + { + Result::ITagMarkableWorkTaskDTO::OptionTemplate::RobotConfig::ModelServiceConfig::ModelServiceConfig$ResultMappingPair resultMappingsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappingsObject.questionId = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappingsObject.resultKey = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappingsObject.markTitle = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfigObject.resultMappings.push_back(resultMappingsObject); + } + result_.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.modelServiceConfigs.push_back(modelServiceConfigObject); + } + auto effectStepNode = robotConfigNode["EffectStep"]; + if(!effectStepNode["PreProcess"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.preProcess = effectStepNode["PreProcess"].asString() == "true"; + if(!effectStepNode["PreLabel"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.preLabel = effectStepNode["PreLabel"].asString() == "true"; + if(!effectStepNode["Label"].isNull()) + result_.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.label = effectStepNode["Label"].asString() == "true"; + auto processConfigNode = effectStepNode["ProcessConfig"]; + auto allRelateColumn = processConfigNode["RelateColumn"]["String"]; + for (auto value : allRelateColumn) + result_.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.processConfig.relateColumn.push_back(value.asString()); + auto allTags = optionTemplateNode["Tags"]["String"]; + for (auto value : allTags) + result_.iTagMarkableWorkTaskDTO.optionTemplate.tags.push_back(value.asString()); + auto allAbandonReasons = optionTemplateNode["AbandonReasons"]["String"]; + for (auto value : allAbandonReasons) + result_.iTagMarkableWorkTaskDTO.optionTemplate.abandonReasons.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string PollingSampleMarkItemsResult::getMsg()const +{ + return msg_; +} + +bool PollingSampleMarkItemsResult::getSucc()const +{ + return succ_; +} + +std::string PollingSampleMarkItemsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PollingSampleMarkItemsResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PollingSampleMarkItemsResult::getCode()const +{ + return code_; +} + +PollingSampleMarkItemsResult::Result PollingSampleMarkItemsResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/PreviewTaskTemplateRequest.cc b/itag/src/model/PreviewTaskTemplateRequest.cc new file mode 100644 index 000000000..f749f32fa --- /dev/null +++ b/itag/src/model/PreviewTaskTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::PreviewTaskTemplateRequest; + +PreviewTaskTemplateRequest::PreviewTaskTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/previewTask"}; + setMethod(HttpRequest::Method::Post); +} + +PreviewTaskTemplateRequest::~PreviewTaskTemplateRequest() {} + +std::string PreviewTaskTemplateRequest::getBody() const { + return body_; +} + +void PreviewTaskTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/PreviewTaskTemplateResult.cc b/itag/src/model/PreviewTaskTemplateResult.cc new file mode 100644 index 000000000..891759811 --- /dev/null +++ b/itag/src/model/PreviewTaskTemplateResult.cc @@ -0,0 +1,317 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +PreviewTaskTemplateResult::PreviewTaskTemplateResult() : + ServiceResult() +{} + +PreviewTaskTemplateResult::PreviewTaskTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreviewTaskTemplateResult::~PreviewTaskTemplateResult() +{} + +void PreviewTaskTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allMarkItemListNode = resultNode["MarkItemList"]["MarkItemListItem"]; + for (auto resultNodeMarkItemListMarkItemListItem : allMarkItemListNode) + { + Result::MarkItemListItem markItemListItemObject; + if(!resultNodeMarkItemListMarkItemListItem["MarkItemId"].isNull()) + markItemListItemObject.markItemId = resultNodeMarkItemListMarkItemListItem["MarkItemId"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["DataId"].isNull()) + markItemListItemObject.dataId = resultNodeMarkItemListMarkItemListItem["DataId"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["DatasetId"].isNull()) + markItemListItemObject.datasetId = resultNodeMarkItemListMarkItemListItem["DatasetId"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["State"].isNull()) + markItemListItemObject.state = resultNodeMarkItemListMarkItemListItem["State"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["Mine"].isNull()) + markItemListItemObject.mine = std::stol(resultNodeMarkItemListMarkItemListItem["Mine"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["RejectFlag"].isNull()) + markItemListItemObject.rejectFlag = std::stol(resultNodeMarkItemListMarkItemListItem["RejectFlag"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["FixedFlag"].isNull()) + markItemListItemObject.fixedFlag = std::stol(resultNodeMarkItemListMarkItemListItem["FixedFlag"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["AbandonFlag"].isNull()) + markItemListItemObject.abandonFlag = std::stol(resultNodeMarkItemListMarkItemListItem["AbandonFlag"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["Weight"].isNull()) + markItemListItemObject.weight = std::stol(resultNodeMarkItemListMarkItemListItem["Weight"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["DataMeta"].isNull()) + markItemListItemObject.dataMeta = resultNodeMarkItemListMarkItemListItem["DataMeta"].asString(); + auto allMarkResultListNode = resultNodeMarkItemListMarkItemListItem["MarkResultList"]["MarkResultListItem"]; + for (auto resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem : allMarkResultListNode) + { + Result::MarkItemListItem::MarkResultListItem markResultListObject; + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["UserMarkResultId"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResultId"].isNull()) + markResultListObject.markResultId = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResultId"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkTitle"].isNull()) + markResultListObject.markTitle = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkTitle"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResult"].isNull()) + markResultListObject.markResult = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResult"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["QuestionId"].isNull()) + markResultListObject.questionId = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["QuestionId"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["ResultType"].isNull()) + markResultListObject.resultType = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["ResultType"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["Version"].isNull()) + markResultListObject.version = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["Version"].asString(); + markItemListItemObject.markResultList.push_back(markResultListObject); + } + result_.markItemList.push_back(markItemListItemObject); + } + auto taskInfoNode = resultNode["TaskInfo"]; + if(!taskInfoNode["TaskName"].isNull()) + result_.taskInfo.taskName = taskInfoNode["TaskName"].asString(); + if(!taskInfoNode["TaskId"].isNull()) + result_.taskInfo.taskId = taskInfoNode["TaskId"].asString(); + if(!taskInfoNode["TaskType"].isNull()) + result_.taskInfo.taskType = taskInfoNode["TaskType"].asString(); + if(!taskInfoNode["Channel"].isNull()) + result_.taskInfo.channel = taskInfoNode["Channel"].asString(); + if(!taskInfoNode["SafetyLevel"].isNull()) + result_.taskInfo.safetyLevel = std::stol(taskInfoNode["SafetyLevel"].asString()); + auto bizInfoNode = taskInfoNode["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + result_.taskInfo.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + result_.taskInfo.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + result_.taskInfo.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto subTaskNode = resultNode["SubTask"]; + if(!subTaskNode["SubTaskId"].isNull()) + result_.subTask.subTaskId = subTaskNode["SubTaskId"].asString(); + auto subUserTaskNode = resultNode["SubUserTask"]; + if(!subUserTaskNode["UserSubTaskId"].isNull()) + result_.subUserTask.userSubTaskId = subUserTaskNode["UserSubTaskId"].asString(); + if(!subUserTaskNode["SubTaskId"].isNull()) + result_.subUserTask.subTaskId = subUserTaskNode["SubTaskId"].asString(); + if(!subUserTaskNode["WorkNode"].isNull()) + result_.subUserTask.workNode = subUserTaskNode["WorkNode"].asString(); + if(!subUserTaskNode["State"].isNull()) + result_.subUserTask.state = subUserTaskNode["State"].asString(); + if(!subUserTaskNode["VoteIdx"].isNull()) + result_.subUserTask.voteIdx = std::stol(subUserTaskNode["VoteIdx"].asString()); + if(!subUserTaskNode["LastUserSubTaskId"].isNull()) + result_.subUserTask.lastUserSubTaskId = subUserTaskNode["LastUserSubTaskId"].asString(); + if(!subUserTaskNode["OperateFlag"].isNull()) + result_.subUserTask.operateFlag = subUserTaskNode["OperateFlag"].asString(); + if(!subUserTaskNode["RejectFlag"].isNull()) + result_.subUserTask.rejectFlag = std::stol(subUserTaskNode["RejectFlag"].asString()); + if(!subUserTaskNode["RejectRemark"].isNull()) + result_.subUserTask.rejectRemark = subUserTaskNode["RejectRemark"].asString(); + if(!subUserTaskNode["GmtTimeout"].isNull()) + result_.subUserTask.gmtTimeout = subUserTaskNode["GmtTimeout"].asString(); + if(!subUserTaskNode["ExternalBizNo"].isNull()) + result_.subUserTask.externalBizNo = subUserTaskNode["ExternalBizNo"].asString(); + auto handlerNode = subUserTaskNode["Handler"]; + if(!handlerNode["UserId"].isNull()) + result_.subUserTask.handler.userId = handlerNode["UserId"].asString(); + if(!handlerNode["UserName"].isNull()) + result_.subUserTask.handler.userName = handlerNode["UserName"].asString(); + if(!handlerNode["AccountType"].isNull()) + result_.subUserTask.handler.accountType = handlerNode["AccountType"].asString(); + if(!handlerNode["AccountNo"].isNull()) + result_.subUserTask.handler.accountNo = handlerNode["AccountNo"].asString(); + auto optionTemplateNode = resultNode["OptionTemplate"]; + if(!optionTemplateNode["GmtCreate"].isNull()) + result_.optionTemplate.gmtCreate = optionTemplateNode["GmtCreate"].asString(); + if(!optionTemplateNode["GmtModified"].isNull()) + result_.optionTemplate.gmtModified = optionTemplateNode["GmtModified"].asString(); + if(!optionTemplateNode["Id"].isNull()) + result_.optionTemplate.id = optionTemplateNode["Id"].asString(); + if(!optionTemplateNode["Name"].isNull()) + result_.optionTemplate.name = optionTemplateNode["Name"].asString(); + if(!optionTemplateNode["TntInstId"].isNull()) + result_.optionTemplate.tntInstId = optionTemplateNode["TntInstId"].asString(); + if(!optionTemplateNode["Description"].isNull()) + result_.optionTemplate.description = optionTemplateNode["Description"].asString(); + if(!optionTemplateNode["Exif"].isNull()) + result_.optionTemplate.exif = optionTemplateNode["Exif"].asString(); + if(!optionTemplateNode["Status"].isNull()) + result_.optionTemplate.status = std::stol(optionTemplateNode["Status"].asString()); + if(!optionTemplateNode["SharedMode"].isNull()) + result_.optionTemplate.sharedMode = optionTemplateNode["SharedMode"].asString(); + if(!optionTemplateNode["Type"].isNull()) + result_.optionTemplate.type = optionTemplateNode["Type"].asString(); + if(!optionTemplateNode["Classify"].isNull()) + result_.optionTemplate.classify = optionTemplateNode["Classify"].asString(); + auto allQuestionConfigsNode = optionTemplateNode["QuestionConfigs"]["QuestionConfigsItem"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItem : allQuestionConfigsNode) + { + Result::OptionTemplate::QuestionConfigsItem questionConfigsItemObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Id"].isNull()) + questionConfigsItemObject.id = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Id"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitle"].isNull()) + questionConfigsItemObject.markTitle = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitle"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitleAlias"].isNull()) + questionConfigsItemObject.markTitleAlias = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitleAlias"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Type"].isNull()) + questionConfigsItemObject.type = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MustFill"].isNull()) + questionConfigsItemObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MustFill"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Display"].isNull()) + questionConfigsItemObject.display = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Display"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Selected"].isNull()) + questionConfigsItemObject.selected = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Selected"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["SelectGroup"].isNull()) + questionConfigsItemObject.selectGroup = optionTemplateNodeQuestionConfigsQuestionConfigsItem["SelectGroup"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["DefaultResult"].isNull()) + questionConfigsItemObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItem["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Rule"].isNull()) + questionConfigsItemObject.rule = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Rule"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Exif"].isNull()) + questionConfigsItemObject.exif = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Exif"].asString(); + auto allOptionsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Options"]["QuestionOption"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption : allOptionsNode) + { + Result::OptionTemplate::QuestionConfigsItem::QuestionOption optionsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Label"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Key"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Color"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Value"].asString(); + auto allChildren1 = value["Children"]["QuestionOption"]; + for (auto value : allChildren1) + optionsObject.children1.push_back(value.asString()); + questionConfigsItemObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItem["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::OptionTemplate::QuestionConfigsItem::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::OptionTemplate::QuestionConfigsItem::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigsItemObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigsItemObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigsItemObject.preOptions.push_back(value.asString()); + result_.optionTemplate.questionConfigs.push_back(questionConfigsItemObject); + } + auto viewConfigsNode = optionTemplateNode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["FieldsItem"]; + for (auto viewConfigsNodeFieldsFieldsItem : allFieldsNode) + { + Result::OptionTemplate::ViewConfigs::FieldsItem fieldsItemObject; + if(!viewConfigsNodeFieldsFieldsItem["FieldName"].isNull()) + fieldsItemObject.fieldName = viewConfigsNodeFieldsFieldsItem["FieldName"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["Type"].isNull()) + fieldsItemObject.type = viewConfigsNodeFieldsFieldsItem["Type"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["CorsProxy"].isNull()) + fieldsItemObject.corsProxy = viewConfigsNodeFieldsFieldsItem["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsFieldsItem["Hide"].isNull()) + fieldsItemObject.hide = viewConfigsNodeFieldsFieldsItem["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsFieldsItem["Convertor"].isNull()) + fieldsItemObject.convertor = viewConfigsNodeFieldsFieldsItem["Convertor"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["VisitInfo"].isNull()) + fieldsItemObject.visitInfo = viewConfigsNodeFieldsFieldsItem["VisitInfo"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["Plugins"].isNull()) + fieldsItemObject.plugins = viewConfigsNodeFieldsFieldsItem["Plugins"].asString(); + auto allRelationQuestionIds = value["RelationQuestionIds"]["RelationQuestionIds"]; + for (auto value : allRelationQuestionIds) + fieldsItemObject.relationQuestionIds.push_back(value.asString()); + result_.optionTemplate.viewConfigs.fields.push_back(fieldsItemObject); + } + auto allTags = optionTemplateNode["Tags"]["Tags"]; + for (auto value : allTags) + result_.optionTemplate.tags.push_back(value.asString()); + auto allAbandonReasons = optionTemplateNode["AbandonReasons"]["AbandonReasons"]; + for (auto value : allAbandonReasons) + result_.optionTemplate.abandonReasons.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + +} + +std::string PreviewTaskTemplateResult::getMsg()const +{ + return msg_; +} + +bool PreviewTaskTemplateResult::getSucc()const +{ + return succ_; +} + +std::string PreviewTaskTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +std::string PreviewTaskTemplateResult::getCode()const +{ + return code_; +} + +PreviewTaskTemplateResult::Result PreviewTaskTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ProxyRobotServiceRequest.cc b/itag/src/model/ProxyRobotServiceRequest.cc new file mode 100644 index 000000000..23fb2eece --- /dev/null +++ b/itag/src/model/ProxyRobotServiceRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ProxyRobotServiceRequest; + +ProxyRobotServiceRequest::ProxyRobotServiceRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/robot/proxy"}; + setMethod(HttpRequest::Method::Post); +} + +ProxyRobotServiceRequest::~ProxyRobotServiceRequest() {} + +std::string ProxyRobotServiceRequest::getBody() const { + return body_; +} + +void ProxyRobotServiceRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ProxyRobotServiceResult.cc b/itag/src/model/ProxyRobotServiceResult.cc new file mode 100644 index 000000000..247bd6734 --- /dev/null +++ b/itag/src/model/ProxyRobotServiceResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ProxyRobotServiceResult::ProxyRobotServiceResult() : + ServiceResult() +{} + +ProxyRobotServiceResult::ProxyRobotServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ProxyRobotServiceResult::~ProxyRobotServiceResult() +{} + +void ProxyRobotServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Succ"].isNull()) + result_.succ = resultNode["Succ"].asString() == "true"; + if(!resultNode["Data"].isNull()) + result_.data = resultNode["Data"].asString(); + if(!resultNode["Msg"].isNull()) + result_.msg = resultNode["Msg"].asString(); + if(!resultNode["RobotCode"].isNull()) + result_.robotCode = resultNode["RobotCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ProxyRobotServiceResult::getMsg()const +{ + return msg_; +} + +bool ProxyRobotServiceResult::getSucc()const +{ + return succ_; +} + +std::string ProxyRobotServiceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ProxyRobotServiceResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ProxyRobotServiceResult::getCode()const +{ + return code_; +} + +ProxyRobotServiceResult::Result ProxyRobotServiceResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/QueryMarkableSubTaskRequest.cc b/itag/src/model/QueryMarkableSubTaskRequest.cc new file mode 100644 index 000000000..78fbfa2d3 --- /dev/null +++ b/itag/src/model/QueryMarkableSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::QueryMarkableSubTaskRequest; + +QueryMarkableSubTaskRequest::QueryMarkableSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/task/queryMarkableSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +QueryMarkableSubTaskRequest::~QueryMarkableSubTaskRequest() {} + +std::string QueryMarkableSubTaskRequest::getBody() const { + return body_; +} + +void QueryMarkableSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/QueryMarkableSubTaskResult.cc b/itag/src/model/QueryMarkableSubTaskResult.cc new file mode 100644 index 000000000..b340b5a4b --- /dev/null +++ b/itag/src/model/QueryMarkableSubTaskResult.cc @@ -0,0 +1,324 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +QueryMarkableSubTaskResult::QueryMarkableSubTaskResult() : + ServiceResult() +{} + +QueryMarkableSubTaskResult::QueryMarkableSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMarkableSubTaskResult::~QueryMarkableSubTaskResult() +{} + +void QueryMarkableSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allMarkItemListNode = resultNode["MarkItemList"]["MarkItemListItem"]; + for (auto resultNodeMarkItemListMarkItemListItem : allMarkItemListNode) + { + Result::MarkItemListItem markItemListItemObject; + if(!resultNodeMarkItemListMarkItemListItem["MarkItemId"].isNull()) + markItemListItemObject.markItemId = resultNodeMarkItemListMarkItemListItem["MarkItemId"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["DataId"].isNull()) + markItemListItemObject.dataId = resultNodeMarkItemListMarkItemListItem["DataId"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["DatasetId"].isNull()) + markItemListItemObject.datasetId = resultNodeMarkItemListMarkItemListItem["DatasetId"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["State"].isNull()) + markItemListItemObject.state = resultNodeMarkItemListMarkItemListItem["State"].asString(); + if(!resultNodeMarkItemListMarkItemListItem["Mine"].isNull()) + markItemListItemObject.mine = std::stol(resultNodeMarkItemListMarkItemListItem["Mine"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["RejectFlag"].isNull()) + markItemListItemObject.rejectFlag = std::stol(resultNodeMarkItemListMarkItemListItem["RejectFlag"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["FixedFlag"].isNull()) + markItemListItemObject.fixedFlag = std::stol(resultNodeMarkItemListMarkItemListItem["FixedFlag"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["AbandonFlag"].isNull()) + markItemListItemObject.abandonFlag = std::stol(resultNodeMarkItemListMarkItemListItem["AbandonFlag"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["Weight"].isNull()) + markItemListItemObject.weight = std::stol(resultNodeMarkItemListMarkItemListItem["Weight"].asString()); + if(!resultNodeMarkItemListMarkItemListItem["DataMeta"].isNull()) + markItemListItemObject.dataMeta = resultNodeMarkItemListMarkItemListItem["DataMeta"].asString(); + auto allMarkResultListNode = resultNodeMarkItemListMarkItemListItem["MarkResultList"]["MarkResultListItem"]; + for (auto resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem : allMarkResultListNode) + { + Result::MarkItemListItem::MarkResultListItem markResultListObject; + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["UserMarkResultId"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResultId"].isNull()) + markResultListObject.markResultId = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResultId"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkTitle"].isNull()) + markResultListObject.markTitle = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkTitle"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResult"].isNull()) + markResultListObject.markResult = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["MarkResult"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["QuestionId"].isNull()) + markResultListObject.questionId = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["QuestionId"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["ResultType"].isNull()) + markResultListObject.resultType = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["ResultType"].asString(); + if(!resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["Version"].isNull()) + markResultListObject.version = resultNodeMarkItemListMarkItemListItemMarkResultListMarkResultListItem["Version"].asString(); + markItemListItemObject.markResultList.push_back(markResultListObject); + } + result_.markItemList.push_back(markItemListItemObject); + } + auto taskInfoNode = resultNode["TaskInfo"]; + if(!taskInfoNode["TaskName"].isNull()) + result_.taskInfo.taskName = taskInfoNode["TaskName"].asString(); + if(!taskInfoNode["TaskId"].isNull()) + result_.taskInfo.taskId = taskInfoNode["TaskId"].asString(); + if(!taskInfoNode["TaskType"].isNull()) + result_.taskInfo.taskType = taskInfoNode["TaskType"].asString(); + if(!taskInfoNode["Channel"].isNull()) + result_.taskInfo.channel = taskInfoNode["Channel"].asString(); + if(!taskInfoNode["SafetyLevel"].isNull()) + result_.taskInfo.safetyLevel = std::stol(taskInfoNode["SafetyLevel"].asString()); + auto bizInfoNode = taskInfoNode["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + result_.taskInfo.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + result_.taskInfo.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + result_.taskInfo.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto subTaskNode = resultNode["SubTask"]; + if(!subTaskNode["SubTaskId"].isNull()) + result_.subTask.subTaskId = subTaskNode["SubTaskId"].asString(); + auto subUserTaskNode = resultNode["SubUserTask"]; + if(!subUserTaskNode["UserSubTaskId"].isNull()) + result_.subUserTask.userSubTaskId = subUserTaskNode["UserSubTaskId"].asString(); + if(!subUserTaskNode["SubTaskId"].isNull()) + result_.subUserTask.subTaskId = subUserTaskNode["SubTaskId"].asString(); + if(!subUserTaskNode["WorkNode"].isNull()) + result_.subUserTask.workNode = subUserTaskNode["WorkNode"].asString(); + if(!subUserTaskNode["State"].isNull()) + result_.subUserTask.state = subUserTaskNode["State"].asString(); + if(!subUserTaskNode["VoteIdx"].isNull()) + result_.subUserTask.voteIdx = std::stol(subUserTaskNode["VoteIdx"].asString()); + if(!subUserTaskNode["LastUserSubTaskId"].isNull()) + result_.subUserTask.lastUserSubTaskId = subUserTaskNode["LastUserSubTaskId"].asString(); + if(!subUserTaskNode["OperateFlag"].isNull()) + result_.subUserTask.operateFlag = subUserTaskNode["OperateFlag"].asString(); + if(!subUserTaskNode["RejectFlag"].isNull()) + result_.subUserTask.rejectFlag = std::stol(subUserTaskNode["RejectFlag"].asString()); + if(!subUserTaskNode["RejectRemark"].isNull()) + result_.subUserTask.rejectRemark = subUserTaskNode["RejectRemark"].asString(); + if(!subUserTaskNode["GmtTimeout"].isNull()) + result_.subUserTask.gmtTimeout = subUserTaskNode["GmtTimeout"].asString(); + if(!subUserTaskNode["ExternalBizNo"].isNull()) + result_.subUserTask.externalBizNo = subUserTaskNode["ExternalBizNo"].asString(); + auto handlerNode = subUserTaskNode["Handler"]; + if(!handlerNode["UserId"].isNull()) + result_.subUserTask.handler.userId = handlerNode["UserId"].asString(); + if(!handlerNode["UserName"].isNull()) + result_.subUserTask.handler.userName = handlerNode["UserName"].asString(); + if(!handlerNode["AccountType"].isNull()) + result_.subUserTask.handler.accountType = handlerNode["AccountType"].asString(); + if(!handlerNode["AccountNo"].isNull()) + result_.subUserTask.handler.accountNo = handlerNode["AccountNo"].asString(); + auto optionTemplateNode = resultNode["OptionTemplate"]; + if(!optionTemplateNode["GmtCreate"].isNull()) + result_.optionTemplate.gmtCreate = optionTemplateNode["GmtCreate"].asString(); + if(!optionTemplateNode["GmtModified"].isNull()) + result_.optionTemplate.gmtModified = optionTemplateNode["GmtModified"].asString(); + if(!optionTemplateNode["Id"].isNull()) + result_.optionTemplate.id = optionTemplateNode["Id"].asString(); + if(!optionTemplateNode["Name"].isNull()) + result_.optionTemplate.name = optionTemplateNode["Name"].asString(); + if(!optionTemplateNode["TntInstId"].isNull()) + result_.optionTemplate.tntInstId = optionTemplateNode["TntInstId"].asString(); + if(!optionTemplateNode["Description"].isNull()) + result_.optionTemplate.description = optionTemplateNode["Description"].asString(); + if(!optionTemplateNode["Exif"].isNull()) + result_.optionTemplate.exif = optionTemplateNode["Exif"].asString(); + if(!optionTemplateNode["Status"].isNull()) + result_.optionTemplate.status = std::stol(optionTemplateNode["Status"].asString()); + if(!optionTemplateNode["SharedMode"].isNull()) + result_.optionTemplate.sharedMode = optionTemplateNode["SharedMode"].asString(); + if(!optionTemplateNode["Type"].isNull()) + result_.optionTemplate.type = optionTemplateNode["Type"].asString(); + if(!optionTemplateNode["Classify"].isNull()) + result_.optionTemplate.classify = optionTemplateNode["Classify"].asString(); + auto allQuestionConfigsNode = optionTemplateNode["QuestionConfigs"]["QuestionConfigsItem"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItem : allQuestionConfigsNode) + { + Result::OptionTemplate::QuestionConfigsItem questionConfigsItemObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Id"].isNull()) + questionConfigsItemObject.id = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Id"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitle"].isNull()) + questionConfigsItemObject.markTitle = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitle"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitleAlias"].isNull()) + questionConfigsItemObject.markTitleAlias = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MarkTitleAlias"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Type"].isNull()) + questionConfigsItemObject.type = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["MustFill"].isNull()) + questionConfigsItemObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigsItem["MustFill"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Display"].isNull()) + questionConfigsItemObject.display = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Display"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Selected"].isNull()) + questionConfigsItemObject.selected = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Selected"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["SelectGroup"].isNull()) + questionConfigsItemObject.selectGroup = optionTemplateNodeQuestionConfigsQuestionConfigsItem["SelectGroup"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["DefaultResult"].isNull()) + questionConfigsItemObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItem["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Rule"].isNull()) + questionConfigsItemObject.rule = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Rule"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItem["Exif"].isNull()) + questionConfigsItemObject.exif = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Exif"].asString(); + auto allOptionsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItem["Options"]["QuestionOption"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption : allOptionsNode) + { + Result::OptionTemplate::QuestionConfigsItem::QuestionOption optionsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Label"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Key"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Color"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateNodeQuestionConfigsQuestionConfigsItemOptionsQuestionOption["Value"].asString(); + auto allChildren1 = value["Children"]["QuestionOption"]; + for (auto value : allChildren1) + optionsObject.children1.push_back(value.asString()); + questionConfigsItemObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItem["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::OptionTemplate::QuestionConfigsItem::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::OptionTemplate::QuestionConfigsItem::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigsItemRobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigsItemObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigsItemObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigsItemObject.preOptions.push_back(value.asString()); + result_.optionTemplate.questionConfigs.push_back(questionConfigsItemObject); + } + auto viewConfigsNode = optionTemplateNode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["FieldsItem"]; + for (auto viewConfigsNodeFieldsFieldsItem : allFieldsNode) + { + Result::OptionTemplate::ViewConfigs::FieldsItem fieldsItemObject; + if(!viewConfigsNodeFieldsFieldsItem["FieldName"].isNull()) + fieldsItemObject.fieldName = viewConfigsNodeFieldsFieldsItem["FieldName"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["Type"].isNull()) + fieldsItemObject.type = viewConfigsNodeFieldsFieldsItem["Type"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["CorsProxy"].isNull()) + fieldsItemObject.corsProxy = viewConfigsNodeFieldsFieldsItem["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsFieldsItem["Hide"].isNull()) + fieldsItemObject.hide = viewConfigsNodeFieldsFieldsItem["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsFieldsItem["Convertor"].isNull()) + fieldsItemObject.convertor = viewConfigsNodeFieldsFieldsItem["Convertor"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["VisitInfo"].isNull()) + fieldsItemObject.visitInfo = viewConfigsNodeFieldsFieldsItem["VisitInfo"].asString(); + if(!viewConfigsNodeFieldsFieldsItem["Plugins"].isNull()) + fieldsItemObject.plugins = viewConfigsNodeFieldsFieldsItem["Plugins"].asString(); + auto allRelationQuestionIds = value["RelationQuestionIds"]["RelationQuestionIds"]; + for (auto value : allRelationQuestionIds) + fieldsItemObject.relationQuestionIds.push_back(value.asString()); + result_.optionTemplate.viewConfigs.fields.push_back(fieldsItemObject); + } + auto allTags = optionTemplateNode["Tags"]["Tags"]; + for (auto value : allTags) + result_.optionTemplate.tags.push_back(value.asString()); + auto allAbandonReasons = optionTemplateNode["AbandonReasons"]["AbandonReasons"]; + for (auto value : allAbandonReasons) + result_.optionTemplate.abandonReasons.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string QueryMarkableSubTaskResult::getMsg()const +{ + return msg_; +} + +bool QueryMarkableSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string QueryMarkableSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryMarkableSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string QueryMarkableSubTaskResult::getCode()const +{ + return code_; +} + +QueryMarkableSubTaskResult::Result QueryMarkableSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/QuerySampleMarkItemsRequest.cc b/itag/src/model/QuerySampleMarkItemsRequest.cc new file mode 100644 index 000000000..45b84613d --- /dev/null +++ b/itag/src/model/QuerySampleMarkItemsRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::QuerySampleMarkItemsRequest; + +QuerySampleMarkItemsRequest::QuerySampleMarkItemsRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/querySampleMarkItems"}; + setMethod(HttpRequest::Method::Post); +} + +QuerySampleMarkItemsRequest::~QuerySampleMarkItemsRequest() {} + +std::string QuerySampleMarkItemsRequest::getBody() const { + return body_; +} + +void QuerySampleMarkItemsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/QuerySampleMarkItemsResult.cc b/itag/src/model/QuerySampleMarkItemsResult.cc new file mode 100644 index 000000000..827a6ef78 --- /dev/null +++ b/itag/src/model/QuerySampleMarkItemsResult.cc @@ -0,0 +1,440 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +QuerySampleMarkItemsResult::QuerySampleMarkItemsResult() : + ServiceResult() +{} + +QuerySampleMarkItemsResult::QuerySampleMarkItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySampleMarkItemsResult::~QuerySampleMarkItemsResult() +{} + +void QuerySampleMarkItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto iTagSamplingStatsDTONode = resultNode["ITagSamplingStatsDTO"]; + if(!iTagSamplingStatsDTONode["HasNonCompleteTask"].isNull()) + result_.iTagSamplingStatsDTO.hasNonCompleteTask = std::stoi(iTagSamplingStatsDTONode["HasNonCompleteTask"].asString()); + if(!iTagSamplingStatsDTONode["SampleRecordId"].isNull()) + result_.iTagSamplingStatsDTO.sampleRecordId = iTagSamplingStatsDTONode["SampleRecordId"].asString(); + if(!iTagSamplingStatsDTONode["NeedPolling"].isNull()) + result_.iTagSamplingStatsDTO.needPolling = iTagSamplingStatsDTONode["NeedPolling"].asString() == "true"; + if(!iTagSamplingStatsDTONode["TotalMarkItemCount"].isNull()) + result_.iTagSamplingStatsDTO.totalMarkItemCount = iTagSamplingStatsDTONode["TotalMarkItemCount"].asString(); + auto iTagMarkableWorkTaskDTONode = iTagSamplingStatsDTONode["ITagMarkableWorkTaskDTO"]; + auto allMarkItemListNode = iTagMarkableWorkTaskDTONode["MarkItemList"]["ITagSimpleUserMarkItemDTO"]; + for (auto iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO : allMarkItemListNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::ITagSimpleUserMarkItemDTO iTagSimpleUserMarkItemDTOObject; + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["UserMarkItemId"].isNull()) + iTagSimpleUserMarkItemDTOObject.userMarkItemId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["UserMarkItemId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackRemark"].isNull()) + iTagSimpleUserMarkItemDTOObject.feedbackRemark = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackRemark"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.feedbackFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FeedbackFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Operator"].isNull()) + iTagSimpleUserMarkItemDTOObject._operator = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Operator"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["MarkItemId"].isNull()) + iTagSimpleUserMarkItemDTOObject.markItemId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["MarkItemId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataId"].isNull()) + iTagSimpleUserMarkItemDTOObject.dataId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DatasetId"].isNull()) + iTagSimpleUserMarkItemDTOObject.datasetId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DatasetId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["State"].isNull()) + iTagSimpleUserMarkItemDTOObject.state = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["State"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Mine"].isNull()) + iTagSimpleUserMarkItemDTOObject.mine = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Mine"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["SubTaskId"].isNull()) + iTagSimpleUserMarkItemDTOObject.subTaskId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["SubTaskId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["RejectFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.rejectFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["RejectFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FixedFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.fixedFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["FixedFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonFlag"].isNull()) + iTagSimpleUserMarkItemDTOObject.abandonFlag = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonFlag"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonRemark"].isNull()) + iTagSimpleUserMarkItemDTOObject.abandonRemark = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["AbandonRemark"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Weight"].isNull()) + iTagSimpleUserMarkItemDTOObject.weight = std::stoi(iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["Weight"].asString()); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataMeta"].isNull()) + iTagSimpleUserMarkItemDTOObject.dataMeta = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["DataMeta"].asString(); + auto allMarkResultListNode = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTO["MarkResultList"]["ITagSimpleUserMarkResultDTO"]; + for (auto iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO : allMarkResultListNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::ITagSimpleUserMarkItemDTO::ITagSimpleUserMarkResultDTO markResultListObject; + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].isNull()) + markResultListObject.markResultId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResultId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].isNull()) + markResultListObject.markTitle = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkTitle"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].isNull()) + markResultListObject.markResult = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["MarkResult"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].isNull()) + markResultListObject.questionId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["QuestionId"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].isNull()) + markResultListObject.resultType = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["ResultType"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].isNull()) + markResultListObject.version = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["Version"].asString(); + if(!iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].isNull()) + markResultListObject.userMarkResultId = iTagMarkableWorkTaskDTONodeMarkItemListITagSimpleUserMarkItemDTOMarkResultListITagSimpleUserMarkResultDTO["UserMarkResultId"].asString(); + iTagSimpleUserMarkItemDTOObject.markResultList.push_back(markResultListObject); + } + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.markItemList.push_back(iTagSimpleUserMarkItemDTOObject); + } + auto taskInfoNode = iTagMarkableWorkTaskDTONode["TaskInfo"]; + if(!taskInfoNode["TaskName"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.taskName = taskInfoNode["TaskName"].asString(); + if(!taskInfoNode["TaskId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.taskId = taskInfoNode["TaskId"].asString(); + if(!taskInfoNode["TaskType"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.taskType = taskInfoNode["TaskType"].asString(); + if(!taskInfoNode["Channel"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.channel = taskInfoNode["Channel"].asString(); + if(!taskInfoNode["SafetyLevel"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.safetyLevel = std::stoi(taskInfoNode["SafetyLevel"].asString()); + auto bizInfoNode = taskInfoNode["BizInfo"]; + if(!bizInfoNode["BizCode"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.bizInfo.bizCode = bizInfoNode["BizCode"].asString(); + if(!bizInfoNode["BizNo"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.bizInfo.bizNo = bizInfoNode["BizNo"].asString(); + if(!bizInfoNode["BizClassify"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.taskInfo.bizInfo.bizClassify = bizInfoNode["BizClassify"].asString(); + auto subTaskNode = iTagMarkableWorkTaskDTONode["SubTask"]; + if(!subTaskNode["SubTaskId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subTask.subTaskId = subTaskNode["SubTaskId"].asString(); + if(!subTaskNode["TaskId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subTask.taskId = subTaskNode["TaskId"].asString(); + auto handlerNode = subTaskNode["Handler"]; + if(!handlerNode["UserId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subTask.handler.userId = handlerNode["UserId"].asString(); + if(!handlerNode["UserName"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subTask.handler.userName = handlerNode["UserName"].asString(); + if(!handlerNode["AccountType"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subTask.handler.accountType = handlerNode["AccountType"].asString(); + if(!handlerNode["AccountNo"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subTask.handler.accountNo = handlerNode["AccountNo"].asString(); + auto subUserTaskNode = iTagMarkableWorkTaskDTONode["SubUserTask"]; + if(!subUserTaskNode["UserSubTaskId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.userSubTaskId = subUserTaskNode["UserSubTaskId"].asString(); + if(!subUserTaskNode["SubTaskId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.subTaskId = subUserTaskNode["SubTaskId"].asString(); + if(!subUserTaskNode["WorkNode"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.workNode = subUserTaskNode["WorkNode"].asString(); + if(!subUserTaskNode["State"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.state = subUserTaskNode["State"].asString(); + if(!subUserTaskNode["VoteIdx"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.voteIdx = std::stoi(subUserTaskNode["VoteIdx"].asString()); + if(!subUserTaskNode["LastUserSubTaskId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.lastUserSubTaskId = subUserTaskNode["LastUserSubTaskId"].asString(); + if(!subUserTaskNode["OperateFlag"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.operateFlag = subUserTaskNode["OperateFlag"].asString(); + if(!subUserTaskNode["RejectFlag"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.rejectFlag = std::stoi(subUserTaskNode["RejectFlag"].asString()); + if(!subUserTaskNode["RejectRemark"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.rejectRemark = subUserTaskNode["RejectRemark"].asString(); + if(!subUserTaskNode["GmtTimeout"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.gmtTimeout = subUserTaskNode["GmtTimeout"].asString(); + if(!subUserTaskNode["ExternalBizNo"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.externalBizNo = subUserTaskNode["ExternalBizNo"].asString(); + auto handler1Node = subUserTaskNode["Handler"]; + if(!handler1Node["UserId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.handler1.userId = handler1Node["UserId"].asString(); + if(!handler1Node["UserName"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.handler1.userName = handler1Node["UserName"].asString(); + if(!handler1Node["AccountType"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.handler1.accountType = handler1Node["AccountType"].asString(); + if(!handler1Node["AccountNo"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.subUserTask.handler1.accountNo = handler1Node["AccountNo"].asString(); + auto optionTemplateNode = iTagMarkableWorkTaskDTONode["OptionTemplate"]; + if(!optionTemplateNode["Id"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.id = optionTemplateNode["Id"].asString(); + if(!optionTemplateNode["Name"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.name = optionTemplateNode["Name"].asString(); + if(!optionTemplateNode["TntInstId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.tntInstId = optionTemplateNode["TntInstId"].asString(); + if(!optionTemplateNode["Description"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.description = optionTemplateNode["Description"].asString(); + if(!optionTemplateNode["Exif"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.exif = optionTemplateNode["Exif"].asString(); + if(!optionTemplateNode["Status"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.status = std::stoi(optionTemplateNode["Status"].asString()); + if(!optionTemplateNode["SharedMode"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.sharedMode = optionTemplateNode["SharedMode"].asString(); + if(!optionTemplateNode["Type"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.type = optionTemplateNode["Type"].asString(); + if(!optionTemplateNode["Classify"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.classify = optionTemplateNode["Classify"].asString(); + if(!optionTemplateNode["GmtCreate"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.gmtCreate = optionTemplateNode["GmtCreate"].asString(); + if(!optionTemplateNode["GmtModified"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.gmtModified = optionTemplateNode["GmtModified"].asString(); + auto allQuestionConfigsNode = optionTemplateNode["QuestionConfigs"]["QuestionConfigDTO"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTO : allQuestionConfigsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO questionConfigDTOObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Id"].isNull()) + questionConfigDTOObject.id = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Id"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitle"].isNull()) + questionConfigDTOObject.markTitle = optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitle"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].isNull()) + questionConfigDTOObject.markTitleAlias = optionTemplateNodeQuestionConfigsQuestionConfigDTO["MarkTitleAlias"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Type"].isNull()) + questionConfigDTOObject.type = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["MustFill"].isNull()) + questionConfigDTOObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigDTO["MustFill"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Display"].isNull()) + questionConfigDTOObject.display = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Display"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Selected"].isNull()) + questionConfigDTOObject.selected = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Selected"].asString() == "true"; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["SelectGroup"].isNull()) + questionConfigDTOObject.selectGroup = optionTemplateNodeQuestionConfigsQuestionConfigDTO["SelectGroup"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["DefaultResult"].isNull()) + questionConfigDTOObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigDTO["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Rule"].isNull()) + questionConfigDTOObject.rule = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Rule"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTO["Exif"].isNull()) + questionConfigDTOObject.exif = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Exif"].asString(); + auto allOptionsNode = optionTemplateNodeQuestionConfigsQuestionConfigDTO["Options"]["QuestionOption"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption : allOptionsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO::QuestionOption optionsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].isNull()) + optionsObject.label = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Label"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].isNull()) + optionsObject.key = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Key"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].isNull()) + optionsObject.shortcut = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Shortcut"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].isNull()) + optionsObject.color = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Color"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].isNull()) + optionsObject.value = optionTemplateNodeQuestionConfigsQuestionConfigDTOOptionsQuestionOption["Value"].asString(); + auto allChildren2 = value["Children"]["QuestionOption"]; + for (auto value : allChildren2) + optionsObject.children2.push_back(value.asString()); + questionConfigDTOObject.options.push_back(optionsObject); + } + auto allRobotConfigsNode = optionTemplateNodeQuestionConfigsQuestionConfigDTO["RobotConfigs"]["TemplateRobotConfig"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig : allRobotConfigsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO::TemplateRobotConfig robotConfigsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].isNull()) + robotConfigsObject.robotId = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["RobotId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].isNull()) + robotConfigsObject.questionId = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["QuestionId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].isNull()) + robotConfigsObject.stage = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Stage"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].isNull()) + robotConfigsObject.type = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Type"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].isNull()) + robotConfigsObject.resultPath = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["ResultPath"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].isNull()) + robotConfigsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["DefaultResult"].asString(); + auto allParamsNode = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfig["Params"]["RobotParam"]; + for (auto optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam : allParamsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::QuestionConfigDTO::TemplateRobotConfig::RobotParam paramsObject; + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].isNull()) + paramsObject.paramName = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ParamName"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].isNull()) + paramsObject.dataField = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DataField"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].isNull()) + paramsObject.defaultResult = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["DefaultResult"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].isNull()) + paramsObject.serviceId = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["ServiceId"].asString(); + if(!optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].isNull()) + paramsObject.mustFill = optionTemplateNodeQuestionConfigsQuestionConfigDTORobotConfigsTemplateRobotConfigParamsRobotParam["MustFill"].asString() == "true"; + robotConfigsObject.params.push_back(paramsObject); + } + questionConfigDTOObject.robotConfigs.push_back(robotConfigsObject); + } + auto allChildren = value["Children"]["ITagQuestionConfigDTO"]; + for (auto value : allChildren) + questionConfigDTOObject.children.push_back(value.asString()); + auto allPreOptions = value["PreOptions"]["String"]; + for (auto value : allPreOptions) + questionConfigDTOObject.preOptions.push_back(value.asString()); + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.questionConfigs.push_back(questionConfigDTOObject); + } + auto viewConfigsNode = optionTemplateNode["ViewConfigs"]; + auto allFieldsNode = viewConfigsNode["Fields"]["DisplayFieldDTO"]; + for (auto viewConfigsNodeFieldsDisplayFieldDTO : allFieldsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::ViewConfigs::DisplayFieldDTO displayFieldDTOObject; + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].isNull()) + displayFieldDTOObject.fieldName = viewConfigsNodeFieldsDisplayFieldDTO["FieldName"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Type"].isNull()) + displayFieldDTOObject.type = viewConfigsNodeFieldsDisplayFieldDTO["Type"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].isNull()) + displayFieldDTOObject.corsProxy = viewConfigsNodeFieldsDisplayFieldDTO["CorsProxy"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Hide"].isNull()) + displayFieldDTOObject.hide = viewConfigsNodeFieldsDisplayFieldDTO["Hide"].asString() == "true"; + if(!viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].isNull()) + displayFieldDTOObject.convertor = viewConfigsNodeFieldsDisplayFieldDTO["Convertor"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].isNull()) + displayFieldDTOObject.plugins = viewConfigsNodeFieldsDisplayFieldDTO["Plugins"].asString(); + if(!viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].isNull()) + displayFieldDTOObject.fieldNames = viewConfigsNodeFieldsDisplayFieldDTO["FieldNames"].asString(); + auto visitInfoNode = value["VisitInfo"]; + auto ossConfNode = visitInfoNode["OssConf"]; + if(!ossConfNode["OssEndpoint"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossEndpoint = ossConfNode["OssEndpoint"].asString(); + if(!ossConfNode["OssAk"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAk = ossConfNode["OssAk"].asString(); + if(!ossConfNode["OssAs"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossAs = ossConfNode["OssAs"].asString(); + if(!ossConfNode["OssOwner"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossOwner = ossConfNode["OssOwner"].asString(); + if(!ossConfNode["OssBucket"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.ossBucket = ossConfNode["OssBucket"].asString(); + if(!ossConfNode["Folder"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.folder = ossConfNode["Folder"].asString(); + if(!ossConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.ossConf.expiredTime = std::stol(ossConfNode["ExpiredTime"].asString()); + auto aftsConfNode = visitInfoNode["AftsConf"]; + if(!aftsConfNode["ExpiredTime"].isNull()) + displayFieldDTOObject.visitInfo.aftsConf.expiredTime = std::stoi(aftsConfNode["ExpiredTime"].asString()); + auto allRelationQuestionIds = value["RelationQuestionIds"]["String"]; + for (auto value : allRelationQuestionIds) + displayFieldDTOObject.relationQuestionIds.push_back(value.asString()); + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.viewConfigs.fields.push_back(displayFieldDTOObject); + } + auto creatorNode = optionTemplateNode["Creator"]; + if(!creatorNode["UserId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.creator.userId = creatorNode["UserId"].asString(); + if(!creatorNode["UserName"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.creator.userName = creatorNode["UserName"].asString(); + if(!creatorNode["AccountType"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.creator.accountType = creatorNode["AccountType"].asString(); + if(!creatorNode["AccountNo"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.creator.accountNo = creatorNode["AccountNo"].asString(); + auto modifierNode = optionTemplateNode["Modifier"]; + if(!modifierNode["UserId"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.modifier.userId = modifierNode["UserId"].asString(); + if(!modifierNode["UserName"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.modifier.userName = modifierNode["UserName"].asString(); + if(!modifierNode["AccountType"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.modifier.accountType = modifierNode["AccountType"].asString(); + if(!modifierNode["AccountNo"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.modifier.accountNo = modifierNode["AccountNo"].asString(); + auto robotConfigNode = optionTemplateNode["RobotConfig"]; + if(!robotConfigNode["Source"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.source = robotConfigNode["Source"].asString(); + auto allModelServiceConfigsNode = robotConfigNode["ModelServiceConfigs"]["ModelServiceConfig"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfig : allModelServiceConfigsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::RobotConfig::ModelServiceConfig modelServiceConfigObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].isNull()) + modelServiceConfigObject.serviceId = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].isNull()) + modelServiceConfigObject.serviceName = robotConfigNodeModelServiceConfigsModelServiceConfig["ServiceName"].asString(); + auto allPostParamsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["PostParams"]["ModelServiceConfig$PostParamPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair : allPostParamsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::RobotConfig::ModelServiceConfig::ModelServiceConfig$PostParamPair postParamsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].isNull()) + postParamsObject.key = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Key"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].isNull()) + postParamsObject.value = robotConfigNodeModelServiceConfigsModelServiceConfigPostParamsModelServiceConfig$PostParamPair["Value"].asString(); + modelServiceConfigObject.postParams.push_back(postParamsObject); + } + auto allResultMappingsNode = robotConfigNodeModelServiceConfigsModelServiceConfig["ResultMappings"]["ModelServiceConfig$ResultMappingPair"]; + for (auto robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair : allResultMappingsNode) + { + Result::ITagSamplingStatsDTO::ITagMarkableWorkTaskDTO::OptionTemplate::RobotConfig::ModelServiceConfig::ModelServiceConfig$ResultMappingPair resultMappingsObject; + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].isNull()) + resultMappingsObject.questionId = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["QuestionId"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].isNull()) + resultMappingsObject.resultKey = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["ResultKey"].asString(); + if(!robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].isNull()) + resultMappingsObject.markTitle = robotConfigNodeModelServiceConfigsModelServiceConfigResultMappingsModelServiceConfig$ResultMappingPair["MarkTitle"].asString(); + modelServiceConfigObject.resultMappings.push_back(resultMappingsObject); + } + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.modelServiceConfigs.push_back(modelServiceConfigObject); + } + auto effectStepNode = robotConfigNode["EffectStep"]; + if(!effectStepNode["PreProcess"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.preProcess = effectStepNode["PreProcess"].asString() == "true"; + if(!effectStepNode["PreLabel"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.preLabel = effectStepNode["PreLabel"].asString() == "true"; + if(!effectStepNode["Label"].isNull()) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.label = effectStepNode["Label"].asString() == "true"; + auto processConfigNode = effectStepNode["ProcessConfig"]; + auto allRelateColumn = processConfigNode["RelateColumn"]["String"]; + for (auto value : allRelateColumn) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.robotConfig.effectStep.processConfig.relateColumn.push_back(value.asString()); + auto allTags = optionTemplateNode["Tags"]["String"]; + for (auto value : allTags) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.tags.push_back(value.asString()); + auto allAbandonReasons = optionTemplateNode["AbandonReasons"]["String"]; + for (auto value : allAbandonReasons) + result_.iTagSamplingStatsDTO.iTagMarkableWorkTaskDTO.optionTemplate.abandonReasons.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string QuerySampleMarkItemsResult::getMsg()const +{ + return msg_; +} + +bool QuerySampleMarkItemsResult::getSucc()const +{ + return succ_; +} + +std::string QuerySampleMarkItemsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QuerySampleMarkItemsResult::getErrInfo()const +{ + return errInfo_; +} + +std::string QuerySampleMarkItemsResult::getCode()const +{ + return code_; +} + +QuerySampleMarkItemsResult::Result QuerySampleMarkItemsResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/QuerySamplingPoolSizeRequest.cc b/itag/src/model/QuerySamplingPoolSizeRequest.cc new file mode 100644 index 000000000..083b58aa4 --- /dev/null +++ b/itag/src/model/QuerySamplingPoolSizeRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::QuerySamplingPoolSizeRequest; + +QuerySamplingPoolSizeRequest::QuerySamplingPoolSizeRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/querySamplingPoolSize"}; + setMethod(HttpRequest::Method::Post); +} + +QuerySamplingPoolSizeRequest::~QuerySamplingPoolSizeRequest() {} + +std::string QuerySamplingPoolSizeRequest::getBody() const { + return body_; +} + +void QuerySamplingPoolSizeRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/QuerySamplingPoolSizeResult.cc b/itag/src/model/QuerySamplingPoolSizeResult.cc new file mode 100644 index 000000000..ba55bd0e9 --- /dev/null +++ b/itag/src/model/QuerySamplingPoolSizeResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +QuerySamplingPoolSizeResult::QuerySamplingPoolSizeResult() : + ServiceResult() +{} + +QuerySamplingPoolSizeResult::QuerySamplingPoolSizeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySamplingPoolSizeResult::~QuerySamplingPoolSizeResult() +{} + +void QuerySamplingPoolSizeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["HasNonCompleteTask"].isNull()) + result_.hasNonCompleteTask = std::stoi(resultNode["HasNonCompleteTask"].asString()); + if(!resultNode["TotalSubTaskCount"].isNull()) + result_.totalSubTaskCount = resultNode["TotalSubTaskCount"].asString(); + if(!resultNode["TotalMarkItemCount"].isNull()) + result_.totalMarkItemCount = resultNode["TotalMarkItemCount"].asString(); + if(!resultNode["SubTaskAndMarkItemMap"].isNull()) + result_.subTaskAndMarkItemMap = resultNode["SubTaskAndMarkItemMap"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string QuerySamplingPoolSizeResult::getMsg()const +{ + return msg_; +} + +bool QuerySamplingPoolSizeResult::getSucc()const +{ + return succ_; +} + +std::string QuerySamplingPoolSizeResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QuerySamplingPoolSizeResult::getErrInfo()const +{ + return errInfo_; +} + +std::string QuerySamplingPoolSizeResult::getCode()const +{ + return code_; +} + +QuerySamplingPoolSizeResult::Result QuerySamplingPoolSizeResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/QuerySkipUserSubTaskRequest.cc b/itag/src/model/QuerySkipUserSubTaskRequest.cc new file mode 100644 index 000000000..328af0166 --- /dev/null +++ b/itag/src/model/QuerySkipUserSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::QuerySkipUserSubTaskRequest; + +QuerySkipUserSubTaskRequest::QuerySkipUserSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/querySkipUserSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +QuerySkipUserSubTaskRequest::~QuerySkipUserSubTaskRequest() {} + +std::string QuerySkipUserSubTaskRequest::getBody() const { + return body_; +} + +void QuerySkipUserSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/QuerySkipUserSubTaskResult.cc b/itag/src/model/QuerySkipUserSubTaskResult.cc new file mode 100644 index 000000000..7762fe4d3 --- /dev/null +++ b/itag/src/model/QuerySkipUserSubTaskResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +QuerySkipUserSubTaskResult::QuerySkipUserSubTaskResult() : + ServiceResult() +{} + +QuerySkipUserSubTaskResult::QuerySkipUserSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySkipUserSubTaskResult::~QuerySkipUserSubTaskResult() +{} + +void QuerySkipUserSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["MaxSkipCount"].isNull()) + result_.maxSkipCount = std::stol(resultNode["MaxSkipCount"].asString()); + if(!resultNode["SkipedCount"].isNull()) + result_.skipedCount = std::stol(resultNode["SkipedCount"].asString()); + if(!resultNode["LeftSkipCount"].isNull()) + result_.leftSkipCount = std::stol(resultNode["LeftSkipCount"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string QuerySkipUserSubTaskResult::getMsg()const +{ + return msg_; +} + +bool QuerySkipUserSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string QuerySkipUserSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QuerySkipUserSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string QuerySkipUserSubTaskResult::getCode()const +{ + return code_; +} + +QuerySkipUserSubTaskResult::Result QuerySkipUserSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/RejectSamplingTaskRequest.cc b/itag/src/model/RejectSamplingTaskRequest.cc new file mode 100644 index 000000000..4d8b9a113 --- /dev/null +++ b/itag/src/model/RejectSamplingTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::RejectSamplingTaskRequest; + +RejectSamplingTaskRequest::RejectSamplingTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/reject"}; + setMethod(HttpRequest::Method::Post); +} + +RejectSamplingTaskRequest::~RejectSamplingTaskRequest() {} + +std::string RejectSamplingTaskRequest::getBody() const { + return body_; +} + +void RejectSamplingTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/RejectSamplingTaskResult.cc b/itag/src/model/RejectSamplingTaskResult.cc new file mode 100644 index 000000000..d84bd96cd --- /dev/null +++ b/itag/src/model/RejectSamplingTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +RejectSamplingTaskResult::RejectSamplingTaskResult() : + ServiceResult() +{} + +RejectSamplingTaskResult::RejectSamplingTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RejectSamplingTaskResult::~RejectSamplingTaskResult() +{} + +void RejectSamplingTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RejectSamplingTaskResult::getMsg()const +{ + return msg_; +} + +bool RejectSamplingTaskResult::getSucc()const +{ + return succ_; +} + +std::string RejectSamplingTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RejectSamplingTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string RejectSamplingTaskResult::getCode()const +{ + return code_; +} + +bool RejectSamplingTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/RejectSubTaskRequest.cc b/itag/src/model/RejectSubTaskRequest.cc new file mode 100644 index 000000000..4ecf7d068 --- /dev/null +++ b/itag/src/model/RejectSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::RejectSubTaskRequest; + +RejectSubTaskRequest::RejectSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/reject"}; + setMethod(HttpRequest::Method::Post); +} + +RejectSubTaskRequest::~RejectSubTaskRequest() {} + +std::string RejectSubTaskRequest::getBody() const { + return body_; +} + +void RejectSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/RejectSubTaskResult.cc b/itag/src/model/RejectSubTaskResult.cc new file mode 100644 index 000000000..ac1750fe5 --- /dev/null +++ b/itag/src/model/RejectSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +RejectSubTaskResult::RejectSubTaskResult() : + ServiceResult() +{} + +RejectSubTaskResult::RejectSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RejectSubTaskResult::~RejectSubTaskResult() +{} + +void RejectSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RejectSubTaskResult::getMsg()const +{ + return msg_; +} + +bool RejectSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string RejectSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RejectSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string RejectSubTaskResult::getCode()const +{ + return code_; +} + +bool RejectSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/ReleaseUserSubTaskRequest.cc b/itag/src/model/ReleaseUserSubTaskRequest.cc new file mode 100644 index 000000000..3bdda20a8 --- /dev/null +++ b/itag/src/model/ReleaseUserSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::ReleaseUserSubTaskRequest; + +ReleaseUserSubTaskRequest::ReleaseUserSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/releaseUserSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +ReleaseUserSubTaskRequest::~ReleaseUserSubTaskRequest() {} + +std::string ReleaseUserSubTaskRequest::getBody() const { + return body_; +} + +void ReleaseUserSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/ReleaseUserSubTaskResult.cc b/itag/src/model/ReleaseUserSubTaskResult.cc new file mode 100644 index 000000000..9ccc18a51 --- /dev/null +++ b/itag/src/model/ReleaseUserSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +ReleaseUserSubTaskResult::ReleaseUserSubTaskResult() : + ServiceResult() +{} + +ReleaseUserSubTaskResult::ReleaseUserSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseUserSubTaskResult::~ReleaseUserSubTaskResult() +{} + +void ReleaseUserSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ReleaseUserSubTaskResult::getMsg()const +{ + return msg_; +} + +bool ReleaseUserSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string ReleaseUserSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ReleaseUserSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string ReleaseUserSubTaskResult::getCode()const +{ + return code_; +} + +bool ReleaseUserSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/RemoveMemberOrGroupTaskRequest.cc b/itag/src/model/RemoveMemberOrGroupTaskRequest.cc new file mode 100644 index 000000000..1bcee52d1 --- /dev/null +++ b/itag/src/model/RemoveMemberOrGroupTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::RemoveMemberOrGroupTaskRequest; + +RemoveMemberOrGroupTaskRequest::RemoveMemberOrGroupTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/removeMemberOrGroupInTask"}; + setMethod(HttpRequest::Method::Post); +} + +RemoveMemberOrGroupTaskRequest::~RemoveMemberOrGroupTaskRequest() {} + +std::string RemoveMemberOrGroupTaskRequest::getBody() const { + return body_; +} + +void RemoveMemberOrGroupTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/RemoveMemberOrGroupTaskResult.cc b/itag/src/model/RemoveMemberOrGroupTaskResult.cc new file mode 100644 index 000000000..ca72629cb --- /dev/null +++ b/itag/src/model/RemoveMemberOrGroupTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +RemoveMemberOrGroupTaskResult::RemoveMemberOrGroupTaskResult() : + ServiceResult() +{} + +RemoveMemberOrGroupTaskResult::RemoveMemberOrGroupTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveMemberOrGroupTaskResult::~RemoveMemberOrGroupTaskResult() +{} + +void RemoveMemberOrGroupTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RemoveMemberOrGroupTaskResult::getMsg()const +{ + return msg_; +} + +bool RemoveMemberOrGroupTaskResult::getSucc()const +{ + return succ_; +} + +std::string RemoveMemberOrGroupTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RemoveMemberOrGroupTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string RemoveMemberOrGroupTaskResult::getCode()const +{ + return code_; +} + +std::string RemoveMemberOrGroupTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/RemoveUserInGroupRequest.cc b/itag/src/model/RemoveUserInGroupRequest.cc new file mode 100644 index 000000000..bad176791 --- /dev/null +++ b/itag/src/model/RemoveUserInGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::RemoveUserInGroupRequest; + +RemoveUserInGroupRequest::RemoveUserInGroupRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usergroup/removeUserInGroup"}; + setMethod(HttpRequest::Method::Post); +} + +RemoveUserInGroupRequest::~RemoveUserInGroupRequest() {} + +std::string RemoveUserInGroupRequest::getBody() const { + return body_; +} + +void RemoveUserInGroupRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/RemoveUserInGroupResult.cc b/itag/src/model/RemoveUserInGroupResult.cc new file mode 100644 index 000000000..00181bf81 --- /dev/null +++ b/itag/src/model/RemoveUserInGroupResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +RemoveUserInGroupResult::RemoveUserInGroupResult() : + ServiceResult() +{} + +RemoveUserInGroupResult::RemoveUserInGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveUserInGroupResult::~RemoveUserInGroupResult() +{} + +void RemoveUserInGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["SuccCount"].isNull()) + result_.succCount = std::stol(resultNode["SuccCount"].asString()); + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stol(resultNode["FailCount"].asString()); + auto allSuccUserListNode = resultNode["SuccUserList"]["SuccUserListItem"]; + for (auto resultNodeSuccUserListSuccUserListItem : allSuccUserListNode) + { + Result::SuccUserListItem succUserListItemObject; + if(!resultNodeSuccUserListSuccUserListItem["UserId"].isNull()) + succUserListItemObject.userId = resultNodeSuccUserListSuccUserListItem["UserId"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["UserName"].isNull()) + succUserListItemObject.userName = resultNodeSuccUserListSuccUserListItem["UserName"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountType"].isNull()) + succUserListItemObject.accountType = resultNodeSuccUserListSuccUserListItem["AccountType"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountNo"].isNull()) + succUserListItemObject.accountNo = resultNodeSuccUserListSuccUserListItem["AccountNo"].asString(); + result_.succUserList.push_back(succUserListItemObject); + } + auto allFailUserListNode = resultNode["FailUserList"]["FailUserListItem"]; + for (auto resultNodeFailUserListFailUserListItem : allFailUserListNode) + { + Result::FailUserListItem failUserListItemObject; + if(!resultNodeFailUserListFailUserListItem["UserId"].isNull()) + failUserListItemObject.userId = resultNodeFailUserListFailUserListItem["UserId"].asString(); + if(!resultNodeFailUserListFailUserListItem["UserName"].isNull()) + failUserListItemObject.userName = resultNodeFailUserListFailUserListItem["UserName"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountType"].isNull()) + failUserListItemObject.accountType = resultNodeFailUserListFailUserListItem["AccountType"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountNo"].isNull()) + failUserListItemObject.accountNo = resultNodeFailUserListFailUserListItem["AccountNo"].asString(); + result_.failUserList.push_back(failUserListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RemoveUserInGroupResult::getMsg()const +{ + return msg_; +} + +bool RemoveUserInGroupResult::getSucc()const +{ + return succ_; +} + +std::string RemoveUserInGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RemoveUserInGroupResult::getErrInfo()const +{ + return errInfo_; +} + +std::string RemoveUserInGroupResult::getCode()const +{ + return code_; +} + +RemoveUserInGroupResult::Result RemoveUserInGroupResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/RemoveUserInTntRequest.cc b/itag/src/model/RemoveUserInTntRequest.cc new file mode 100644 index 000000000..7087fd727 --- /dev/null +++ b/itag/src/model/RemoveUserInTntRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::RemoveUserInTntRequest; + +RemoveUserInTntRequest::RemoveUserInTntRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/removeUserInTnt"}; + setMethod(HttpRequest::Method::Post); +} + +RemoveUserInTntRequest::~RemoveUserInTntRequest() {} + +std::string RemoveUserInTntRequest::getBody() const { + return body_; +} + +void RemoveUserInTntRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/RemoveUserInTntResult.cc b/itag/src/model/RemoveUserInTntResult.cc new file mode 100644 index 000000000..c7572f94c --- /dev/null +++ b/itag/src/model/RemoveUserInTntResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +RemoveUserInTntResult::RemoveUserInTntResult() : + ServiceResult() +{} + +RemoveUserInTntResult::RemoveUserInTntResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveUserInTntResult::~RemoveUserInTntResult() +{} + +void RemoveUserInTntResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["SuccCount"].isNull()) + result_.succCount = std::stol(resultNode["SuccCount"].asString()); + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stol(resultNode["FailCount"].asString()); + auto allSuccUserListNode = resultNode["SuccUserList"]["SuccUserListItem"]; + for (auto resultNodeSuccUserListSuccUserListItem : allSuccUserListNode) + { + Result::SuccUserListItem succUserListItemObject; + if(!resultNodeSuccUserListSuccUserListItem["UserId"].isNull()) + succUserListItemObject.userId = resultNodeSuccUserListSuccUserListItem["UserId"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["UserName"].isNull()) + succUserListItemObject.userName = resultNodeSuccUserListSuccUserListItem["UserName"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountType"].isNull()) + succUserListItemObject.accountType = resultNodeSuccUserListSuccUserListItem["AccountType"].asString(); + if(!resultNodeSuccUserListSuccUserListItem["AccountNo"].isNull()) + succUserListItemObject.accountNo = resultNodeSuccUserListSuccUserListItem["AccountNo"].asString(); + result_.succUserList.push_back(succUserListItemObject); + } + auto allFailUserListNode = resultNode["FailUserList"]["FailUserListItem"]; + for (auto resultNodeFailUserListFailUserListItem : allFailUserListNode) + { + Result::FailUserListItem failUserListItemObject; + if(!resultNodeFailUserListFailUserListItem["UserId"].isNull()) + failUserListItemObject.userId = resultNodeFailUserListFailUserListItem["UserId"].asString(); + if(!resultNodeFailUserListFailUserListItem["UserName"].isNull()) + failUserListItemObject.userName = resultNodeFailUserListFailUserListItem["UserName"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountType"].isNull()) + failUserListItemObject.accountType = resultNodeFailUserListFailUserListItem["AccountType"].asString(); + if(!resultNodeFailUserListFailUserListItem["AccountNo"].isNull()) + failUserListItemObject.accountNo = resultNodeFailUserListFailUserListItem["AccountNo"].asString(); + result_.failUserList.push_back(failUserListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RemoveUserInTntResult::getMsg()const +{ + return msg_; +} + +bool RemoveUserInTntResult::getSucc()const +{ + return succ_; +} + +std::string RemoveUserInTntResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RemoveUserInTntResult::getErrInfo()const +{ + return errInfo_; +} + +std::string RemoveUserInTntResult::getCode()const +{ + return code_; +} + +RemoveUserInTntResult::Result RemoveUserInTntResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/SamplingSubUserTaskListRequest.cc b/itag/src/model/SamplingSubUserTaskListRequest.cc new file mode 100644 index 000000000..e2126ed0c --- /dev/null +++ b/itag/src/model/SamplingSubUserTaskListRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::SamplingSubUserTaskListRequest; + +SamplingSubUserTaskListRequest::SamplingSubUserTaskListRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/sampling/samplingSubUserTaskList"}; + setMethod(HttpRequest::Method::Post); +} + +SamplingSubUserTaskListRequest::~SamplingSubUserTaskListRequest() {} + +std::string SamplingSubUserTaskListRequest::getBody() const { + return body_; +} + +void SamplingSubUserTaskListRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/SamplingSubUserTaskListResult.cc b/itag/src/model/SamplingSubUserTaskListResult.cc new file mode 100644 index 000000000..7fed08659 --- /dev/null +++ b/itag/src/model/SamplingSubUserTaskListResult.cc @@ -0,0 +1,124 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +SamplingSubUserTaskListResult::SamplingSubUserTaskListResult() : + ServiceResult() +{} + +SamplingSubUserTaskListResult::SamplingSubUserTaskListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SamplingSubUserTaskListResult::~SamplingSubUserTaskListResult() +{} + +void SamplingSubUserTaskListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["TaskId"].isNull()) + resultObject.taskId = valueResultResultItem["TaskId"].asString(); + if(!valueResultResultItem["TaskName"].isNull()) + resultObject.taskName = valueResultResultItem["TaskName"].asString(); + if(!valueResultResultItem["UserTaskId"].isNull()) + resultObject.userTaskId = valueResultResultItem["UserTaskId"].asString(); + if(!valueResultResultItem["State"].isNull()) + resultObject.state = valueResultResultItem["State"].asString(); + if(!valueResultResultItem["SampleUserName"].isNull()) + resultObject.sampleUserName = valueResultResultItem["SampleUserName"].asString(); + if(!valueResultResultItem["BaseInfo"].isNull()) + resultObject.baseInfo = valueResultResultItem["BaseInfo"].asString(); + if(!valueResultResultItem["TotalItemCount"].isNull()) + resultObject.totalItemCount = std::stol(valueResultResultItem["TotalItemCount"].asString()); + if(!valueResultResultItem["FinishedItemCount"].isNull()) + resultObject.finishedItemCount = std::stol(valueResultResultItem["FinishedItemCount"].asString()); + if(!valueResultResultItem["Type"].isNull()) + resultObject.type = valueResultResultItem["Type"].asString(); + if(!valueResultResultItem["AllowOperate"].isNull()) + resultObject.allowOperate = valueResultResultItem["AllowOperate"].asString() == "true"; + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SamplingSubUserTaskListResult::getMsg()const +{ + return msg_; +} + +long SamplingSubUserTaskListResult::getRt()const +{ + return rt_; +} + +bool SamplingSubUserTaskListResult::getSucc()const +{ + return succ_; +} + +std::string SamplingSubUserTaskListResult::getHost()const +{ + return host_; +} + +std::string SamplingSubUserTaskListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SamplingSubUserTaskListResult::getErrInfo()const +{ + return errInfo_; +} + +int SamplingSubUserTaskListResult::getCode()const +{ + return code_; +} + +std::vector SamplingSubUserTaskListResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/SkipFinishedRequest.cc b/itag/src/model/SkipFinishedRequest.cc new file mode 100644 index 000000000..751b16865 --- /dev/null +++ b/itag/src/model/SkipFinishedRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::SkipFinishedRequest; + +SkipFinishedRequest::SkipFinishedRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/subtask/skipFinished"}; + setMethod(HttpRequest::Method::Post); +} + +SkipFinishedRequest::~SkipFinishedRequest() {} + +std::string SkipFinishedRequest::getBody() const { + return body_; +} + +void SkipFinishedRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/SkipFinishedResult.cc b/itag/src/model/SkipFinishedResult.cc new file mode 100644 index 000000000..238492890 --- /dev/null +++ b/itag/src/model/SkipFinishedResult.cc @@ -0,0 +1,126 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +SkipFinishedResult::SkipFinishedResult() : + ServiceResult() +{} + +SkipFinishedResult::SkipFinishedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SkipFinishedResult::~SkipFinishedResult() +{} + +void SkipFinishedResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PageNum"].isNull()) + result_.pageNum = std::stol(resultNode["PageNum"].asString()); + if(!resultNode["PageSize"].isNull()) + result_.pageSize = std::stol(resultNode["PageSize"].asString()); + if(!resultNode["Total"].isNull()) + result_.total = std::stol(resultNode["Total"].asString()); + if(!resultNode["TotalPage"].isNull()) + result_.totalPage = std::stol(resultNode["TotalPage"].asString()); + auto allListNode = resultNode["List"]["ITagSubTaskDTO"]; + for (auto resultNodeListITagSubTaskDTO : allListNode) + { + Result::ITagSubTaskDTO iTagSubTaskDTOObject; + if(!resultNodeListITagSubTaskDTO["Id"].isNull()) + iTagSubTaskDTOObject.id = resultNodeListITagSubTaskDTO["Id"].asString(); + if(!resultNodeListITagSubTaskDTO["TaskId"].isNull()) + iTagSubTaskDTOObject.taskId = resultNodeListITagSubTaskDTO["TaskId"].asString(); + if(!resultNodeListITagSubTaskDTO["CurrentWorkNode"].isNull()) + iTagSubTaskDTOObject.currentWorkNode = resultNodeListITagSubTaskDTO["CurrentWorkNode"].asString(); + if(!resultNodeListITagSubTaskDTO["CurrentUserSubTaskId"].isNull()) + iTagSubTaskDTOObject.currentUserSubTaskId = resultNodeListITagSubTaskDTO["CurrentUserSubTaskId"].asString(); + if(!resultNodeListITagSubTaskDTO["WorkNodeState"].isNull()) + iTagSubTaskDTOObject.workNodeState = resultNodeListITagSubTaskDTO["WorkNodeState"].asString(); + if(!resultNodeListITagSubTaskDTO["WorkNodeUsers"].isNull()) + iTagSubTaskDTOObject.workNodeUsers = resultNodeListITagSubTaskDTO["WorkNodeUsers"].asString(); + if(!resultNodeListITagSubTaskDTO["CanReassign"].isNull()) + iTagSubTaskDTOObject.canReassign = resultNodeListITagSubTaskDTO["CanReassign"].asString() == "true"; + if(!resultNodeListITagSubTaskDTO["CanRelease"].isNull()) + iTagSubTaskDTOObject.canRelease = resultNodeListITagSubTaskDTO["CanRelease"].asString() == "true"; + if(!resultNodeListITagSubTaskDTO["CanDiscard"].isNull()) + iTagSubTaskDTOObject.canDiscard = resultNodeListITagSubTaskDTO["CanDiscard"].asString() == "true"; + auto currentHandlerNode = value["CurrentHandler"]; + if(!currentHandlerNode["UserId"].isNull()) + iTagSubTaskDTOObject.currentHandler.userId = currentHandlerNode["UserId"].asString(); + if(!currentHandlerNode["UserName"].isNull()) + iTagSubTaskDTOObject.currentHandler.userName = currentHandlerNode["UserName"].asString(); + if(!currentHandlerNode["AccountType"].isNull()) + iTagSubTaskDTOObject.currentHandler.accountType = currentHandlerNode["AccountType"].asString(); + if(!currentHandlerNode["AccountNo"].isNull()) + iTagSubTaskDTOObject.currentHandler.accountNo = currentHandlerNode["AccountNo"].asString(); + result_.list.push_back(iTagSubTaskDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SkipFinishedResult::getMsg()const +{ + return msg_; +} + +bool SkipFinishedResult::getSucc()const +{ + return succ_; +} + +std::string SkipFinishedResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SkipFinishedResult::getErrInfo()const +{ + return errInfo_; +} + +std::string SkipFinishedResult::getCode()const +{ + return code_; +} + +SkipFinishedResult::Result SkipFinishedResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/SkipUserSubTaskRequest.cc b/itag/src/model/SkipUserSubTaskRequest.cc new file mode 100644 index 000000000..7c1d36cf9 --- /dev/null +++ b/itag/src/model/SkipUserSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::SkipUserSubTaskRequest; + +SkipUserSubTaskRequest::SkipUserSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/skipUserSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +SkipUserSubTaskRequest::~SkipUserSubTaskRequest() {} + +std::string SkipUserSubTaskRequest::getBody() const { + return body_; +} + +void SkipUserSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/SkipUserSubTaskResult.cc b/itag/src/model/SkipUserSubTaskResult.cc new file mode 100644 index 000000000..ca0ccd3c7 --- /dev/null +++ b/itag/src/model/SkipUserSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +SkipUserSubTaskResult::SkipUserSubTaskResult() : + ServiceResult() +{} + +SkipUserSubTaskResult::SkipUserSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SkipUserSubTaskResult::~SkipUserSubTaskResult() +{} + +void SkipUserSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string SkipUserSubTaskResult::getMsg()const +{ + return msg_; +} + +bool SkipUserSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string SkipUserSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SkipUserSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string SkipUserSubTaskResult::getCode()const +{ + return code_; +} + +bool SkipUserSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/TaskStageStatRequest.cc b/itag/src/model/TaskStageStatRequest.cc new file mode 100644 index 000000000..6cd0c2953 --- /dev/null +++ b/itag/src/model/TaskStageStatRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::TaskStageStatRequest; + +TaskStageStatRequest::TaskStageStatRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/taskStageStat"}; + setMethod(HttpRequest::Method::Post); +} + +TaskStageStatRequest::~TaskStageStatRequest() {} + +std::string TaskStageStatRequest::getBody() const { + return body_; +} + +void TaskStageStatRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/TaskStageStatResult.cc b/itag/src/model/TaskStageStatResult.cc new file mode 100644 index 000000000..bc3adb3bb --- /dev/null +++ b/itag/src/model/TaskStageStatResult.cc @@ -0,0 +1,94 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +TaskStageStatResult::TaskStageStatResult() : + ServiceResult() +{} + +TaskStageStatResult::TaskStageStatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TaskStageStatResult::~TaskStageStatResult() +{} + +void TaskStageStatResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ITagTaskStageStat"]; + for (auto valueResultITagTaskStageStat : allResultNode) + { + ITagTaskStageStat resultObject; + if(!valueResultITagTaskStageStat["Stage"].isNull()) + resultObject.stage = valueResultITagTaskStageStat["Stage"].asString(); + if(!valueResultITagTaskStageStat["Num"].isNull()) + resultObject.num = std::stoi(valueResultITagTaskStageStat["Num"].asString()); + result_.push_back(resultObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string TaskStageStatResult::getMsg()const +{ + return msg_; +} + +bool TaskStageStatResult::getSucc()const +{ + return succ_; +} + +std::string TaskStageStatResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TaskStageStatResult::getErrInfo()const +{ + return errInfo_; +} + +std::string TaskStageStatResult::getCode()const +{ + return code_; +} + +std::vector TaskStageStatResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/TestRequestRequest.cc b/itag/src/model/TestRequestRequest.cc new file mode 100644 index 000000000..ac38645a2 --- /dev/null +++ b/itag/src/model/TestRequestRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::TestRequestRequest; + +TestRequestRequest::TestRequestRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/testRequest"}; + setMethod(HttpRequest::Method::Post); +} + +TestRequestRequest::~TestRequestRequest() {} + +std::string TestRequestRequest::getBody() const { + return body_; +} + +void TestRequestRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/TestRequestResult.cc b/itag/src/model/TestRequestResult.cc new file mode 100644 index 000000000..833c722b8 --- /dev/null +++ b/itag/src/model/TestRequestResult.cc @@ -0,0 +1,111 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +TestRequestResult::TestRequestResult() : + ServiceResult() +{} + +TestRequestResult::TestRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TestRequestResult::~TestRequestResult() +{} + +void TestRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["OriginResponse"].isNull()) + result_.originResponse = resultNode["OriginResponse"].asString(); + auto allTrueResponseNode = resultNode["TrueResponse"]["TrueResponseItem"]; + for (auto resultNodeTrueResponseTrueResponseItem : allTrueResponseNode) + { + Result::TrueResponseItem trueResponseItemObject; + if(!resultNodeTrueResponseTrueResponseItem["ResultKey"].isNull()) + trueResponseItemObject.resultKey = resultNodeTrueResponseTrueResponseItem["ResultKey"].asString(); + if(!resultNodeTrueResponseTrueResponseItem["ResultPath"].isNull()) + trueResponseItemObject.resultPath = resultNodeTrueResponseTrueResponseItem["ResultPath"].asString(); + result_.trueResponse.push_back(trueResponseItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string TestRequestResult::getMsg()const +{ + return msg_; +} + +long TestRequestResult::getRt()const +{ + return rt_; +} + +bool TestRequestResult::getSucc()const +{ + return succ_; +} + +std::string TestRequestResult::getHost()const +{ + return host_; +} + +std::string TestRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TestRequestResult::getErrInfo()const +{ + return errInfo_; +} + +int TestRequestResult::getCode()const +{ + return code_; +} + +TestRequestResult::Result TestRequestResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/TransferUserSubTaskRequest.cc b/itag/src/model/TransferUserSubTaskRequest.cc new file mode 100644 index 000000000..46d3d6149 --- /dev/null +++ b/itag/src/model/TransferUserSubTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::TransferUserSubTaskRequest; + +TransferUserSubTaskRequest::TransferUserSubTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/usersubtask/transferUserSubTask"}; + setMethod(HttpRequest::Method::Post); +} + +TransferUserSubTaskRequest::~TransferUserSubTaskRequest() {} + +std::string TransferUserSubTaskRequest::getBody() const { + return body_; +} + +void TransferUserSubTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/TransferUserSubTaskResult.cc b/itag/src/model/TransferUserSubTaskResult.cc new file mode 100644 index 000000000..75e8876b3 --- /dev/null +++ b/itag/src/model/TransferUserSubTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +TransferUserSubTaskResult::TransferUserSubTaskResult() : + ServiceResult() +{} + +TransferUserSubTaskResult::TransferUserSubTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferUserSubTaskResult::~TransferUserSubTaskResult() +{} + +void TransferUserSubTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string TransferUserSubTaskResult::getMsg()const +{ + return msg_; +} + +bool TransferUserSubTaskResult::getSucc()const +{ + return succ_; +} + +std::string TransferUserSubTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TransferUserSubTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string TransferUserSubTaskResult::getCode()const +{ + return code_; +} + +bool TransferUserSubTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UnpassFeedbackRequest.cc b/itag/src/model/UnpassFeedbackRequest.cc new file mode 100644 index 000000000..ba39c347c --- /dev/null +++ b/itag/src/model/UnpassFeedbackRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UnpassFeedbackRequest; + +UnpassFeedbackRequest::UnpassFeedbackRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markitem/unpassFeedback"}; + setMethod(HttpRequest::Method::Post); +} + +UnpassFeedbackRequest::~UnpassFeedbackRequest() {} + +std::string UnpassFeedbackRequest::getBody() const { + return body_; +} + +void UnpassFeedbackRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UnpassFeedbackResult.cc b/itag/src/model/UnpassFeedbackResult.cc new file mode 100644 index 000000000..ee436e247 --- /dev/null +++ b/itag/src/model/UnpassFeedbackResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UnpassFeedbackResult::UnpassFeedbackResult() : + ServiceResult() +{} + +UnpassFeedbackResult::UnpassFeedbackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnpassFeedbackResult::~UnpassFeedbackResult() +{} + +void UnpassFeedbackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stol(resultNode["FailCount"].asString()); + if(!resultNode["TotalCount"].isNull()) + result_.totalCount = std::stol(resultNode["TotalCount"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UnpassFeedbackResult::getMsg()const +{ + return msg_; +} + +bool UnpassFeedbackResult::getSucc()const +{ + return succ_; +} + +std::string UnpassFeedbackResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UnpassFeedbackResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UnpassFeedbackResult::getCode()const +{ + return code_; +} + +UnpassFeedbackResult::Result UnpassFeedbackResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateDatasetStateMsgRequest.cc b/itag/src/model/UpdateDatasetStateMsgRequest.cc new file mode 100644 index 000000000..0a7685be4 --- /dev/null +++ b/itag/src/model/UpdateDatasetStateMsgRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateDatasetStateMsgRequest; + +UpdateDatasetStateMsgRequest::UpdateDatasetStateMsgRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/dataproxy/updateDatasetStateMsg"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateDatasetStateMsgRequest::~UpdateDatasetStateMsgRequest() {} + +std::string UpdateDatasetStateMsgRequest::getBody() const { + return body_; +} + +void UpdateDatasetStateMsgRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateDatasetStateMsgResult.cc b/itag/src/model/UpdateDatasetStateMsgResult.cc new file mode 100644 index 000000000..bbd1830c0 --- /dev/null +++ b/itag/src/model/UpdateDatasetStateMsgResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateDatasetStateMsgResult::UpdateDatasetStateMsgResult() : + ServiceResult() +{} + +UpdateDatasetStateMsgResult::UpdateDatasetStateMsgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDatasetStateMsgResult::~UpdateDatasetStateMsgResult() +{} + +void UpdateDatasetStateMsgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateDatasetStateMsgResult::getMsg()const +{ + return msg_; +} + +bool UpdateDatasetStateMsgResult::getSucc()const +{ + return succ_; +} + +std::string UpdateDatasetStateMsgResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateDatasetStateMsgResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateDatasetStateMsgResult::getCode()const +{ + return code_; +} + +bool UpdateDatasetStateMsgResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateMarkResultByAdminRequest.cc b/itag/src/model/UpdateMarkResultByAdminRequest.cc new file mode 100644 index 000000000..164ee39a1 --- /dev/null +++ b/itag/src/model/UpdateMarkResultByAdminRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateMarkResultByAdminRequest; + +UpdateMarkResultByAdminRequest::UpdateMarkResultByAdminRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markresult/updateMarkResultByAdmin"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateMarkResultByAdminRequest::~UpdateMarkResultByAdminRequest() {} + +std::string UpdateMarkResultByAdminRequest::getBody() const { + return body_; +} + +void UpdateMarkResultByAdminRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateMarkResultByAdminResult.cc b/itag/src/model/UpdateMarkResultByAdminResult.cc new file mode 100644 index 000000000..71039ab3d --- /dev/null +++ b/itag/src/model/UpdateMarkResultByAdminResult.cc @@ -0,0 +1,109 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateMarkResultByAdminResult::UpdateMarkResultByAdminResult() : + ServiceResult() +{} + +UpdateMarkResultByAdminResult::UpdateMarkResultByAdminResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMarkResultByAdminResult::~UpdateMarkResultByAdminResult() +{} + +void UpdateMarkResultByAdminResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["CanCommit"].isNull()) + result_.canCommit = resultNode["CanCommit"].asString() == "true"; + if(!resultNode["CommitMsg"].isNull()) + result_.commitMsg = resultNode["CommitMsg"].asString(); + if(!resultNode["AllUpdateSucc"].isNull()) + result_.allUpdateSucc = resultNode["AllUpdateSucc"].asString() == "true"; + auto allFailListNode = resultNode["FailList"]["FailListItem"]; + for (auto resultNodeFailListFailListItem : allFailListNode) + { + Result::FailListItem failListItemObject; + if(!resultNodeFailListFailListItem["MarkResultId"].isNull()) + failListItemObject.markResultId = resultNodeFailListFailListItem["MarkResultId"].asString(); + if(!resultNodeFailListFailListItem["QuestionId"].isNull()) + failListItemObject.questionId = resultNodeFailListFailListItem["QuestionId"].asString(); + if(!resultNodeFailListFailListItem["MarkResult"].isNull()) + failListItemObject.markResult = resultNodeFailListFailListItem["MarkResult"].asString(); + if(!resultNodeFailListFailListItem["QuestionTitle"].isNull()) + failListItemObject.questionTitle = resultNodeFailListFailListItem["QuestionTitle"].asString(); + if(!resultNodeFailListFailListItem["QuestionType"].isNull()) + failListItemObject.questionType = resultNodeFailListFailListItem["QuestionType"].asString(); + if(!resultNodeFailListFailListItem["Version"].isNull()) + failListItemObject.version = resultNodeFailListFailListItem["Version"].asString(); + result_.failList.push_back(failListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateMarkResultByAdminResult::getMsg()const +{ + return msg_; +} + +bool UpdateMarkResultByAdminResult::getSucc()const +{ + return succ_; +} + +std::string UpdateMarkResultByAdminResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMarkResultByAdminResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateMarkResultByAdminResult::getCode()const +{ + return code_; +} + +UpdateMarkResultByAdminResult::Result UpdateMarkResultByAdminResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateMarkResultRequest.cc b/itag/src/model/UpdateMarkResultRequest.cc new file mode 100644 index 000000000..ae39fe74a --- /dev/null +++ b/itag/src/model/UpdateMarkResultRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateMarkResultRequest; + +UpdateMarkResultRequest::UpdateMarkResultRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/markresult/updateMarkResult"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateMarkResultRequest::~UpdateMarkResultRequest() {} + +std::string UpdateMarkResultRequest::getBody() const { + return body_; +} + +void UpdateMarkResultRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateMarkResultResult.cc b/itag/src/model/UpdateMarkResultResult.cc new file mode 100644 index 000000000..3323cf221 --- /dev/null +++ b/itag/src/model/UpdateMarkResultResult.cc @@ -0,0 +1,109 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateMarkResultResult::UpdateMarkResultResult() : + ServiceResult() +{} + +UpdateMarkResultResult::UpdateMarkResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMarkResultResult::~UpdateMarkResultResult() +{} + +void UpdateMarkResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["CanCommit"].isNull()) + result_.canCommit = resultNode["CanCommit"].asString() == "true"; + if(!resultNode["CommitMsg"].isNull()) + result_.commitMsg = resultNode["CommitMsg"].asString(); + if(!resultNode["AllUpdateSucc"].isNull()) + result_.allUpdateSucc = resultNode["AllUpdateSucc"].asString() == "true"; + auto allFailListNode = resultNode["FailList"]["FailListItem"]; + for (auto resultNodeFailListFailListItem : allFailListNode) + { + Result::FailListItem failListItemObject; + if(!resultNodeFailListFailListItem["MarkResultId"].isNull()) + failListItemObject.markResultId = resultNodeFailListFailListItem["MarkResultId"].asString(); + if(!resultNodeFailListFailListItem["QuestionId"].isNull()) + failListItemObject.questionId = resultNodeFailListFailListItem["QuestionId"].asString(); + if(!resultNodeFailListFailListItem["MarkResult"].isNull()) + failListItemObject.markResult = resultNodeFailListFailListItem["MarkResult"].asString(); + if(!resultNodeFailListFailListItem["QuestionTitle"].isNull()) + failListItemObject.questionTitle = resultNodeFailListFailListItem["QuestionTitle"].asString(); + if(!resultNodeFailListFailListItem["QuestionType"].isNull()) + failListItemObject.questionType = resultNodeFailListFailListItem["QuestionType"].asString(); + if(!resultNodeFailListFailListItem["Version"].isNull()) + failListItemObject.version = resultNodeFailListFailListItem["Version"].asString(); + result_.failList.push_back(failListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateMarkResultResult::getMsg()const +{ + return msg_; +} + +bool UpdateMarkResultResult::getSucc()const +{ + return succ_; +} + +std::string UpdateMarkResultResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMarkResultResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateMarkResultResult::getCode()const +{ + return code_; +} + +UpdateMarkResultResult::Result UpdateMarkResultResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateModelRequest.cc b/itag/src/model/UpdateModelRequest.cc new file mode 100644 index 000000000..3418917b9 --- /dev/null +++ b/itag/src/model/UpdateModelRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateModelRequest; + +UpdateModelRequest::UpdateModelRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/model/update"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateModelRequest::~UpdateModelRequest() {} + +std::string UpdateModelRequest::getBody() const { + return body_; +} + +void UpdateModelRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateModelResult.cc b/itag/src/model/UpdateModelResult.cc new file mode 100644 index 000000000..6910806bd --- /dev/null +++ b/itag/src/model/UpdateModelResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateModelResult::UpdateModelResult() : + ServiceResult() +{} + +UpdateModelResult::UpdateModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateModelResult::~UpdateModelResult() +{} + +void UpdateModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateModelResult::getMsg()const +{ + return msg_; +} + +long UpdateModelResult::getRt()const +{ + return rt_; +} + +bool UpdateModelResult::getSucc()const +{ + return succ_; +} + +std::string UpdateModelResult::getHost()const +{ + return host_; +} + +std::string UpdateModelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateModelResult::getErrInfo()const +{ + return errInfo_; +} + +int UpdateModelResult::getCode()const +{ + return code_; +} + +long UpdateModelResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateTaskDataRequest.cc b/itag/src/model/UpdateTaskDataRequest.cc new file mode 100644 index 000000000..86b066f23 --- /dev/null +++ b/itag/src/model/UpdateTaskDataRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateTaskDataRequest; + +UpdateTaskDataRequest::UpdateTaskDataRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/report/updateTaskData"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateTaskDataRequest::~UpdateTaskDataRequest() {} + +std::string UpdateTaskDataRequest::getBody() const { + return body_; +} + +void UpdateTaskDataRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateTaskDataResult.cc b/itag/src/model/UpdateTaskDataResult.cc new file mode 100644 index 000000000..bd8a21305 --- /dev/null +++ b/itag/src/model/UpdateTaskDataResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateTaskDataResult::UpdateTaskDataResult() : + ServiceResult() +{} + +UpdateTaskDataResult::UpdateTaskDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTaskDataResult::~UpdateTaskDataResult() +{} + +void UpdateTaskDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateTaskDataResult::getMsg()const +{ + return msg_; +} + +std::string UpdateTaskDataResult::getRequestId()const +{ + return requestId_; +} + +bool UpdateTaskDataResult::getSucc()const +{ + return succ_; +} + +std::string UpdateTaskDataResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateTaskDataResult::getErrInfo()const +{ + return errInfo_; +} + +int UpdateTaskDataResult::getCode()const +{ + return code_; +} + +std::string UpdateTaskDataResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateTaskRequest.cc b/itag/src/model/UpdateTaskRequest.cc new file mode 100644 index 000000000..44bb1cd84 --- /dev/null +++ b/itag/src/model/UpdateTaskRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateTaskRequest; + +UpdateTaskRequest::UpdateTaskRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/updateTask"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateTaskRequest::~UpdateTaskRequest() {} + +std::string UpdateTaskRequest::getBody() const { + return body_; +} + +void UpdateTaskRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateTaskResult.cc b/itag/src/model/UpdateTaskResult.cc new file mode 100644 index 000000000..2ecb5a75c --- /dev/null +++ b/itag/src/model/UpdateTaskResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateTaskResult::UpdateTaskResult() : + ServiceResult() +{} + +UpdateTaskResult::UpdateTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTaskResult::~UpdateTaskResult() +{} + +void UpdateTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateTaskResult::getMsg()const +{ + return msg_; +} + +bool UpdateTaskResult::getSucc()const +{ + return succ_; +} + +std::string UpdateTaskResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateTaskResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateTaskResult::getCode()const +{ + return code_; +} + +bool UpdateTaskResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateTaskTemplateRequest.cc b/itag/src/model/UpdateTaskTemplateRequest.cc new file mode 100644 index 000000000..307df3d88 --- /dev/null +++ b/itag/src/model/UpdateTaskTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateTaskTemplateRequest; + +UpdateTaskTemplateRequest::UpdateTaskTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/task/updateTaskTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateTaskTemplateRequest::~UpdateTaskTemplateRequest() {} + +std::string UpdateTaskTemplateRequest::getBody() const { + return body_; +} + +void UpdateTaskTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateTaskTemplateResult.cc b/itag/src/model/UpdateTaskTemplateResult.cc new file mode 100644 index 000000000..79d021c75 --- /dev/null +++ b/itag/src/model/UpdateTaskTemplateResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateTaskTemplateResult::UpdateTaskTemplateResult() : + ServiceResult() +{} + +UpdateTaskTemplateResult::UpdateTaskTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTaskTemplateResult::~UpdateTaskTemplateResult() +{} + +void UpdateTaskTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateTaskTemplateResult::getMsg()const +{ + return msg_; +} + +bool UpdateTaskTemplateResult::getSucc()const +{ + return succ_; +} + +std::string UpdateTaskTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateTaskTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateTaskTemplateResult::getCode()const +{ + return code_; +} + +bool UpdateTaskTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateTemplateRequest.cc b/itag/src/model/UpdateTemplateRequest.cc new file mode 100644 index 000000000..95c8f0978 --- /dev/null +++ b/itag/src/model/UpdateTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateTemplateRequest; + +UpdateTemplateRequest::UpdateTemplateRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/template/updateTemplate"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateTemplateRequest::~UpdateTemplateRequest() {} + +std::string UpdateTemplateRequest::getBody() const { + return body_; +} + +void UpdateTemplateRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateTemplateResult.cc b/itag/src/model/UpdateTemplateResult.cc new file mode 100644 index 000000000..46152a783 --- /dev/null +++ b/itag/src/model/UpdateTemplateResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateTemplateResult::UpdateTemplateResult() : + ServiceResult() +{} + +UpdateTemplateResult::UpdateTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTemplateResult::~UpdateTemplateResult() +{} + +void UpdateTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateTemplateResult::getMsg()const +{ + return msg_; +} + +bool UpdateTemplateResult::getSucc()const +{ + return succ_; +} + +std::string UpdateTemplateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateTemplateResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateTemplateResult::getCode()const +{ + return code_; +} + +bool UpdateTemplateResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateUserNameRequest.cc b/itag/src/model/UpdateUserNameRequest.cc new file mode 100644 index 000000000..8d9d0963f --- /dev/null +++ b/itag/src/model/UpdateUserNameRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateUserNameRequest; + +UpdateUserNameRequest::UpdateUserNameRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/user/updateName"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateUserNameRequest::~UpdateUserNameRequest() {} + +std::string UpdateUserNameRequest::getBody() const { + return body_; +} + +void UpdateUserNameRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateUserNameResult.cc b/itag/src/model/UpdateUserNameResult.cc new file mode 100644 index 000000000..7d00f29ba --- /dev/null +++ b/itag/src/model/UpdateUserNameResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateUserNameResult::UpdateUserNameResult() : + ServiceResult() +{} + +UpdateUserNameResult::UpdateUserNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserNameResult::~UpdateUserNameResult() +{} + +void UpdateUserNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + if(!value["Rt"].isNull()) + rt_ = std::stol(value["Rt"].asString()); + if(!value["Host"].isNull()) + host_ = value["Host"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateUserNameResult::getMsg()const +{ + return msg_; +} + +long UpdateUserNameResult::getRt()const +{ + return rt_; +} + +bool UpdateUserNameResult::getSucc()const +{ + return succ_; +} + +std::string UpdateUserNameResult::getHost()const +{ + return host_; +} + +std::string UpdateUserNameResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateUserNameResult::getErrInfo()const +{ + return errInfo_; +} + +int UpdateUserNameResult::getCode()const +{ + return code_; +} + +bool UpdateUserNameResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UpdateUserRoleInTntRequest.cc b/itag/src/model/UpdateUserRoleInTntRequest.cc new file mode 100644 index 000000000..34d38028d --- /dev/null +++ b/itag/src/model/UpdateUserRoleInTntRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UpdateUserRoleInTntRequest; + +UpdateUserRoleInTntRequest::UpdateUserRoleInTntRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/mng/api/v1/tnt/updateUserRoleInTnt"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateUserRoleInTntRequest::~UpdateUserRoleInTntRequest() {} + +std::string UpdateUserRoleInTntRequest::getBody() const { + return body_; +} + +void UpdateUserRoleInTntRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UpdateUserRoleInTntResult.cc b/itag/src/model/UpdateUserRoleInTntResult.cc new file mode 100644 index 000000000..8a6c6a838 --- /dev/null +++ b/itag/src/model/UpdateUserRoleInTntResult.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UpdateUserRoleInTntResult::UpdateUserRoleInTntResult() : + ServiceResult() +{} + +UpdateUserRoleInTntResult::UpdateUserRoleInTntResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserRoleInTntResult::~UpdateUserRoleInTntResult() +{} + +void UpdateUserRoleInTntResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["SuccCount"].isNull()) + result_.succCount = std::stoi(resultNode["SuccCount"].asString()); + if(!resultNode["FailCount"].isNull()) + result_.failCount = std::stoi(resultNode["FailCount"].asString()); + if(!resultNode["FailMsg"].isNull()) + result_.failMsg = resultNode["FailMsg"].asString(); + auto allSuccUserListNode = resultNode["SuccUserList"]["ITagSimpleUserVO"]; + for (auto resultNodeSuccUserListITagSimpleUserVO : allSuccUserListNode) + { + Result::ITagSimpleUserVO iTagSimpleUserVOObject; + if(!resultNodeSuccUserListITagSimpleUserVO["UserId"].isNull()) + iTagSimpleUserVOObject.userId = resultNodeSuccUserListITagSimpleUserVO["UserId"].asString(); + if(!resultNodeSuccUserListITagSimpleUserVO["UserName"].isNull()) + iTagSimpleUserVOObject.userName = resultNodeSuccUserListITagSimpleUserVO["UserName"].asString(); + if(!resultNodeSuccUserListITagSimpleUserVO["AccountType"].isNull()) + iTagSimpleUserVOObject.accountType = resultNodeSuccUserListITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeSuccUserListITagSimpleUserVO["AccountNo"].isNull()) + iTagSimpleUserVOObject.accountNo = resultNodeSuccUserListITagSimpleUserVO["AccountNo"].asString(); + result_.succUserList.push_back(iTagSimpleUserVOObject); + } + auto allFailUserListNode = resultNode["FailUserList"]["ITagSimpleUserVO"]; + for (auto resultNodeFailUserListITagSimpleUserVO : allFailUserListNode) + { + Result::ITagSimpleUserVO iTagSimpleUserVOObject; + if(!resultNodeFailUserListITagSimpleUserVO["UserId"].isNull()) + iTagSimpleUserVOObject.userId = resultNodeFailUserListITagSimpleUserVO["UserId"].asString(); + if(!resultNodeFailUserListITagSimpleUserVO["UserName"].isNull()) + iTagSimpleUserVOObject.userName = resultNodeFailUserListITagSimpleUserVO["UserName"].asString(); + if(!resultNodeFailUserListITagSimpleUserVO["AccountType"].isNull()) + iTagSimpleUserVOObject.accountType = resultNodeFailUserListITagSimpleUserVO["AccountType"].asString(); + if(!resultNodeFailUserListITagSimpleUserVO["AccountNo"].isNull()) + iTagSimpleUserVOObject.accountNo = resultNodeFailUserListITagSimpleUserVO["AccountNo"].asString(); + result_.failUserList.push_back(iTagSimpleUserVOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UpdateUserRoleInTntResult::getMsg()const +{ + return msg_; +} + +bool UpdateUserRoleInTntResult::getSucc()const +{ + return succ_; +} + +std::string UpdateUserRoleInTntResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateUserRoleInTntResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UpdateUserRoleInTntResult::getCode()const +{ + return code_; +} + +UpdateUserRoleInTntResult::Result UpdateUserRoleInTntResult::getResult()const +{ + return result_; +} + diff --git a/itag/src/model/UserSubTaskTimerRequest.cc b/itag/src/model/UserSubTaskTimerRequest.cc new file mode 100644 index 000000000..4414c0b93 --- /dev/null +++ b/itag/src/model/UserSubTaskTimerRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Itag::Model::UserSubTaskTimerRequest; + +UserSubTaskTimerRequest::UserSubTaskTimerRequest() + : RoaServiceRequest("itag", "2021-05-17") { + setResourcePath("/work/api/v1/usersubtask/timer"}; + setMethod(HttpRequest::Method::Post); +} + +UserSubTaskTimerRequest::~UserSubTaskTimerRequest() {} + +std::string UserSubTaskTimerRequest::getBody() const { + return body_; +} + +void UserSubTaskTimerRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/itag/src/model/UserSubTaskTimerResult.cc b/itag/src/model/UserSubTaskTimerResult.cc new file mode 100644 index 000000000..3a24dd32a --- /dev/null +++ b/itag/src/model/UserSubTaskTimerResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Itag; +using namespace AlibabaCloud::Itag::Model; + +UserSubTaskTimerResult::UserSubTaskTimerResult() : + ServiceResult() +{} + +UserSubTaskTimerResult::UserSubTaskTimerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UserSubTaskTimerResult::~UserSubTaskTimerResult() +{} + +void UserSubTaskTimerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrInfo"].isNull()) + errInfo_ = value["ErrInfo"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Succ"].isNull()) + succ_ = value["Succ"].asString() == "true"; + if(!value["Result"].isNull()) + result_ = std::stol(value["Result"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string UserSubTaskTimerResult::getMsg()const +{ + return msg_; +} + +bool UserSubTaskTimerResult::getSucc()const +{ + return succ_; +} + +std::string UserSubTaskTimerResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UserSubTaskTimerResult::getErrInfo()const +{ + return errInfo_; +} + +std::string UserSubTaskTimerResult::getCode()const +{ + return code_; +} + +long UserSubTaskTimerResult::getResult()const +{ + return result_; +} +