From d28ae226854a87072ccf890a08f816b3bdef0a58 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 2 Dec 2020 03:19:22 +0000 Subject: [PATCH] Supported OpenAPI for SDK. --- CHANGELOG | 3 + idrsservice/CMakeLists.txt | 286 +++ .../idrsservice/IdrsserviceClient.h | 454 ++++ .../idrsservice/IdrsserviceExport.h | 32 + .../model/CheckServiceLinkedRoleRequest.h | 48 + .../model/CheckServiceLinkedRoleResult.h | 59 + .../idrsservice/model/CreateAppRequest.h | 57 + .../idrsservice/model/CreateAppResult.h | 63 + .../model/CreateDepartmentRequest.h | 57 + .../model/CreateDepartmentResult.h | 62 + .../model/CreateLiveDetectionRequest.h | 60 + .../model/CreateLiveDetectionResult.h | 59 + .../idrsservice/model/CreateLiveRequest.h | 60 + .../idrsservice/model/CreateLiveResult.h | 61 + .../idrsservice/model/CreateRuleRequest.h | 54 + .../idrsservice/model/CreateRuleResult.h | 61 + .../model/CreateStatisticsRecordRequest.h | 63 + .../model/CreateStatisticsRecordResult.h | 53 + .../model/CreateStatisticsTaskRequest.h | 57 + .../model/CreateStatisticsTaskResult.h | 53 + .../model/CreateTaskGroupRequest.h | 75 + .../idrsservice/model/CreateTaskGroupResult.h | 67 + .../model/CreateUserDepartmentsRequest.h | 51 + .../model/CreateUserDepartmentsResult.h | 55 + .../idrsservice/model/DeleteAppRequest.h | 48 + .../idrsservice/model/DeleteAppResult.h | 55 + .../model/DeleteDepartmentRequest.h | 48 + .../model/DeleteDepartmentResult.h | 55 + .../idrsservice/model/DeleteRuleRequest.h | 48 + .../idrsservice/model/DeleteRuleResult.h | 62 + .../model/DeleteUserDepartmentsRequest.h | 51 + .../model/DeleteUserDepartmentsResult.h | 55 + .../idrsservice/model/DeleteUserRequest.h | 48 + .../idrsservice/model/DeleteUserResult.h | 62 + .../idrsservice/model/ExitLiveRequest.h | 54 + .../idrsservice/model/ExitLiveResult.h | 59 + .../idrsservice/model/GetAppRequest.h | 54 + .../idrsservice/model/GetAppResult.h | 61 + .../idrsservice/model/GetDepartmentRequest.h | 48 + .../idrsservice/model/GetDepartmentResult.h | 63 + .../model/GetDetectEvaluationRequest.h | 51 + .../model/GetDetectEvaluationResult.h | 67 + .../idrsservice/model/GetDetectionRequest.h | 48 + .../idrsservice/model/GetDetectionResult.h | 75 + .../model/GetModelSignedUrlRequest.h | 48 + .../model/GetModelSignedUrlResult.h | 61 + .../model/GetPreSignedUrlRequest.h | 48 + .../idrsservice/model/GetPreSignedUrlResult.h | 55 + .../idrsservice/model/GetRuleRequest.h | 48 + .../idrsservice/model/GetRuleResult.h | 62 + .../model/GetServiceConfigurationRequest.h | 48 + .../model/GetServiceConfigurationResult.h | 66 + .../idrsservice/model/GetSignedUrlRequest.h | 48 + .../idrsservice/model/GetSignedUrlResult.h | 55 + .../model/GetSlrConfigurationRequest.h | 48 + .../model/GetSlrConfigurationResult.h | 64 + .../idrsservice/model/GetStatisticsRequest.h | 54 + .../idrsservice/model/GetStatisticsResult.h | 75 + .../idrsservice/model/GetTaskGroupRequest.h | 48 + .../idrsservice/model/GetTaskGroupResult.h | 67 + .../idrsservice/model/GetTaskRequest.h | 48 + .../idrsservice/model/GetTaskResult.h | 62 + .../idrsservice/model/GetUserRequest.h | 48 + .../idrsservice/model/GetUserResult.h | 76 + .../InitializeServiceLinkedRoleRequest.h | 48 + .../model/InitializeServiceLinkedRoleResult.h | 60 + .../idrsservice/model/JoinLiveRequest.h | 54 + .../idrsservice/model/JoinLiveResult.h | 76 + .../idrsservice/model/ListAppsRequest.h | 51 + .../idrsservice/model/ListAppsResult.h | 71 + .../model/ListDepartmentsRequest.h | 57 + .../idrsservice/model/ListDepartmentsResult.h | 75 + .../idrsservice/model/ListDetectionsRequest.h | 66 + .../idrsservice/model/ListDetectionsResult.h | 88 + .../idrsservice/model/ListFilesRequest.h | 51 + .../idrsservice/model/ListFilesResult.h | 55 + .../idrsservice/model/ListLivesRequest.h | 51 + .../idrsservice/model/ListLivesResult.h | 71 + .../idrsservice/model/ListRolesRequest.h | 45 + .../idrsservice/model/ListRolesResult.h | 55 + .../idrsservice/model/ListRulesRequest.h | 51 + .../idrsservice/model/ListRulesResult.h | 68 + .../model/ListStatisticsTaskRequest.h | 51 + .../model/ListStatisticsTaskResult.h | 68 + .../idrsservice/model/ListTaskGroupsRequest.h | 54 + .../idrsservice/model/ListTaskGroupsResult.h | 73 + .../idrsservice/model/ListTaskItemsRequest.h | 48 + .../idrsservice/model/ListTaskItemsResult.h | 64 + .../idrsservice/model/ListTasksRequest.h | 54 + .../idrsservice/model/ListTasksResult.h | 69 + .../idrsservice/model/ListUsersRequest.h | 57 + .../idrsservice/model/ListUsersResult.h | 83 + .../idrsservice/model/UpdateAppRequest.h | 60 + .../idrsservice/model/UpdateAppResult.h | 55 + .../model/UpdateDepartmentRequest.h | 57 + .../model/UpdateDepartmentResult.h | 55 + .../idrsservice/model/UpdateLiveRequest.h | 54 + .../idrsservice/model/UpdateLiveResult.h | 59 + .../idrsservice/model/UpdateRuleRequest.h | 54 + .../idrsservice/model/UpdateRuleResult.h | 62 + .../model/UpdateServiceConfigurationRequest.h | 69 + .../model/UpdateServiceConfigurationResult.h | 53 + .../model/UpdateSlrConfigurationRequest.h | 63 + .../model/UpdateSlrConfigurationResult.h | 53 + .../idrsservice/model/UpdateUserRequest.h | 60 + .../idrsservice/model/UpdateUserResult.h | 55 + idrsservice/src/IdrsserviceClient.cc | 1889 +++++++++++++++++ .../model/CheckServiceLinkedRoleRequest.cc | 40 + .../src/model/CheckServiceLinkedRoleResult.cc | 66 + idrsservice/src/model/CreateAppRequest.cc | 73 + idrsservice/src/model/CreateAppResult.cc | 74 + .../src/model/CreateDepartmentRequest.cc | 73 + .../src/model/CreateDepartmentResult.cc | 72 + .../src/model/CreateLiveDetectionRequest.cc | 84 + .../src/model/CreateLiveDetectionResult.cc | 66 + idrsservice/src/model/CreateLiveRequest.cc | 84 + idrsservice/src/model/CreateLiveResult.cc | 70 + idrsservice/src/model/CreateRuleRequest.cc | 62 + idrsservice/src/model/CreateRuleResult.cc | 70 + .../model/CreateStatisticsRecordRequest.cc | 95 + .../src/model/CreateStatisticsRecordResult.cc | 58 + .../src/model/CreateStatisticsTaskRequest.cc | 75 + .../src/model/CreateStatisticsTaskResult.cc | 58 + .../src/model/CreateTaskGroupRequest.cc | 143 ++ .../src/model/CreateTaskGroupResult.cc | 83 + .../src/model/CreateUserDepartmentsRequest.cc | 55 + .../src/model/CreateUserDepartmentsResult.cc | 65 + idrsservice/src/model/DeleteAppRequest.cc | 40 + idrsservice/src/model/DeleteAppResult.cc | 65 + .../src/model/DeleteDepartmentRequest.cc | 40 + .../src/model/DeleteDepartmentResult.cc | 65 + idrsservice/src/model/DeleteRuleRequest.cc | 40 + idrsservice/src/model/DeleteRuleResult.cc | 72 + .../src/model/DeleteUserDepartmentsRequest.cc | 55 + .../src/model/DeleteUserDepartmentsResult.cc | 65 + idrsservice/src/model/DeleteUserRequest.cc | 40 + idrsservice/src/model/DeleteUserResult.cc | 80 + idrsservice/src/model/ExitLiveRequest.cc | 62 + idrsservice/src/model/ExitLiveResult.cc | 66 + idrsservice/src/model/GetAppRequest.cc | 62 + idrsservice/src/model/GetAppResult.cc | 70 + idrsservice/src/model/GetDepartmentRequest.cc | 40 + idrsservice/src/model/GetDepartmentResult.cc | 74 + .../src/model/GetDetectEvaluationRequest.cc | 51 + .../src/model/GetDetectEvaluationResult.cc | 85 + idrsservice/src/model/GetDetectionRequest.cc | 40 + idrsservice/src/model/GetDetectionResult.cc | 96 + .../src/model/GetModelSignedUrlRequest.cc | 42 + .../src/model/GetModelSignedUrlResult.cc | 75 + .../src/model/GetPreSignedUrlRequest.cc | 40 + .../src/model/GetPreSignedUrlResult.cc | 65 + idrsservice/src/model/GetRuleRequest.cc | 40 + idrsservice/src/model/GetRuleResult.cc | 72 + .../model/GetServiceConfigurationRequest.cc | 40 + .../model/GetServiceConfigurationResult.cc | 80 + idrsservice/src/model/GetSignedUrlRequest.cc | 40 + idrsservice/src/model/GetSignedUrlResult.cc | 65 + .../src/model/GetSlrConfigurationRequest.cc | 40 + .../src/model/GetSlrConfigurationResult.cc | 77 + idrsservice/src/model/GetStatisticsRequest.cc | 64 + idrsservice/src/model/GetStatisticsResult.cc | 94 + idrsservice/src/model/GetTaskGroupRequest.cc | 40 + idrsservice/src/model/GetTaskGroupResult.cc | 83 + idrsservice/src/model/GetTaskRequest.cc | 40 + idrsservice/src/model/GetTaskResult.cc | 72 + idrsservice/src/model/GetUserRequest.cc | 40 + idrsservice/src/model/GetUserResult.cc | 98 + .../InitializeServiceLinkedRoleRequest.cc | 40 + .../InitializeServiceLinkedRoleResult.cc | 68 + idrsservice/src/model/JoinLiveRequest.cc | 62 + idrsservice/src/model/JoinLiveResult.cc | 87 + idrsservice/src/model/ListAppsRequest.cc | 51 + idrsservice/src/model/ListAppsResult.cc | 88 + .../src/model/ListDepartmentsRequest.cc | 73 + .../src/model/ListDepartmentsResult.cc | 94 + .../src/model/ListDetectionsRequest.cc | 106 + idrsservice/src/model/ListDetectionsResult.cc | 121 ++ idrsservice/src/model/ListFilesRequest.cc | 51 + idrsservice/src/model/ListFilesResult.cc | 66 + idrsservice/src/model/ListLivesRequest.cc | 51 + idrsservice/src/model/ListLivesResult.cc | 88 + idrsservice/src/model/ListRolesRequest.cc | 29 + idrsservice/src/model/ListRolesResult.cc | 66 + idrsservice/src/model/ListRulesRequest.cc | 51 + idrsservice/src/model/ListRulesResult.cc | 82 + .../src/model/ListStatisticsTaskRequest.cc | 51 + .../src/model/ListStatisticsTaskResult.cc | 82 + .../src/model/ListTaskGroupsRequest.cc | 62 + idrsservice/src/model/ListTaskGroupsResult.cc | 93 + idrsservice/src/model/ListTaskItemsRequest.cc | 40 + idrsservice/src/model/ListTaskItemsResult.cc | 81 + idrsservice/src/model/ListTasksRequest.cc | 62 + idrsservice/src/model/ListTasksResult.cc | 84 + idrsservice/src/model/ListUsersRequest.cc | 73 + idrsservice/src/model/ListUsersResult.cc | 110 + idrsservice/src/model/UpdateAppRequest.cc | 84 + idrsservice/src/model/UpdateAppResult.cc | 65 + .../src/model/UpdateDepartmentRequest.cc | 73 + .../src/model/UpdateDepartmentResult.cc | 65 + idrsservice/src/model/UpdateLiveRequest.cc | 62 + idrsservice/src/model/UpdateLiveResult.cc | 66 + idrsservice/src/model/UpdateRuleRequest.cc | 62 + idrsservice/src/model/UpdateRuleResult.cc | 72 + .../UpdateServiceConfigurationRequest.cc | 117 + .../model/UpdateServiceConfigurationResult.cc | 58 + .../model/UpdateSlrConfigurationRequest.cc | 97 + .../src/model/UpdateSlrConfigurationResult.cc | 58 + idrsservice/src/model/UpdateUserRequest.cc | 84 + idrsservice/src/model/UpdateUserResult.cc | 65 + 209 files changed, 15524 insertions(+) create mode 100644 idrsservice/CMakeLists.txt create mode 100644 idrsservice/include/alibabacloud/idrsservice/IdrsserviceClient.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/IdrsserviceExport.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateAppRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateAppResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateLiveRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateLiveResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateRuleRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateRuleResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteAppRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteAppResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteUserRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/DeleteUserResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ExitLiveRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ExitLiveResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetAppRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetAppResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetDetectionRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetDetectionResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetRuleRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetRuleResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetTaskRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetTaskResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetUserRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/GetUserResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/JoinLiveRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/JoinLiveResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListAppsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListAppsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListFilesRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListFilesResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListLivesRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListLivesResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListRolesRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListRolesResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListRulesRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListRulesResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListTasksRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListTasksResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListUsersRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/ListUsersResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateAppRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateAppResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationResult.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateUserRequest.h create mode 100644 idrsservice/include/alibabacloud/idrsservice/model/UpdateUserResult.h create mode 100644 idrsservice/src/IdrsserviceClient.cc create mode 100644 idrsservice/src/model/CheckServiceLinkedRoleRequest.cc create mode 100644 idrsservice/src/model/CheckServiceLinkedRoleResult.cc create mode 100644 idrsservice/src/model/CreateAppRequest.cc create mode 100644 idrsservice/src/model/CreateAppResult.cc create mode 100644 idrsservice/src/model/CreateDepartmentRequest.cc create mode 100644 idrsservice/src/model/CreateDepartmentResult.cc create mode 100644 idrsservice/src/model/CreateLiveDetectionRequest.cc create mode 100644 idrsservice/src/model/CreateLiveDetectionResult.cc create mode 100644 idrsservice/src/model/CreateLiveRequest.cc create mode 100644 idrsservice/src/model/CreateLiveResult.cc create mode 100644 idrsservice/src/model/CreateRuleRequest.cc create mode 100644 idrsservice/src/model/CreateRuleResult.cc create mode 100644 idrsservice/src/model/CreateStatisticsRecordRequest.cc create mode 100644 idrsservice/src/model/CreateStatisticsRecordResult.cc create mode 100644 idrsservice/src/model/CreateStatisticsTaskRequest.cc create mode 100644 idrsservice/src/model/CreateStatisticsTaskResult.cc create mode 100644 idrsservice/src/model/CreateTaskGroupRequest.cc create mode 100644 idrsservice/src/model/CreateTaskGroupResult.cc create mode 100644 idrsservice/src/model/CreateUserDepartmentsRequest.cc create mode 100644 idrsservice/src/model/CreateUserDepartmentsResult.cc create mode 100644 idrsservice/src/model/DeleteAppRequest.cc create mode 100644 idrsservice/src/model/DeleteAppResult.cc create mode 100644 idrsservice/src/model/DeleteDepartmentRequest.cc create mode 100644 idrsservice/src/model/DeleteDepartmentResult.cc create mode 100644 idrsservice/src/model/DeleteRuleRequest.cc create mode 100644 idrsservice/src/model/DeleteRuleResult.cc create mode 100644 idrsservice/src/model/DeleteUserDepartmentsRequest.cc create mode 100644 idrsservice/src/model/DeleteUserDepartmentsResult.cc create mode 100644 idrsservice/src/model/DeleteUserRequest.cc create mode 100644 idrsservice/src/model/DeleteUserResult.cc create mode 100644 idrsservice/src/model/ExitLiveRequest.cc create mode 100644 idrsservice/src/model/ExitLiveResult.cc create mode 100644 idrsservice/src/model/GetAppRequest.cc create mode 100644 idrsservice/src/model/GetAppResult.cc create mode 100644 idrsservice/src/model/GetDepartmentRequest.cc create mode 100644 idrsservice/src/model/GetDepartmentResult.cc create mode 100644 idrsservice/src/model/GetDetectEvaluationRequest.cc create mode 100644 idrsservice/src/model/GetDetectEvaluationResult.cc create mode 100644 idrsservice/src/model/GetDetectionRequest.cc create mode 100644 idrsservice/src/model/GetDetectionResult.cc create mode 100644 idrsservice/src/model/GetModelSignedUrlRequest.cc create mode 100644 idrsservice/src/model/GetModelSignedUrlResult.cc create mode 100644 idrsservice/src/model/GetPreSignedUrlRequest.cc create mode 100644 idrsservice/src/model/GetPreSignedUrlResult.cc create mode 100644 idrsservice/src/model/GetRuleRequest.cc create mode 100644 idrsservice/src/model/GetRuleResult.cc create mode 100644 idrsservice/src/model/GetServiceConfigurationRequest.cc create mode 100644 idrsservice/src/model/GetServiceConfigurationResult.cc create mode 100644 idrsservice/src/model/GetSignedUrlRequest.cc create mode 100644 idrsservice/src/model/GetSignedUrlResult.cc create mode 100644 idrsservice/src/model/GetSlrConfigurationRequest.cc create mode 100644 idrsservice/src/model/GetSlrConfigurationResult.cc create mode 100644 idrsservice/src/model/GetStatisticsRequest.cc create mode 100644 idrsservice/src/model/GetStatisticsResult.cc create mode 100644 idrsservice/src/model/GetTaskGroupRequest.cc create mode 100644 idrsservice/src/model/GetTaskGroupResult.cc create mode 100644 idrsservice/src/model/GetTaskRequest.cc create mode 100644 idrsservice/src/model/GetTaskResult.cc create mode 100644 idrsservice/src/model/GetUserRequest.cc create mode 100644 idrsservice/src/model/GetUserResult.cc create mode 100644 idrsservice/src/model/InitializeServiceLinkedRoleRequest.cc create mode 100644 idrsservice/src/model/InitializeServiceLinkedRoleResult.cc create mode 100644 idrsservice/src/model/JoinLiveRequest.cc create mode 100644 idrsservice/src/model/JoinLiveResult.cc create mode 100644 idrsservice/src/model/ListAppsRequest.cc create mode 100644 idrsservice/src/model/ListAppsResult.cc create mode 100644 idrsservice/src/model/ListDepartmentsRequest.cc create mode 100644 idrsservice/src/model/ListDepartmentsResult.cc create mode 100644 idrsservice/src/model/ListDetectionsRequest.cc create mode 100644 idrsservice/src/model/ListDetectionsResult.cc create mode 100644 idrsservice/src/model/ListFilesRequest.cc create mode 100644 idrsservice/src/model/ListFilesResult.cc create mode 100644 idrsservice/src/model/ListLivesRequest.cc create mode 100644 idrsservice/src/model/ListLivesResult.cc create mode 100644 idrsservice/src/model/ListRolesRequest.cc create mode 100644 idrsservice/src/model/ListRolesResult.cc create mode 100644 idrsservice/src/model/ListRulesRequest.cc create mode 100644 idrsservice/src/model/ListRulesResult.cc create mode 100644 idrsservice/src/model/ListStatisticsTaskRequest.cc create mode 100644 idrsservice/src/model/ListStatisticsTaskResult.cc create mode 100644 idrsservice/src/model/ListTaskGroupsRequest.cc create mode 100644 idrsservice/src/model/ListTaskGroupsResult.cc create mode 100644 idrsservice/src/model/ListTaskItemsRequest.cc create mode 100644 idrsservice/src/model/ListTaskItemsResult.cc create mode 100644 idrsservice/src/model/ListTasksRequest.cc create mode 100644 idrsservice/src/model/ListTasksResult.cc create mode 100644 idrsservice/src/model/ListUsersRequest.cc create mode 100644 idrsservice/src/model/ListUsersResult.cc create mode 100644 idrsservice/src/model/UpdateAppRequest.cc create mode 100644 idrsservice/src/model/UpdateAppResult.cc create mode 100644 idrsservice/src/model/UpdateDepartmentRequest.cc create mode 100644 idrsservice/src/model/UpdateDepartmentResult.cc create mode 100644 idrsservice/src/model/UpdateLiveRequest.cc create mode 100644 idrsservice/src/model/UpdateLiveResult.cc create mode 100644 idrsservice/src/model/UpdateRuleRequest.cc create mode 100644 idrsservice/src/model/UpdateRuleResult.cc create mode 100644 idrsservice/src/model/UpdateServiceConfigurationRequest.cc create mode 100644 idrsservice/src/model/UpdateServiceConfigurationResult.cc create mode 100644 idrsservice/src/model/UpdateSlrConfigurationRequest.cc create mode 100644 idrsservice/src/model/UpdateSlrConfigurationResult.cc create mode 100644 idrsservice/src/model/UpdateUserRequest.cc create mode 100644 idrsservice/src/model/UpdateUserResult.cc diff --git a/CHANGELOG b/CHANGELOG index 54aa8256f..632a1b842 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-12-02 Version: patch +- Supported OpenAPI for SDK. + 2020-12-02 Version: patch - Release ColorizeImage. diff --git a/idrsservice/CMakeLists.txt b/idrsservice/CMakeLists.txt new file mode 100644 index 000000000..6bda0a2a4 --- /dev/null +++ b/idrsservice/CMakeLists.txt @@ -0,0 +1,286 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(idrsservice_public_header + include/alibabacloud/idrsservice/IdrsserviceClient.h + include/alibabacloud/idrsservice/IdrsserviceExport.h ) + +set(idrsservice_public_header_model + include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleRequest.h + include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleResult.h + include/alibabacloud/idrsservice/model/CreateAppRequest.h + include/alibabacloud/idrsservice/model/CreateAppResult.h + include/alibabacloud/idrsservice/model/CreateDepartmentRequest.h + include/alibabacloud/idrsservice/model/CreateDepartmentResult.h + include/alibabacloud/idrsservice/model/CreateLiveRequest.h + include/alibabacloud/idrsservice/model/CreateLiveResult.h + include/alibabacloud/idrsservice/model/CreateLiveDetectionRequest.h + include/alibabacloud/idrsservice/model/CreateLiveDetectionResult.h + include/alibabacloud/idrsservice/model/CreateRuleRequest.h + include/alibabacloud/idrsservice/model/CreateRuleResult.h + include/alibabacloud/idrsservice/model/CreateStatisticsRecordRequest.h + include/alibabacloud/idrsservice/model/CreateStatisticsRecordResult.h + include/alibabacloud/idrsservice/model/CreateStatisticsTaskRequest.h + include/alibabacloud/idrsservice/model/CreateStatisticsTaskResult.h + include/alibabacloud/idrsservice/model/CreateTaskGroupRequest.h + include/alibabacloud/idrsservice/model/CreateTaskGroupResult.h + include/alibabacloud/idrsservice/model/CreateUserDepartmentsRequest.h + include/alibabacloud/idrsservice/model/CreateUserDepartmentsResult.h + include/alibabacloud/idrsservice/model/DeleteAppRequest.h + include/alibabacloud/idrsservice/model/DeleteAppResult.h + include/alibabacloud/idrsservice/model/DeleteDepartmentRequest.h + include/alibabacloud/idrsservice/model/DeleteDepartmentResult.h + include/alibabacloud/idrsservice/model/DeleteRuleRequest.h + include/alibabacloud/idrsservice/model/DeleteRuleResult.h + include/alibabacloud/idrsservice/model/DeleteUserRequest.h + include/alibabacloud/idrsservice/model/DeleteUserResult.h + include/alibabacloud/idrsservice/model/DeleteUserDepartmentsRequest.h + include/alibabacloud/idrsservice/model/DeleteUserDepartmentsResult.h + include/alibabacloud/idrsservice/model/ExitLiveRequest.h + include/alibabacloud/idrsservice/model/ExitLiveResult.h + include/alibabacloud/idrsservice/model/GetAppRequest.h + include/alibabacloud/idrsservice/model/GetAppResult.h + include/alibabacloud/idrsservice/model/GetDepartmentRequest.h + include/alibabacloud/idrsservice/model/GetDepartmentResult.h + include/alibabacloud/idrsservice/model/GetDetectEvaluationRequest.h + include/alibabacloud/idrsservice/model/GetDetectEvaluationResult.h + include/alibabacloud/idrsservice/model/GetDetectionRequest.h + include/alibabacloud/idrsservice/model/GetDetectionResult.h + include/alibabacloud/idrsservice/model/GetModelSignedUrlRequest.h + include/alibabacloud/idrsservice/model/GetModelSignedUrlResult.h + include/alibabacloud/idrsservice/model/GetPreSignedUrlRequest.h + include/alibabacloud/idrsservice/model/GetPreSignedUrlResult.h + include/alibabacloud/idrsservice/model/GetRuleRequest.h + include/alibabacloud/idrsservice/model/GetRuleResult.h + include/alibabacloud/idrsservice/model/GetServiceConfigurationRequest.h + include/alibabacloud/idrsservice/model/GetServiceConfigurationResult.h + include/alibabacloud/idrsservice/model/GetSignedUrlRequest.h + include/alibabacloud/idrsservice/model/GetSignedUrlResult.h + include/alibabacloud/idrsservice/model/GetSlrConfigurationRequest.h + include/alibabacloud/idrsservice/model/GetSlrConfigurationResult.h + include/alibabacloud/idrsservice/model/GetStatisticsRequest.h + include/alibabacloud/idrsservice/model/GetStatisticsResult.h + include/alibabacloud/idrsservice/model/GetTaskRequest.h + include/alibabacloud/idrsservice/model/GetTaskResult.h + include/alibabacloud/idrsservice/model/GetTaskGroupRequest.h + include/alibabacloud/idrsservice/model/GetTaskGroupResult.h + include/alibabacloud/idrsservice/model/GetUserRequest.h + include/alibabacloud/idrsservice/model/GetUserResult.h + include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleRequest.h + include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleResult.h + include/alibabacloud/idrsservice/model/JoinLiveRequest.h + include/alibabacloud/idrsservice/model/JoinLiveResult.h + include/alibabacloud/idrsservice/model/ListAppsRequest.h + include/alibabacloud/idrsservice/model/ListAppsResult.h + include/alibabacloud/idrsservice/model/ListDepartmentsRequest.h + include/alibabacloud/idrsservice/model/ListDepartmentsResult.h + include/alibabacloud/idrsservice/model/ListDetectionsRequest.h + include/alibabacloud/idrsservice/model/ListDetectionsResult.h + include/alibabacloud/idrsservice/model/ListFilesRequest.h + include/alibabacloud/idrsservice/model/ListFilesResult.h + include/alibabacloud/idrsservice/model/ListLivesRequest.h + include/alibabacloud/idrsservice/model/ListLivesResult.h + include/alibabacloud/idrsservice/model/ListRolesRequest.h + include/alibabacloud/idrsservice/model/ListRolesResult.h + include/alibabacloud/idrsservice/model/ListRulesRequest.h + include/alibabacloud/idrsservice/model/ListRulesResult.h + include/alibabacloud/idrsservice/model/ListStatisticsTaskRequest.h + include/alibabacloud/idrsservice/model/ListStatisticsTaskResult.h + include/alibabacloud/idrsservice/model/ListTaskGroupsRequest.h + include/alibabacloud/idrsservice/model/ListTaskGroupsResult.h + include/alibabacloud/idrsservice/model/ListTaskItemsRequest.h + include/alibabacloud/idrsservice/model/ListTaskItemsResult.h + include/alibabacloud/idrsservice/model/ListTasksRequest.h + include/alibabacloud/idrsservice/model/ListTasksResult.h + include/alibabacloud/idrsservice/model/ListUsersRequest.h + include/alibabacloud/idrsservice/model/ListUsersResult.h + include/alibabacloud/idrsservice/model/UpdateAppRequest.h + include/alibabacloud/idrsservice/model/UpdateAppResult.h + include/alibabacloud/idrsservice/model/UpdateDepartmentRequest.h + include/alibabacloud/idrsservice/model/UpdateDepartmentResult.h + include/alibabacloud/idrsservice/model/UpdateLiveRequest.h + include/alibabacloud/idrsservice/model/UpdateLiveResult.h + include/alibabacloud/idrsservice/model/UpdateRuleRequest.h + include/alibabacloud/idrsservice/model/UpdateRuleResult.h + include/alibabacloud/idrsservice/model/UpdateServiceConfigurationRequest.h + include/alibabacloud/idrsservice/model/UpdateServiceConfigurationResult.h + include/alibabacloud/idrsservice/model/UpdateSlrConfigurationRequest.h + include/alibabacloud/idrsservice/model/UpdateSlrConfigurationResult.h + include/alibabacloud/idrsservice/model/UpdateUserRequest.h + include/alibabacloud/idrsservice/model/UpdateUserResult.h ) + +set(idrsservice_src + src/IdrsserviceClient.cc + src/model/CheckServiceLinkedRoleRequest.cc + src/model/CheckServiceLinkedRoleResult.cc + src/model/CreateAppRequest.cc + src/model/CreateAppResult.cc + src/model/CreateDepartmentRequest.cc + src/model/CreateDepartmentResult.cc + src/model/CreateLiveRequest.cc + src/model/CreateLiveResult.cc + src/model/CreateLiveDetectionRequest.cc + src/model/CreateLiveDetectionResult.cc + src/model/CreateRuleRequest.cc + src/model/CreateRuleResult.cc + src/model/CreateStatisticsRecordRequest.cc + src/model/CreateStatisticsRecordResult.cc + src/model/CreateStatisticsTaskRequest.cc + src/model/CreateStatisticsTaskResult.cc + src/model/CreateTaskGroupRequest.cc + src/model/CreateTaskGroupResult.cc + src/model/CreateUserDepartmentsRequest.cc + src/model/CreateUserDepartmentsResult.cc + src/model/DeleteAppRequest.cc + src/model/DeleteAppResult.cc + src/model/DeleteDepartmentRequest.cc + src/model/DeleteDepartmentResult.cc + src/model/DeleteRuleRequest.cc + src/model/DeleteRuleResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc + src/model/DeleteUserDepartmentsRequest.cc + src/model/DeleteUserDepartmentsResult.cc + src/model/ExitLiveRequest.cc + src/model/ExitLiveResult.cc + src/model/GetAppRequest.cc + src/model/GetAppResult.cc + src/model/GetDepartmentRequest.cc + src/model/GetDepartmentResult.cc + src/model/GetDetectEvaluationRequest.cc + src/model/GetDetectEvaluationResult.cc + src/model/GetDetectionRequest.cc + src/model/GetDetectionResult.cc + src/model/GetModelSignedUrlRequest.cc + src/model/GetModelSignedUrlResult.cc + src/model/GetPreSignedUrlRequest.cc + src/model/GetPreSignedUrlResult.cc + src/model/GetRuleRequest.cc + src/model/GetRuleResult.cc + src/model/GetServiceConfigurationRequest.cc + src/model/GetServiceConfigurationResult.cc + src/model/GetSignedUrlRequest.cc + src/model/GetSignedUrlResult.cc + src/model/GetSlrConfigurationRequest.cc + src/model/GetSlrConfigurationResult.cc + src/model/GetStatisticsRequest.cc + src/model/GetStatisticsResult.cc + src/model/GetTaskRequest.cc + src/model/GetTaskResult.cc + src/model/GetTaskGroupRequest.cc + src/model/GetTaskGroupResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/InitializeServiceLinkedRoleRequest.cc + src/model/InitializeServiceLinkedRoleResult.cc + src/model/JoinLiveRequest.cc + src/model/JoinLiveResult.cc + src/model/ListAppsRequest.cc + src/model/ListAppsResult.cc + src/model/ListDepartmentsRequest.cc + src/model/ListDepartmentsResult.cc + src/model/ListDetectionsRequest.cc + src/model/ListDetectionsResult.cc + src/model/ListFilesRequest.cc + src/model/ListFilesResult.cc + src/model/ListLivesRequest.cc + src/model/ListLivesResult.cc + src/model/ListRolesRequest.cc + src/model/ListRolesResult.cc + src/model/ListRulesRequest.cc + src/model/ListRulesResult.cc + src/model/ListStatisticsTaskRequest.cc + src/model/ListStatisticsTaskResult.cc + src/model/ListTaskGroupsRequest.cc + src/model/ListTaskGroupsResult.cc + src/model/ListTaskItemsRequest.cc + src/model/ListTaskItemsResult.cc + src/model/ListTasksRequest.cc + src/model/ListTasksResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/UpdateAppRequest.cc + src/model/UpdateAppResult.cc + src/model/UpdateDepartmentRequest.cc + src/model/UpdateDepartmentResult.cc + src/model/UpdateLiveRequest.cc + src/model/UpdateLiveResult.cc + src/model/UpdateRuleRequest.cc + src/model/UpdateRuleResult.cc + src/model/UpdateServiceConfigurationRequest.cc + src/model/UpdateServiceConfigurationResult.cc + src/model/UpdateSlrConfigurationRequest.cc + src/model/UpdateSlrConfigurationResult.cc + src/model/UpdateUserRequest.cc + src/model/UpdateUserResult.cc ) + +add_library(idrsservice ${LIB_TYPE} + ${idrsservice_public_header} + ${idrsservice_public_header_model} + ${idrsservice_src}) + +set_target_properties(idrsservice + 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}idrsservice + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(idrsservice + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_IDRSSERVICE_LIBRARY) +endif() + +target_include_directories(idrsservice + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(idrsservice + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(idrsservice + jsoncpp) + target_include_directories(idrsservice + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(idrsservice + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(idrsservice + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(idrsservice + PRIVATE /usr/include/jsoncpp) + target_link_libraries(idrsservice + jsoncpp) +endif() + +install(FILES ${idrsservice_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/idrsservice) +install(FILES ${idrsservice_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/idrsservice/model) +install(TARGETS idrsservice + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/IdrsserviceClient.h b/idrsservice/include/alibabacloud/idrsservice/IdrsserviceClient.h new file mode 100644 index 000000000..4f7c5b795 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/IdrsserviceClient.h @@ -0,0 +1,454 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_IDRSSERVICECLIENT_H_ +#define ALIBABACLOUD_IDRSSERVICE_IDRSSERVICECLIENT_H_ + +#include +#include +#include +#include +#include "IdrsserviceExport.h" +#include "model/CheckServiceLinkedRoleRequest.h" +#include "model/CheckServiceLinkedRoleResult.h" +#include "model/CreateAppRequest.h" +#include "model/CreateAppResult.h" +#include "model/CreateDepartmentRequest.h" +#include "model/CreateDepartmentResult.h" +#include "model/CreateLiveRequest.h" +#include "model/CreateLiveResult.h" +#include "model/CreateLiveDetectionRequest.h" +#include "model/CreateLiveDetectionResult.h" +#include "model/CreateRuleRequest.h" +#include "model/CreateRuleResult.h" +#include "model/CreateStatisticsRecordRequest.h" +#include "model/CreateStatisticsRecordResult.h" +#include "model/CreateStatisticsTaskRequest.h" +#include "model/CreateStatisticsTaskResult.h" +#include "model/CreateTaskGroupRequest.h" +#include "model/CreateTaskGroupResult.h" +#include "model/CreateUserDepartmentsRequest.h" +#include "model/CreateUserDepartmentsResult.h" +#include "model/DeleteAppRequest.h" +#include "model/DeleteAppResult.h" +#include "model/DeleteDepartmentRequest.h" +#include "model/DeleteDepartmentResult.h" +#include "model/DeleteRuleRequest.h" +#include "model/DeleteRuleResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" +#include "model/DeleteUserDepartmentsRequest.h" +#include "model/DeleteUserDepartmentsResult.h" +#include "model/ExitLiveRequest.h" +#include "model/ExitLiveResult.h" +#include "model/GetAppRequest.h" +#include "model/GetAppResult.h" +#include "model/GetDepartmentRequest.h" +#include "model/GetDepartmentResult.h" +#include "model/GetDetectEvaluationRequest.h" +#include "model/GetDetectEvaluationResult.h" +#include "model/GetDetectionRequest.h" +#include "model/GetDetectionResult.h" +#include "model/GetModelSignedUrlRequest.h" +#include "model/GetModelSignedUrlResult.h" +#include "model/GetPreSignedUrlRequest.h" +#include "model/GetPreSignedUrlResult.h" +#include "model/GetRuleRequest.h" +#include "model/GetRuleResult.h" +#include "model/GetServiceConfigurationRequest.h" +#include "model/GetServiceConfigurationResult.h" +#include "model/GetSignedUrlRequest.h" +#include "model/GetSignedUrlResult.h" +#include "model/GetSlrConfigurationRequest.h" +#include "model/GetSlrConfigurationResult.h" +#include "model/GetStatisticsRequest.h" +#include "model/GetStatisticsResult.h" +#include "model/GetTaskRequest.h" +#include "model/GetTaskResult.h" +#include "model/GetTaskGroupRequest.h" +#include "model/GetTaskGroupResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/InitializeServiceLinkedRoleRequest.h" +#include "model/InitializeServiceLinkedRoleResult.h" +#include "model/JoinLiveRequest.h" +#include "model/JoinLiveResult.h" +#include "model/ListAppsRequest.h" +#include "model/ListAppsResult.h" +#include "model/ListDepartmentsRequest.h" +#include "model/ListDepartmentsResult.h" +#include "model/ListDetectionsRequest.h" +#include "model/ListDetectionsResult.h" +#include "model/ListFilesRequest.h" +#include "model/ListFilesResult.h" +#include "model/ListLivesRequest.h" +#include "model/ListLivesResult.h" +#include "model/ListRolesRequest.h" +#include "model/ListRolesResult.h" +#include "model/ListRulesRequest.h" +#include "model/ListRulesResult.h" +#include "model/ListStatisticsTaskRequest.h" +#include "model/ListStatisticsTaskResult.h" +#include "model/ListTaskGroupsRequest.h" +#include "model/ListTaskGroupsResult.h" +#include "model/ListTaskItemsRequest.h" +#include "model/ListTaskItemsResult.h" +#include "model/ListTasksRequest.h" +#include "model/ListTasksResult.h" +#include "model/ListUsersRequest.h" +#include "model/ListUsersResult.h" +#include "model/UpdateAppRequest.h" +#include "model/UpdateAppResult.h" +#include "model/UpdateDepartmentRequest.h" +#include "model/UpdateDepartmentResult.h" +#include "model/UpdateLiveRequest.h" +#include "model/UpdateLiveResult.h" +#include "model/UpdateRuleRequest.h" +#include "model/UpdateRuleResult.h" +#include "model/UpdateServiceConfigurationRequest.h" +#include "model/UpdateServiceConfigurationResult.h" +#include "model/UpdateSlrConfigurationRequest.h" +#include "model/UpdateSlrConfigurationResult.h" +#include "model/UpdateUserRequest.h" +#include "model/UpdateUserResult.h" + + +namespace AlibabaCloud +{ + namespace Idrsservice + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT IdrsserviceClient : public RpcServiceClient + { + public: + typedef Outcome CheckServiceLinkedRoleOutcome; + typedef std::future CheckServiceLinkedRoleOutcomeCallable; + typedef std::function&)> CheckServiceLinkedRoleAsyncHandler; + typedef Outcome CreateAppOutcome; + typedef std::future CreateAppOutcomeCallable; + typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome CreateDepartmentOutcome; + typedef std::future CreateDepartmentOutcomeCallable; + typedef std::function&)> CreateDepartmentAsyncHandler; + typedef Outcome CreateLiveOutcome; + typedef std::future CreateLiveOutcomeCallable; + typedef std::function&)> CreateLiveAsyncHandler; + typedef Outcome CreateLiveDetectionOutcome; + typedef std::future CreateLiveDetectionOutcomeCallable; + typedef std::function&)> CreateLiveDetectionAsyncHandler; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; + typedef std::function&)> CreateRuleAsyncHandler; + typedef Outcome CreateStatisticsRecordOutcome; + typedef std::future CreateStatisticsRecordOutcomeCallable; + typedef std::function&)> CreateStatisticsRecordAsyncHandler; + typedef Outcome CreateStatisticsTaskOutcome; + typedef std::future CreateStatisticsTaskOutcomeCallable; + typedef std::function&)> CreateStatisticsTaskAsyncHandler; + typedef Outcome CreateTaskGroupOutcome; + typedef std::future CreateTaskGroupOutcomeCallable; + typedef std::function&)> CreateTaskGroupAsyncHandler; + typedef Outcome CreateUserDepartmentsOutcome; + typedef std::future CreateUserDepartmentsOutcomeCallable; + typedef std::function&)> CreateUserDepartmentsAsyncHandler; + typedef Outcome DeleteAppOutcome; + typedef std::future DeleteAppOutcomeCallable; + typedef std::function&)> DeleteAppAsyncHandler; + typedef Outcome DeleteDepartmentOutcome; + typedef std::future DeleteDepartmentOutcomeCallable; + typedef std::function&)> DeleteDepartmentAsyncHandler; + typedef Outcome DeleteRuleOutcome; + typedef std::future DeleteRuleOutcomeCallable; + typedef std::function&)> DeleteRuleAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome DeleteUserDepartmentsOutcome; + typedef std::future DeleteUserDepartmentsOutcomeCallable; + typedef std::function&)> DeleteUserDepartmentsAsyncHandler; + typedef Outcome ExitLiveOutcome; + typedef std::future ExitLiveOutcomeCallable; + typedef std::function&)> ExitLiveAsyncHandler; + typedef Outcome GetAppOutcome; + typedef std::future GetAppOutcomeCallable; + typedef std::function&)> GetAppAsyncHandler; + typedef Outcome GetDepartmentOutcome; + typedef std::future GetDepartmentOutcomeCallable; + typedef std::function&)> GetDepartmentAsyncHandler; + typedef Outcome GetDetectEvaluationOutcome; + typedef std::future GetDetectEvaluationOutcomeCallable; + typedef std::function&)> GetDetectEvaluationAsyncHandler; + typedef Outcome GetDetectionOutcome; + typedef std::future GetDetectionOutcomeCallable; + typedef std::function&)> GetDetectionAsyncHandler; + typedef Outcome GetModelSignedUrlOutcome; + typedef std::future GetModelSignedUrlOutcomeCallable; + typedef std::function&)> GetModelSignedUrlAsyncHandler; + typedef Outcome GetPreSignedUrlOutcome; + typedef std::future GetPreSignedUrlOutcomeCallable; + typedef std::function&)> GetPreSignedUrlAsyncHandler; + typedef Outcome GetRuleOutcome; + typedef std::future GetRuleOutcomeCallable; + typedef std::function&)> GetRuleAsyncHandler; + typedef Outcome GetServiceConfigurationOutcome; + typedef std::future GetServiceConfigurationOutcomeCallable; + typedef std::function&)> GetServiceConfigurationAsyncHandler; + typedef Outcome GetSignedUrlOutcome; + typedef std::future GetSignedUrlOutcomeCallable; + typedef std::function&)> GetSignedUrlAsyncHandler; + typedef Outcome GetSlrConfigurationOutcome; + typedef std::future GetSlrConfigurationOutcomeCallable; + typedef std::function&)> GetSlrConfigurationAsyncHandler; + typedef Outcome GetStatisticsOutcome; + typedef std::future GetStatisticsOutcomeCallable; + typedef std::function&)> GetStatisticsAsyncHandler; + typedef Outcome GetTaskOutcome; + typedef std::future GetTaskOutcomeCallable; + typedef std::function&)> GetTaskAsyncHandler; + typedef Outcome GetTaskGroupOutcome; + typedef std::future GetTaskGroupOutcomeCallable; + typedef std::function&)> GetTaskGroupAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome InitializeServiceLinkedRoleOutcome; + typedef std::future InitializeServiceLinkedRoleOutcomeCallable; + typedef std::function&)> InitializeServiceLinkedRoleAsyncHandler; + typedef Outcome JoinLiveOutcome; + typedef std::future JoinLiveOutcomeCallable; + typedef std::function&)> JoinLiveAsyncHandler; + typedef Outcome ListAppsOutcome; + typedef std::future ListAppsOutcomeCallable; + typedef std::function&)> ListAppsAsyncHandler; + typedef Outcome ListDepartmentsOutcome; + typedef std::future ListDepartmentsOutcomeCallable; + typedef std::function&)> ListDepartmentsAsyncHandler; + typedef Outcome ListDetectionsOutcome; + typedef std::future ListDetectionsOutcomeCallable; + typedef std::function&)> ListDetectionsAsyncHandler; + typedef Outcome ListFilesOutcome; + typedef std::future ListFilesOutcomeCallable; + typedef std::function&)> ListFilesAsyncHandler; + typedef Outcome ListLivesOutcome; + typedef std::future ListLivesOutcomeCallable; + typedef std::function&)> ListLivesAsyncHandler; + typedef Outcome ListRolesOutcome; + typedef std::future ListRolesOutcomeCallable; + typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome ListRulesOutcome; + typedef std::future ListRulesOutcomeCallable; + typedef std::function&)> ListRulesAsyncHandler; + typedef Outcome ListStatisticsTaskOutcome; + typedef std::future ListStatisticsTaskOutcomeCallable; + typedef std::function&)> ListStatisticsTaskAsyncHandler; + typedef Outcome ListTaskGroupsOutcome; + typedef std::future ListTaskGroupsOutcomeCallable; + typedef std::function&)> ListTaskGroupsAsyncHandler; + typedef Outcome ListTaskItemsOutcome; + typedef std::future ListTaskItemsOutcomeCallable; + typedef std::function&)> ListTaskItemsAsyncHandler; + typedef Outcome ListTasksOutcome; + typedef std::future ListTasksOutcomeCallable; + typedef std::function&)> ListTasksAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; + typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome UpdateAppOutcome; + typedef std::future UpdateAppOutcomeCallable; + typedef std::function&)> UpdateAppAsyncHandler; + typedef Outcome UpdateDepartmentOutcome; + typedef std::future UpdateDepartmentOutcomeCallable; + typedef std::function&)> UpdateDepartmentAsyncHandler; + typedef Outcome UpdateLiveOutcome; + typedef std::future UpdateLiveOutcomeCallable; + typedef std::function&)> UpdateLiveAsyncHandler; + typedef Outcome UpdateRuleOutcome; + typedef std::future UpdateRuleOutcomeCallable; + typedef std::function&)> UpdateRuleAsyncHandler; + typedef Outcome UpdateServiceConfigurationOutcome; + typedef std::future UpdateServiceConfigurationOutcomeCallable; + typedef std::function&)> UpdateServiceConfigurationAsyncHandler; + typedef Outcome UpdateSlrConfigurationOutcome; + typedef std::future UpdateSlrConfigurationOutcomeCallable; + typedef std::function&)> UpdateSlrConfigurationAsyncHandler; + typedef Outcome UpdateUserOutcome; + typedef std::future UpdateUserOutcomeCallable; + typedef std::function&)> UpdateUserAsyncHandler; + + IdrsserviceClient(const Credentials &credentials, const ClientConfiguration &configuration); + IdrsserviceClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + IdrsserviceClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~IdrsserviceClient(); + CheckServiceLinkedRoleOutcome checkServiceLinkedRole(const Model::CheckServiceLinkedRoleRequest &request)const; + void checkServiceLinkedRoleAsync(const Model::CheckServiceLinkedRoleRequest& request, const CheckServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckServiceLinkedRoleOutcomeCallable checkServiceLinkedRoleCallable(const Model::CheckServiceLinkedRoleRequest& request) const; + CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; + void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + CreateDepartmentOutcome createDepartment(const Model::CreateDepartmentRequest &request)const; + void createDepartmentAsync(const Model::CreateDepartmentRequest& request, const CreateDepartmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDepartmentOutcomeCallable createDepartmentCallable(const Model::CreateDepartmentRequest& request) const; + CreateLiveOutcome createLive(const Model::CreateLiveRequest &request)const; + void createLiveAsync(const Model::CreateLiveRequest& request, const CreateLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLiveOutcomeCallable createLiveCallable(const Model::CreateLiveRequest& request) const; + CreateLiveDetectionOutcome createLiveDetection(const Model::CreateLiveDetectionRequest &request)const; + void createLiveDetectionAsync(const Model::CreateLiveDetectionRequest& request, const CreateLiveDetectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLiveDetectionOutcomeCallable createLiveDetectionCallable(const Model::CreateLiveDetectionRequest& request) const; + CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; + void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; + CreateStatisticsRecordOutcome createStatisticsRecord(const Model::CreateStatisticsRecordRequest &request)const; + void createStatisticsRecordAsync(const Model::CreateStatisticsRecordRequest& request, const CreateStatisticsRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStatisticsRecordOutcomeCallable createStatisticsRecordCallable(const Model::CreateStatisticsRecordRequest& request) const; + CreateStatisticsTaskOutcome createStatisticsTask(const Model::CreateStatisticsTaskRequest &request)const; + void createStatisticsTaskAsync(const Model::CreateStatisticsTaskRequest& request, const CreateStatisticsTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStatisticsTaskOutcomeCallable createStatisticsTaskCallable(const Model::CreateStatisticsTaskRequest& request) const; + CreateTaskGroupOutcome createTaskGroup(const Model::CreateTaskGroupRequest &request)const; + void createTaskGroupAsync(const Model::CreateTaskGroupRequest& request, const CreateTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTaskGroupOutcomeCallable createTaskGroupCallable(const Model::CreateTaskGroupRequest& request) const; + CreateUserDepartmentsOutcome createUserDepartments(const Model::CreateUserDepartmentsRequest &request)const; + void createUserDepartmentsAsync(const Model::CreateUserDepartmentsRequest& request, const CreateUserDepartmentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserDepartmentsOutcomeCallable createUserDepartmentsCallable(const Model::CreateUserDepartmentsRequest& request) const; + DeleteAppOutcome deleteApp(const Model::DeleteAppRequest &request)const; + void deleteAppAsync(const Model::DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppOutcomeCallable deleteAppCallable(const Model::DeleteAppRequest& request) const; + DeleteDepartmentOutcome deleteDepartment(const Model::DeleteDepartmentRequest &request)const; + void deleteDepartmentAsync(const Model::DeleteDepartmentRequest& request, const DeleteDepartmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDepartmentOutcomeCallable deleteDepartmentCallable(const Model::DeleteDepartmentRequest& request) const; + DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; + void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; + DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; + void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + DeleteUserDepartmentsOutcome deleteUserDepartments(const Model::DeleteUserDepartmentsRequest &request)const; + void deleteUserDepartmentsAsync(const Model::DeleteUserDepartmentsRequest& request, const DeleteUserDepartmentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserDepartmentsOutcomeCallable deleteUserDepartmentsCallable(const Model::DeleteUserDepartmentsRequest& request) const; + ExitLiveOutcome exitLive(const Model::ExitLiveRequest &request)const; + void exitLiveAsync(const Model::ExitLiveRequest& request, const ExitLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExitLiveOutcomeCallable exitLiveCallable(const Model::ExitLiveRequest& request) const; + GetAppOutcome getApp(const Model::GetAppRequest &request)const; + void getAppAsync(const Model::GetAppRequest& request, const GetAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAppOutcomeCallable getAppCallable(const Model::GetAppRequest& request) const; + GetDepartmentOutcome getDepartment(const Model::GetDepartmentRequest &request)const; + void getDepartmentAsync(const Model::GetDepartmentRequest& request, const GetDepartmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDepartmentOutcomeCallable getDepartmentCallable(const Model::GetDepartmentRequest& request) const; + GetDetectEvaluationOutcome getDetectEvaluation(const Model::GetDetectEvaluationRequest &request)const; + void getDetectEvaluationAsync(const Model::GetDetectEvaluationRequest& request, const GetDetectEvaluationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDetectEvaluationOutcomeCallable getDetectEvaluationCallable(const Model::GetDetectEvaluationRequest& request) const; + GetDetectionOutcome getDetection(const Model::GetDetectionRequest &request)const; + void getDetectionAsync(const Model::GetDetectionRequest& request, const GetDetectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDetectionOutcomeCallable getDetectionCallable(const Model::GetDetectionRequest& request) const; + GetModelSignedUrlOutcome getModelSignedUrl(const Model::GetModelSignedUrlRequest &request)const; + void getModelSignedUrlAsync(const Model::GetModelSignedUrlRequest& request, const GetModelSignedUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetModelSignedUrlOutcomeCallable getModelSignedUrlCallable(const Model::GetModelSignedUrlRequest& request) const; + GetPreSignedUrlOutcome getPreSignedUrl(const Model::GetPreSignedUrlRequest &request)const; + void getPreSignedUrlAsync(const Model::GetPreSignedUrlRequest& request, const GetPreSignedUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPreSignedUrlOutcomeCallable getPreSignedUrlCallable(const Model::GetPreSignedUrlRequest& request) const; + GetRuleOutcome getRule(const Model::GetRuleRequest &request)const; + void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const; + GetServiceConfigurationOutcome getServiceConfiguration(const Model::GetServiceConfigurationRequest &request)const; + void getServiceConfigurationAsync(const Model::GetServiceConfigurationRequest& request, const GetServiceConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceConfigurationOutcomeCallable getServiceConfigurationCallable(const Model::GetServiceConfigurationRequest& request) const; + GetSignedUrlOutcome getSignedUrl(const Model::GetSignedUrlRequest &request)const; + void getSignedUrlAsync(const Model::GetSignedUrlRequest& request, const GetSignedUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSignedUrlOutcomeCallable getSignedUrlCallable(const Model::GetSignedUrlRequest& request) const; + GetSlrConfigurationOutcome getSlrConfiguration(const Model::GetSlrConfigurationRequest &request)const; + void getSlrConfigurationAsync(const Model::GetSlrConfigurationRequest& request, const GetSlrConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSlrConfigurationOutcomeCallable getSlrConfigurationCallable(const Model::GetSlrConfigurationRequest& request) const; + GetStatisticsOutcome getStatistics(const Model::GetStatisticsRequest &request)const; + void getStatisticsAsync(const Model::GetStatisticsRequest& request, const GetStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStatisticsOutcomeCallable getStatisticsCallable(const Model::GetStatisticsRequest& 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; + GetTaskGroupOutcome getTaskGroup(const Model::GetTaskGroupRequest &request)const; + void getTaskGroupAsync(const Model::GetTaskGroupRequest& request, const GetTaskGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskGroupOutcomeCallable getTaskGroupCallable(const Model::GetTaskGroupRequest& 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; + InitializeServiceLinkedRoleOutcome initializeServiceLinkedRole(const Model::InitializeServiceLinkedRoleRequest &request)const; + void initializeServiceLinkedRoleAsync(const Model::InitializeServiceLinkedRoleRequest& request, const InitializeServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitializeServiceLinkedRoleOutcomeCallable initializeServiceLinkedRoleCallable(const Model::InitializeServiceLinkedRoleRequest& request) const; + JoinLiveOutcome joinLive(const Model::JoinLiveRequest &request)const; + void joinLiveAsync(const Model::JoinLiveRequest& request, const JoinLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinLiveOutcomeCallable joinLiveCallable(const Model::JoinLiveRequest& request) const; + ListAppsOutcome listApps(const Model::ListAppsRequest &request)const; + void listAppsAsync(const Model::ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppsOutcomeCallable listAppsCallable(const Model::ListAppsRequest& request) const; + ListDepartmentsOutcome listDepartments(const Model::ListDepartmentsRequest &request)const; + void listDepartmentsAsync(const Model::ListDepartmentsRequest& request, const ListDepartmentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDepartmentsOutcomeCallable listDepartmentsCallable(const Model::ListDepartmentsRequest& request) const; + ListDetectionsOutcome listDetections(const Model::ListDetectionsRequest &request)const; + void listDetectionsAsync(const Model::ListDetectionsRequest& request, const ListDetectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDetectionsOutcomeCallable listDetectionsCallable(const Model::ListDetectionsRequest& request) const; + ListFilesOutcome listFiles(const Model::ListFilesRequest &request)const; + void listFilesAsync(const Model::ListFilesRequest& request, const ListFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFilesOutcomeCallable listFilesCallable(const Model::ListFilesRequest& request) const; + ListLivesOutcome listLives(const Model::ListLivesRequest &request)const; + void listLivesAsync(const Model::ListLivesRequest& request, const ListLivesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLivesOutcomeCallable listLivesCallable(const Model::ListLivesRequest& request) const; + ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; + void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const; + ListRulesOutcome listRules(const Model::ListRulesRequest &request)const; + void listRulesAsync(const Model::ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRulesOutcomeCallable listRulesCallable(const Model::ListRulesRequest& request) const; + ListStatisticsTaskOutcome listStatisticsTask(const Model::ListStatisticsTaskRequest &request)const; + void listStatisticsTaskAsync(const Model::ListStatisticsTaskRequest& request, const ListStatisticsTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStatisticsTaskOutcomeCallable listStatisticsTaskCallable(const Model::ListStatisticsTaskRequest& request) const; + ListTaskGroupsOutcome listTaskGroups(const Model::ListTaskGroupsRequest &request)const; + void listTaskGroupsAsync(const Model::ListTaskGroupsRequest& request, const ListTaskGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTaskGroupsOutcomeCallable listTaskGroupsCallable(const Model::ListTaskGroupsRequest& request) const; + ListTaskItemsOutcome listTaskItems(const Model::ListTaskItemsRequest &request)const; + void listTaskItemsAsync(const Model::ListTaskItemsRequest& request, const ListTaskItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTaskItemsOutcomeCallable listTaskItemsCallable(const Model::ListTaskItemsRequest& request) const; + ListTasksOutcome listTasks(const Model::ListTasksRequest &request)const; + void listTasksAsync(const Model::ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTasksOutcomeCallable listTasksCallable(const Model::ListTasksRequest& request) const; + ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; + void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + UpdateAppOutcome updateApp(const Model::UpdateAppRequest &request)const; + void updateAppAsync(const Model::UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppOutcomeCallable updateAppCallable(const Model::UpdateAppRequest& request) const; + UpdateDepartmentOutcome updateDepartment(const Model::UpdateDepartmentRequest &request)const; + void updateDepartmentAsync(const Model::UpdateDepartmentRequest& request, const UpdateDepartmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDepartmentOutcomeCallable updateDepartmentCallable(const Model::UpdateDepartmentRequest& request) const; + UpdateLiveOutcome updateLive(const Model::UpdateLiveRequest &request)const; + void updateLiveAsync(const Model::UpdateLiveRequest& request, const UpdateLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLiveOutcomeCallable updateLiveCallable(const Model::UpdateLiveRequest& request) const; + UpdateRuleOutcome updateRule(const Model::UpdateRuleRequest &request)const; + void updateRuleAsync(const Model::UpdateRuleRequest& request, const UpdateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRuleOutcomeCallable updateRuleCallable(const Model::UpdateRuleRequest& request) const; + UpdateServiceConfigurationOutcome updateServiceConfiguration(const Model::UpdateServiceConfigurationRequest &request)const; + void updateServiceConfigurationAsync(const Model::UpdateServiceConfigurationRequest& request, const UpdateServiceConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceConfigurationOutcomeCallable updateServiceConfigurationCallable(const Model::UpdateServiceConfigurationRequest& request) const; + UpdateSlrConfigurationOutcome updateSlrConfiguration(const Model::UpdateSlrConfigurationRequest &request)const; + void updateSlrConfigurationAsync(const Model::UpdateSlrConfigurationRequest& request, const UpdateSlrConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSlrConfigurationOutcomeCallable updateSlrConfigurationCallable(const Model::UpdateSlrConfigurationRequest& request) const; + UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const; + void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_IDRSSERVICE_IDRSSERVICECLIENT_H_ diff --git a/idrsservice/include/alibabacloud/idrsservice/IdrsserviceExport.h b/idrsservice/include/alibabacloud/idrsservice/IdrsserviceExport.h new file mode 100644 index 000000000..b8272c5ef --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/IdrsserviceExport.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_IDRSSERVICE_IDRSSERVICEEXPORT_H_ +#define ALIBABACLOUD_IDRSSERVICE_IDRSSERVICEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_IDRSSERVICE_LIBRARY) +# define ALIBABACLOUD_IDRSSERVICE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_IDRSSERVICE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_IDRSSERVICE_EXPORT +#endif + +#endif // !ALIBABACLOUD_IDRSSERVICE_IDRSSERVICEEXPORT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleRequest.h new file mode 100644 index 000000000..3df803cb7 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CHECKSERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CHECKSERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CheckServiceLinkedRoleRequest : public RpcServiceRequest + { + + public: + CheckServiceLinkedRoleRequest(); + ~CheckServiceLinkedRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + + private: + std::string roleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CHECKSERVICELINKEDROLEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleResult.h new file mode 100644 index 000000000..923498a01 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CheckServiceLinkedRoleResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CHECKSERVICELINKEDROLERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CHECKSERVICELINKEDROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CheckServiceLinkedRoleResult : public ServiceResult + { + public: + struct Data + { + bool hasRole; + }; + + + CheckServiceLinkedRoleResult(); + explicit CheckServiceLinkedRoleResult(const std::string &payload); + ~CheckServiceLinkedRoleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CHECKSERVICELINKEDROLERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateAppRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateAppRequest.h new file mode 100644 index 000000000..3a5a41d6d --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateAppRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateAppRequest : public RpcServiceRequest + { + + public: + CreateAppRequest(); + ~CreateAppRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDepartmentId()const; + void setDepartmentId(const std::string& departmentId); + std::string getPackageName()const; + void setPackageName(const std::string& packageName); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string clientToken_; + std::string departmentId_; + std::string packageName_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEAPPREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateAppResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateAppResult.h new file mode 100644 index 000000000..9912ecc18 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateAppResult.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_IDRSSERVICE_MODEL_CREATEAPPRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateAppResult : public ServiceResult + { + public: + struct Data + { + std::string createdAt; + std::string id; + bool disabled; + std::string creatorName; + std::string name; + }; + + + CreateAppResult(); + explicit CreateAppResult(const std::string &payload); + ~CreateAppResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEAPPRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentRequest.h new file mode 100644 index 000000000..05be51632 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEDEPARTMENTREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEDEPARTMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateDepartmentRequest : public RpcServiceRequest + { + + public: + CreateDepartmentRequest(); + ~CreateDepartmentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getLabel()const; + void setLabel(const std::string& label); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string clientToken_; + std::string description_; + std::string label_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEDEPARTMENTREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentResult.h new file mode 100644 index 000000000..556eaf8ab --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateDepartmentResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEDEPARTMENTRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEDEPARTMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateDepartmentResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string createdAt; + std::string id; + std::string name; + }; + + + CreateDepartmentResult(); + explicit CreateDepartmentResult(const std::string &payload); + ~CreateDepartmentResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEDEPARTMENTRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionRequest.h new file mode 100644 index 000000000..fe2db1ab4 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEDETECTIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEDETECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateLiveDetectionRequest : public RpcServiceRequest + { + + public: + CreateLiveDetectionRequest(); + ~CreateLiveDetectionRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getLiveId()const; + void setLiveId(const std::string& liveId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getMetaUrl()const; + void setMetaUrl(const std::string& metaUrl); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string clientToken_; + std::string liveId_; + std::string userId_; + std::string metaUrl_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEDETECTIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionResult.h new file mode 100644 index 000000000..8759067af --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveDetectionResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEDETECTIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEDETECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateLiveDetectionResult : public ServiceResult + { + public: + struct Data + { + std::string id; + }; + + + CreateLiveDetectionResult(); + explicit CreateLiveDetectionResult(const std::string &payload); + ~CreateLiveDetectionResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEDETECTIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveRequest.h new file mode 100644 index 000000000..fcb549d86 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateLiveRequest : public RpcServiceRequest + { + + public: + CreateLiveRequest(); + ~CreateLiveRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getRtcCode()const; + void setRtcCode(const std::string& rtcCode); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string clientToken_; + std::string userId_; + std::string rtcCode_; + std::string appId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveResult.h new file mode 100644 index 000000000..0d73f2bcb --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateLiveResult.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_IDRSSERVICE_MODEL_CREATELIVERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateLiveResult : public ServiceResult + { + public: + struct Data + { + std::string channel; + std::string id; + std::string name; + }; + + + CreateLiveResult(); + explicit CreateLiveResult(const std::string &payload); + ~CreateLiveResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATELIVERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateRuleRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateRuleRequest.h new file mode 100644 index 000000000..c24771a71 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateRuleRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATERULEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateRuleRequest : public RpcServiceRequest + { + + public: + CreateRuleRequest(); + ~CreateRuleRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getContent()const; + void setContent(const std::string& content); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string clientToken_; + std::string content_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATERULEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateRuleResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateRuleResult.h new file mode 100644 index 000000000..498db6ef6 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateRuleResult.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_IDRSSERVICE_MODEL_CREATERULERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateRuleResult : public ServiceResult + { + public: + struct Data + { + std::string content; + std::string id; + std::string name; + }; + + + CreateRuleResult(); + explicit CreateRuleResult(const std::string &payload); + ~CreateRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATERULERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordRequest.h new file mode 100644 index 000000000..55f03452e --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordRequest.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_IDRSSERVICE_MODEL_CREATESTATISTICSRECORDREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSRECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateStatisticsRecordRequest : public RpcServiceRequest + { + + public: + CreateStatisticsRecordRequest(); + ~CreateStatisticsRecordRequest(); + + std::string getBeginAt()const; + void setBeginAt(const std::string& beginAt); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEndAt()const; + void setEndAt(const std::string& endAt); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + int getDeviceType()const; + void setDeviceType(int deviceType); + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string beginAt_; + std::string clientToken_; + std::string endAt_; + std::string deviceId_; + int deviceType_; + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSRECORDREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordResult.h new file mode 100644 index 000000000..2311cc8f0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsRecordResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSRECORDRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateStatisticsRecordResult : public ServiceResult + { + public: + + + CreateStatisticsRecordResult(); + explicit CreateStatisticsRecordResult(const std::string &payload); + ~CreateStatisticsRecordResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSRECORDRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskRequest.h new file mode 100644 index 000000000..b584bd873 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSTASKREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateStatisticsTaskRequest : public RpcServiceRequest + { + + public: + CreateStatisticsTaskRequest(); + ~CreateStatisticsTaskRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::vector getDepartmentId()const; + void setDepartmentId(const std::vector& departmentId); + std::string getDateTo()const; + void setDateTo(const std::string& dateTo); + std::string getDateFrom()const; + void setDateFrom(const std::string& dateFrom); + + private: + std::string clientToken_; + std::vector departmentId_; + std::string dateTo_; + std::string dateFrom_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSTASKREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskResult.h new file mode 100644 index 000000000..222b1bc7b --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateStatisticsTaskResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSTASKRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateStatisticsTaskResult : public ServiceResult + { + public: + + + CreateStatisticsTaskResult(); + explicit CreateStatisticsTaskResult(const std::string &payload); + ~CreateStatisticsTaskResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATESTATISTICSTASKRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupRequest.h new file mode 100644 index 000000000..73df95d5e --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupRequest.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_IDRSSERVICE_MODEL_CREATETASKGROUPREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATETASKGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateTaskGroupRequest : public RpcServiceRequest + { + + public: + CreateTaskGroupRequest(); + ~CreateTaskGroupRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getExpireAt()const; + void setExpireAt(const std::string& expireAt); + std::vector getDay()const; + void setDay(const std::vector& day); + std::string getRunnableTimeTo()const; + void setRunnableTimeTo(const std::string& runnableTimeTo); + std::string getTriggerPeriod()const; + void setTriggerPeriod(const std::string& triggerPeriod); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::vector getVideoUrl()const; + void setVideoUrl(const std::vector& videoUrl); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getRunnableTimeFrom()const; + void setRunnableTimeFrom(const std::string& runnableTimeFrom); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string clientToken_; + std::string expireAt_; + std::vector day_; + std::string runnableTimeTo_; + std::string triggerPeriod_; + std::string groupName_; + std::vector videoUrl_; + std::string appId_; + std::string runnableTimeFrom_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATETASKGROUPREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupResult.h new file mode 100644 index 000000000..7526e41d3 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateTaskGroupResult.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_IDRSSERVICE_MODEL_CREATETASKGROUPRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATETASKGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateTaskGroupResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::vector taskIds; + std::string createdAt; + std::string ruleId; + int totalTasks; + int completedTasks; + std::string id; + std::string ruleName; + std::string name; + }; + + + CreateTaskGroupResult(); + explicit CreateTaskGroupResult(const std::string &payload); + ~CreateTaskGroupResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATETASKGROUPRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsRequest.h new file mode 100644 index 000000000..550424854 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEUSERDEPARTMENTSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEUSERDEPARTMENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateUserDepartmentsRequest : public RpcServiceRequest + { + + public: + CreateUserDepartmentsRequest(); + ~CreateUserDepartmentsRequest(); + + std::vector getDepartmentId()const; + void setDepartmentId(const std::vector& departmentId); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + + private: + std::vector departmentId_; + std::vector userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEUSERDEPARTMENTSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsResult.h new file mode 100644 index 000000000..62893d86b --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/CreateUserDepartmentsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEUSERDEPARTMENTSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEUSERDEPARTMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT CreateUserDepartmentsResult : public ServiceResult + { + public: + + + CreateUserDepartmentsResult(); + explicit CreateUserDepartmentsResult(const std::string &payload); + ~CreateUserDepartmentsResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_CREATEUSERDEPARTMENTSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteAppRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteAppRequest.h new file mode 100644 index 000000000..f67eb8df6 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteAppRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEAPPREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteAppRequest : public RpcServiceRequest + { + + public: + DeleteAppRequest(); + ~DeleteAppRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEAPPREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteAppResult.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteAppResult.h new file mode 100644 index 000000000..ca8828375 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteAppResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEAPPRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteAppResult : public ServiceResult + { + public: + + + DeleteAppResult(); + explicit DeleteAppResult(const std::string &payload); + ~DeleteAppResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEAPPRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentRequest.h new file mode 100644 index 000000000..f02bab724 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEDEPARTMENTREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEDEPARTMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteDepartmentRequest : public RpcServiceRequest + { + + public: + DeleteDepartmentRequest(); + ~DeleteDepartmentRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEDEPARTMENTREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentResult.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentResult.h new file mode 100644 index 000000000..d2f20481b --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteDepartmentResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEDEPARTMENTRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEDEPARTMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteDepartmentResult : public ServiceResult + { + public: + + + DeleteDepartmentResult(); + explicit DeleteDepartmentResult(const std::string &payload); + ~DeleteDepartmentResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEDEPARTMENTRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleRequest.h new file mode 100644 index 000000000..2d12534c6 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETERULEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteRuleRequest : public RpcServiceRequest + { + + public: + DeleteRuleRequest(); + ~DeleteRuleRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETERULEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleResult.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleResult.h new file mode 100644 index 000000000..1c6d91426 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteRuleResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETERULERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteRuleResult : public ServiceResult + { + public: + struct Data + { + std::string content; + std::string createdAt; + std::string id; + std::string name; + }; + + + DeleteRuleResult(); + explicit DeleteRuleResult(const std::string &payload); + ~DeleteRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETERULERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsRequest.h new file mode 100644 index 000000000..ba2879b77 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERDEPARTMENTSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERDEPARTMENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteUserDepartmentsRequest : public RpcServiceRequest + { + + public: + DeleteUserDepartmentsRequest(); + ~DeleteUserDepartmentsRequest(); + + std::vector getDepartmentId()const; + void setDepartmentId(const std::vector& departmentId); + std::vector getUserId()const; + void setUserId(const std::vector& userId); + + private: + std::vector departmentId_; + std::vector userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERDEPARTMENTSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsResult.h new file mode 100644 index 000000000..ae4324fef --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserDepartmentsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERDEPARTMENTSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERDEPARTMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteUserDepartmentsResult : public ServiceResult + { + public: + + + DeleteUserDepartmentsResult(); + explicit DeleteUserDepartmentsResult(const std::string &payload); + ~DeleteUserDepartmentsResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERDEPARTMENTSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserRequest.h new file mode 100644 index 000000000..72e9cb37d --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteUserRequest : public RpcServiceRequest + { + + public: + DeleteUserRequest(); + ~DeleteUserRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserResult.h b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserResult.h new file mode 100644 index 000000000..b38bf7f33 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/DeleteUserResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT DeleteUserResult : public ServiceResult + { + public: + struct ErrorsItem + { + std::string field; + std::string message; + }; + + + DeleteUserResult(); + explicit DeleteUserResult(const std::string &payload); + ~DeleteUserResult(); + std::vector getErrors()const; + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector errors_; + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_DELETEUSERRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ExitLiveRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ExitLiveRequest.h new file mode 100644 index 000000000..f1e55b328 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ExitLiveRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_EXITLIVEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_EXITLIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ExitLiveRequest : public RpcServiceRequest + { + + public: + ExitLiveRequest(); + ~ExitLiveRequest(); + + std::string getChannel()const; + void setChannel(const std::string& channel); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getRtcCode()const; + void setRtcCode(const std::string& rtcCode); + + private: + std::string channel_; + std::string userId_; + std::string rtcCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_EXITLIVEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ExitLiveResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ExitLiveResult.h new file mode 100644 index 000000000..16d8a33df --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ExitLiveResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_EXITLIVERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_EXITLIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ExitLiveResult : public ServiceResult + { + public: + struct Data + { + int code; + }; + + + ExitLiveResult(); + explicit ExitLiveResult(const std::string &payload); + ~ExitLiveResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_EXITLIVERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetAppRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetAppRequest.h new file mode 100644 index 000000000..6c8b17bfb --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetAppRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETAPPREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetAppRequest : public RpcServiceRequest + { + + public: + GetAppRequest(); + ~GetAppRequest(); + + std::string getPackageName()const; + void setPackageName(const std::string& packageName); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + std::string getId()const; + void setId(const std::string& id); + + private: + std::string packageName_; + std::string deviceId_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETAPPREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetAppResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetAppResult.h new file mode 100644 index 000000000..302514c83 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetAppResult.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_IDRSSERVICE_MODEL_GETAPPRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetAppResult : public ServiceResult + { + public: + struct Data + { + int createdAt; + std::string disabled; + std::string name; + }; + + + GetAppResult(); + explicit GetAppResult(const std::string &payload); + ~GetAppResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETAPPRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentRequest.h new file mode 100644 index 000000000..74d9eb561 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETDEPARTMENTREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETDEPARTMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetDepartmentRequest : public RpcServiceRequest + { + + public: + GetDepartmentRequest(); + ~GetDepartmentRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETDEPARTMENTREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentResult.h new file mode 100644 index 000000000..68ed1384d --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetDepartmentResult.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_IDRSSERVICE_MODEL_GETDEPARTMENTRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETDEPARTMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetDepartmentResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string createdAt; + std::string id; + std::string updatedAt; + std::string name; + }; + + + GetDepartmentResult(); + explicit GetDepartmentResult(const std::string &payload); + ~GetDepartmentResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETDEPARTMENTRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationRequest.h new file mode 100644 index 000000000..37ed97f84 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTEVALUATIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTEVALUATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetDetectEvaluationRequest : public RpcServiceRequest + { + + public: + GetDetectEvaluationRequest(); + ~GetDetectEvaluationRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + + private: + std::string endTime_; + std::string startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTEVALUATIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationResult.h new file mode 100644 index 000000000..7e5a14805 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectEvaluationResult.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_IDRSSERVICE_MODEL_GETDETECTEVALUATIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTEVALUATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetDetectEvaluationResult : public ServiceResult + { + public: + struct DataItem + { + struct EvaluationItemListItem + { + int handleCount; + int successCount; + std::string successRate; + std::string name; + }; + std::vector evaluationItemList; + std::string day; + }; + + + GetDetectEvaluationResult(); + explicit GetDetectEvaluationResult(const std::string &payload); + ~GetDetectEvaluationResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTEVALUATIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetDetectionRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectionRequest.h new file mode 100644 index 000000000..b764bf2a5 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectionRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetDetectionRequest : public RpcServiceRequest + { + + public: + GetDetectionRequest(); + ~GetDetectionRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetDetectionResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectionResult.h new file mode 100644 index 000000000..8ae584619 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetDetectionResult.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_IDRSSERVICE_MODEL_GETDETECTIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetDetectionResult : public ServiceResult + { + public: + struct Data + { + struct TasksItem + { + std::string status; + std::string createdAt; + std::string videoMetaUrl; + std::string id; + std::string videoUrl; + }; + std::string status; + std::vector tasks; + std::string recordingType; + std::string createdAt; + std::string ruleId; + std::string departmentName; + std::string departmentId; + std::string id; + std::string ruleName; + }; + + + GetDetectionResult(); + explicit GetDetectionResult(const std::string &payload); + ~GetDetectionResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETDETECTIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlRequest.h new file mode 100644 index 000000000..8f7c2d63a --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETMODELSIGNEDURLREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETMODELSIGNEDURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetModelSignedUrlRequest : public RpcServiceRequest + { + + public: + GetModelSignedUrlRequest(); + ~GetModelSignedUrlRequest(); + + std::vector getModelPath()const; + void setModelPath(const std::vector& modelPath); + + private: + std::vector modelPath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETMODELSIGNEDURLREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlResult.h new file mode 100644 index 000000000..0fe10a528 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetModelSignedUrlResult.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_IDRSSERVICE_MODEL_GETMODELSIGNEDURLRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETMODELSIGNEDURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetModelSignedUrlResult : public ServiceResult + { + public: + struct DataItem + { + std::string modelPath; + std::string publicUrl; + std::string md5; + }; + + + GetModelSignedUrlResult(); + explicit GetModelSignedUrlResult(const std::string &payload); + ~GetModelSignedUrlResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETMODELSIGNEDURLRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlRequest.h new file mode 100644 index 000000000..988ca7908 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETPRESIGNEDURLREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETPRESIGNEDURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetPreSignedUrlRequest : public RpcServiceRequest + { + + public: + GetPreSignedUrlRequest(); + ~GetPreSignedUrlRequest(); + + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + + private: + std::string prefix_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETPRESIGNEDURLREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlResult.h new file mode 100644 index 000000000..9d0204cfa --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetPreSignedUrlResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETPRESIGNEDURLRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETPRESIGNEDURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetPreSignedUrlResult : public ServiceResult + { + public: + + + GetPreSignedUrlResult(); + explicit GetPreSignedUrlResult(const std::string &payload); + ~GetPreSignedUrlResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETPRESIGNEDURLRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetRuleRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetRuleRequest.h new file mode 100644 index 000000000..e8a643264 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetRuleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETRULEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetRuleRequest : public RpcServiceRequest + { + + public: + GetRuleRequest(); + ~GetRuleRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETRULEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetRuleResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetRuleResult.h new file mode 100644 index 000000000..3022d8f71 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetRuleResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETRULERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetRuleResult : public ServiceResult + { + public: + struct Data + { + std::string content; + std::string createdAt; + std::string id; + std::string name; + }; + + + GetRuleResult(); + explicit GetRuleResult(const std::string &payload); + ~GetRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETRULERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationRequest.h new file mode 100644 index 000000000..90f07b1f0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETSERVICECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSERVICECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetServiceConfigurationRequest : public RpcServiceRequest + { + + public: + GetServiceConfigurationRequest(); + ~GetServiceConfigurationRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSERVICECONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationResult.h new file mode 100644 index 000000000..52efe568e --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetServiceConfigurationResult.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_IDRSSERVICE_MODEL_GETSERVICECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSERVICECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetServiceConfigurationResult : public ServiceResult + { + public: + struct Data + { + bool liveRecordEveryOne; + int liveRecordMaxClient; + bool liveRecordAll; + int liveRecordLayout; + int clientQueueSize; + std::string liveRecordTaskProfile; + int taskItemQueueSize; + int liveRecordVideoResolution; + }; + + + GetServiceConfigurationResult(); + explicit GetServiceConfigurationResult(const std::string &payload); + ~GetServiceConfigurationResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSERVICECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlRequest.h new file mode 100644 index 000000000..b4fffaea9 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETSIGNEDURLREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSIGNEDURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetSignedUrlRequest : public RpcServiceRequest + { + + public: + GetSignedUrlRequest(); + ~GetSignedUrlRequest(); + + std::string getFileUrl()const; + void setFileUrl(const std::string& fileUrl); + + private: + std::string fileUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSIGNEDURLREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlResult.h new file mode 100644 index 000000000..f2469d1c4 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetSignedUrlResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETSIGNEDURLRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSIGNEDURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetSignedUrlResult : public ServiceResult + { + public: + + + GetSignedUrlResult(); + explicit GetSignedUrlResult(const std::string &payload); + ~GetSignedUrlResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSIGNEDURLRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationRequest.h new file mode 100644 index 000000000..f66331c9e --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETSLRCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSLRCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetSlrConfigurationRequest : public RpcServiceRequest + { + + public: + GetSlrConfigurationRequest(); + ~GetSlrConfigurationRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSLRCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationResult.h new file mode 100644 index 000000000..90f05ca13 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetSlrConfigurationResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETSLRCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSLRCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetSlrConfigurationResult : public ServiceResult + { + public: + struct Data + { + bool mqSubscribe; + std::string mqInstanceId; + std::string mqEndpoint; + std::string mqGroupId; + std::vector mqEventList; + std::string mqTopic; + }; + + + GetSlrConfigurationResult(); + explicit GetSlrConfigurationResult(const std::string &payload); + ~GetSlrConfigurationResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSLRCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsRequest.h new file mode 100644 index 000000000..48a04e309 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetStatisticsRequest : public RpcServiceRequest + { + + public: + GetStatisticsRequest(); + ~GetStatisticsRequest(); + + std::vector getDepartmentId()const; + void setDepartmentId(const std::vector& departmentId); + std::string getDateTo()const; + void setDateTo(const std::string& dateTo); + std::string getDateFrom()const; + void setDateFrom(const std::string& dateFrom); + + private: + std::vector departmentId_; + std::string dateTo_; + std::string dateFrom_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsResult.h new file mode 100644 index 000000000..1820a1bf6 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetStatisticsResult.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_IDRSSERVICE_MODEL_GETSTATISTICSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetStatisticsResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + struct DetailItem + { + long cloudCount; + int month; + long clientCount; + std::string departmentName; + std::string departmentId; + }; + long cloudCount; + std::string month; + long clientCount; + std::string departmentName; + std::vector detail; + }; + std::vector items; + }; + + + GetStatisticsResult(); + explicit GetStatisticsResult(const std::string &payload); + ~GetStatisticsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupRequest.h new file mode 100644 index 000000000..c51b1c0d6 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKGROUPREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetTaskGroupRequest : public RpcServiceRequest + { + + public: + GetTaskGroupRequest(); + ~GetTaskGroupRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKGROUPREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupResult.h new file mode 100644 index 000000000..0f1632be2 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskGroupResult.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_IDRSSERVICE_MODEL_GETTASKGROUPRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetTaskGroupResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::vector taskIds; + std::string createdAt; + std::string ruleId; + int totalTasks; + int completedTasks; + std::string id; + std::string ruleName; + std::string name; + }; + + + GetTaskGroupResult(); + explicit GetTaskGroupResult(const std::string &payload); + ~GetTaskGroupResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKGROUPRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetTaskRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskRequest.h new file mode 100644 index 000000000..4a8a6afea --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetTaskRequest : public RpcServiceRequest + { + + public: + GetTaskRequest(); + ~GetTaskRequest(); + + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetTaskResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskResult.h new file mode 100644 index 000000000..6b3c5d7fc --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetTaskResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetTaskResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string createdAt; + std::string id; + std::string videoUrl; + }; + + + GetTaskResult(); + explicit GetTaskResult(const std::string &payload); + ~GetTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETTASKRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetUserRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/GetUserRequest.h new file mode 100644 index 000000000..a6c02d0a1 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetUserRequest : public RpcServiceRequest + { + + public: + GetUserRequest(); + ~GetUserRequest(); + + std::string getId()const; + void setId(const std::string& id); + + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETUSERREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/GetUserResult.h b/idrsservice/include/alibabacloud/idrsservice/model/GetUserResult.h new file mode 100644 index 000000000..341118d63 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/GetUserResult.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_IDRSSERVICE_MODEL_GETUSERRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_GETUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT GetUserResult : public ServiceResult + { + public: + struct Data + { + struct DepartmentsItem + { + std::string gmtCreate; + std::string description; + std::string gmtModified; + std::string id; + std::string name; + }; + std::string role; + std::vector departments; + std::string email; + std::string username; + std::string createdAt; + std::string phoneNumber; + std::string id; + std::string updatedAt; + std::string source; + std::string name; + }; + + + GetUserResult(); + explicit GetUserResult(const std::string &payload); + ~GetUserResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleRequest.h new file mode 100644 index 000000000..00b50f072 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_INITIALIZESERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_INITIALIZESERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT InitializeServiceLinkedRoleRequest : public RpcServiceRequest + { + + public: + InitializeServiceLinkedRoleRequest(); + ~InitializeServiceLinkedRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + + private: + std::string roleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_INITIALIZESERVICELINKEDROLEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleResult.h b/idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleResult.h new file mode 100644 index 000000000..9ebaa2b1a --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/InitializeServiceLinkedRoleResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_INITIALIZESERVICELINKEDROLERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_INITIALIZESERVICELINKEDROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT InitializeServiceLinkedRoleResult : public ServiceResult + { + public: + struct Data + { + bool createSuccess; + std::string errorMessage; + }; + + + InitializeServiceLinkedRoleResult(); + explicit InitializeServiceLinkedRoleResult(const std::string &payload); + ~InitializeServiceLinkedRoleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_INITIALIZESERVICELINKEDROLERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/JoinLiveRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/JoinLiveRequest.h new file mode 100644 index 000000000..183182505 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/JoinLiveRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_JOINLIVEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_JOINLIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT JoinLiveRequest : public RpcServiceRequest + { + + public: + JoinLiveRequest(); + ~JoinLiveRequest(); + + std::string getChannel()const; + void setChannel(const std::string& channel); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getRtcCode()const; + void setRtcCode(const std::string& rtcCode); + + private: + std::string channel_; + std::string userId_; + std::string rtcCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_JOINLIVEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/JoinLiveResult.h b/idrsservice/include/alibabacloud/idrsservice/model/JoinLiveResult.h new file mode 100644 index 000000000..b1cf39d22 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/JoinLiveResult.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_IDRSSERVICE_MODEL_JOINLIVERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_JOINLIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT JoinLiveResult : public ServiceResult + { + public: + struct Data + { + struct TokenData + { + struct Turn + { + std::string username; + std::string password; + }; + std::string nonce; + std::vector gslb; + std::string appId; + std::string userId; + std::string liveId; + Turn turn; + std::string token; + long timestamp; + }; + TokenData tokenData; + int code; + }; + + + JoinLiveResult(); + explicit JoinLiveResult(const std::string &payload); + ~JoinLiveResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_JOINLIVERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListAppsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListAppsRequest.h new file mode 100644 index 000000000..516ac6eb5 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListAppsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTAPPSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTAPPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListAppsRequest : public RpcServiceRequest + { + + public: + ListAppsRequest(); + ~ListAppsRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + + private: + int pageSize_; + int pageIndex_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTAPPSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListAppsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListAppsResult.h new file mode 100644 index 000000000..9bb2e7975 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListAppsResult.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_IDRSSERVICE_MODEL_LISTAPPSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListAppsResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + std::string packageName; + std::string createdAt; + std::string departmentName; + std::string departmentId; + std::string id; + bool disabled; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListAppsResult(); + explicit ListAppsResult(const std::string &payload); + ~ListAppsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTAPPSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsRequest.h new file mode 100644 index 000000000..5eb1b03e7 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDEPARTMENTSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDEPARTMENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListDepartmentsRequest : public RpcServiceRequest + { + + public: + ListDepartmentsRequest(); + ~ListDepartmentsRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + + private: + std::string userId_; + std::string name_; + int pageSize_; + int pageIndex_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDEPARTMENTSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsResult.h new file mode 100644 index 000000000..51f54bef0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListDepartmentsResult.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_IDRSSERVICE_MODEL_LISTDEPARTMENTSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDEPARTMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListDepartmentsResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + struct AdministratorsItem + { + std::string id; + std::string name; + }; + std::string description; + std::string createdAt; + std::vector administrators; + std::string id; + std::string updatedAt; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListDepartmentsResult(); + explicit ListDepartmentsResult(const std::string &payload); + ~ListDepartmentsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDEPARTMENTSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsRequest.h new file mode 100644 index 000000000..2d02807f0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsRequest.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_IDRSSERVICE_MODEL_LISTDETECTIONSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDETECTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListDetectionsRequest : public RpcServiceRequest + { + + public: + ListDetectionsRequest(); + ~ListDetectionsRequest(); + + std::string getCreateDateTo()const; + void setCreateDateTo(const std::string& createDateTo); + std::string getDepartmentId()const; + void setDepartmentId(const std::string& departmentId); + std::string getRecordingType()const; + void setRecordingType(const std::string& recordingType); + std::string getCreateDateFrom()const; + void setCreateDateFrom(const std::string& createDateFrom); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string createDateTo_; + std::string departmentId_; + std::string recordingType_; + std::string createDateFrom_; + int pageSize_; + int pageIndex_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDETECTIONSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsResult.h new file mode 100644 index 000000000..673e00f33 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListDetectionsResult.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_IDRSSERVICE_MODEL_LISTDETECTIONSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDETECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListDetectionsResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + struct TasksItem + { + std::string status; + std::string createdAt; + std::string videoMetaUrl; + std::string id; + std::string videoUrl; + }; + std::string status; + std::vector tasks; + std::string recordingType; + std::string createdAt; + std::string ruleId; + std::string departmentName; + std::string departmentId; + std::string id; + std::string ruleName; + }; + long totalElements; + std::vector items; + int totalPages; + }; + struct ErrorsItem + { + std::string field; + std::string message; + }; + + + ListDetectionsResult(); + explicit ListDetectionsResult(const std::string &payload); + ~ListDetectionsResult(); + std::vector getErrors()const; + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector errors_; + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTDETECTIONSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListFilesRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListFilesRequest.h new file mode 100644 index 000000000..e58ba4e25 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListFilesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTFILESREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListFilesRequest : public RpcServiceRequest + { + + public: + ListFilesRequest(); + ~ListFilesRequest(); + + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + int getLimit()const; + void setLimit(int limit); + + private: + std::string prefix_; + int limit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTFILESREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListFilesResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListFilesResult.h new file mode 100644 index 000000000..bcf8b558e --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListFilesResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTFILESRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListFilesResult : public ServiceResult + { + public: + + + ListFilesResult(); + explicit ListFilesResult(const std::string &payload); + ~ListFilesResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTFILESRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListLivesRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListLivesRequest.h new file mode 100644 index 000000000..213bbef63 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListLivesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTLIVESREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTLIVESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListLivesRequest : public RpcServiceRequest + { + + public: + ListLivesRequest(); + ~ListLivesRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + + private: + int pageSize_; + int pageIndex_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTLIVESREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListLivesResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListLivesResult.h new file mode 100644 index 000000000..9a17f7185 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListLivesResult.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_IDRSSERVICE_MODEL_LISTLIVESRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTLIVESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListLivesResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + std::string status; + std::string publicId; + std::string userId; + std::string channel; + std::string createdAt; + std::string id; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListLivesResult(); + explicit ListLivesResult(const std::string &payload); + ~ListLivesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTLIVESRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListRolesRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListRolesRequest.h new file mode 100644 index 000000000..1fd8b6ce0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListRolesRequest.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_IDRSSERVICE_MODEL_LISTROLESREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTROLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListRolesRequest : public RpcServiceRequest + { + + public: + ListRolesRequest(); + ~ListRolesRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTROLESREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListRolesResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListRolesResult.h new file mode 100644 index 000000000..83c051312 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListRolesResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTROLESRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTROLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListRolesResult : public ServiceResult + { + public: + + + ListRolesResult(); + explicit ListRolesResult(const std::string &payload); + ~ListRolesResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTROLESRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListRulesRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListRulesRequest.h new file mode 100644 index 000000000..06f0a0015 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListRulesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTRULESREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListRulesRequest : public RpcServiceRequest + { + + public: + ListRulesRequest(); + ~ListRulesRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + + private: + int pageSize_; + int pageIndex_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTRULESREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListRulesResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListRulesResult.h new file mode 100644 index 000000000..1d0de628a --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListRulesResult.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_IDRSSERVICE_MODEL_LISTRULESRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListRulesResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + std::string content; + std::string createdAt; + std::string id; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListRulesResult(); + explicit ListRulesResult(const std::string &payload); + ~ListRulesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTRULESRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskRequest.h new file mode 100644 index 000000000..f1b71b9d3 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTSTATISTICSTASKREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTSTATISTICSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListStatisticsTaskRequest : public RpcServiceRequest + { + + public: + ListStatisticsTaskRequest(); + ~ListStatisticsTaskRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + + private: + int pageSize_; + int pageIndex_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTSTATISTICSTASKREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskResult.h new file mode 100644 index 000000000..c404d8760 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListStatisticsTaskResult.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_IDRSSERVICE_MODEL_LISTSTATISTICSTASKRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTSTATISTICSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListStatisticsTaskResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + int status; + std::string fileUrl; + std::string createdAt; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListStatisticsTaskResult(); + explicit ListStatisticsTaskResult(const std::string &payload); + ~ListStatisticsTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTSTATISTICSTASKRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsRequest.h new file mode 100644 index 000000000..340341e46 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKGROUPSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListTaskGroupsRequest : public RpcServiceRequest + { + + public: + ListTaskGroupsRequest(); + ~ListTaskGroupsRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + int pageSize_; + int pageIndex_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKGROUPSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsResult.h new file mode 100644 index 000000000..03510adba --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskGroupsResult.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_IDRSSERVICE_MODEL_LISTTASKGROUPSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListTaskGroupsResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + std::string status; + std::vector taskIds; + std::string createdAt; + std::string ruleId; + int totalTasks; + int completedTasks; + std::string id; + std::string ruleName; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListTaskGroupsResult(); + explicit ListTaskGroupsResult(const std::string &payload); + ~ListTaskGroupsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKGROUPSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsRequest.h new file mode 100644 index 000000000..61687e6e9 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKITEMSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListTaskItemsRequest : public RpcServiceRequest + { + + public: + ListTaskItemsRequest(); + ~ListTaskItemsRequest(); + + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKITEMSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsResult.h new file mode 100644 index 000000000..227da6062 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListTaskItemsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKITEMSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListTaskItemsResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + long segmentSeq; + std::string message; + std::string createdAt; + std::string output; + std::string name; + }; + + + ListTaskItemsResult(); + explicit ListTaskItemsResult(const std::string &payload); + ~ListTaskItemsResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKITEMSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListTasksRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListTasksRequest.h new file mode 100644 index 000000000..f4d61a03d --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListTasksRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListTasksRequest : public RpcServiceRequest + { + + public: + ListTasksRequest(); + ~ListTasksRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTaskGroupId()const; + void setTaskGroupId(const std::string& taskGroupId); + int getPageIndex()const; + void setPageIndex(int pageIndex); + + private: + int pageSize_; + std::string taskGroupId_; + int pageIndex_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListTasksResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListTasksResult.h new file mode 100644 index 000000000..e08414cce --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListTasksResult.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_IDRSSERVICE_MODEL_LISTTASKSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListTasksResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + std::string status; + std::string createdAt; + std::string videoMetaUrl; + std::string id; + std::string videoUrl; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListTasksResult(); + explicit ListTasksResult(const std::string &payload); + ~ListTasksResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTTASKSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListUsersRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/ListUsersRequest.h new file mode 100644 index 000000000..0e6b2d120 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListUsersRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListUsersRequest : public RpcServiceRequest + { + + public: + ListUsersRequest(); + ~ListUsersRequest(); + + std::string getDepartmentId()const; + void setDepartmentId(const std::string& departmentId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageIndex()const; + void setPageIndex(int pageIndex); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string departmentId_; + int pageSize_; + int pageIndex_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/ListUsersResult.h b/idrsservice/include/alibabacloud/idrsservice/model/ListUsersResult.h new file mode 100644 index 000000000..27d436a91 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/ListUsersResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_LISTUSERSRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_LISTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT ListUsersResult : public ServiceResult + { + public: + struct Data + { + struct ItemsItem + { + struct DepartmentsItem + { + std::string description; + std::string createdAt; + std::string id; + std::string updatedAt; + std::string name; + }; + std::string role; + std::vector departments; + std::string email; + std::string username; + std::string createdAt; + std::string ramUsername; + std::string phoneNumber; + std::string id; + std::string updatedAt; + std::string source; + std::string name; + }; + long totalElements; + std::vector items; + int totalPages; + }; + + + ListUsersResult(); + explicit ListUsersResult(const std::string &payload); + ~ListUsersResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_LISTUSERSRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateAppRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateAppRequest.h new file mode 100644 index 000000000..0269b26e1 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateAppRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEAPPREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateAppRequest : public RpcServiceRequest + { + + public: + UpdateAppRequest(); + ~UpdateAppRequest(); + + std::string getDepartmentId()const; + void setDepartmentId(const std::string& departmentId); + std::string getPackageName()const; + void setPackageName(const std::string& packageName); + std::string getName()const; + void setName(const std::string& name); + bool getDisabled()const; + void setDisabled(bool disabled); + std::string getId()const; + void setId(const std::string& id); + + private: + std::string departmentId_; + std::string packageName_; + std::string name_; + bool disabled_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEAPPREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateAppResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateAppResult.h new file mode 100644 index 000000000..97c04c68c --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateAppResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEAPPRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateAppResult : public ServiceResult + { + public: + + + UpdateAppResult(); + explicit UpdateAppResult(const std::string &payload); + ~UpdateAppResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEAPPRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentRequest.h new file mode 100644 index 000000000..c364680ec --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEDEPARTMENTREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEDEPARTMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateDepartmentRequest : public RpcServiceRequest + { + + public: + UpdateDepartmentRequest(); + ~UpdateDepartmentRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getLabel()const; + void setLabel(const std::string& label); + std::string getName()const; + void setName(const std::string& name); + std::string getId()const; + void setId(const std::string& id); + + private: + std::string description_; + std::string label_; + std::string name_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEDEPARTMENTREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentResult.h new file mode 100644 index 000000000..294b95a6b --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateDepartmentResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEDEPARTMENTRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEDEPARTMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateDepartmentResult : public ServiceResult + { + public: + + + UpdateDepartmentResult(); + explicit UpdateDepartmentResult(const std::string &payload); + ~UpdateDepartmentResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEDEPARTMENTRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveRequest.h new file mode 100644 index 000000000..7e83a5a04 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATELIVEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATELIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateLiveRequest : public RpcServiceRequest + { + + public: + UpdateLiveRequest(); + ~UpdateLiveRequest(); + + std::string getLiveId()const; + void setLiveId(const std::string& liveId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string liveId_; + std::string userId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATELIVEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveResult.h new file mode 100644 index 000000000..85ac3c013 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateLiveResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATELIVERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATELIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateLiveResult : public ServiceResult + { + public: + struct Data + { + std::string id; + }; + + + UpdateLiveResult(); + explicit UpdateLiveResult(const std::string &payload); + ~UpdateLiveResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATELIVERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleRequest.h new file mode 100644 index 000000000..e871630c9 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATERULEREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATERULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateRuleRequest : public RpcServiceRequest + { + + public: + UpdateRuleRequest(); + ~UpdateRuleRequest(); + + std::string getContent()const; + void setContent(const std::string& content); + std::string getName()const; + void setName(const std::string& name); + std::string getId()const; + void setId(const std::string& id); + + private: + std::string content_; + std::string name_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATERULEREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleResult.h new file mode 100644 index 000000000..d252cb4e9 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateRuleResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATERULERESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateRuleResult : public ServiceResult + { + public: + struct Data + { + std::string content; + std::string createdAt; + std::string id; + std::string name; + }; + + + UpdateRuleResult(); + explicit UpdateRuleResult(const std::string &payload); + ~UpdateRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATERULERESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationRequest.h new file mode 100644 index 000000000..10abd8bda --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationRequest.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_IDRSSERVICE_MODEL_UPDATESERVICECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESERVICECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateServiceConfigurationRequest : public RpcServiceRequest + { + + public: + UpdateServiceConfigurationRequest(); + ~UpdateServiceConfigurationRequest(); + + int getLiveRecordMaxClient()const; + void setLiveRecordMaxClient(int liveRecordMaxClient); + int getLiveRecordVideoResolution()const; + void setLiveRecordVideoResolution(int liveRecordVideoResolution); + int getTaskItemQueueSize()const; + void setTaskItemQueueSize(int taskItemQueueSize); + int getLiveRecordLayout()const; + void setLiveRecordLayout(int liveRecordLayout); + int getClientQueueSize()const; + void setClientQueueSize(int clientQueueSize); + std::string getLiveRecordTaskProfile()const; + void setLiveRecordTaskProfile(const std::string& liveRecordTaskProfile); + bool getLiveRecordAll()const; + void setLiveRecordAll(bool liveRecordAll); + bool getLiveRecordEveryOne()const; + void setLiveRecordEveryOne(bool liveRecordEveryOne); + + private: + int liveRecordMaxClient_; + int liveRecordVideoResolution_; + int taskItemQueueSize_; + int liveRecordLayout_; + int clientQueueSize_; + std::string liveRecordTaskProfile_; + bool liveRecordAll_; + bool liveRecordEveryOne_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESERVICECONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationResult.h new file mode 100644 index 000000000..35cb1f7d1 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateServiceConfigurationResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESERVICECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESERVICECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateServiceConfigurationResult : public ServiceResult + { + public: + + + UpdateServiceConfigurationResult(); + explicit UpdateServiceConfigurationResult(const std::string &payload); + ~UpdateServiceConfigurationResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESERVICECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationRequest.h new file mode 100644 index 000000000..4441cda58 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationRequest.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_IDRSSERVICE_MODEL_UPDATESLRCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESLRCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateSlrConfigurationRequest : public RpcServiceRequest + { + + public: + UpdateSlrConfigurationRequest(); + ~UpdateSlrConfigurationRequest(); + + std::string getMqInstanceId()const; + void setMqInstanceId(const std::string& mqInstanceId); + std::string getMqGroupId()const; + void setMqGroupId(const std::string& mqGroupId); + std::vector getMqEvent()const; + void setMqEvent(const std::vector& mqEvent); + std::string getMqEndpoint()const; + void setMqEndpoint(const std::string& mqEndpoint); + std::string getMqTopic()const; + void setMqTopic(const std::string& mqTopic); + bool getMqSubscribe()const; + void setMqSubscribe(bool mqSubscribe); + + private: + std::string mqInstanceId_; + std::string mqGroupId_; + std::vector mqEvent_; + std::string mqEndpoint_; + std::string mqTopic_; + bool mqSubscribe_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESLRCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationResult.h new file mode 100644 index 000000000..24fefadb0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateSlrConfigurationResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESLRCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESLRCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateSlrConfigurationResult : public ServiceResult + { + public: + + + UpdateSlrConfigurationResult(); + explicit UpdateSlrConfigurationResult(const std::string &payload); + ~UpdateSlrConfigurationResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATESLRCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateUserRequest.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateUserRequest.h new file mode 100644 index 000000000..2f16ab2e0 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateUserRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateUserRequest : public RpcServiceRequest + { + + public: + UpdateUserRequest(); + ~UpdateUserRequest(); + + std::string getRole()const; + void setRole(const std::string& role); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + std::string getName()const; + void setName(const std::string& name); + std::string getId()const; + void setId(const std::string& id); + std::string getEmail()const; + void setEmail(const std::string& email); + + private: + std::string role_; + std::string phoneNumber_; + std::string name_; + std::string id_; + std::string email_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file diff --git a/idrsservice/include/alibabacloud/idrsservice/model/UpdateUserResult.h b/idrsservice/include/alibabacloud/idrsservice/model/UpdateUserResult.h new file mode 100644 index 000000000..c8ef18893 --- /dev/null +++ b/idrsservice/include/alibabacloud/idrsservice/model/UpdateUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEUSERRESULT_H_ +#define ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idrsservice + { + namespace Model + { + class ALIBABACLOUD_IDRSSERVICE_EXPORT UpdateUserResult : public ServiceResult + { + public: + + + UpdateUserResult(); + explicit UpdateUserResult(const std::string &payload); + ~UpdateUserResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDRSSERVICE_MODEL_UPDATEUSERRESULT_H_ \ No newline at end of file diff --git a/idrsservice/src/IdrsserviceClient.cc b/idrsservice/src/IdrsserviceClient.cc new file mode 100644 index 000000000..a03eaaf74 --- /dev/null +++ b/idrsservice/src/IdrsserviceClient.cc @@ -0,0 +1,1889 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +namespace +{ + const std::string SERVICE_NAME = "idrsservice"; +} + +IdrsserviceClient::IdrsserviceClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "idrsservice"); +} + +IdrsserviceClient::IdrsserviceClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "idrsservice"); +} + +IdrsserviceClient::IdrsserviceClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "idrsservice"); +} + +IdrsserviceClient::~IdrsserviceClient() +{} + +IdrsserviceClient::CheckServiceLinkedRoleOutcome IdrsserviceClient::checkServiceLinkedRole(const CheckServiceLinkedRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckServiceLinkedRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckServiceLinkedRoleOutcome(CheckServiceLinkedRoleResult(outcome.result())); + else + return CheckServiceLinkedRoleOutcome(outcome.error()); +} + +void IdrsserviceClient::checkServiceLinkedRoleAsync(const CheckServiceLinkedRoleRequest& request, const CheckServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkServiceLinkedRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CheckServiceLinkedRoleOutcomeCallable IdrsserviceClient::checkServiceLinkedRoleCallable(const CheckServiceLinkedRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkServiceLinkedRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateAppOutcome IdrsserviceClient::createApp(const CreateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppOutcome(CreateAppResult(outcome.result())); + else + return CreateAppOutcome(outcome.error()); +} + +void IdrsserviceClient::createAppAsync(const CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateAppOutcomeCallable IdrsserviceClient::createAppCallable(const CreateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateDepartmentOutcome IdrsserviceClient::createDepartment(const CreateDepartmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDepartmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDepartmentOutcome(CreateDepartmentResult(outcome.result())); + else + return CreateDepartmentOutcome(outcome.error()); +} + +void IdrsserviceClient::createDepartmentAsync(const CreateDepartmentRequest& request, const CreateDepartmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDepartment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateDepartmentOutcomeCallable IdrsserviceClient::createDepartmentCallable(const CreateDepartmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDepartment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateLiveOutcome IdrsserviceClient::createLive(const CreateLiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLiveOutcome(CreateLiveResult(outcome.result())); + else + return CreateLiveOutcome(outcome.error()); +} + +void IdrsserviceClient::createLiveAsync(const CreateLiveRequest& request, const CreateLiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLive(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateLiveOutcomeCallable IdrsserviceClient::createLiveCallable(const CreateLiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLive(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateLiveDetectionOutcome IdrsserviceClient::createLiveDetection(const CreateLiveDetectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLiveDetectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLiveDetectionOutcome(CreateLiveDetectionResult(outcome.result())); + else + return CreateLiveDetectionOutcome(outcome.error()); +} + +void IdrsserviceClient::createLiveDetectionAsync(const CreateLiveDetectionRequest& request, const CreateLiveDetectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLiveDetection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateLiveDetectionOutcomeCallable IdrsserviceClient::createLiveDetectionCallable(const CreateLiveDetectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLiveDetection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateRuleOutcome IdrsserviceClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void IdrsserviceClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateRuleOutcomeCallable IdrsserviceClient::createRuleCallable(const CreateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateStatisticsRecordOutcome IdrsserviceClient::createStatisticsRecord(const CreateStatisticsRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStatisticsRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStatisticsRecordOutcome(CreateStatisticsRecordResult(outcome.result())); + else + return CreateStatisticsRecordOutcome(outcome.error()); +} + +void IdrsserviceClient::createStatisticsRecordAsync(const CreateStatisticsRecordRequest& request, const CreateStatisticsRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStatisticsRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateStatisticsRecordOutcomeCallable IdrsserviceClient::createStatisticsRecordCallable(const CreateStatisticsRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStatisticsRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateStatisticsTaskOutcome IdrsserviceClient::createStatisticsTask(const CreateStatisticsTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStatisticsTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStatisticsTaskOutcome(CreateStatisticsTaskResult(outcome.result())); + else + return CreateStatisticsTaskOutcome(outcome.error()); +} + +void IdrsserviceClient::createStatisticsTaskAsync(const CreateStatisticsTaskRequest& request, const CreateStatisticsTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStatisticsTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateStatisticsTaskOutcomeCallable IdrsserviceClient::createStatisticsTaskCallable(const CreateStatisticsTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStatisticsTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateTaskGroupOutcome IdrsserviceClient::createTaskGroup(const CreateTaskGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTaskGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTaskGroupOutcome(CreateTaskGroupResult(outcome.result())); + else + return CreateTaskGroupOutcome(outcome.error()); +} + +void IdrsserviceClient::createTaskGroupAsync(const CreateTaskGroupRequest& request, const CreateTaskGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTaskGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateTaskGroupOutcomeCallable IdrsserviceClient::createTaskGroupCallable(const CreateTaskGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTaskGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::CreateUserDepartmentsOutcome IdrsserviceClient::createUserDepartments(const CreateUserDepartmentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserDepartmentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserDepartmentsOutcome(CreateUserDepartmentsResult(outcome.result())); + else + return CreateUserDepartmentsOutcome(outcome.error()); +} + +void IdrsserviceClient::createUserDepartmentsAsync(const CreateUserDepartmentsRequest& request, const CreateUserDepartmentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserDepartments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::CreateUserDepartmentsOutcomeCallable IdrsserviceClient::createUserDepartmentsCallable(const CreateUserDepartmentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserDepartments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::DeleteAppOutcome IdrsserviceClient::deleteApp(const DeleteAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppOutcome(DeleteAppResult(outcome.result())); + else + return DeleteAppOutcome(outcome.error()); +} + +void IdrsserviceClient::deleteAppAsync(const DeleteAppRequest& request, const DeleteAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::DeleteAppOutcomeCallable IdrsserviceClient::deleteAppCallable(const DeleteAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::DeleteDepartmentOutcome IdrsserviceClient::deleteDepartment(const DeleteDepartmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDepartmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDepartmentOutcome(DeleteDepartmentResult(outcome.result())); + else + return DeleteDepartmentOutcome(outcome.error()); +} + +void IdrsserviceClient::deleteDepartmentAsync(const DeleteDepartmentRequest& request, const DeleteDepartmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDepartment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::DeleteDepartmentOutcomeCallable IdrsserviceClient::deleteDepartmentCallable(const DeleteDepartmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDepartment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::DeleteRuleOutcome IdrsserviceClient::deleteRule(const DeleteRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRuleOutcome(DeleteRuleResult(outcome.result())); + else + return DeleteRuleOutcome(outcome.error()); +} + +void IdrsserviceClient::deleteRuleAsync(const DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::DeleteRuleOutcomeCallable IdrsserviceClient::deleteRuleCallable(const DeleteRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::DeleteUserOutcome IdrsserviceClient::deleteUser(const DeleteUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserOutcome(DeleteUserResult(outcome.result())); + else + return DeleteUserOutcome(outcome.error()); +} + +void IdrsserviceClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::DeleteUserOutcomeCallable IdrsserviceClient::deleteUserCallable(const DeleteUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::DeleteUserDepartmentsOutcome IdrsserviceClient::deleteUserDepartments(const DeleteUserDepartmentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserDepartmentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserDepartmentsOutcome(DeleteUserDepartmentsResult(outcome.result())); + else + return DeleteUserDepartmentsOutcome(outcome.error()); +} + +void IdrsserviceClient::deleteUserDepartmentsAsync(const DeleteUserDepartmentsRequest& request, const DeleteUserDepartmentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserDepartments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::DeleteUserDepartmentsOutcomeCallable IdrsserviceClient::deleteUserDepartmentsCallable(const DeleteUserDepartmentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserDepartments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ExitLiveOutcome IdrsserviceClient::exitLive(const ExitLiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExitLiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExitLiveOutcome(ExitLiveResult(outcome.result())); + else + return ExitLiveOutcome(outcome.error()); +} + +void IdrsserviceClient::exitLiveAsync(const ExitLiveRequest& request, const ExitLiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exitLive(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ExitLiveOutcomeCallable IdrsserviceClient::exitLiveCallable(const ExitLiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exitLive(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetAppOutcome IdrsserviceClient::getApp(const GetAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAppOutcome(GetAppResult(outcome.result())); + else + return GetAppOutcome(outcome.error()); +} + +void IdrsserviceClient::getAppAsync(const GetAppRequest& request, const GetAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetAppOutcomeCallable IdrsserviceClient::getAppCallable(const GetAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetDepartmentOutcome IdrsserviceClient::getDepartment(const GetDepartmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDepartmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDepartmentOutcome(GetDepartmentResult(outcome.result())); + else + return GetDepartmentOutcome(outcome.error()); +} + +void IdrsserviceClient::getDepartmentAsync(const GetDepartmentRequest& request, const GetDepartmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDepartment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetDepartmentOutcomeCallable IdrsserviceClient::getDepartmentCallable(const GetDepartmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDepartment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetDetectEvaluationOutcome IdrsserviceClient::getDetectEvaluation(const GetDetectEvaluationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDetectEvaluationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDetectEvaluationOutcome(GetDetectEvaluationResult(outcome.result())); + else + return GetDetectEvaluationOutcome(outcome.error()); +} + +void IdrsserviceClient::getDetectEvaluationAsync(const GetDetectEvaluationRequest& request, const GetDetectEvaluationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDetectEvaluation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetDetectEvaluationOutcomeCallable IdrsserviceClient::getDetectEvaluationCallable(const GetDetectEvaluationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDetectEvaluation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetDetectionOutcome IdrsserviceClient::getDetection(const GetDetectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDetectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDetectionOutcome(GetDetectionResult(outcome.result())); + else + return GetDetectionOutcome(outcome.error()); +} + +void IdrsserviceClient::getDetectionAsync(const GetDetectionRequest& request, const GetDetectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDetection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetDetectionOutcomeCallable IdrsserviceClient::getDetectionCallable(const GetDetectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDetection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetModelSignedUrlOutcome IdrsserviceClient::getModelSignedUrl(const GetModelSignedUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetModelSignedUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetModelSignedUrlOutcome(GetModelSignedUrlResult(outcome.result())); + else + return GetModelSignedUrlOutcome(outcome.error()); +} + +void IdrsserviceClient::getModelSignedUrlAsync(const GetModelSignedUrlRequest& request, const GetModelSignedUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getModelSignedUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetModelSignedUrlOutcomeCallable IdrsserviceClient::getModelSignedUrlCallable(const GetModelSignedUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getModelSignedUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetPreSignedUrlOutcome IdrsserviceClient::getPreSignedUrl(const GetPreSignedUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPreSignedUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPreSignedUrlOutcome(GetPreSignedUrlResult(outcome.result())); + else + return GetPreSignedUrlOutcome(outcome.error()); +} + +void IdrsserviceClient::getPreSignedUrlAsync(const GetPreSignedUrlRequest& request, const GetPreSignedUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPreSignedUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetPreSignedUrlOutcomeCallable IdrsserviceClient::getPreSignedUrlCallable(const GetPreSignedUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPreSignedUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetRuleOutcome IdrsserviceClient::getRule(const GetRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRuleOutcome(GetRuleResult(outcome.result())); + else + return GetRuleOutcome(outcome.error()); +} + +void IdrsserviceClient::getRuleAsync(const GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetRuleOutcomeCallable IdrsserviceClient::getRuleCallable(const GetRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetServiceConfigurationOutcome IdrsserviceClient::getServiceConfiguration(const GetServiceConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceConfigurationOutcome(GetServiceConfigurationResult(outcome.result())); + else + return GetServiceConfigurationOutcome(outcome.error()); +} + +void IdrsserviceClient::getServiceConfigurationAsync(const GetServiceConfigurationRequest& request, const GetServiceConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetServiceConfigurationOutcomeCallable IdrsserviceClient::getServiceConfigurationCallable(const GetServiceConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetSignedUrlOutcome IdrsserviceClient::getSignedUrl(const GetSignedUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSignedUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSignedUrlOutcome(GetSignedUrlResult(outcome.result())); + else + return GetSignedUrlOutcome(outcome.error()); +} + +void IdrsserviceClient::getSignedUrlAsync(const GetSignedUrlRequest& request, const GetSignedUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSignedUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetSignedUrlOutcomeCallable IdrsserviceClient::getSignedUrlCallable(const GetSignedUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSignedUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetSlrConfigurationOutcome IdrsserviceClient::getSlrConfiguration(const GetSlrConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSlrConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSlrConfigurationOutcome(GetSlrConfigurationResult(outcome.result())); + else + return GetSlrConfigurationOutcome(outcome.error()); +} + +void IdrsserviceClient::getSlrConfigurationAsync(const GetSlrConfigurationRequest& request, const GetSlrConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSlrConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetSlrConfigurationOutcomeCallable IdrsserviceClient::getSlrConfigurationCallable(const GetSlrConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSlrConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetStatisticsOutcome IdrsserviceClient::getStatistics(const GetStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStatisticsOutcome(GetStatisticsResult(outcome.result())); + else + return GetStatisticsOutcome(outcome.error()); +} + +void IdrsserviceClient::getStatisticsAsync(const GetStatisticsRequest& request, const GetStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetStatisticsOutcomeCallable IdrsserviceClient::getStatisticsCallable(const GetStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetTaskOutcome IdrsserviceClient::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 IdrsserviceClient::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)); +} + +IdrsserviceClient::GetTaskOutcomeCallable IdrsserviceClient::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(); +} + +IdrsserviceClient::GetTaskGroupOutcome IdrsserviceClient::getTaskGroup(const GetTaskGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskGroupOutcome(GetTaskGroupResult(outcome.result())); + else + return GetTaskGroupOutcome(outcome.error()); +} + +void IdrsserviceClient::getTaskGroupAsync(const GetTaskGroupRequest& request, const GetTaskGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::GetTaskGroupOutcomeCallable IdrsserviceClient::getTaskGroupCallable(const GetTaskGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::GetUserOutcome IdrsserviceClient::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 IdrsserviceClient::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)); +} + +IdrsserviceClient::GetUserOutcomeCallable IdrsserviceClient::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(); +} + +IdrsserviceClient::InitializeServiceLinkedRoleOutcome IdrsserviceClient::initializeServiceLinkedRole(const InitializeServiceLinkedRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitializeServiceLinkedRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitializeServiceLinkedRoleOutcome(InitializeServiceLinkedRoleResult(outcome.result())); + else + return InitializeServiceLinkedRoleOutcome(outcome.error()); +} + +void IdrsserviceClient::initializeServiceLinkedRoleAsync(const InitializeServiceLinkedRoleRequest& request, const InitializeServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initializeServiceLinkedRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::InitializeServiceLinkedRoleOutcomeCallable IdrsserviceClient::initializeServiceLinkedRoleCallable(const InitializeServiceLinkedRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initializeServiceLinkedRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::JoinLiveOutcome IdrsserviceClient::joinLive(const JoinLiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return JoinLiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinLiveOutcome(JoinLiveResult(outcome.result())); + else + return JoinLiveOutcome(outcome.error()); +} + +void IdrsserviceClient::joinLiveAsync(const JoinLiveRequest& request, const JoinLiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinLive(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::JoinLiveOutcomeCallable IdrsserviceClient::joinLiveCallable(const JoinLiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinLive(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListAppsOutcome IdrsserviceClient::listApps(const ListAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppsOutcome(ListAppsResult(outcome.result())); + else + return ListAppsOutcome(outcome.error()); +} + +void IdrsserviceClient::listAppsAsync(const ListAppsRequest& request, const ListAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListAppsOutcomeCallable IdrsserviceClient::listAppsCallable(const ListAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListDepartmentsOutcome IdrsserviceClient::listDepartments(const ListDepartmentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDepartmentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDepartmentsOutcome(ListDepartmentsResult(outcome.result())); + else + return ListDepartmentsOutcome(outcome.error()); +} + +void IdrsserviceClient::listDepartmentsAsync(const ListDepartmentsRequest& request, const ListDepartmentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDepartments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListDepartmentsOutcomeCallable IdrsserviceClient::listDepartmentsCallable(const ListDepartmentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDepartments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListDetectionsOutcome IdrsserviceClient::listDetections(const ListDetectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDetectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDetectionsOutcome(ListDetectionsResult(outcome.result())); + else + return ListDetectionsOutcome(outcome.error()); +} + +void IdrsserviceClient::listDetectionsAsync(const ListDetectionsRequest& request, const ListDetectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDetections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListDetectionsOutcomeCallable IdrsserviceClient::listDetectionsCallable(const ListDetectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDetections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListFilesOutcome IdrsserviceClient::listFiles(const ListFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFilesOutcome(ListFilesResult(outcome.result())); + else + return ListFilesOutcome(outcome.error()); +} + +void IdrsserviceClient::listFilesAsync(const ListFilesRequest& request, const ListFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListFilesOutcomeCallable IdrsserviceClient::listFilesCallable(const ListFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListLivesOutcome IdrsserviceClient::listLives(const ListLivesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLivesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLivesOutcome(ListLivesResult(outcome.result())); + else + return ListLivesOutcome(outcome.error()); +} + +void IdrsserviceClient::listLivesAsync(const ListLivesRequest& request, const ListLivesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLives(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListLivesOutcomeCallable IdrsserviceClient::listLivesCallable(const ListLivesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLives(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListRolesOutcome IdrsserviceClient::listRoles(const ListRolesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRolesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRolesOutcome(ListRolesResult(outcome.result())); + else + return ListRolesOutcome(outcome.error()); +} + +void IdrsserviceClient::listRolesAsync(const ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRoles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListRolesOutcomeCallable IdrsserviceClient::listRolesCallable(const ListRolesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRoles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListRulesOutcome IdrsserviceClient::listRules(const ListRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRulesOutcome(ListRulesResult(outcome.result())); + else + return ListRulesOutcome(outcome.error()); +} + +void IdrsserviceClient::listRulesAsync(const ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListRulesOutcomeCallable IdrsserviceClient::listRulesCallable(const ListRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListStatisticsTaskOutcome IdrsserviceClient::listStatisticsTask(const ListStatisticsTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStatisticsTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStatisticsTaskOutcome(ListStatisticsTaskResult(outcome.result())); + else + return ListStatisticsTaskOutcome(outcome.error()); +} + +void IdrsserviceClient::listStatisticsTaskAsync(const ListStatisticsTaskRequest& request, const ListStatisticsTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStatisticsTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListStatisticsTaskOutcomeCallable IdrsserviceClient::listStatisticsTaskCallable(const ListStatisticsTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStatisticsTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListTaskGroupsOutcome IdrsserviceClient::listTaskGroups(const ListTaskGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTaskGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTaskGroupsOutcome(ListTaskGroupsResult(outcome.result())); + else + return ListTaskGroupsOutcome(outcome.error()); +} + +void IdrsserviceClient::listTaskGroupsAsync(const ListTaskGroupsRequest& request, const ListTaskGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTaskGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListTaskGroupsOutcomeCallable IdrsserviceClient::listTaskGroupsCallable(const ListTaskGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTaskGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListTaskItemsOutcome IdrsserviceClient::listTaskItems(const ListTaskItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTaskItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTaskItemsOutcome(ListTaskItemsResult(outcome.result())); + else + return ListTaskItemsOutcome(outcome.error()); +} + +void IdrsserviceClient::listTaskItemsAsync(const ListTaskItemsRequest& request, const ListTaskItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTaskItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListTaskItemsOutcomeCallable IdrsserviceClient::listTaskItemsCallable(const ListTaskItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTaskItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListTasksOutcome IdrsserviceClient::listTasks(const ListTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTasksOutcome(ListTasksResult(outcome.result())); + else + return ListTasksOutcome(outcome.error()); +} + +void IdrsserviceClient::listTasksAsync(const ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListTasksOutcomeCallable IdrsserviceClient::listTasksCallable(const ListTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::ListUsersOutcome IdrsserviceClient::listUsers(const ListUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersOutcome(ListUsersResult(outcome.result())); + else + return ListUsersOutcome(outcome.error()); +} + +void IdrsserviceClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::ListUsersOutcomeCallable IdrsserviceClient::listUsersCallable(const ListUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateAppOutcome IdrsserviceClient::updateApp(const UpdateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppOutcome(UpdateAppResult(outcome.result())); + else + return UpdateAppOutcome(outcome.error()); +} + +void IdrsserviceClient::updateAppAsync(const UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateAppOutcomeCallable IdrsserviceClient::updateAppCallable(const UpdateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateDepartmentOutcome IdrsserviceClient::updateDepartment(const UpdateDepartmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDepartmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDepartmentOutcome(UpdateDepartmentResult(outcome.result())); + else + return UpdateDepartmentOutcome(outcome.error()); +} + +void IdrsserviceClient::updateDepartmentAsync(const UpdateDepartmentRequest& request, const UpdateDepartmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDepartment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateDepartmentOutcomeCallable IdrsserviceClient::updateDepartmentCallable(const UpdateDepartmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDepartment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateLiveOutcome IdrsserviceClient::updateLive(const UpdateLiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLiveOutcome(UpdateLiveResult(outcome.result())); + else + return UpdateLiveOutcome(outcome.error()); +} + +void IdrsserviceClient::updateLiveAsync(const UpdateLiveRequest& request, const UpdateLiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLive(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateLiveOutcomeCallable IdrsserviceClient::updateLiveCallable(const UpdateLiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLive(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateRuleOutcome IdrsserviceClient::updateRule(const UpdateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRuleOutcome(UpdateRuleResult(outcome.result())); + else + return UpdateRuleOutcome(outcome.error()); +} + +void IdrsserviceClient::updateRuleAsync(const UpdateRuleRequest& request, const UpdateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateRuleOutcomeCallable IdrsserviceClient::updateRuleCallable(const UpdateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateServiceConfigurationOutcome IdrsserviceClient::updateServiceConfiguration(const UpdateServiceConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceConfigurationOutcome(UpdateServiceConfigurationResult(outcome.result())); + else + return UpdateServiceConfigurationOutcome(outcome.error()); +} + +void IdrsserviceClient::updateServiceConfigurationAsync(const UpdateServiceConfigurationRequest& request, const UpdateServiceConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServiceConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateServiceConfigurationOutcomeCallable IdrsserviceClient::updateServiceConfigurationCallable(const UpdateServiceConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServiceConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateSlrConfigurationOutcome IdrsserviceClient::updateSlrConfiguration(const UpdateSlrConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSlrConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSlrConfigurationOutcome(UpdateSlrConfigurationResult(outcome.result())); + else + return UpdateSlrConfigurationOutcome(outcome.error()); +} + +void IdrsserviceClient::updateSlrConfigurationAsync(const UpdateSlrConfigurationRequest& request, const UpdateSlrConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSlrConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateSlrConfigurationOutcomeCallable IdrsserviceClient::updateSlrConfigurationCallable(const UpdateSlrConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSlrConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +IdrsserviceClient::UpdateUserOutcome IdrsserviceClient::updateUser(const UpdateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserOutcome(UpdateUserResult(outcome.result())); + else + return UpdateUserOutcome(outcome.error()); +} + +void IdrsserviceClient::updateUserAsync(const UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IdrsserviceClient::UpdateUserOutcomeCallable IdrsserviceClient::updateUserCallable(const UpdateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/idrsservice/src/model/CheckServiceLinkedRoleRequest.cc b/idrsservice/src/model/CheckServiceLinkedRoleRequest.cc new file mode 100644 index 000000000..f729cb4ea --- /dev/null +++ b/idrsservice/src/model/CheckServiceLinkedRoleRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::CheckServiceLinkedRoleRequest; + +CheckServiceLinkedRoleRequest::CheckServiceLinkedRoleRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CheckServiceLinkedRole") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckServiceLinkedRoleRequest::~CheckServiceLinkedRoleRequest() +{} + +std::string CheckServiceLinkedRoleRequest::getRoleName()const +{ + return roleName_; +} + +void CheckServiceLinkedRoleRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + diff --git a/idrsservice/src/model/CheckServiceLinkedRoleResult.cc b/idrsservice/src/model/CheckServiceLinkedRoleResult.cc new file mode 100644 index 000000000..d380df348 --- /dev/null +++ b/idrsservice/src/model/CheckServiceLinkedRoleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CheckServiceLinkedRoleResult::CheckServiceLinkedRoleResult() : + ServiceResult() +{} + +CheckServiceLinkedRoleResult::CheckServiceLinkedRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckServiceLinkedRoleResult::~CheckServiceLinkedRoleResult() +{} + +void CheckServiceLinkedRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["HasRole"].isNull()) + data_.hasRole = dataNode["HasRole"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CheckServiceLinkedRoleResult::getMessage()const +{ + return message_; +} + +CheckServiceLinkedRoleResult::Data CheckServiceLinkedRoleResult::getData()const +{ + return data_; +} + +std::string CheckServiceLinkedRoleResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateAppRequest.cc b/idrsservice/src/model/CreateAppRequest.cc new file mode 100644 index 000000000..1dc9a7aec --- /dev/null +++ b/idrsservice/src/model/CreateAppRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateApp") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAppRequest::~CreateAppRequest() +{} + +std::string CreateAppRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateAppRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateAppRequest::getDepartmentId()const +{ + return departmentId_; +} + +void CreateAppRequest::setDepartmentId(const std::string& departmentId) +{ + departmentId_ = departmentId; + setParameter("DepartmentId", departmentId); +} + +std::string CreateAppRequest::getPackageName()const +{ + return packageName_; +} + +void CreateAppRequest::setPackageName(const std::string& packageName) +{ + packageName_ = packageName; + setParameter("PackageName", packageName); +} + +std::string CreateAppRequest::getName()const +{ + return name_; +} + +void CreateAppRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/idrsservice/src/model/CreateAppResult.cc b/idrsservice/src/model/CreateAppResult.cc new file mode 100644 index 000000000..cf628cf27 --- /dev/null +++ b/idrsservice/src/model/CreateAppResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateAppResult::CreateAppResult() : + ServiceResult() +{} + +CreateAppResult::CreateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResult::~CreateAppResult() +{} + +void CreateAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["CreatorName"].isNull()) + data_.creatorName = dataNode["CreatorName"].asString(); + if(!dataNode["Disabled"].isNull()) + data_.disabled = dataNode["Disabled"].asString() == "true"; + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateAppResult::getMessage()const +{ + return message_; +} + +CreateAppResult::Data CreateAppResult::getData()const +{ + return data_; +} + +std::string CreateAppResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateDepartmentRequest.cc b/idrsservice/src/model/CreateDepartmentRequest.cc new file mode 100644 index 000000000..3d772902b --- /dev/null +++ b/idrsservice/src/model/CreateDepartmentRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateDepartmentRequest; + +CreateDepartmentRequest::CreateDepartmentRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateDepartment") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDepartmentRequest::~CreateDepartmentRequest() +{} + +std::string CreateDepartmentRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDepartmentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDepartmentRequest::getDescription()const +{ + return description_; +} + +void CreateDepartmentRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateDepartmentRequest::getLabel()const +{ + return label_; +} + +void CreateDepartmentRequest::setLabel(const std::string& label) +{ + label_ = label; + setParameter("Label", label); +} + +std::string CreateDepartmentRequest::getName()const +{ + return name_; +} + +void CreateDepartmentRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/idrsservice/src/model/CreateDepartmentResult.cc b/idrsservice/src/model/CreateDepartmentResult.cc new file mode 100644 index 000000000..244c698ca --- /dev/null +++ b/idrsservice/src/model/CreateDepartmentResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateDepartmentResult::CreateDepartmentResult() : + ServiceResult() +{} + +CreateDepartmentResult::CreateDepartmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDepartmentResult::~CreateDepartmentResult() +{} + +void CreateDepartmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateDepartmentResult::getMessage()const +{ + return message_; +} + +CreateDepartmentResult::Data CreateDepartmentResult::getData()const +{ + return data_; +} + +std::string CreateDepartmentResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateLiveDetectionRequest.cc b/idrsservice/src/model/CreateLiveDetectionRequest.cc new file mode 100644 index 000000000..3eaf6ae7d --- /dev/null +++ b/idrsservice/src/model/CreateLiveDetectionRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateLiveDetectionRequest; + +CreateLiveDetectionRequest::CreateLiveDetectionRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateLiveDetection") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateLiveDetectionRequest::~CreateLiveDetectionRequest() +{} + +std::string CreateLiveDetectionRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateLiveDetectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateLiveDetectionRequest::getLiveId()const +{ + return liveId_; +} + +void CreateLiveDetectionRequest::setLiveId(const std::string& liveId) +{ + liveId_ = liveId; + setParameter("LiveId", liveId); +} + +std::string CreateLiveDetectionRequest::getUserId()const +{ + return userId_; +} + +void CreateLiveDetectionRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string CreateLiveDetectionRequest::getMetaUrl()const +{ + return metaUrl_; +} + +void CreateLiveDetectionRequest::setMetaUrl(const std::string& metaUrl) +{ + metaUrl_ = metaUrl; + setParameter("MetaUrl", metaUrl); +} + +std::string CreateLiveDetectionRequest::getRuleId()const +{ + return ruleId_; +} + +void CreateLiveDetectionRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/idrsservice/src/model/CreateLiveDetectionResult.cc b/idrsservice/src/model/CreateLiveDetectionResult.cc new file mode 100644 index 000000000..7bf8ea06a --- /dev/null +++ b/idrsservice/src/model/CreateLiveDetectionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateLiveDetectionResult::CreateLiveDetectionResult() : + ServiceResult() +{} + +CreateLiveDetectionResult::CreateLiveDetectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLiveDetectionResult::~CreateLiveDetectionResult() +{} + +void CreateLiveDetectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateLiveDetectionResult::getMessage()const +{ + return message_; +} + +CreateLiveDetectionResult::Data CreateLiveDetectionResult::getData()const +{ + return data_; +} + +std::string CreateLiveDetectionResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateLiveRequest.cc b/idrsservice/src/model/CreateLiveRequest.cc new file mode 100644 index 000000000..0e0202207 --- /dev/null +++ b/idrsservice/src/model/CreateLiveRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateLiveRequest; + +CreateLiveRequest::CreateLiveRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateLive") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateLiveRequest::~CreateLiveRequest() +{} + +std::string CreateLiveRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateLiveRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateLiveRequest::getUserId()const +{ + return userId_; +} + +void CreateLiveRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string CreateLiveRequest::getRtcCode()const +{ + return rtcCode_; +} + +void CreateLiveRequest::setRtcCode(const std::string& rtcCode) +{ + rtcCode_ = rtcCode; + setParameter("RtcCode", rtcCode); +} + +std::string CreateLiveRequest::getAppId()const +{ + return appId_; +} + +void CreateLiveRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string CreateLiveRequest::getName()const +{ + return name_; +} + +void CreateLiveRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/idrsservice/src/model/CreateLiveResult.cc b/idrsservice/src/model/CreateLiveResult.cc new file mode 100644 index 000000000..dd9d952b2 --- /dev/null +++ b/idrsservice/src/model/CreateLiveResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateLiveResult::CreateLiveResult() : + ServiceResult() +{} + +CreateLiveResult::CreateLiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLiveResult::~CreateLiveResult() +{} + +void CreateLiveResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Channel"].isNull()) + data_.channel = dataNode["Channel"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateLiveResult::getMessage()const +{ + return message_; +} + +CreateLiveResult::Data CreateLiveResult::getData()const +{ + return data_; +} + +std::string CreateLiveResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateRuleRequest.cc b/idrsservice/src/model/CreateRuleRequest.cc new file mode 100644 index 000000000..475740b64 --- /dev/null +++ b/idrsservice/src/model/CreateRuleRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateRuleRequest; + +CreateRuleRequest::CreateRuleRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateRule") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateRuleRequest::~CreateRuleRequest() +{} + +std::string CreateRuleRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateRuleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateRuleRequest::getContent()const +{ + return content_; +} + +void CreateRuleRequest::setContent(const std::string& content) +{ + content_ = content; + setParameter("Content", content); +} + +std::string CreateRuleRequest::getName()const +{ + return name_; +} + +void CreateRuleRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/idrsservice/src/model/CreateRuleResult.cc b/idrsservice/src/model/CreateRuleResult.cc new file mode 100644 index 000000000..94b0e0154 --- /dev/null +++ b/idrsservice/src/model/CreateRuleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateRuleResult::CreateRuleResult() : + ServiceResult() +{} + +CreateRuleResult::CreateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRuleResult::~CreateRuleResult() +{} + +void CreateRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Content"].isNull()) + data_.content = dataNode["Content"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateRuleResult::getMessage()const +{ + return message_; +} + +CreateRuleResult::Data CreateRuleResult::getData()const +{ + return data_; +} + +std::string CreateRuleResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateStatisticsRecordRequest.cc b/idrsservice/src/model/CreateStatisticsRecordRequest.cc new file mode 100644 index 000000000..d2f5ba87b --- /dev/null +++ b/idrsservice/src/model/CreateStatisticsRecordRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateStatisticsRecordRequest; + +CreateStatisticsRecordRequest::CreateStatisticsRecordRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateStatisticsRecord") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateStatisticsRecordRequest::~CreateStatisticsRecordRequest() +{} + +std::string CreateStatisticsRecordRequest::getBeginAt()const +{ + return beginAt_; +} + +void CreateStatisticsRecordRequest::setBeginAt(const std::string& beginAt) +{ + beginAt_ = beginAt; + setParameter("BeginAt", beginAt); +} + +std::string CreateStatisticsRecordRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateStatisticsRecordRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateStatisticsRecordRequest::getEndAt()const +{ + return endAt_; +} + +void CreateStatisticsRecordRequest::setEndAt(const std::string& endAt) +{ + endAt_ = endAt; + setParameter("EndAt", endAt); +} + +std::string CreateStatisticsRecordRequest::getDeviceId()const +{ + return deviceId_; +} + +void CreateStatisticsRecordRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +int CreateStatisticsRecordRequest::getDeviceType()const +{ + return deviceType_; +} + +void CreateStatisticsRecordRequest::setDeviceType(int deviceType) +{ + deviceType_ = deviceType; + setParameter("DeviceType", std::to_string(deviceType)); +} + +std::string CreateStatisticsRecordRequest::getAppId()const +{ + return appId_; +} + +void CreateStatisticsRecordRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/idrsservice/src/model/CreateStatisticsRecordResult.cc b/idrsservice/src/model/CreateStatisticsRecordResult.cc new file mode 100644 index 000000000..ca89c578c --- /dev/null +++ b/idrsservice/src/model/CreateStatisticsRecordResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateStatisticsRecordResult::CreateStatisticsRecordResult() : + ServiceResult() +{} + +CreateStatisticsRecordResult::CreateStatisticsRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStatisticsRecordResult::~CreateStatisticsRecordResult() +{} + +void CreateStatisticsRecordResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateStatisticsRecordResult::getMessage()const +{ + return message_; +} + +std::string CreateStatisticsRecordResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateStatisticsTaskRequest.cc b/idrsservice/src/model/CreateStatisticsTaskRequest.cc new file mode 100644 index 000000000..4c0b00f98 --- /dev/null +++ b/idrsservice/src/model/CreateStatisticsTaskRequest.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateStatisticsTaskRequest; + +CreateStatisticsTaskRequest::CreateStatisticsTaskRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateStatisticsTask") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateStatisticsTaskRequest::~CreateStatisticsTaskRequest() +{} + +std::string CreateStatisticsTaskRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateStatisticsTaskRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector CreateStatisticsTaskRequest::getDepartmentId()const +{ + return departmentId_; +} + +void CreateStatisticsTaskRequest::setDepartmentId(const std::vector& departmentId) +{ + departmentId_ = departmentId; + for(int dep1 = 0; dep1!= departmentId.size(); dep1++) { + setParameter("DepartmentId."+ std::to_string(dep1), departmentId.at(dep1)); + } +} + +std::string CreateStatisticsTaskRequest::getDateTo()const +{ + return dateTo_; +} + +void CreateStatisticsTaskRequest::setDateTo(const std::string& dateTo) +{ + dateTo_ = dateTo; + setParameter("DateTo", dateTo); +} + +std::string CreateStatisticsTaskRequest::getDateFrom()const +{ + return dateFrom_; +} + +void CreateStatisticsTaskRequest::setDateFrom(const std::string& dateFrom) +{ + dateFrom_ = dateFrom; + setParameter("DateFrom", dateFrom); +} + diff --git a/idrsservice/src/model/CreateStatisticsTaskResult.cc b/idrsservice/src/model/CreateStatisticsTaskResult.cc new file mode 100644 index 000000000..5894e819d --- /dev/null +++ b/idrsservice/src/model/CreateStatisticsTaskResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateStatisticsTaskResult::CreateStatisticsTaskResult() : + ServiceResult() +{} + +CreateStatisticsTaskResult::CreateStatisticsTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStatisticsTaskResult::~CreateStatisticsTaskResult() +{} + +void CreateStatisticsTaskResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateStatisticsTaskResult::getMessage()const +{ + return message_; +} + +std::string CreateStatisticsTaskResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateTaskGroupRequest.cc b/idrsservice/src/model/CreateTaskGroupRequest.cc new file mode 100644 index 000000000..54afa62dd --- /dev/null +++ b/idrsservice/src/model/CreateTaskGroupRequest.cc @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::CreateTaskGroupRequest; + +CreateTaskGroupRequest::CreateTaskGroupRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateTaskGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTaskGroupRequest::~CreateTaskGroupRequest() +{} + +std::string CreateTaskGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateTaskGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateTaskGroupRequest::getExpireAt()const +{ + return expireAt_; +} + +void CreateTaskGroupRequest::setExpireAt(const std::string& expireAt) +{ + expireAt_ = expireAt; + setParameter("ExpireAt", expireAt); +} + +std::vector CreateTaskGroupRequest::getDay()const +{ + return day_; +} + +void CreateTaskGroupRequest::setDay(const std::vector& day) +{ + day_ = day; + for(int dep1 = 0; dep1!= day.size(); dep1++) { + setParameter("Day."+ std::to_string(dep1), std::to_string(day.at(dep1))); + } +} + +std::string CreateTaskGroupRequest::getRunnableTimeTo()const +{ + return runnableTimeTo_; +} + +void CreateTaskGroupRequest::setRunnableTimeTo(const std::string& runnableTimeTo) +{ + runnableTimeTo_ = runnableTimeTo; + setParameter("RunnableTimeTo", runnableTimeTo); +} + +std::string CreateTaskGroupRequest::getTriggerPeriod()const +{ + return triggerPeriod_; +} + +void CreateTaskGroupRequest::setTriggerPeriod(const std::string& triggerPeriod) +{ + triggerPeriod_ = triggerPeriod; + setParameter("TriggerPeriod", triggerPeriod); +} + +std::string CreateTaskGroupRequest::getGroupName()const +{ + return groupName_; +} + +void CreateTaskGroupRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::vector CreateTaskGroupRequest::getVideoUrl()const +{ + return videoUrl_; +} + +void CreateTaskGroupRequest::setVideoUrl(const std::vector& videoUrl) +{ + videoUrl_ = videoUrl; + for(int dep1 = 0; dep1!= videoUrl.size(); dep1++) { + setParameter("VideoUrl."+ std::to_string(dep1), videoUrl.at(dep1)); + } +} + +std::string CreateTaskGroupRequest::getAppId()const +{ + return appId_; +} + +void CreateTaskGroupRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string CreateTaskGroupRequest::getRunnableTimeFrom()const +{ + return runnableTimeFrom_; +} + +void CreateTaskGroupRequest::setRunnableTimeFrom(const std::string& runnableTimeFrom) +{ + runnableTimeFrom_ = runnableTimeFrom; + setParameter("RunnableTimeFrom", runnableTimeFrom); +} + +std::string CreateTaskGroupRequest::getRuleId()const +{ + return ruleId_; +} + +void CreateTaskGroupRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/idrsservice/src/model/CreateTaskGroupResult.cc b/idrsservice/src/model/CreateTaskGroupResult.cc new file mode 100644 index 000000000..c0c6f42af --- /dev/null +++ b/idrsservice/src/model/CreateTaskGroupResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateTaskGroupResult::CreateTaskGroupResult() : + ServiceResult() +{} + +CreateTaskGroupResult::CreateTaskGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTaskGroupResult::~CreateTaskGroupResult() +{} + +void CreateTaskGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CompletedTasks"].isNull()) + data_.completedTasks = std::stoi(dataNode["CompletedTasks"].asString()); + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["RuleId"].isNull()) + data_.ruleId = dataNode["RuleId"].asString(); + if(!dataNode["RuleName"].isNull()) + data_.ruleName = dataNode["RuleName"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["TotalTasks"].isNull()) + data_.totalTasks = std::stoi(dataNode["TotalTasks"].asString()); + auto allTaskIds = dataNode["TaskIds"]["TaskIds"]; + for (auto value : allTaskIds) + data_.taskIds.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateTaskGroupResult::getMessage()const +{ + return message_; +} + +CreateTaskGroupResult::Data CreateTaskGroupResult::getData()const +{ + return data_; +} + +std::string CreateTaskGroupResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/CreateUserDepartmentsRequest.cc b/idrsservice/src/model/CreateUserDepartmentsRequest.cc new file mode 100644 index 000000000..753b84d9e --- /dev/null +++ b/idrsservice/src/model/CreateUserDepartmentsRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::CreateUserDepartmentsRequest; + +CreateUserDepartmentsRequest::CreateUserDepartmentsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "CreateUserDepartments") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateUserDepartmentsRequest::~CreateUserDepartmentsRequest() +{} + +std::vector CreateUserDepartmentsRequest::getDepartmentId()const +{ + return departmentId_; +} + +void CreateUserDepartmentsRequest::setDepartmentId(const std::vector& departmentId) +{ + departmentId_ = departmentId; + for(int dep1 = 0; dep1!= departmentId.size(); dep1++) { + setParameter("DepartmentId."+ std::to_string(dep1), departmentId.at(dep1)); + } +} + +std::vector CreateUserDepartmentsRequest::getUserId()const +{ + return userId_; +} + +void CreateUserDepartmentsRequest::setUserId(const std::vector& userId) +{ + userId_ = userId; + for(int dep1 = 0; dep1!= userId.size(); dep1++) { + setParameter("UserId."+ std::to_string(dep1), userId.at(dep1)); + } +} + diff --git a/idrsservice/src/model/CreateUserDepartmentsResult.cc b/idrsservice/src/model/CreateUserDepartmentsResult.cc new file mode 100644 index 000000000..b93fc9127 --- /dev/null +++ b/idrsservice/src/model/CreateUserDepartmentsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +CreateUserDepartmentsResult::CreateUserDepartmentsResult() : + ServiceResult() +{} + +CreateUserDepartmentsResult::CreateUserDepartmentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserDepartmentsResult::~CreateUserDepartmentsResult() +{} + +void CreateUserDepartmentsResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateUserDepartmentsResult::getMessage()const +{ + return message_; +} + +std::string CreateUserDepartmentsResult::getData()const +{ + return data_; +} + +std::string CreateUserDepartmentsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/DeleteAppRequest.cc b/idrsservice/src/model/DeleteAppRequest.cc new file mode 100644 index 000000000..56a7e5a7b --- /dev/null +++ b/idrsservice/src/model/DeleteAppRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::DeleteAppRequest; + +DeleteAppRequest::DeleteAppRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "DeleteApp") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAppRequest::~DeleteAppRequest() +{} + +std::string DeleteAppRequest::getId()const +{ + return id_; +} + +void DeleteAppRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/DeleteAppResult.cc b/idrsservice/src/model/DeleteAppResult.cc new file mode 100644 index 000000000..82521dfd9 --- /dev/null +++ b/idrsservice/src/model/DeleteAppResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +DeleteAppResult::DeleteAppResult() : + ServiceResult() +{} + +DeleteAppResult::DeleteAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppResult::~DeleteAppResult() +{} + +void DeleteAppResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteAppResult::getMessage()const +{ + return message_; +} + +std::string DeleteAppResult::getData()const +{ + return data_; +} + +std::string DeleteAppResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/DeleteDepartmentRequest.cc b/idrsservice/src/model/DeleteDepartmentRequest.cc new file mode 100644 index 000000000..ec215ce3f --- /dev/null +++ b/idrsservice/src/model/DeleteDepartmentRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::DeleteDepartmentRequest; + +DeleteDepartmentRequest::DeleteDepartmentRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "DeleteDepartment") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDepartmentRequest::~DeleteDepartmentRequest() +{} + +std::string DeleteDepartmentRequest::getId()const +{ + return id_; +} + +void DeleteDepartmentRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/DeleteDepartmentResult.cc b/idrsservice/src/model/DeleteDepartmentResult.cc new file mode 100644 index 000000000..f7176f715 --- /dev/null +++ b/idrsservice/src/model/DeleteDepartmentResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +DeleteDepartmentResult::DeleteDepartmentResult() : + ServiceResult() +{} + +DeleteDepartmentResult::DeleteDepartmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDepartmentResult::~DeleteDepartmentResult() +{} + +void DeleteDepartmentResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteDepartmentResult::getMessage()const +{ + return message_; +} + +std::string DeleteDepartmentResult::getData()const +{ + return data_; +} + +std::string DeleteDepartmentResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/DeleteRuleRequest.cc b/idrsservice/src/model/DeleteRuleRequest.cc new file mode 100644 index 000000000..8af0b8b0c --- /dev/null +++ b/idrsservice/src/model/DeleteRuleRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::DeleteRuleRequest; + +DeleteRuleRequest::DeleteRuleRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "DeleteRule") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteRuleRequest::~DeleteRuleRequest() +{} + +std::string DeleteRuleRequest::getId()const +{ + return id_; +} + +void DeleteRuleRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/DeleteRuleResult.cc b/idrsservice/src/model/DeleteRuleResult.cc new file mode 100644 index 000000000..db283d1c0 --- /dev/null +++ b/idrsservice/src/model/DeleteRuleResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +DeleteRuleResult::DeleteRuleResult() : + ServiceResult() +{} + +DeleteRuleResult::DeleteRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRuleResult::~DeleteRuleResult() +{} + +void DeleteRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Content"].isNull()) + data_.content = dataNode["Content"].asString(); + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteRuleResult::getMessage()const +{ + return message_; +} + +DeleteRuleResult::Data DeleteRuleResult::getData()const +{ + return data_; +} + +std::string DeleteRuleResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/DeleteUserDepartmentsRequest.cc b/idrsservice/src/model/DeleteUserDepartmentsRequest.cc new file mode 100644 index 000000000..4535e3765 --- /dev/null +++ b/idrsservice/src/model/DeleteUserDepartmentsRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::DeleteUserDepartmentsRequest; + +DeleteUserDepartmentsRequest::DeleteUserDepartmentsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "DeleteUserDepartments") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteUserDepartmentsRequest::~DeleteUserDepartmentsRequest() +{} + +std::vector DeleteUserDepartmentsRequest::getDepartmentId()const +{ + return departmentId_; +} + +void DeleteUserDepartmentsRequest::setDepartmentId(const std::vector& departmentId) +{ + departmentId_ = departmentId; + for(int dep1 = 0; dep1!= departmentId.size(); dep1++) { + setParameter("DepartmentId."+ std::to_string(dep1), departmentId.at(dep1)); + } +} + +std::vector DeleteUserDepartmentsRequest::getUserId()const +{ + return userId_; +} + +void DeleteUserDepartmentsRequest::setUserId(const std::vector& userId) +{ + userId_ = userId; + for(int dep1 = 0; dep1!= userId.size(); dep1++) { + setBodyParameter("UserId."+ std::to_string(dep1), userId.at(dep1)); + } +} + diff --git a/idrsservice/src/model/DeleteUserDepartmentsResult.cc b/idrsservice/src/model/DeleteUserDepartmentsResult.cc new file mode 100644 index 000000000..6791cff0c --- /dev/null +++ b/idrsservice/src/model/DeleteUserDepartmentsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +DeleteUserDepartmentsResult::DeleteUserDepartmentsResult() : + ServiceResult() +{} + +DeleteUserDepartmentsResult::DeleteUserDepartmentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserDepartmentsResult::~DeleteUserDepartmentsResult() +{} + +void DeleteUserDepartmentsResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteUserDepartmentsResult::getMessage()const +{ + return message_; +} + +std::string DeleteUserDepartmentsResult::getData()const +{ + return data_; +} + +std::string DeleteUserDepartmentsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/DeleteUserRequest.cc b/idrsservice/src/model/DeleteUserRequest.cc new file mode 100644 index 000000000..f008084d8 --- /dev/null +++ b/idrsservice/src/model/DeleteUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "DeleteUser") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteUserRequest::~DeleteUserRequest() +{} + +std::string DeleteUserRequest::getId()const +{ + return id_; +} + +void DeleteUserRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/DeleteUserResult.cc b/idrsservice/src/model/DeleteUserResult.cc new file mode 100644 index 000000000..28dfdf121 --- /dev/null +++ b/idrsservice/src/model/DeleteUserResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +DeleteUserResult::DeleteUserResult() : + ServiceResult() +{} + +DeleteUserResult::DeleteUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserResult::~DeleteUserResult() +{} + +void DeleteUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allErrorsNode = value["Errors"]["ErrorsItem"]; + for (auto valueErrorsErrorsItem : allErrorsNode) + { + ErrorsItem errorsObject; + if(!valueErrorsErrorsItem["Field"].isNull()) + errorsObject.field = valueErrorsErrorsItem["Field"].asString(); + if(!valueErrorsErrorsItem["Message"].isNull()) + errorsObject.message = valueErrorsErrorsItem["Message"].asString(); + errors_.push_back(errorsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector DeleteUserResult::getErrors()const +{ + return errors_; +} + +std::string DeleteUserResult::getMessage()const +{ + return message_; +} + +std::string DeleteUserResult::getData()const +{ + return data_; +} + +std::string DeleteUserResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ExitLiveRequest.cc b/idrsservice/src/model/ExitLiveRequest.cc new file mode 100644 index 000000000..fc3f10a79 --- /dev/null +++ b/idrsservice/src/model/ExitLiveRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ExitLiveRequest; + +ExitLiveRequest::ExitLiveRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ExitLive") +{ + setMethod(HttpRequest::Method::Post); +} + +ExitLiveRequest::~ExitLiveRequest() +{} + +std::string ExitLiveRequest::getChannel()const +{ + return channel_; +} + +void ExitLiveRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setParameter("Channel", channel); +} + +std::string ExitLiveRequest::getUserId()const +{ + return userId_; +} + +void ExitLiveRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ExitLiveRequest::getRtcCode()const +{ + return rtcCode_; +} + +void ExitLiveRequest::setRtcCode(const std::string& rtcCode) +{ + rtcCode_ = rtcCode; + setParameter("RtcCode", rtcCode); +} + diff --git a/idrsservice/src/model/ExitLiveResult.cc b/idrsservice/src/model/ExitLiveResult.cc new file mode 100644 index 000000000..ca26afe68 --- /dev/null +++ b/idrsservice/src/model/ExitLiveResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ExitLiveResult::ExitLiveResult() : + ServiceResult() +{} + +ExitLiveResult::ExitLiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExitLiveResult::~ExitLiveResult() +{} + +void ExitLiveResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Code"].isNull()) + data_.code = std::stoi(dataNode["Code"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ExitLiveResult::getMessage()const +{ + return message_; +} + +ExitLiveResult::Data ExitLiveResult::getData()const +{ + return data_; +} + +std::string ExitLiveResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetAppRequest.cc b/idrsservice/src/model/GetAppRequest.cc new file mode 100644 index 000000000..9b3a72ee1 --- /dev/null +++ b/idrsservice/src/model/GetAppRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::GetAppRequest; + +GetAppRequest::GetAppRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetApp") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAppRequest::~GetAppRequest() +{} + +std::string GetAppRequest::getPackageName()const +{ + return packageName_; +} + +void GetAppRequest::setPackageName(const std::string& packageName) +{ + packageName_ = packageName; + setParameter("PackageName", packageName); +} + +std::string GetAppRequest::getDeviceId()const +{ + return deviceId_; +} + +void GetAppRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + +std::string GetAppRequest::getId()const +{ + return id_; +} + +void GetAppRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/GetAppResult.cc b/idrsservice/src/model/GetAppResult.cc new file mode 100644 index 000000000..72e269d17 --- /dev/null +++ b/idrsservice/src/model/GetAppResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetAppResult::GetAppResult() : + ServiceResult() +{} + +GetAppResult::GetAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAppResult::~GetAppResult() +{} + +void GetAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = std::stoi(dataNode["CreatedAt"].asString()); + if(!dataNode["Disabled"].isNull()) + data_.disabled = dataNode["Disabled"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetAppResult::getMessage()const +{ + return message_; +} + +GetAppResult::Data GetAppResult::getData()const +{ + return data_; +} + +std::string GetAppResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetDepartmentRequest.cc b/idrsservice/src/model/GetDepartmentRequest.cc new file mode 100644 index 000000000..78a9cc2a9 --- /dev/null +++ b/idrsservice/src/model/GetDepartmentRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetDepartmentRequest; + +GetDepartmentRequest::GetDepartmentRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetDepartment") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDepartmentRequest::~GetDepartmentRequest() +{} + +std::string GetDepartmentRequest::getId()const +{ + return id_; +} + +void GetDepartmentRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/GetDepartmentResult.cc b/idrsservice/src/model/GetDepartmentResult.cc new file mode 100644 index 000000000..862d218fe --- /dev/null +++ b/idrsservice/src/model/GetDepartmentResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetDepartmentResult::GetDepartmentResult() : + ServiceResult() +{} + +GetDepartmentResult::GetDepartmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDepartmentResult::~GetDepartmentResult() +{} + +void GetDepartmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["UpdatedAt"].isNull()) + data_.updatedAt = dataNode["UpdatedAt"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetDepartmentResult::getMessage()const +{ + return message_; +} + +GetDepartmentResult::Data GetDepartmentResult::getData()const +{ + return data_; +} + +std::string GetDepartmentResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetDetectEvaluationRequest.cc b/idrsservice/src/model/GetDetectEvaluationRequest.cc new file mode 100644 index 000000000..cbd998340 --- /dev/null +++ b/idrsservice/src/model/GetDetectEvaluationRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::GetDetectEvaluationRequest; + +GetDetectEvaluationRequest::GetDetectEvaluationRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetDetectEvaluation") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDetectEvaluationRequest::~GetDetectEvaluationRequest() +{} + +std::string GetDetectEvaluationRequest::getEndTime()const +{ + return endTime_; +} + +void GetDetectEvaluationRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string GetDetectEvaluationRequest::getStartTime()const +{ + return startTime_; +} + +void GetDetectEvaluationRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + diff --git a/idrsservice/src/model/GetDetectEvaluationResult.cc b/idrsservice/src/model/GetDetectEvaluationResult.cc new file mode 100644 index 000000000..c6e5f4582 --- /dev/null +++ b/idrsservice/src/model/GetDetectEvaluationResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetDetectEvaluationResult::GetDetectEvaluationResult() : + ServiceResult() +{} + +GetDetectEvaluationResult::GetDetectEvaluationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDetectEvaluationResult::~GetDetectEvaluationResult() +{} + +void GetDetectEvaluationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Day"].isNull()) + dataObject.day = valueDataDataItem["Day"].asString(); + auto allEvaluationItemListNode = valueDataDataItem["EvaluationItemList"]["EvaluationItemListItem"]; + for (auto valueDataDataItemEvaluationItemListEvaluationItemListItem : allEvaluationItemListNode) + { + DataItem::EvaluationItemListItem evaluationItemListObject; + if(!valueDataDataItemEvaluationItemListEvaluationItemListItem["Name"].isNull()) + evaluationItemListObject.name = valueDataDataItemEvaluationItemListEvaluationItemListItem["Name"].asString(); + if(!valueDataDataItemEvaluationItemListEvaluationItemListItem["HandleCount"].isNull()) + evaluationItemListObject.handleCount = std::stoi(valueDataDataItemEvaluationItemListEvaluationItemListItem["HandleCount"].asString()); + if(!valueDataDataItemEvaluationItemListEvaluationItemListItem["SuccessCount"].isNull()) + evaluationItemListObject.successCount = std::stoi(valueDataDataItemEvaluationItemListEvaluationItemListItem["SuccessCount"].asString()); + if(!valueDataDataItemEvaluationItemListEvaluationItemListItem["SuccessRate"].isNull()) + evaluationItemListObject.successRate = valueDataDataItemEvaluationItemListEvaluationItemListItem["SuccessRate"].asString(); + dataObject.evaluationItemList.push_back(evaluationItemListObject); + } + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetDetectEvaluationResult::getMessage()const +{ + return message_; +} + +std::vector GetDetectEvaluationResult::getData()const +{ + return data_; +} + +std::string GetDetectEvaluationResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetDetectionRequest.cc b/idrsservice/src/model/GetDetectionRequest.cc new file mode 100644 index 000000000..e9763a1cb --- /dev/null +++ b/idrsservice/src/model/GetDetectionRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetDetectionRequest; + +GetDetectionRequest::GetDetectionRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetDetection") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDetectionRequest::~GetDetectionRequest() +{} + +std::string GetDetectionRequest::getId()const +{ + return id_; +} + +void GetDetectionRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/GetDetectionResult.cc b/idrsservice/src/model/GetDetectionResult.cc new file mode 100644 index 000000000..8feec4c16 --- /dev/null +++ b/idrsservice/src/model/GetDetectionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetDetectionResult::GetDetectionResult() : + ServiceResult() +{} + +GetDetectionResult::GetDetectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDetectionResult::~GetDetectionResult() +{} + +void GetDetectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["DepartmentId"].isNull()) + data_.departmentId = dataNode["DepartmentId"].asString(); + if(!dataNode["DepartmentName"].isNull()) + data_.departmentName = dataNode["DepartmentName"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["RecordingType"].isNull()) + data_.recordingType = dataNode["RecordingType"].asString(); + if(!dataNode["RuleId"].isNull()) + data_.ruleId = dataNode["RuleId"].asString(); + if(!dataNode["RuleName"].isNull()) + data_.ruleName = dataNode["RuleName"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + auto allTasksNode = dataNode["Tasks"]["TasksItem"]; + for (auto dataNodeTasksTasksItem : allTasksNode) + { + Data::TasksItem tasksItemObject; + if(!dataNodeTasksTasksItem["CreatedAt"].isNull()) + tasksItemObject.createdAt = dataNodeTasksTasksItem["CreatedAt"].asString(); + if(!dataNodeTasksTasksItem["Id"].isNull()) + tasksItemObject.id = dataNodeTasksTasksItem["Id"].asString(); + if(!dataNodeTasksTasksItem["Status"].isNull()) + tasksItemObject.status = dataNodeTasksTasksItem["Status"].asString(); + if(!dataNodeTasksTasksItem["VideoMetaUrl"].isNull()) + tasksItemObject.videoMetaUrl = dataNodeTasksTasksItem["VideoMetaUrl"].asString(); + if(!dataNodeTasksTasksItem["VideoUrl"].isNull()) + tasksItemObject.videoUrl = dataNodeTasksTasksItem["VideoUrl"].asString(); + data_.tasks.push_back(tasksItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetDetectionResult::getMessage()const +{ + return message_; +} + +GetDetectionResult::Data GetDetectionResult::getData()const +{ + return data_; +} + +std::string GetDetectionResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetModelSignedUrlRequest.cc b/idrsservice/src/model/GetModelSignedUrlRequest.cc new file mode 100644 index 000000000..76382c0cc --- /dev/null +++ b/idrsservice/src/model/GetModelSignedUrlRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::GetModelSignedUrlRequest; + +GetModelSignedUrlRequest::GetModelSignedUrlRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetModelSignedUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +GetModelSignedUrlRequest::~GetModelSignedUrlRequest() +{} + +std::vector GetModelSignedUrlRequest::getModelPath()const +{ + return modelPath_; +} + +void GetModelSignedUrlRequest::setModelPath(const std::vector& modelPath) +{ + modelPath_ = modelPath; + for(int dep1 = 0; dep1!= modelPath.size(); dep1++) { + setBodyParameter("ModelPath."+ std::to_string(dep1), modelPath.at(dep1)); + } +} + diff --git a/idrsservice/src/model/GetModelSignedUrlResult.cc b/idrsservice/src/model/GetModelSignedUrlResult.cc new file mode 100644 index 000000000..1e7890ce3 --- /dev/null +++ b/idrsservice/src/model/GetModelSignedUrlResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetModelSignedUrlResult::GetModelSignedUrlResult() : + ServiceResult() +{} + +GetModelSignedUrlResult::GetModelSignedUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetModelSignedUrlResult::~GetModelSignedUrlResult() +{} + +void GetModelSignedUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["ModelPath"].isNull()) + dataObject.modelPath = valueDataDataItem["ModelPath"].asString(); + if(!valueDataDataItem["PublicUrl"].isNull()) + dataObject.publicUrl = valueDataDataItem["PublicUrl"].asString(); + if(!valueDataDataItem["Md5"].isNull()) + dataObject.md5 = valueDataDataItem["Md5"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetModelSignedUrlResult::getMessage()const +{ + return message_; +} + +std::vector GetModelSignedUrlResult::getData()const +{ + return data_; +} + +std::string GetModelSignedUrlResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetPreSignedUrlRequest.cc b/idrsservice/src/model/GetPreSignedUrlRequest.cc new file mode 100644 index 000000000..738fe3a6e --- /dev/null +++ b/idrsservice/src/model/GetPreSignedUrlRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetPreSignedUrlRequest; + +GetPreSignedUrlRequest::GetPreSignedUrlRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetPreSignedUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPreSignedUrlRequest::~GetPreSignedUrlRequest() +{} + +std::string GetPreSignedUrlRequest::getPrefix()const +{ + return prefix_; +} + +void GetPreSignedUrlRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setBodyParameter("Prefix", prefix); +} + diff --git a/idrsservice/src/model/GetPreSignedUrlResult.cc b/idrsservice/src/model/GetPreSignedUrlResult.cc new file mode 100644 index 000000000..73afd21cf --- /dev/null +++ b/idrsservice/src/model/GetPreSignedUrlResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetPreSignedUrlResult::GetPreSignedUrlResult() : + ServiceResult() +{} + +GetPreSignedUrlResult::GetPreSignedUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPreSignedUrlResult::~GetPreSignedUrlResult() +{} + +void GetPreSignedUrlResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetPreSignedUrlResult::getMessage()const +{ + return message_; +} + +std::string GetPreSignedUrlResult::getData()const +{ + return data_; +} + +std::string GetPreSignedUrlResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetRuleRequest.cc b/idrsservice/src/model/GetRuleRequest.cc new file mode 100644 index 000000000..03a632004 --- /dev/null +++ b/idrsservice/src/model/GetRuleRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetRuleRequest; + +GetRuleRequest::GetRuleRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetRule") +{ + setMethod(HttpRequest::Method::Post); +} + +GetRuleRequest::~GetRuleRequest() +{} + +std::string GetRuleRequest::getId()const +{ + return id_; +} + +void GetRuleRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/GetRuleResult.cc b/idrsservice/src/model/GetRuleResult.cc new file mode 100644 index 000000000..5a608ecf7 --- /dev/null +++ b/idrsservice/src/model/GetRuleResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetRuleResult::GetRuleResult() : + ServiceResult() +{} + +GetRuleResult::GetRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRuleResult::~GetRuleResult() +{} + +void GetRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Content"].isNull()) + data_.content = dataNode["Content"].asString(); + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetRuleResult::getMessage()const +{ + return message_; +} + +GetRuleResult::Data GetRuleResult::getData()const +{ + return data_; +} + +std::string GetRuleResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetServiceConfigurationRequest.cc b/idrsservice/src/model/GetServiceConfigurationRequest.cc new file mode 100644 index 000000000..2f52389df --- /dev/null +++ b/idrsservice/src/model/GetServiceConfigurationRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetServiceConfigurationRequest; + +GetServiceConfigurationRequest::GetServiceConfigurationRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetServiceConfiguration") +{ + setMethod(HttpRequest::Method::Post); +} + +GetServiceConfigurationRequest::~GetServiceConfigurationRequest() +{} + +std::string GetServiceConfigurationRequest::getUserId()const +{ + return userId_; +} + +void GetServiceConfigurationRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + diff --git a/idrsservice/src/model/GetServiceConfigurationResult.cc b/idrsservice/src/model/GetServiceConfigurationResult.cc new file mode 100644 index 000000000..f17540bc4 --- /dev/null +++ b/idrsservice/src/model/GetServiceConfigurationResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetServiceConfigurationResult::GetServiceConfigurationResult() : + ServiceResult() +{} + +GetServiceConfigurationResult::GetServiceConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceConfigurationResult::~GetServiceConfigurationResult() +{} + +void GetServiceConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ClientQueueSize"].isNull()) + data_.clientQueueSize = std::stoi(dataNode["ClientQueueSize"].asString()); + if(!dataNode["LiveRecordAll"].isNull()) + data_.liveRecordAll = dataNode["LiveRecordAll"].asString() == "true"; + if(!dataNode["LiveRecordEveryOne"].isNull()) + data_.liveRecordEveryOne = dataNode["LiveRecordEveryOne"].asString() == "true"; + if(!dataNode["LiveRecordLayout"].isNull()) + data_.liveRecordLayout = std::stoi(dataNode["LiveRecordLayout"].asString()); + if(!dataNode["LiveRecordTaskProfile"].isNull()) + data_.liveRecordTaskProfile = dataNode["LiveRecordTaskProfile"].asString(); + if(!dataNode["TaskItemQueueSize"].isNull()) + data_.taskItemQueueSize = std::stoi(dataNode["TaskItemQueueSize"].asString()); + if(!dataNode["LiveRecordMaxClient"].isNull()) + data_.liveRecordMaxClient = std::stoi(dataNode["LiveRecordMaxClient"].asString()); + if(!dataNode["LiveRecordVideoResolution"].isNull()) + data_.liveRecordVideoResolution = std::stoi(dataNode["LiveRecordVideoResolution"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetServiceConfigurationResult::getMessage()const +{ + return message_; +} + +GetServiceConfigurationResult::Data GetServiceConfigurationResult::getData()const +{ + return data_; +} + +std::string GetServiceConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetSignedUrlRequest.cc b/idrsservice/src/model/GetSignedUrlRequest.cc new file mode 100644 index 000000000..cd3500aea --- /dev/null +++ b/idrsservice/src/model/GetSignedUrlRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetSignedUrlRequest; + +GetSignedUrlRequest::GetSignedUrlRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetSignedUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSignedUrlRequest::~GetSignedUrlRequest() +{} + +std::string GetSignedUrlRequest::getFileUrl()const +{ + return fileUrl_; +} + +void GetSignedUrlRequest::setFileUrl(const std::string& fileUrl) +{ + fileUrl_ = fileUrl; + setBodyParameter("FileUrl", fileUrl); +} + diff --git a/idrsservice/src/model/GetSignedUrlResult.cc b/idrsservice/src/model/GetSignedUrlResult.cc new file mode 100644 index 000000000..a25b668e1 --- /dev/null +++ b/idrsservice/src/model/GetSignedUrlResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetSignedUrlResult::GetSignedUrlResult() : + ServiceResult() +{} + +GetSignedUrlResult::GetSignedUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSignedUrlResult::~GetSignedUrlResult() +{} + +void GetSignedUrlResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetSignedUrlResult::getMessage()const +{ + return message_; +} + +std::string GetSignedUrlResult::getData()const +{ + return data_; +} + +std::string GetSignedUrlResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetSlrConfigurationRequest.cc b/idrsservice/src/model/GetSlrConfigurationRequest.cc new file mode 100644 index 000000000..a2353b9bd --- /dev/null +++ b/idrsservice/src/model/GetSlrConfigurationRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetSlrConfigurationRequest; + +GetSlrConfigurationRequest::GetSlrConfigurationRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetSlrConfiguration") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSlrConfigurationRequest::~GetSlrConfigurationRequest() +{} + +std::string GetSlrConfigurationRequest::getUserId()const +{ + return userId_; +} + +void GetSlrConfigurationRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + diff --git a/idrsservice/src/model/GetSlrConfigurationResult.cc b/idrsservice/src/model/GetSlrConfigurationResult.cc new file mode 100644 index 000000000..512ae9b4a --- /dev/null +++ b/idrsservice/src/model/GetSlrConfigurationResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetSlrConfigurationResult::GetSlrConfigurationResult() : + ServiceResult() +{} + +GetSlrConfigurationResult::GetSlrConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSlrConfigurationResult::~GetSlrConfigurationResult() +{} + +void GetSlrConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["MqSubscribe"].isNull()) + data_.mqSubscribe = dataNode["MqSubscribe"].asString() == "true"; + if(!dataNode["MqEndpoint"].isNull()) + data_.mqEndpoint = dataNode["MqEndpoint"].asString(); + if(!dataNode["MqInstanceId"].isNull()) + data_.mqInstanceId = dataNode["MqInstanceId"].asString(); + if(!dataNode["MqTopic"].isNull()) + data_.mqTopic = dataNode["MqTopic"].asString(); + if(!dataNode["MqGroupId"].isNull()) + data_.mqGroupId = dataNode["MqGroupId"].asString(); + auto allMqEventList = dataNode["MqEventList"]["MqEventList"]; + for (auto value : allMqEventList) + data_.mqEventList.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetSlrConfigurationResult::getMessage()const +{ + return message_; +} + +GetSlrConfigurationResult::Data GetSlrConfigurationResult::getData()const +{ + return data_; +} + +std::string GetSlrConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetStatisticsRequest.cc b/idrsservice/src/model/GetStatisticsRequest.cc new file mode 100644 index 000000000..68dcd67ec --- /dev/null +++ b/idrsservice/src/model/GetStatisticsRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetStatisticsRequest; + +GetStatisticsRequest::GetStatisticsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +GetStatisticsRequest::~GetStatisticsRequest() +{} + +std::vector GetStatisticsRequest::getDepartmentId()const +{ + return departmentId_; +} + +void GetStatisticsRequest::setDepartmentId(const std::vector& departmentId) +{ + departmentId_ = departmentId; + for(int dep1 = 0; dep1!= departmentId.size(); dep1++) { + setParameter("DepartmentId."+ std::to_string(dep1), departmentId.at(dep1)); + } +} + +std::string GetStatisticsRequest::getDateTo()const +{ + return dateTo_; +} + +void GetStatisticsRequest::setDateTo(const std::string& dateTo) +{ + dateTo_ = dateTo; + setParameter("DateTo", dateTo); +} + +std::string GetStatisticsRequest::getDateFrom()const +{ + return dateFrom_; +} + +void GetStatisticsRequest::setDateFrom(const std::string& dateFrom) +{ + dateFrom_ = dateFrom; + setParameter("DateFrom", dateFrom); +} + diff --git a/idrsservice/src/model/GetStatisticsResult.cc b/idrsservice/src/model/GetStatisticsResult.cc new file mode 100644 index 000000000..5dbeff0b2 --- /dev/null +++ b/idrsservice/src/model/GetStatisticsResult.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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetStatisticsResult::GetStatisticsResult() : + ServiceResult() +{} + +GetStatisticsResult::GetStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStatisticsResult::~GetStatisticsResult() +{} + +void GetStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["ClientCount"].isNull()) + itemsItemObject.clientCount = std::stol(dataNodeItemsItemsItem["ClientCount"].asString()); + if(!dataNodeItemsItemsItem["CloudCount"].isNull()) + itemsItemObject.cloudCount = std::stol(dataNodeItemsItemsItem["CloudCount"].asString()); + if(!dataNodeItemsItemsItem["DepartmentName"].isNull()) + itemsItemObject.departmentName = dataNodeItemsItemsItem["DepartmentName"].asString(); + if(!dataNodeItemsItemsItem["Month"].isNull()) + itemsItemObject.month = dataNodeItemsItemsItem["Month"].asString(); + auto allDetailNode = dataNodeItemsItemsItem["Detail"]["DetailItem"]; + for (auto dataNodeItemsItemsItemDetailDetailItem : allDetailNode) + { + Data::ItemsItem::DetailItem detailObject; + if(!dataNodeItemsItemsItemDetailDetailItem["ClientCount"].isNull()) + detailObject.clientCount = std::stol(dataNodeItemsItemsItemDetailDetailItem["ClientCount"].asString()); + if(!dataNodeItemsItemsItemDetailDetailItem["CloudCount"].isNull()) + detailObject.cloudCount = std::stol(dataNodeItemsItemsItemDetailDetailItem["CloudCount"].asString()); + if(!dataNodeItemsItemsItemDetailDetailItem["DepartmentId"].isNull()) + detailObject.departmentId = dataNodeItemsItemsItemDetailDetailItem["DepartmentId"].asString(); + if(!dataNodeItemsItemsItemDetailDetailItem["DepartmentName"].isNull()) + detailObject.departmentName = dataNodeItemsItemsItemDetailDetailItem["DepartmentName"].asString(); + if(!dataNodeItemsItemsItemDetailDetailItem["Month"].isNull()) + detailObject.month = std::stoi(dataNodeItemsItemsItemDetailDetailItem["Month"].asString()); + itemsItemObject.detail.push_back(detailObject); + } + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetStatisticsResult::getMessage()const +{ + return message_; +} + +GetStatisticsResult::Data GetStatisticsResult::getData()const +{ + return data_; +} + +std::string GetStatisticsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetTaskGroupRequest.cc b/idrsservice/src/model/GetTaskGroupRequest.cc new file mode 100644 index 000000000..85b2d4996 --- /dev/null +++ b/idrsservice/src/model/GetTaskGroupRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetTaskGroupRequest; + +GetTaskGroupRequest::GetTaskGroupRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetTaskGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTaskGroupRequest::~GetTaskGroupRequest() +{} + +std::string GetTaskGroupRequest::getId()const +{ + return id_; +} + +void GetTaskGroupRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/GetTaskGroupResult.cc b/idrsservice/src/model/GetTaskGroupResult.cc new file mode 100644 index 000000000..2f36af0ed --- /dev/null +++ b/idrsservice/src/model/GetTaskGroupResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +GetTaskGroupResult::GetTaskGroupResult() : + ServiceResult() +{} + +GetTaskGroupResult::GetTaskGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskGroupResult::~GetTaskGroupResult() +{} + +void GetTaskGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CompletedTasks"].isNull()) + data_.completedTasks = std::stoi(dataNode["CompletedTasks"].asString()); + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["RuleId"].isNull()) + data_.ruleId = dataNode["RuleId"].asString(); + if(!dataNode["RuleName"].isNull()) + data_.ruleName = dataNode["RuleName"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["TotalTasks"].isNull()) + data_.totalTasks = std::stoi(dataNode["TotalTasks"].asString()); + auto allTaskIds = dataNode["TaskIds"]["TaskIds"]; + for (auto value : allTaskIds) + data_.taskIds.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetTaskGroupResult::getMessage()const +{ + return message_; +} + +GetTaskGroupResult::Data GetTaskGroupResult::getData()const +{ + return data_; +} + +std::string GetTaskGroupResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetTaskRequest.cc b/idrsservice/src/model/GetTaskRequest.cc new file mode 100644 index 000000000..cd1fd08e1 --- /dev/null +++ b/idrsservice/src/model/GetTaskRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetTaskRequest; + +GetTaskRequest::GetTaskRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetTask") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTaskRequest::~GetTaskRequest() +{} + +std::string GetTaskRequest::getTaskId()const +{ + return taskId_; +} + +void GetTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/idrsservice/src/model/GetTaskResult.cc b/idrsservice/src/model/GetTaskResult.cc new file mode 100644 index 000000000..e2f6090ab --- /dev/null +++ b/idrsservice/src/model/GetTaskResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::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 dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["VideoUrl"].isNull()) + data_.videoUrl = dataNode["VideoUrl"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetTaskResult::getMessage()const +{ + return message_; +} + +GetTaskResult::Data GetTaskResult::getData()const +{ + return data_; +} + +std::string GetTaskResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/GetUserRequest.cc b/idrsservice/src/model/GetUserRequest.cc new file mode 100644 index 000000000..eaeaeae71 --- /dev/null +++ b/idrsservice/src/model/GetUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "GetUser") +{ + setMethod(HttpRequest::Method::Post); +} + +GetUserRequest::~GetUserRequest() +{} + +std::string GetUserRequest::getId()const +{ + return id_; +} + +void GetUserRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/GetUserResult.cc b/idrsservice/src/model/GetUserResult.cc new file mode 100644 index 000000000..8d33fde25 --- /dev/null +++ b/idrsservice/src/model/GetUserResult.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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::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 dataNode = value["Data"]; + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Email"].isNull()) + data_.email = dataNode["Email"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["PhoneNumber"].isNull()) + data_.phoneNumber = dataNode["PhoneNumber"].asString(); + if(!dataNode["Role"].isNull()) + data_.role = dataNode["Role"].asString(); + if(!dataNode["Source"].isNull()) + data_.source = dataNode["Source"].asString(); + if(!dataNode["UpdatedAt"].isNull()) + data_.updatedAt = dataNode["UpdatedAt"].asString(); + if(!dataNode["Username"].isNull()) + data_.username = dataNode["Username"].asString(); + auto allDepartmentsNode = dataNode["Departments"]["DepartmentsItem"]; + for (auto dataNodeDepartmentsDepartmentsItem : allDepartmentsNode) + { + Data::DepartmentsItem departmentsItemObject; + if(!dataNodeDepartmentsDepartmentsItem["Description"].isNull()) + departmentsItemObject.description = dataNodeDepartmentsDepartmentsItem["Description"].asString(); + if(!dataNodeDepartmentsDepartmentsItem["GmtCreate"].isNull()) + departmentsItemObject.gmtCreate = dataNodeDepartmentsDepartmentsItem["GmtCreate"].asString(); + if(!dataNodeDepartmentsDepartmentsItem["GmtModified"].isNull()) + departmentsItemObject.gmtModified = dataNodeDepartmentsDepartmentsItem["GmtModified"].asString(); + if(!dataNodeDepartmentsDepartmentsItem["Id"].isNull()) + departmentsItemObject.id = dataNodeDepartmentsDepartmentsItem["Id"].asString(); + if(!dataNodeDepartmentsDepartmentsItem["Name"].isNull()) + departmentsItemObject.name = dataNodeDepartmentsDepartmentsItem["Name"].asString(); + data_.departments.push_back(departmentsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetUserResult::getMessage()const +{ + return message_; +} + +GetUserResult::Data GetUserResult::getData()const +{ + return data_; +} + +std::string GetUserResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/InitializeServiceLinkedRoleRequest.cc b/idrsservice/src/model/InitializeServiceLinkedRoleRequest.cc new file mode 100644 index 000000000..e5ccdc17b --- /dev/null +++ b/idrsservice/src/model/InitializeServiceLinkedRoleRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::InitializeServiceLinkedRoleRequest; + +InitializeServiceLinkedRoleRequest::InitializeServiceLinkedRoleRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "InitializeServiceLinkedRole") +{ + setMethod(HttpRequest::Method::Post); +} + +InitializeServiceLinkedRoleRequest::~InitializeServiceLinkedRoleRequest() +{} + +std::string InitializeServiceLinkedRoleRequest::getRoleName()const +{ + return roleName_; +} + +void InitializeServiceLinkedRoleRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + diff --git a/idrsservice/src/model/InitializeServiceLinkedRoleResult.cc b/idrsservice/src/model/InitializeServiceLinkedRoleResult.cc new file mode 100644 index 000000000..b9f71dffc --- /dev/null +++ b/idrsservice/src/model/InitializeServiceLinkedRoleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +InitializeServiceLinkedRoleResult::InitializeServiceLinkedRoleResult() : + ServiceResult() +{} + +InitializeServiceLinkedRoleResult::InitializeServiceLinkedRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitializeServiceLinkedRoleResult::~InitializeServiceLinkedRoleResult() +{} + +void InitializeServiceLinkedRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreateSuccess"].isNull()) + data_.createSuccess = dataNode["CreateSuccess"].asString() == "true"; + if(!dataNode["ErrorMessage"].isNull()) + data_.errorMessage = dataNode["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string InitializeServiceLinkedRoleResult::getMessage()const +{ + return message_; +} + +InitializeServiceLinkedRoleResult::Data InitializeServiceLinkedRoleResult::getData()const +{ + return data_; +} + +std::string InitializeServiceLinkedRoleResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/JoinLiveRequest.cc b/idrsservice/src/model/JoinLiveRequest.cc new file mode 100644 index 000000000..73d975308 --- /dev/null +++ b/idrsservice/src/model/JoinLiveRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::JoinLiveRequest; + +JoinLiveRequest::JoinLiveRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "JoinLive") +{ + setMethod(HttpRequest::Method::Post); +} + +JoinLiveRequest::~JoinLiveRequest() +{} + +std::string JoinLiveRequest::getChannel()const +{ + return channel_; +} + +void JoinLiveRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setParameter("Channel", channel); +} + +std::string JoinLiveRequest::getUserId()const +{ + return userId_; +} + +void JoinLiveRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string JoinLiveRequest::getRtcCode()const +{ + return rtcCode_; +} + +void JoinLiveRequest::setRtcCode(const std::string& rtcCode) +{ + rtcCode_ = rtcCode; + setParameter("RtcCode", rtcCode); +} + diff --git a/idrsservice/src/model/JoinLiveResult.cc b/idrsservice/src/model/JoinLiveResult.cc new file mode 100644 index 000000000..bf63fe699 --- /dev/null +++ b/idrsservice/src/model/JoinLiveResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +JoinLiveResult::JoinLiveResult() : + ServiceResult() +{} + +JoinLiveResult::JoinLiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinLiveResult::~JoinLiveResult() +{} + +void JoinLiveResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Code"].isNull()) + data_.code = std::stoi(dataNode["Code"].asString()); + auto tokenDataNode = dataNode["TokenData"]; + if(!tokenDataNode["AppId"].isNull()) + data_.tokenData.appId = tokenDataNode["AppId"].asString(); + if(!tokenDataNode["LiveId"].isNull()) + data_.tokenData.liveId = tokenDataNode["LiveId"].asString(); + if(!tokenDataNode["Nonce"].isNull()) + data_.tokenData.nonce = tokenDataNode["Nonce"].asString(); + if(!tokenDataNode["Timestamp"].isNull()) + data_.tokenData.timestamp = std::stol(tokenDataNode["Timestamp"].asString()); + if(!tokenDataNode["Token"].isNull()) + data_.tokenData.token = tokenDataNode["Token"].asString(); + if(!tokenDataNode["UserId"].isNull()) + data_.tokenData.userId = tokenDataNode["UserId"].asString(); + auto turnNode = tokenDataNode["Turn"]; + if(!turnNode["Password"].isNull()) + data_.tokenData.turn.password = turnNode["Password"].asString(); + if(!turnNode["Username"].isNull()) + data_.tokenData.turn.username = turnNode["Username"].asString(); + auto allGslb = tokenDataNode["Gslb"]["Gslb"]; + for (auto value : allGslb) + data_.tokenData.gslb.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string JoinLiveResult::getMessage()const +{ + return message_; +} + +JoinLiveResult::Data JoinLiveResult::getData()const +{ + return data_; +} + +std::string JoinLiveResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListAppsRequest.cc b/idrsservice/src/model/ListAppsRequest.cc new file mode 100644 index 000000000..201cc29cb --- /dev/null +++ b/idrsservice/src/model/ListAppsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListAppsRequest; + +ListAppsRequest::ListAppsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListApps") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAppsRequest::~ListAppsRequest() +{} + +int ListAppsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAppsRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListAppsRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + diff --git a/idrsservice/src/model/ListAppsResult.cc b/idrsservice/src/model/ListAppsResult.cc new file mode 100644 index 000000000..599432f32 --- /dev/null +++ b/idrsservice/src/model/ListAppsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListAppsResult::ListAppsResult() : + ServiceResult() +{} + +ListAppsResult::ListAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppsResult::~ListAppsResult() +{} + +void ListAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["DepartmentId"].isNull()) + itemsItemObject.departmentId = dataNodeItemsItemsItem["DepartmentId"].asString(); + if(!dataNodeItemsItemsItem["DepartmentName"].isNull()) + itemsItemObject.departmentName = dataNodeItemsItemsItem["DepartmentName"].asString(); + if(!dataNodeItemsItemsItem["Disabled"].isNull()) + itemsItemObject.disabled = dataNodeItemsItemsItem["Disabled"].asString() == "true"; + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + if(!dataNodeItemsItemsItem["PackageName"].isNull()) + itemsItemObject.packageName = dataNodeItemsItemsItem["PackageName"].asString(); + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListAppsResult::getMessage()const +{ + return message_; +} + +ListAppsResult::Data ListAppsResult::getData()const +{ + return data_; +} + +std::string ListAppsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListDepartmentsRequest.cc b/idrsservice/src/model/ListDepartmentsRequest.cc new file mode 100644 index 000000000..5a29a0fbc --- /dev/null +++ b/idrsservice/src/model/ListDepartmentsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListDepartmentsRequest; + +ListDepartmentsRequest::ListDepartmentsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListDepartments") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDepartmentsRequest::~ListDepartmentsRequest() +{} + +std::string ListDepartmentsRequest::getUserId()const +{ + return userId_; +} + +void ListDepartmentsRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string ListDepartmentsRequest::getName()const +{ + return name_; +} + +void ListDepartmentsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListDepartmentsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDepartmentsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListDepartmentsRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListDepartmentsRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + diff --git a/idrsservice/src/model/ListDepartmentsResult.cc b/idrsservice/src/model/ListDepartmentsResult.cc new file mode 100644 index 000000000..6b8f70840 --- /dev/null +++ b/idrsservice/src/model/ListDepartmentsResult.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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListDepartmentsResult::ListDepartmentsResult() : + ServiceResult() +{} + +ListDepartmentsResult::ListDepartmentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDepartmentsResult::~ListDepartmentsResult() +{} + +void ListDepartmentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["Description"].isNull()) + itemsItemObject.description = dataNodeItemsItemsItem["Description"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + if(!dataNodeItemsItemsItem["UpdatedAt"].isNull()) + itemsItemObject.updatedAt = dataNodeItemsItemsItem["UpdatedAt"].asString(); + auto allAdministratorsNode = dataNodeItemsItemsItem["Administrators"]["AdministratorsItem"]; + for (auto dataNodeItemsItemsItemAdministratorsAdministratorsItem : allAdministratorsNode) + { + Data::ItemsItem::AdministratorsItem administratorsObject; + if(!dataNodeItemsItemsItemAdministratorsAdministratorsItem["Id"].isNull()) + administratorsObject.id = dataNodeItemsItemsItemAdministratorsAdministratorsItem["Id"].asString(); + if(!dataNodeItemsItemsItemAdministratorsAdministratorsItem["Name"].isNull()) + administratorsObject.name = dataNodeItemsItemsItemAdministratorsAdministratorsItem["Name"].asString(); + itemsItemObject.administrators.push_back(administratorsObject); + } + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListDepartmentsResult::getMessage()const +{ + return message_; +} + +ListDepartmentsResult::Data ListDepartmentsResult::getData()const +{ + return data_; +} + +std::string ListDepartmentsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListDetectionsRequest.cc b/idrsservice/src/model/ListDetectionsRequest.cc new file mode 100644 index 000000000..3acf53a9d --- /dev/null +++ b/idrsservice/src/model/ListDetectionsRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListDetectionsRequest; + +ListDetectionsRequest::ListDetectionsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListDetections") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDetectionsRequest::~ListDetectionsRequest() +{} + +std::string ListDetectionsRequest::getCreateDateTo()const +{ + return createDateTo_; +} + +void ListDetectionsRequest::setCreateDateTo(const std::string& createDateTo) +{ + createDateTo_ = createDateTo; + setParameter("CreateDateTo", createDateTo); +} + +std::string ListDetectionsRequest::getDepartmentId()const +{ + return departmentId_; +} + +void ListDetectionsRequest::setDepartmentId(const std::string& departmentId) +{ + departmentId_ = departmentId; + setParameter("DepartmentId", departmentId); +} + +std::string ListDetectionsRequest::getRecordingType()const +{ + return recordingType_; +} + +void ListDetectionsRequest::setRecordingType(const std::string& recordingType) +{ + recordingType_ = recordingType; + setParameter("RecordingType", recordingType); +} + +std::string ListDetectionsRequest::getCreateDateFrom()const +{ + return createDateFrom_; +} + +void ListDetectionsRequest::setCreateDateFrom(const std::string& createDateFrom) +{ + createDateFrom_ = createDateFrom; + setParameter("CreateDateFrom", createDateFrom); +} + +int ListDetectionsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDetectionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListDetectionsRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListDetectionsRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string ListDetectionsRequest::getRuleId()const +{ + return ruleId_; +} + +void ListDetectionsRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/idrsservice/src/model/ListDetectionsResult.cc b/idrsservice/src/model/ListDetectionsResult.cc new file mode 100644 index 000000000..75cb738c8 --- /dev/null +++ b/idrsservice/src/model/ListDetectionsResult.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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListDetectionsResult::ListDetectionsResult() : + ServiceResult() +{} + +ListDetectionsResult::ListDetectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDetectionsResult::~ListDetectionsResult() +{} + +void ListDetectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allErrorsNode = value["Errors"]["ErrorsItem"]; + for (auto valueErrorsErrorsItem : allErrorsNode) + { + ErrorsItem errorsObject; + if(!valueErrorsErrorsItem["Field"].isNull()) + errorsObject.field = valueErrorsErrorsItem["Field"].asString(); + if(!valueErrorsErrorsItem["Message"].isNull()) + errorsObject.message = valueErrorsErrorsItem["Message"].asString(); + errors_.push_back(errorsObject); + } + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["DepartmentId"].isNull()) + itemsItemObject.departmentId = dataNodeItemsItemsItem["DepartmentId"].asString(); + if(!dataNodeItemsItemsItem["DepartmentName"].isNull()) + itemsItemObject.departmentName = dataNodeItemsItemsItem["DepartmentName"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["RecordingType"].isNull()) + itemsItemObject.recordingType = dataNodeItemsItemsItem["RecordingType"].asString(); + if(!dataNodeItemsItemsItem["RuleId"].isNull()) + itemsItemObject.ruleId = dataNodeItemsItemsItem["RuleId"].asString(); + if(!dataNodeItemsItemsItem["RuleName"].isNull()) + itemsItemObject.ruleName = dataNodeItemsItemsItem["RuleName"].asString(); + if(!dataNodeItemsItemsItem["Status"].isNull()) + itemsItemObject.status = dataNodeItemsItemsItem["Status"].asString(); + auto allTasksNode = dataNodeItemsItemsItem["Tasks"]["TasksItem"]; + for (auto dataNodeItemsItemsItemTasksTasksItem : allTasksNode) + { + Data::ItemsItem::TasksItem tasksObject; + if(!dataNodeItemsItemsItemTasksTasksItem["CreatedAt"].isNull()) + tasksObject.createdAt = dataNodeItemsItemsItemTasksTasksItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItemTasksTasksItem["Id"].isNull()) + tasksObject.id = dataNodeItemsItemsItemTasksTasksItem["Id"].asString(); + if(!dataNodeItemsItemsItemTasksTasksItem["Status"].isNull()) + tasksObject.status = dataNodeItemsItemsItemTasksTasksItem["Status"].asString(); + if(!dataNodeItemsItemsItemTasksTasksItem["VideoMetaUrl"].isNull()) + tasksObject.videoMetaUrl = dataNodeItemsItemsItemTasksTasksItem["VideoMetaUrl"].asString(); + if(!dataNodeItemsItemsItemTasksTasksItem["VideoUrl"].isNull()) + tasksObject.videoUrl = dataNodeItemsItemsItemTasksTasksItem["VideoUrl"].asString(); + itemsItemObject.tasks.push_back(tasksObject); + } + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector ListDetectionsResult::getErrors()const +{ + return errors_; +} + +std::string ListDetectionsResult::getMessage()const +{ + return message_; +} + +ListDetectionsResult::Data ListDetectionsResult::getData()const +{ + return data_; +} + +std::string ListDetectionsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListFilesRequest.cc b/idrsservice/src/model/ListFilesRequest.cc new file mode 100644 index 000000000..80793e0df --- /dev/null +++ b/idrsservice/src/model/ListFilesRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListFilesRequest; + +ListFilesRequest::ListFilesRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListFiles") +{ + setMethod(HttpRequest::Method::Post); +} + +ListFilesRequest::~ListFilesRequest() +{} + +std::string ListFilesRequest::getPrefix()const +{ + return prefix_; +} + +void ListFilesRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setBodyParameter("Prefix", prefix); +} + +int ListFilesRequest::getLimit()const +{ + return limit_; +} + +void ListFilesRequest::setLimit(int limit) +{ + limit_ = limit; + setBodyParameter("Limit", std::to_string(limit)); +} + diff --git a/idrsservice/src/model/ListFilesResult.cc b/idrsservice/src/model/ListFilesResult.cc new file mode 100644 index 000000000..769e56fd5 --- /dev/null +++ b/idrsservice/src/model/ListFilesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListFilesResult::ListFilesResult() : + ServiceResult() +{} + +ListFilesResult::ListFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFilesResult::~ListFilesResult() +{} + +void ListFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListFilesResult::getMessage()const +{ + return message_; +} + +std::vector ListFilesResult::getData()const +{ + return data_; +} + +std::string ListFilesResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListLivesRequest.cc b/idrsservice/src/model/ListLivesRequest.cc new file mode 100644 index 000000000..f77075872 --- /dev/null +++ b/idrsservice/src/model/ListLivesRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListLivesRequest; + +ListLivesRequest::ListLivesRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListLives") +{ + setMethod(HttpRequest::Method::Post); +} + +ListLivesRequest::~ListLivesRequest() +{} + +int ListLivesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListLivesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListLivesRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListLivesRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + diff --git a/idrsservice/src/model/ListLivesResult.cc b/idrsservice/src/model/ListLivesResult.cc new file mode 100644 index 000000000..d8f294890 --- /dev/null +++ b/idrsservice/src/model/ListLivesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListLivesResult::ListLivesResult() : + ServiceResult() +{} + +ListLivesResult::ListLivesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLivesResult::~ListLivesResult() +{} + +void ListLivesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["Channel"].isNull()) + itemsItemObject.channel = dataNodeItemsItemsItem["Channel"].asString(); + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + if(!dataNodeItemsItemsItem["PublicId"].isNull()) + itemsItemObject.publicId = dataNodeItemsItemsItem["PublicId"].asString(); + if(!dataNodeItemsItemsItem["Status"].isNull()) + itemsItemObject.status = dataNodeItemsItemsItem["Status"].asString(); + if(!dataNodeItemsItemsItem["UserId"].isNull()) + itemsItemObject.userId = dataNodeItemsItemsItem["UserId"].asString(); + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListLivesResult::getMessage()const +{ + return message_; +} + +ListLivesResult::Data ListLivesResult::getData()const +{ + return data_; +} + +std::string ListLivesResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListRolesRequest.cc b/idrsservice/src/model/ListRolesRequest.cc new file mode 100644 index 000000000..b15dfd512 --- /dev/null +++ b/idrsservice/src/model/ListRolesRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::ListRolesRequest; + +ListRolesRequest::ListRolesRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListRoles") +{ + setMethod(HttpRequest::Method::Post); +} + +ListRolesRequest::~ListRolesRequest() +{} + diff --git a/idrsservice/src/model/ListRolesResult.cc b/idrsservice/src/model/ListRolesResult.cc new file mode 100644 index 000000000..40f0bd02a --- /dev/null +++ b/idrsservice/src/model/ListRolesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListRolesResult::ListRolesResult() : + ServiceResult() +{} + +ListRolesResult::ListRolesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRolesResult::~ListRolesResult() +{} + +void ListRolesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListRolesResult::getMessage()const +{ + return message_; +} + +std::vector ListRolesResult::getData()const +{ + return data_; +} + +std::string ListRolesResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListRulesRequest.cc b/idrsservice/src/model/ListRulesRequest.cc new file mode 100644 index 000000000..294d3e7e3 --- /dev/null +++ b/idrsservice/src/model/ListRulesRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListRulesRequest; + +ListRulesRequest::ListRulesRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListRules") +{ + setMethod(HttpRequest::Method::Post); +} + +ListRulesRequest::~ListRulesRequest() +{} + +int ListRulesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListRulesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListRulesRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListRulesRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + diff --git a/idrsservice/src/model/ListRulesResult.cc b/idrsservice/src/model/ListRulesResult.cc new file mode 100644 index 000000000..cfddb9182 --- /dev/null +++ b/idrsservice/src/model/ListRulesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListRulesResult::ListRulesResult() : + ServiceResult() +{} + +ListRulesResult::ListRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRulesResult::~ListRulesResult() +{} + +void ListRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["Content"].isNull()) + itemsItemObject.content = dataNodeItemsItemsItem["Content"].asString(); + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListRulesResult::getMessage()const +{ + return message_; +} + +ListRulesResult::Data ListRulesResult::getData()const +{ + return data_; +} + +std::string ListRulesResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListStatisticsTaskRequest.cc b/idrsservice/src/model/ListStatisticsTaskRequest.cc new file mode 100644 index 000000000..d0efa449b --- /dev/null +++ b/idrsservice/src/model/ListStatisticsTaskRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListStatisticsTaskRequest; + +ListStatisticsTaskRequest::ListStatisticsTaskRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListStatisticsTask") +{ + setMethod(HttpRequest::Method::Post); +} + +ListStatisticsTaskRequest::~ListStatisticsTaskRequest() +{} + +int ListStatisticsTaskRequest::getPageSize()const +{ + return pageSize_; +} + +void ListStatisticsTaskRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListStatisticsTaskRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListStatisticsTaskRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + diff --git a/idrsservice/src/model/ListStatisticsTaskResult.cc b/idrsservice/src/model/ListStatisticsTaskResult.cc new file mode 100644 index 000000000..5e82e4a79 --- /dev/null +++ b/idrsservice/src/model/ListStatisticsTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListStatisticsTaskResult::ListStatisticsTaskResult() : + ServiceResult() +{} + +ListStatisticsTaskResult::ListStatisticsTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStatisticsTaskResult::~ListStatisticsTaskResult() +{} + +void ListStatisticsTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["FileUrl"].isNull()) + itemsItemObject.fileUrl = dataNodeItemsItemsItem["FileUrl"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + if(!dataNodeItemsItemsItem["Status"].isNull()) + itemsItemObject.status = std::stoi(dataNodeItemsItemsItem["Status"].asString()); + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListStatisticsTaskResult::getMessage()const +{ + return message_; +} + +ListStatisticsTaskResult::Data ListStatisticsTaskResult::getData()const +{ + return data_; +} + +std::string ListStatisticsTaskResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListTaskGroupsRequest.cc b/idrsservice/src/model/ListTaskGroupsRequest.cc new file mode 100644 index 000000000..b11f475a6 --- /dev/null +++ b/idrsservice/src/model/ListTaskGroupsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListTaskGroupsRequest; + +ListTaskGroupsRequest::ListTaskGroupsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListTaskGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTaskGroupsRequest::~ListTaskGroupsRequest() +{} + +int ListTaskGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTaskGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListTaskGroupsRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListTaskGroupsRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string ListTaskGroupsRequest::getStatus()const +{ + return status_; +} + +void ListTaskGroupsRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/idrsservice/src/model/ListTaskGroupsResult.cc b/idrsservice/src/model/ListTaskGroupsResult.cc new file mode 100644 index 000000000..baa6da1ae --- /dev/null +++ b/idrsservice/src/model/ListTaskGroupsResult.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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListTaskGroupsResult::ListTaskGroupsResult() : + ServiceResult() +{} + +ListTaskGroupsResult::ListTaskGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTaskGroupsResult::~ListTaskGroupsResult() +{} + +void ListTaskGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CompletedTasks"].isNull()) + itemsItemObject.completedTasks = std::stoi(dataNodeItemsItemsItem["CompletedTasks"].asString()); + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + if(!dataNodeItemsItemsItem["RuleId"].isNull()) + itemsItemObject.ruleId = dataNodeItemsItemsItem["RuleId"].asString(); + if(!dataNodeItemsItemsItem["RuleName"].isNull()) + itemsItemObject.ruleName = dataNodeItemsItemsItem["RuleName"].asString(); + if(!dataNodeItemsItemsItem["Status"].isNull()) + itemsItemObject.status = dataNodeItemsItemsItem["Status"].asString(); + if(!dataNodeItemsItemsItem["TotalTasks"].isNull()) + itemsItemObject.totalTasks = std::stoi(dataNodeItemsItemsItem["TotalTasks"].asString()); + auto allTaskIds = value["TaskIds"]["TaskIds"]; + for (auto value : allTaskIds) + itemsItemObject.taskIds.push_back(value.asString()); + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListTaskGroupsResult::getMessage()const +{ + return message_; +} + +ListTaskGroupsResult::Data ListTaskGroupsResult::getData()const +{ + return data_; +} + +std::string ListTaskGroupsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListTaskItemsRequest.cc b/idrsservice/src/model/ListTaskItemsRequest.cc new file mode 100644 index 000000000..13c55d119 --- /dev/null +++ b/idrsservice/src/model/ListTaskItemsRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice::Model::ListTaskItemsRequest; + +ListTaskItemsRequest::ListTaskItemsRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListTaskItems") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTaskItemsRequest::~ListTaskItemsRequest() +{} + +std::string ListTaskItemsRequest::getTaskId()const +{ + return taskId_; +} + +void ListTaskItemsRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/idrsservice/src/model/ListTaskItemsResult.cc b/idrsservice/src/model/ListTaskItemsResult.cc new file mode 100644 index 000000000..c58392bee --- /dev/null +++ b/idrsservice/src/model/ListTaskItemsResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListTaskItemsResult::ListTaskItemsResult() : + ServiceResult() +{} + +ListTaskItemsResult::ListTaskItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTaskItemsResult::~ListTaskItemsResult() +{} + +void ListTaskItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["CreatedAt"].isNull()) + dataObject.createdAt = valueDataDataItem["CreatedAt"].asString(); + if(!valueDataDataItem["Message"].isNull()) + dataObject.message = valueDataDataItem["Message"].asString(); + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Output"].isNull()) + dataObject.output = valueDataDataItem["Output"].asString(); + if(!valueDataDataItem["SegmentSeq"].isNull()) + dataObject.segmentSeq = std::stol(valueDataDataItem["SegmentSeq"].asString()); + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = valueDataDataItem["Status"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListTaskItemsResult::getMessage()const +{ + return message_; +} + +std::vector ListTaskItemsResult::getData()const +{ + return data_; +} + +std::string ListTaskItemsResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListTasksRequest.cc b/idrsservice/src/model/ListTasksRequest.cc new file mode 100644 index 000000000..0a3d07ddc --- /dev/null +++ b/idrsservice/src/model/ListTasksRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListTasksRequest; + +ListTasksRequest::ListTasksRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListTasks") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTasksRequest::~ListTasksRequest() +{} + +int ListTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void ListTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListTasksRequest::getTaskGroupId()const +{ + return taskGroupId_; +} + +void ListTasksRequest::setTaskGroupId(const std::string& taskGroupId) +{ + taskGroupId_ = taskGroupId; + setParameter("TaskGroupId", taskGroupId); +} + +int ListTasksRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListTasksRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + diff --git a/idrsservice/src/model/ListTasksResult.cc b/idrsservice/src/model/ListTasksResult.cc new file mode 100644 index 000000000..a1835329f --- /dev/null +++ b/idrsservice/src/model/ListTasksResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListTasksResult::ListTasksResult() : + ServiceResult() +{} + +ListTasksResult::ListTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTasksResult::~ListTasksResult() +{} + +void ListTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Status"].isNull()) + itemsItemObject.status = dataNodeItemsItemsItem["Status"].asString(); + if(!dataNodeItemsItemsItem["VideoMetaUrl"].isNull()) + itemsItemObject.videoMetaUrl = dataNodeItemsItemsItem["VideoMetaUrl"].asString(); + if(!dataNodeItemsItemsItem["VideoUrl"].isNull()) + itemsItemObject.videoUrl = dataNodeItemsItemsItem["VideoUrl"].asString(); + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListTasksResult::getMessage()const +{ + return message_; +} + +ListTasksResult::Data ListTasksResult::getData()const +{ + return data_; +} + +std::string ListTasksResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/ListUsersRequest.cc b/idrsservice/src/model/ListUsersRequest.cc new file mode 100644 index 000000000..b2ab0db7d --- /dev/null +++ b/idrsservice/src/model/ListUsersRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "ListUsers") +{ + setMethod(HttpRequest::Method::Post); +} + +ListUsersRequest::~ListUsersRequest() +{} + +std::string ListUsersRequest::getDepartmentId()const +{ + return departmentId_; +} + +void ListUsersRequest::setDepartmentId(const std::string& departmentId) +{ + departmentId_ = departmentId; + setParameter("DepartmentId", departmentId); +} + +int ListUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListUsersRequest::getPageIndex()const +{ + return pageIndex_; +} + +void ListUsersRequest::setPageIndex(int pageIndex) +{ + pageIndex_ = pageIndex; + setParameter("PageIndex", std::to_string(pageIndex)); +} + +std::string ListUsersRequest::getUsername()const +{ + return username_; +} + +void ListUsersRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/idrsservice/src/model/ListUsersResult.cc b/idrsservice/src/model/ListUsersResult.cc new file mode 100644 index 000000000..4c4bd72c0 --- /dev/null +++ b/idrsservice/src/model/ListUsersResult.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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +ListUsersResult::ListUsersResult() : + ServiceResult() +{} + +ListUsersResult::ListUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersResult::~ListUsersResult() +{} + +void ListUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalElements"].isNull()) + data_.totalElements = std::stol(dataNode["TotalElements"].asString()); + if(!dataNode["TotalPages"].isNull()) + data_.totalPages = std::stoi(dataNode["TotalPages"].asString()); + auto allItemsNode = dataNode["Items"]["ItemsItem"]; + for (auto dataNodeItemsItemsItem : allItemsNode) + { + Data::ItemsItem itemsItemObject; + if(!dataNodeItemsItemsItem["CreatedAt"].isNull()) + itemsItemObject.createdAt = dataNodeItemsItemsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItem["Email"].isNull()) + itemsItemObject.email = dataNodeItemsItemsItem["Email"].asString(); + if(!dataNodeItemsItemsItem["Id"].isNull()) + itemsItemObject.id = dataNodeItemsItemsItem["Id"].asString(); + if(!dataNodeItemsItemsItem["Name"].isNull()) + itemsItemObject.name = dataNodeItemsItemsItem["Name"].asString(); + if(!dataNodeItemsItemsItem["PhoneNumber"].isNull()) + itemsItemObject.phoneNumber = dataNodeItemsItemsItem["PhoneNumber"].asString(); + if(!dataNodeItemsItemsItem["RamUsername"].isNull()) + itemsItemObject.ramUsername = dataNodeItemsItemsItem["RamUsername"].asString(); + if(!dataNodeItemsItemsItem["Role"].isNull()) + itemsItemObject.role = dataNodeItemsItemsItem["Role"].asString(); + if(!dataNodeItemsItemsItem["Source"].isNull()) + itemsItemObject.source = dataNodeItemsItemsItem["Source"].asString(); + if(!dataNodeItemsItemsItem["UpdatedAt"].isNull()) + itemsItemObject.updatedAt = dataNodeItemsItemsItem["UpdatedAt"].asString(); + if(!dataNodeItemsItemsItem["Username"].isNull()) + itemsItemObject.username = dataNodeItemsItemsItem["Username"].asString(); + auto allDepartmentsNode = dataNodeItemsItemsItem["Departments"]["DepartmentsItem"]; + for (auto dataNodeItemsItemsItemDepartmentsDepartmentsItem : allDepartmentsNode) + { + Data::ItemsItem::DepartmentsItem departmentsObject; + if(!dataNodeItemsItemsItemDepartmentsDepartmentsItem["CreatedAt"].isNull()) + departmentsObject.createdAt = dataNodeItemsItemsItemDepartmentsDepartmentsItem["CreatedAt"].asString(); + if(!dataNodeItemsItemsItemDepartmentsDepartmentsItem["Description"].isNull()) + departmentsObject.description = dataNodeItemsItemsItemDepartmentsDepartmentsItem["Description"].asString(); + if(!dataNodeItemsItemsItemDepartmentsDepartmentsItem["Id"].isNull()) + departmentsObject.id = dataNodeItemsItemsItemDepartmentsDepartmentsItem["Id"].asString(); + if(!dataNodeItemsItemsItemDepartmentsDepartmentsItem["Name"].isNull()) + departmentsObject.name = dataNodeItemsItemsItemDepartmentsDepartmentsItem["Name"].asString(); + if(!dataNodeItemsItemsItemDepartmentsDepartmentsItem["UpdatedAt"].isNull()) + departmentsObject.updatedAt = dataNodeItemsItemsItemDepartmentsDepartmentsItem["UpdatedAt"].asString(); + itemsItemObject.departments.push_back(departmentsObject); + } + data_.items.push_back(itemsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListUsersResult::getMessage()const +{ + return message_; +} + +ListUsersResult::Data ListUsersResult::getData()const +{ + return data_; +} + +std::string ListUsersResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateAppRequest.cc b/idrsservice/src/model/UpdateAppRequest.cc new file mode 100644 index 000000000..0cef100e7 --- /dev/null +++ b/idrsservice/src/model/UpdateAppRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateAppRequest; + +UpdateAppRequest::UpdateAppRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateApp") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateAppRequest::~UpdateAppRequest() +{} + +std::string UpdateAppRequest::getDepartmentId()const +{ + return departmentId_; +} + +void UpdateAppRequest::setDepartmentId(const std::string& departmentId) +{ + departmentId_ = departmentId; + setParameter("DepartmentId", departmentId); +} + +std::string UpdateAppRequest::getPackageName()const +{ + return packageName_; +} + +void UpdateAppRequest::setPackageName(const std::string& packageName) +{ + packageName_ = packageName; + setParameter("PackageName", packageName); +} + +std::string UpdateAppRequest::getName()const +{ + return name_; +} + +void UpdateAppRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +bool UpdateAppRequest::getDisabled()const +{ + return disabled_; +} + +void UpdateAppRequest::setDisabled(bool disabled) +{ + disabled_ = disabled; + setParameter("Disabled", disabled ? "true" : "false"); +} + +std::string UpdateAppRequest::getId()const +{ + return id_; +} + +void UpdateAppRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/UpdateAppResult.cc b/idrsservice/src/model/UpdateAppResult.cc new file mode 100644 index 000000000..186451f0c --- /dev/null +++ b/idrsservice/src/model/UpdateAppResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateAppResult::UpdateAppResult() : + ServiceResult() +{} + +UpdateAppResult::UpdateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppResult::~UpdateAppResult() +{} + +void UpdateAppResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateAppResult::getMessage()const +{ + return message_; +} + +std::string UpdateAppResult::getData()const +{ + return data_; +} + +std::string UpdateAppResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateDepartmentRequest.cc b/idrsservice/src/model/UpdateDepartmentRequest.cc new file mode 100644 index 000000000..be3a94f4f --- /dev/null +++ b/idrsservice/src/model/UpdateDepartmentRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateDepartmentRequest; + +UpdateDepartmentRequest::UpdateDepartmentRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateDepartment") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateDepartmentRequest::~UpdateDepartmentRequest() +{} + +std::string UpdateDepartmentRequest::getDescription()const +{ + return description_; +} + +void UpdateDepartmentRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string UpdateDepartmentRequest::getLabel()const +{ + return label_; +} + +void UpdateDepartmentRequest::setLabel(const std::string& label) +{ + label_ = label; + setBodyParameter("Label", label); +} + +std::string UpdateDepartmentRequest::getName()const +{ + return name_; +} + +void UpdateDepartmentRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string UpdateDepartmentRequest::getId()const +{ + return id_; +} + +void UpdateDepartmentRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/UpdateDepartmentResult.cc b/idrsservice/src/model/UpdateDepartmentResult.cc new file mode 100644 index 000000000..ce96bac37 --- /dev/null +++ b/idrsservice/src/model/UpdateDepartmentResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateDepartmentResult::UpdateDepartmentResult() : + ServiceResult() +{} + +UpdateDepartmentResult::UpdateDepartmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDepartmentResult::~UpdateDepartmentResult() +{} + +void UpdateDepartmentResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateDepartmentResult::getMessage()const +{ + return message_; +} + +std::string UpdateDepartmentResult::getData()const +{ + return data_; +} + +std::string UpdateDepartmentResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateLiveRequest.cc b/idrsservice/src/model/UpdateLiveRequest.cc new file mode 100644 index 000000000..ad3c13031 --- /dev/null +++ b/idrsservice/src/model/UpdateLiveRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateLiveRequest; + +UpdateLiveRequest::UpdateLiveRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateLive") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateLiveRequest::~UpdateLiveRequest() +{} + +std::string UpdateLiveRequest::getLiveId()const +{ + return liveId_; +} + +void UpdateLiveRequest::setLiveId(const std::string& liveId) +{ + liveId_ = liveId; + setParameter("LiveId", liveId); +} + +std::string UpdateLiveRequest::getUserId()const +{ + return userId_; +} + +void UpdateLiveRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string UpdateLiveRequest::getStatus()const +{ + return status_; +} + +void UpdateLiveRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/idrsservice/src/model/UpdateLiveResult.cc b/idrsservice/src/model/UpdateLiveResult.cc new file mode 100644 index 000000000..8eb6b1029 --- /dev/null +++ b/idrsservice/src/model/UpdateLiveResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateLiveResult::UpdateLiveResult() : + ServiceResult() +{} + +UpdateLiveResult::UpdateLiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLiveResult::~UpdateLiveResult() +{} + +void UpdateLiveResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateLiveResult::getMessage()const +{ + return message_; +} + +UpdateLiveResult::Data UpdateLiveResult::getData()const +{ + return data_; +} + +std::string UpdateLiveResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateRuleRequest.cc b/idrsservice/src/model/UpdateRuleRequest.cc new file mode 100644 index 000000000..0f6d6f02b --- /dev/null +++ b/idrsservice/src/model/UpdateRuleRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateRuleRequest; + +UpdateRuleRequest::UpdateRuleRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateRule") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateRuleRequest::~UpdateRuleRequest() +{} + +std::string UpdateRuleRequest::getContent()const +{ + return content_; +} + +void UpdateRuleRequest::setContent(const std::string& content) +{ + content_ = content; + setParameter("Content", content); +} + +std::string UpdateRuleRequest::getName()const +{ + return name_; +} + +void UpdateRuleRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateRuleRequest::getId()const +{ + return id_; +} + +void UpdateRuleRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/idrsservice/src/model/UpdateRuleResult.cc b/idrsservice/src/model/UpdateRuleResult.cc new file mode 100644 index 000000000..865c045a7 --- /dev/null +++ b/idrsservice/src/model/UpdateRuleResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateRuleResult::UpdateRuleResult() : + ServiceResult() +{} + +UpdateRuleResult::UpdateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRuleResult::~UpdateRuleResult() +{} + +void UpdateRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Content"].isNull()) + data_.content = dataNode["Content"].asString(); + if(!dataNode["CreatedAt"].isNull()) + data_.createdAt = dataNode["CreatedAt"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateRuleResult::getMessage()const +{ + return message_; +} + +UpdateRuleResult::Data UpdateRuleResult::getData()const +{ + return data_; +} + +std::string UpdateRuleResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateServiceConfigurationRequest.cc b/idrsservice/src/model/UpdateServiceConfigurationRequest.cc new file mode 100644 index 000000000..837e36d6f --- /dev/null +++ b/idrsservice/src/model/UpdateServiceConfigurationRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateServiceConfigurationRequest; + +UpdateServiceConfigurationRequest::UpdateServiceConfigurationRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateServiceConfiguration") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateServiceConfigurationRequest::~UpdateServiceConfigurationRequest() +{} + +int UpdateServiceConfigurationRequest::getLiveRecordMaxClient()const +{ + return liveRecordMaxClient_; +} + +void UpdateServiceConfigurationRequest::setLiveRecordMaxClient(int liveRecordMaxClient) +{ + liveRecordMaxClient_ = liveRecordMaxClient; + setParameter("LiveRecordMaxClient", std::to_string(liveRecordMaxClient)); +} + +int UpdateServiceConfigurationRequest::getLiveRecordVideoResolution()const +{ + return liveRecordVideoResolution_; +} + +void UpdateServiceConfigurationRequest::setLiveRecordVideoResolution(int liveRecordVideoResolution) +{ + liveRecordVideoResolution_ = liveRecordVideoResolution; + setParameter("LiveRecordVideoResolution", std::to_string(liveRecordVideoResolution)); +} + +int UpdateServiceConfigurationRequest::getTaskItemQueueSize()const +{ + return taskItemQueueSize_; +} + +void UpdateServiceConfigurationRequest::setTaskItemQueueSize(int taskItemQueueSize) +{ + taskItemQueueSize_ = taskItemQueueSize; + setParameter("TaskItemQueueSize", std::to_string(taskItemQueueSize)); +} + +int UpdateServiceConfigurationRequest::getLiveRecordLayout()const +{ + return liveRecordLayout_; +} + +void UpdateServiceConfigurationRequest::setLiveRecordLayout(int liveRecordLayout) +{ + liveRecordLayout_ = liveRecordLayout; + setParameter("LiveRecordLayout", std::to_string(liveRecordLayout)); +} + +int UpdateServiceConfigurationRequest::getClientQueueSize()const +{ + return clientQueueSize_; +} + +void UpdateServiceConfigurationRequest::setClientQueueSize(int clientQueueSize) +{ + clientQueueSize_ = clientQueueSize; + setParameter("ClientQueueSize", std::to_string(clientQueueSize)); +} + +std::string UpdateServiceConfigurationRequest::getLiveRecordTaskProfile()const +{ + return liveRecordTaskProfile_; +} + +void UpdateServiceConfigurationRequest::setLiveRecordTaskProfile(const std::string& liveRecordTaskProfile) +{ + liveRecordTaskProfile_ = liveRecordTaskProfile; + setParameter("LiveRecordTaskProfile", liveRecordTaskProfile); +} + +bool UpdateServiceConfigurationRequest::getLiveRecordAll()const +{ + return liveRecordAll_; +} + +void UpdateServiceConfigurationRequest::setLiveRecordAll(bool liveRecordAll) +{ + liveRecordAll_ = liveRecordAll; + setParameter("LiveRecordAll", liveRecordAll ? "true" : "false"); +} + +bool UpdateServiceConfigurationRequest::getLiveRecordEveryOne()const +{ + return liveRecordEveryOne_; +} + +void UpdateServiceConfigurationRequest::setLiveRecordEveryOne(bool liveRecordEveryOne) +{ + liveRecordEveryOne_ = liveRecordEveryOne; + setParameter("LiveRecordEveryOne", liveRecordEveryOne ? "true" : "false"); +} + diff --git a/idrsservice/src/model/UpdateServiceConfigurationResult.cc b/idrsservice/src/model/UpdateServiceConfigurationResult.cc new file mode 100644 index 000000000..74a64b9c0 --- /dev/null +++ b/idrsservice/src/model/UpdateServiceConfigurationResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateServiceConfigurationResult::UpdateServiceConfigurationResult() : + ServiceResult() +{} + +UpdateServiceConfigurationResult::UpdateServiceConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceConfigurationResult::~UpdateServiceConfigurationResult() +{} + +void UpdateServiceConfigurationResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateServiceConfigurationResult::getMessage()const +{ + return message_; +} + +std::string UpdateServiceConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateSlrConfigurationRequest.cc b/idrsservice/src/model/UpdateSlrConfigurationRequest.cc new file mode 100644 index 000000000..d63358211 --- /dev/null +++ b/idrsservice/src/model/UpdateSlrConfigurationRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateSlrConfigurationRequest; + +UpdateSlrConfigurationRequest::UpdateSlrConfigurationRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateSlrConfiguration") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateSlrConfigurationRequest::~UpdateSlrConfigurationRequest() +{} + +std::string UpdateSlrConfigurationRequest::getMqInstanceId()const +{ + return mqInstanceId_; +} + +void UpdateSlrConfigurationRequest::setMqInstanceId(const std::string& mqInstanceId) +{ + mqInstanceId_ = mqInstanceId; + setParameter("MqInstanceId", mqInstanceId); +} + +std::string UpdateSlrConfigurationRequest::getMqGroupId()const +{ + return mqGroupId_; +} + +void UpdateSlrConfigurationRequest::setMqGroupId(const std::string& mqGroupId) +{ + mqGroupId_ = mqGroupId; + setParameter("MqGroupId", mqGroupId); +} + +std::vector UpdateSlrConfigurationRequest::getMqEvent()const +{ + return mqEvent_; +} + +void UpdateSlrConfigurationRequest::setMqEvent(const std::vector& mqEvent) +{ + mqEvent_ = mqEvent; + for(int dep1 = 0; dep1!= mqEvent.size(); dep1++) { + setParameter("MqEvent."+ std::to_string(dep1), mqEvent.at(dep1)); + } +} + +std::string UpdateSlrConfigurationRequest::getMqEndpoint()const +{ + return mqEndpoint_; +} + +void UpdateSlrConfigurationRequest::setMqEndpoint(const std::string& mqEndpoint) +{ + mqEndpoint_ = mqEndpoint; + setParameter("MqEndpoint", mqEndpoint); +} + +std::string UpdateSlrConfigurationRequest::getMqTopic()const +{ + return mqTopic_; +} + +void UpdateSlrConfigurationRequest::setMqTopic(const std::string& mqTopic) +{ + mqTopic_ = mqTopic; + setParameter("MqTopic", mqTopic); +} + +bool UpdateSlrConfigurationRequest::getMqSubscribe()const +{ + return mqSubscribe_; +} + +void UpdateSlrConfigurationRequest::setMqSubscribe(bool mqSubscribe) +{ + mqSubscribe_ = mqSubscribe; + setParameter("MqSubscribe", mqSubscribe ? "true" : "false"); +} + diff --git a/idrsservice/src/model/UpdateSlrConfigurationResult.cc b/idrsservice/src/model/UpdateSlrConfigurationResult.cc new file mode 100644 index 000000000..0deaea439 --- /dev/null +++ b/idrsservice/src/model/UpdateSlrConfigurationResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateSlrConfigurationResult::UpdateSlrConfigurationResult() : + ServiceResult() +{} + +UpdateSlrConfigurationResult::UpdateSlrConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSlrConfigurationResult::~UpdateSlrConfigurationResult() +{} + +void UpdateSlrConfigurationResult::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["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateSlrConfigurationResult::getMessage()const +{ + return message_; +} + +std::string UpdateSlrConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/idrsservice/src/model/UpdateUserRequest.cc b/idrsservice/src/model/UpdateUserRequest.cc new file mode 100644 index 000000000..28d979d67 --- /dev/null +++ b/idrsservice/src/model/UpdateUserRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idrsservice::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() : + RpcServiceRequest("idrsservice", "2020-06-30", "UpdateUser") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateUserRequest::~UpdateUserRequest() +{} + +std::string UpdateUserRequest::getRole()const +{ + return role_; +} + +void UpdateUserRequest::setRole(const std::string& role) +{ + role_ = role; + setParameter("Role", role); +} + +std::string UpdateUserRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void UpdateUserRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setParameter("PhoneNumber", phoneNumber); +} + +std::string UpdateUserRequest::getName()const +{ + return name_; +} + +void UpdateUserRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateUserRequest::getId()const +{ + return id_; +} + +void UpdateUserRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + +std::string UpdateUserRequest::getEmail()const +{ + return email_; +} + +void UpdateUserRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + diff --git a/idrsservice/src/model/UpdateUserResult.cc b/idrsservice/src/model/UpdateUserResult.cc new file mode 100644 index 000000000..a45225127 --- /dev/null +++ b/idrsservice/src/model/UpdateUserResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idrsservice; +using namespace AlibabaCloud::Idrsservice::Model; + +UpdateUserResult::UpdateUserResult() : + ServiceResult() +{} + +UpdateUserResult::UpdateUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateUserResult::~UpdateUserResult() +{} + +void UpdateUserResult::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["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateUserResult::getMessage()const +{ + return message_; +} + +std::string UpdateUserResult::getData()const +{ + return data_; +} + +std::string UpdateUserResult::getCode()const +{ + return code_; +} +