From fe741d3fe9c56b0b2b6e2d7f866b684287013168 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 13 Dec 2023 11:12:26 +0000 Subject: [PATCH] Standardizing api. --- VERSION | 2 +- cloud-siem/CMakeLists.txt | 164 ++ .../cloud-siem/Cloud_siemClient.h | 328 ++++ .../model/AddDataSourceLogRequest.h | 57 + .../cloud-siem/model/AddDataSourceLogResult.h | 56 + .../cloud-siem/model/AddDataSourceRequest.h | 60 + .../cloud-siem/model/AddDataSourceResult.h | 56 + .../cloud-siem/model/AddUserRequest.h | 45 + .../cloud-siem/model/AddUserResult.h | 51 + .../model/AddUserSourceLogConfigRequest.h | 60 + .../model/AddUserSourceLogConfigResult.h | 62 + .../cloud-siem/model/BindAccountRequest.h | 54 + .../cloud-siem/model/BindAccountResult.h | 55 + .../cloud-siem/model/CloseDeliveryResult.h | 12 - .../model/DeleteBindAccountRequest.h | 54 + .../model/DeleteBindAccountResult.h | 55 + .../model/DeleteDataSourceLogRequest.h | 54 + .../model/DeleteDataSourceLogResult.h | 56 + .../model/DeleteDataSourceRequest.h | 51 + .../cloud-siem/model/DeleteDataSourceResult.h | 55 + .../cloud-siem/model/DeleteQuickQueryResult.h | 12 - .../cloud-siem/model/DeleteUserRequest.h | 45 + .../cloud-siem/model/DeleteUserResult.h | 51 + .../model/DescribeAlertSceneRequest.h | 42 + .../model/DescribeAlertSceneResult.h | 74 + .../cloud-siem/model/DescribeAlertsRequest.h | 72 + .../cloud-siem/model/DescribeAlertsResult.h | 109 ++ .../model/DescribeAlertsWithEntityRequest.h | 57 + .../model/DescribeAlertsWithEntityResult.h | 109 ++ .../model/DescribeAlertsWithEventRequest.h | 66 + .../model/DescribeAlertsWithEventResult.h | 109 ++ .../cloud-siem/model/DescribeAuthRequest.h | 42 + .../cloud-siem/model/DescribeAuthResult.h | 51 + ...escribeCsImportedProdStatusByUserRequest.h | 48 + ...DescribeCsImportedProdStatusByUserResult.h | 51 + .../model/DescribeDataSourceInstanceRequest.h | 51 + .../model/DescribeDataSourceInstanceResult.h | 63 + .../DescribeDataSourceParametersRequest.h | 48 + .../DescribeDataSourceParametersResult.h | 73 + .../model/DescribeImportedLogCountRequest.h | 42 + .../model/DescribeImportedLogCountResult.h | 57 + .../cloud-siem/model/DescribeLogStoreResult.h | 12 - .../model/DescribeProdCountRequest.h | 42 + .../model/DescribeProdCountResult.h | 57 + .../model/DescribeServiceStatusRequest.h | 42 + .../model/DescribeServiceStatusResult.h | 51 + .../cloud-siem/model/DescribeStorageResult.h | 12 - .../model/DescribeUserBuyStatusRequest.h | 45 + .../model/DescribeUserBuyStatusResult.h | 65 + .../model/DescribeWhiteRuleListRequest.h | 57 + .../model/DescribeWhiteRuleListResult.h | 113 ++ .../cloud-siem/model/DoQuickFieldResult.h | 12 - .../cloud-siem/model/DoSelfDelegateResult.h | 12 - .../model/EnableAccessForCloudSiemRequest.h | 42 + .../model/EnableAccessForCloudSiemResult.h | 51 + .../model/EnableServiceForCloudSiemRequest.h | 42 + .../model/EnableServiceForCloudSiemResult.h | 51 + .../cloud-siem/model/GetCapacityResult.h | 12 - .../cloud-siem/model/GetHistogramsResult.h | 12 - .../cloud-siem/model/GetQuickQueryResult.h | 12 - .../cloud-siem/model/GetStorageResult.h | 12 - .../model/ListAccountAccessIdRequest.h | 45 + .../model/ListAccountAccessIdResult.h | 67 + .../model/ListAccountsByLogRequest.h | 51 + .../model/ListAccountsByLogResult.h | 61 + .../cloud-siem/model/ListAllProdsRequest.h | 42 + .../cloud-siem/model/ListAllProdsResult.h | 66 + .../cloud-siem/model/ListBindAccountRequest.h | 45 + .../cloud-siem/model/ListBindAccountResult.h | 62 + .../model/ListBindDataSourcesRequest.h | 48 + .../model/ListBindDataSourcesResult.h | 63 + .../model/ListDataSourceLogsRequest.h | 51 + .../model/ListDataSourceLogsResult.h | 74 + .../model/ListDataSourceTypesRequest.h | 45 + .../model/ListDataSourceTypesResult.h | 56 + .../model/ListImportedLogsByProdRequest.h | 48 + .../model/ListImportedLogsByProdResult.h | 64 + .../cloud-siem/model/ListOperationResult.h | 12 - .../model/ListProjectLogStoresRequest.h | 51 + .../model/ListProjectLogStoresResult.h | 62 + .../cloud-siem/model/ListQuickQueryResult.h | 12 - .../cloud-siem/model/ListRdUsersRequest.h | 42 + .../cloud-siem/model/ListRdUsersResult.h | 60 + .../model/ListUserProdLogsRequest.h | 48 + .../cloud-siem/model/ListUserProdLogsResult.h | 64 + .../cloud-siem/model/ListUsersByProdRequest.h | 45 + .../cloud-siem/model/ListUsersByProdResult.h | 63 + .../model/ModifyBindAccountRequest.h | 57 + .../model/ModifyBindAccountResult.h | 55 + .../model/ModifyDataSourceLogRequest.h | 63 + .../model/ModifyDataSourceLogResult.h | 56 + .../model/ModifyDataSourceRequest.h | 63 + .../cloud-siem/model/ModifyDataSourceResult.h | 56 + .../cloud-siem/model/OpenDeliveryResult.h | 12 - .../cloud-siem/model/RestoreCapacityResult.h | 12 - .../cloud-siem/model/SaveQuickQueryResult.h | 12 - .../cloud-siem/model/SetStorageResult.h | 12 - .../model/ShowQuickAnalysisResult.h | 12 - .../model/SubmitImportLogTasksRequest.h | 57 + .../model/SubmitImportLogTasksResult.h | 55 + .../cloud-siem/model/SubmitJobsRequest.h | 45 + .../cloud-siem/model/SubmitJobsResult.h | 51 + cloud-siem/src/Cloud-siemClient.cc | 1476 +++++++++++++++++ .../src/model/AddDataSourceLogRequest.cc | 81 + .../src/model/AddDataSourceLogResult.cc | 54 + cloud-siem/src/model/AddDataSourceRequest.cc | 90 + cloud-siem/src/model/AddDataSourceResult.cc | 54 + cloud-siem/src/model/AddUserRequest.cc | 45 + cloud-siem/src/model/AddUserResult.cc | 51 + .../model/AddUserSourceLogConfigRequest.cc | 90 + .../src/model/AddUserSourceLogConfigResult.cc | 66 + cloud-siem/src/model/BindAccountRequest.cc | 72 + cloud-siem/src/model/BindAccountResult.cc | 52 + cloud-siem/src/model/CloseDeliveryResult.cc | 42 - .../src/model/DeleteBindAccountRequest.cc | 72 + .../src/model/DeleteBindAccountResult.cc | 52 + .../src/model/DeleteDataSourceLogRequest.cc | 72 + .../src/model/DeleteDataSourceLogResult.cc | 54 + .../src/model/DeleteDataSourceRequest.cc | 63 + .../src/model/DeleteDataSourceResult.cc | 52 + .../src/model/DeleteQuickQueryResult.cc | 42 - cloud-siem/src/model/DeleteUserRequest.cc | 45 + cloud-siem/src/model/DeleteUserResult.cc | 51 + .../src/model/DescribeAlertSceneRequest.cc | 36 + .../src/model/DescribeAlertSceneResult.cc | 103 ++ cloud-siem/src/model/DescribeAlertsRequest.cc | 125 ++ cloud-siem/src/model/DescribeAlertsResult.cc | 158 ++ .../model/DescribeAlertsWithEntityRequest.cc | 81 + .../model/DescribeAlertsWithEntityResult.cc | 158 ++ .../model/DescribeAlertsWithEventRequest.cc | 107 ++ .../model/DescribeAlertsWithEventResult.cc | 158 ++ cloud-siem/src/model/DescribeAuthRequest.cc | 36 + cloud-siem/src/model/DescribeAuthResult.cc | 51 + ...scribeCsImportedProdStatusByUserRequest.cc | 54 + ...escribeCsImportedProdStatusByUserResult.cc | 51 + .../DescribeDataSourceInstanceRequest.cc | 63 + .../model/DescribeDataSourceInstanceResult.cc | 66 + .../DescribeDataSourceParametersRequest.cc | 54 + .../DescribeDataSourceParametersResult.cc | 91 + .../model/DescribeImportedLogCountRequest.cc | 36 + .../model/DescribeImportedLogCountResult.cc | 56 + .../src/model/DescribeLogStoreResult.cc | 42 - .../src/model/DescribeProdCountRequest.cc | 36 + .../src/model/DescribeProdCountResult.cc | 56 + .../src/model/DescribeServiceStatusRequest.cc | 36 + .../src/model/DescribeServiceStatusResult.cc | 51 + cloud-siem/src/model/DescribeStorageResult.cc | 42 - .../src/model/DescribeUserBuyStatusRequest.cc | 45 + .../src/model/DescribeUserBuyStatusResult.cc | 72 + .../src/model/DescribeWhiteRuleListRequest.cc | 81 + .../src/model/DescribeWhiteRuleListResult.cc | 145 ++ cloud-siem/src/model/DoQuickFieldResult.cc | 42 - cloud-siem/src/model/DoSelfDelegateResult.cc | 42 - .../model/EnableAccessForCloudSiemRequest.cc | 36 + .../model/EnableAccessForCloudSiemResult.cc | 51 + .../model/EnableServiceForCloudSiemRequest.cc | 36 + .../model/EnableServiceForCloudSiemResult.cc | 51 + cloud-siem/src/model/GetCapacityResult.cc | 42 - cloud-siem/src/model/GetHistogramsResult.cc | 42 - cloud-siem/src/model/GetQuickQueryResult.cc | 42 - cloud-siem/src/model/GetStorageResult.cc | 42 - .../src/model/ListAccountAccessIdRequest.cc | 45 + .../src/model/ListAccountAccessIdResult.cc | 90 + .../src/model/ListAccountsByLogRequest.cc | 62 + .../src/model/ListAccountsByLogResult.cc | 69 + cloud-siem/src/model/ListAllProdsRequest.cc | 36 + cloud-siem/src/model/ListAllProdsResult.cc | 72 + .../src/model/ListBindAccountRequest.cc | 45 + cloud-siem/src/model/ListBindAccountResult.cc | 71 + .../src/model/ListBindDataSourcesRequest.cc | 54 + .../src/model/ListBindDataSourcesResult.cc | 73 + .../src/model/ListDataSourceLogsRequest.cc | 63 + .../src/model/ListDataSourceLogsResult.cc | 86 + .../src/model/ListDataSourceTypesRequest.cc | 45 + .../src/model/ListDataSourceTypesResult.cc | 59 + .../model/ListImportedLogsByProdRequest.cc | 54 + .../src/model/ListImportedLogsByProdResult.cc | 75 + cloud-siem/src/model/ListOperationResult.cc | 42 - .../src/model/ListProjectLogStoresRequest.cc | 63 + .../src/model/ListProjectLogStoresResult.cc | 71 + cloud-siem/src/model/ListQuickQueryResult.cc | 42 - cloud-siem/src/model/ListRdUsersRequest.cc | 36 + cloud-siem/src/model/ListRdUsersResult.cc | 67 + .../src/model/ListUserProdLogsRequest.cc | 54 + .../src/model/ListUserProdLogsResult.cc | 75 + .../src/model/ListUsersByProdRequest.cc | 45 + cloud-siem/src/model/ListUsersByProdResult.cc | 73 + .../src/model/ModifyBindAccountRequest.cc | 81 + .../src/model/ModifyBindAccountResult.cc | 52 + .../src/model/ModifyDataSourceLogRequest.cc | 99 ++ .../src/model/ModifyDataSourceLogResult.cc | 54 + .../src/model/ModifyDataSourceRequest.cc | 99 ++ .../src/model/ModifyDataSourceResult.cc | 54 + cloud-siem/src/model/OpenDeliveryResult.cc | 42 - cloud-siem/src/model/RestoreCapacityResult.cc | 42 - cloud-siem/src/model/SaveQuickQueryResult.cc | 42 - cloud-siem/src/model/SetStorageResult.cc | 42 - .../src/model/ShowQuickAnalysisResult.cc | 42 - .../src/model/SubmitImportLogTasksRequest.cc | 81 + .../src/model/SubmitImportLogTasksResult.cc | 52 + cloud-siem/src/model/SubmitJobsRequest.cc | 45 + cloud-siem/src/model/SubmitJobsResult.cc | 51 + 202 files changed, 12096 insertions(+), 919 deletions(-) create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddUserRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddUserResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksResult.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h create mode 100644 cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsResult.h create mode 100644 cloud-siem/src/model/AddDataSourceLogRequest.cc create mode 100644 cloud-siem/src/model/AddDataSourceLogResult.cc create mode 100644 cloud-siem/src/model/AddDataSourceRequest.cc create mode 100644 cloud-siem/src/model/AddDataSourceResult.cc create mode 100644 cloud-siem/src/model/AddUserRequest.cc create mode 100644 cloud-siem/src/model/AddUserResult.cc create mode 100644 cloud-siem/src/model/AddUserSourceLogConfigRequest.cc create mode 100644 cloud-siem/src/model/AddUserSourceLogConfigResult.cc create mode 100644 cloud-siem/src/model/BindAccountRequest.cc create mode 100644 cloud-siem/src/model/BindAccountResult.cc create mode 100644 cloud-siem/src/model/DeleteBindAccountRequest.cc create mode 100644 cloud-siem/src/model/DeleteBindAccountResult.cc create mode 100644 cloud-siem/src/model/DeleteDataSourceLogRequest.cc create mode 100644 cloud-siem/src/model/DeleteDataSourceLogResult.cc create mode 100644 cloud-siem/src/model/DeleteDataSourceRequest.cc create mode 100644 cloud-siem/src/model/DeleteDataSourceResult.cc create mode 100644 cloud-siem/src/model/DeleteUserRequest.cc create mode 100644 cloud-siem/src/model/DeleteUserResult.cc create mode 100644 cloud-siem/src/model/DescribeAlertSceneRequest.cc create mode 100644 cloud-siem/src/model/DescribeAlertSceneResult.cc create mode 100644 cloud-siem/src/model/DescribeAlertsRequest.cc create mode 100644 cloud-siem/src/model/DescribeAlertsResult.cc create mode 100644 cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc create mode 100644 cloud-siem/src/model/DescribeAlertsWithEntityResult.cc create mode 100644 cloud-siem/src/model/DescribeAlertsWithEventRequest.cc create mode 100644 cloud-siem/src/model/DescribeAlertsWithEventResult.cc create mode 100644 cloud-siem/src/model/DescribeAuthRequest.cc create mode 100644 cloud-siem/src/model/DescribeAuthResult.cc create mode 100644 cloud-siem/src/model/DescribeCsImportedProdStatusByUserRequest.cc create mode 100644 cloud-siem/src/model/DescribeCsImportedProdStatusByUserResult.cc create mode 100644 cloud-siem/src/model/DescribeDataSourceInstanceRequest.cc create mode 100644 cloud-siem/src/model/DescribeDataSourceInstanceResult.cc create mode 100644 cloud-siem/src/model/DescribeDataSourceParametersRequest.cc create mode 100644 cloud-siem/src/model/DescribeDataSourceParametersResult.cc create mode 100644 cloud-siem/src/model/DescribeImportedLogCountRequest.cc create mode 100644 cloud-siem/src/model/DescribeImportedLogCountResult.cc create mode 100644 cloud-siem/src/model/DescribeProdCountRequest.cc create mode 100644 cloud-siem/src/model/DescribeProdCountResult.cc create mode 100644 cloud-siem/src/model/DescribeServiceStatusRequest.cc create mode 100644 cloud-siem/src/model/DescribeServiceStatusResult.cc create mode 100644 cloud-siem/src/model/DescribeUserBuyStatusRequest.cc create mode 100644 cloud-siem/src/model/DescribeUserBuyStatusResult.cc create mode 100644 cloud-siem/src/model/DescribeWhiteRuleListRequest.cc create mode 100644 cloud-siem/src/model/DescribeWhiteRuleListResult.cc create mode 100644 cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc create mode 100644 cloud-siem/src/model/EnableAccessForCloudSiemResult.cc create mode 100644 cloud-siem/src/model/EnableServiceForCloudSiemRequest.cc create mode 100644 cloud-siem/src/model/EnableServiceForCloudSiemResult.cc create mode 100644 cloud-siem/src/model/ListAccountAccessIdRequest.cc create mode 100644 cloud-siem/src/model/ListAccountAccessIdResult.cc create mode 100644 cloud-siem/src/model/ListAccountsByLogRequest.cc create mode 100644 cloud-siem/src/model/ListAccountsByLogResult.cc create mode 100644 cloud-siem/src/model/ListAllProdsRequest.cc create mode 100644 cloud-siem/src/model/ListAllProdsResult.cc create mode 100644 cloud-siem/src/model/ListBindAccountRequest.cc create mode 100644 cloud-siem/src/model/ListBindAccountResult.cc create mode 100644 cloud-siem/src/model/ListBindDataSourcesRequest.cc create mode 100644 cloud-siem/src/model/ListBindDataSourcesResult.cc create mode 100644 cloud-siem/src/model/ListDataSourceLogsRequest.cc create mode 100644 cloud-siem/src/model/ListDataSourceLogsResult.cc create mode 100644 cloud-siem/src/model/ListDataSourceTypesRequest.cc create mode 100644 cloud-siem/src/model/ListDataSourceTypesResult.cc create mode 100644 cloud-siem/src/model/ListImportedLogsByProdRequest.cc create mode 100644 cloud-siem/src/model/ListImportedLogsByProdResult.cc create mode 100644 cloud-siem/src/model/ListProjectLogStoresRequest.cc create mode 100644 cloud-siem/src/model/ListProjectLogStoresResult.cc create mode 100644 cloud-siem/src/model/ListRdUsersRequest.cc create mode 100644 cloud-siem/src/model/ListRdUsersResult.cc create mode 100644 cloud-siem/src/model/ListUserProdLogsRequest.cc create mode 100644 cloud-siem/src/model/ListUserProdLogsResult.cc create mode 100644 cloud-siem/src/model/ListUsersByProdRequest.cc create mode 100644 cloud-siem/src/model/ListUsersByProdResult.cc create mode 100644 cloud-siem/src/model/ModifyBindAccountRequest.cc create mode 100644 cloud-siem/src/model/ModifyBindAccountResult.cc create mode 100644 cloud-siem/src/model/ModifyDataSourceLogRequest.cc create mode 100644 cloud-siem/src/model/ModifyDataSourceLogResult.cc create mode 100644 cloud-siem/src/model/ModifyDataSourceRequest.cc create mode 100644 cloud-siem/src/model/ModifyDataSourceResult.cc create mode 100644 cloud-siem/src/model/SubmitImportLogTasksRequest.cc create mode 100644 cloud-siem/src/model/SubmitImportLogTasksResult.cc create mode 100644 cloud-siem/src/model/SubmitJobsRequest.cc create mode 100644 cloud-siem/src/model/SubmitJobsResult.cc diff --git a/VERSION b/VERSION index e41d040cc..fb26737ed 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1824 \ No newline at end of file +1.36.1825 \ No newline at end of file diff --git a/cloud-siem/CMakeLists.txt b/cloud-siem/CMakeLists.txt index 578c5c48f..3f9ff5556 100644 --- a/cloud-siem/CMakeLists.txt +++ b/cloud-siem/CMakeLists.txt @@ -21,22 +21,42 @@ set(cloud-siem_public_header include/alibabacloud/cloud-siem/Cloud_siemExport.h ) set(cloud-siem_public_header_model + include/alibabacloud/cloud-siem/model/AddDataSourceRequest.h + include/alibabacloud/cloud-siem/model/AddDataSourceResult.h + include/alibabacloud/cloud-siem/model/AddDataSourceLogRequest.h + include/alibabacloud/cloud-siem/model/AddDataSourceLogResult.h + include/alibabacloud/cloud-siem/model/AddUserRequest.h + include/alibabacloud/cloud-siem/model/AddUserResult.h + include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigRequest.h + include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.h include/alibabacloud/cloud-siem/model/BatchJobCheckRequest.h include/alibabacloud/cloud-siem/model/BatchJobCheckResult.h include/alibabacloud/cloud-siem/model/BatchJobSubmitRequest.h include/alibabacloud/cloud-siem/model/BatchJobSubmitResult.h + include/alibabacloud/cloud-siem/model/BindAccountRequest.h + include/alibabacloud/cloud-siem/model/BindAccountResult.h include/alibabacloud/cloud-siem/model/CloseDeliveryRequest.h include/alibabacloud/cloud-siem/model/CloseDeliveryResult.h include/alibabacloud/cloud-siem/model/DeleteAutomateResponseConfigRequest.h include/alibabacloud/cloud-siem/model/DeleteAutomateResponseConfigResult.h + include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h + include/alibabacloud/cloud-siem/model/DeleteBindAccountResult.h include/alibabacloud/cloud-siem/model/DeleteCustomizeRuleRequest.h include/alibabacloud/cloud-siem/model/DeleteCustomizeRuleResult.h + include/alibabacloud/cloud-siem/model/DeleteDataSourceRequest.h + include/alibabacloud/cloud-siem/model/DeleteDataSourceResult.h + include/alibabacloud/cloud-siem/model/DeleteDataSourceLogRequest.h + include/alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h include/alibabacloud/cloud-siem/model/DeleteQuickQueryRequest.h include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h + include/alibabacloud/cloud-siem/model/DeleteUserRequest.h + include/alibabacloud/cloud-siem/model/DeleteUserResult.h include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListRequest.h include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListResult.h include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionRequest.h include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionResult.h + include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h + include/alibabacloud/cloud-siem/model/DescribeAlertSceneResult.h include/alibabacloud/cloud-siem/model/DescribeAlertSceneByEventRequest.h include/alibabacloud/cloud-siem/model/DescribeAlertSceneByEventResult.h include/alibabacloud/cloud-siem/model/DescribeAlertSourceRequest.h @@ -45,10 +65,18 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/DescribeAlertSourceWithEventResult.h include/alibabacloud/cloud-siem/model/DescribeAlertTypeRequest.h include/alibabacloud/cloud-siem/model/DescribeAlertTypeResult.h + include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h + include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h include/alibabacloud/cloud-siem/model/DescribeAlertsCountRequest.h include/alibabacloud/cloud-siem/model/DescribeAlertsCountResult.h + include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h + include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h + include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h + include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineRequest.h include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineResult.h + include/alibabacloud/cloud-siem/model/DescribeAuthRequest.h + include/alibabacloud/cloud-siem/model/DescribeAuthResult.h include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterRequest.h include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterResult.h include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigFeatureRequest.h @@ -63,6 +91,8 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailResult.h include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsRequest.h include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsResult.h + include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h + include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleRequest.h include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleResult.h include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountRequest.h @@ -71,6 +101,10 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestResult.h include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestHistogramRequest.h include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestHistogramResult.h + include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceRequest.h + include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceResult.h + include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersRequest.h + include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersResult.h include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookRequest.h include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookResult.h include/alibabacloud/cloud-siem/model/DescribeDisposeStrategyPlaybookRequest.h @@ -81,6 +115,8 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/DescribeEventCountByThreatLevelResult.h include/alibabacloud/cloud-siem/model/DescribeEventDisposeRequest.h include/alibabacloud/cloud-siem/model/DescribeEventDisposeResult.h + include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h + include/alibabacloud/cloud-siem/model/DescribeImportedLogCountResult.h include/alibabacloud/cloud-siem/model/DescribeJobStatusRequest.h include/alibabacloud/cloud-siem/model/DescribeJobStatusResult.h include/alibabacloud/cloud-siem/model/DescribeLogFieldsRequest.h @@ -93,16 +129,28 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/DescribeLogTypeResult.h include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h include/alibabacloud/cloud-siem/model/DescribeOperatorsResult.h + include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h + include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h include/alibabacloud/cloud-siem/model/DescribeScopeUsersRequest.h include/alibabacloud/cloud-siem/model/DescribeScopeUsersResult.h + include/alibabacloud/cloud-siem/model/DescribeServiceStatusRequest.h + include/alibabacloud/cloud-siem/model/DescribeServiceStatusResult.h include/alibabacloud/cloud-siem/model/DescribeStorageRequest.h include/alibabacloud/cloud-siem/model/DescribeStorageResult.h + include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusRequest.h + include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h include/alibabacloud/cloud-siem/model/DescribeWafScopeRequest.h include/alibabacloud/cloud-siem/model/DescribeWafScopeResult.h + include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h + include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListResult.h include/alibabacloud/cloud-siem/model/DoQuickFieldRequest.h include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h include/alibabacloud/cloud-siem/model/DoSelfDelegateRequest.h include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h + include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h + include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemResult.h + include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemRequest.h + include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemResult.h include/alibabacloud/cloud-siem/model/GetCapacityRequest.h include/alibabacloud/cloud-siem/model/GetCapacityResult.h include/alibabacloud/cloud-siem/model/GetHistogramsRequest.h @@ -113,22 +161,52 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h include/alibabacloud/cloud-siem/model/GetStorageRequest.h include/alibabacloud/cloud-siem/model/GetStorageResult.h + include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h + include/alibabacloud/cloud-siem/model/ListAccountAccessIdResult.h + include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h + include/alibabacloud/cloud-siem/model/ListAccountsByLogResult.h + include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h + include/alibabacloud/cloud-siem/model/ListAllProdsResult.h include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsRequest.h include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsResult.h + include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h + include/alibabacloud/cloud-siem/model/ListBindAccountResult.h + include/alibabacloud/cloud-siem/model/ListBindDataSourcesRequest.h + include/alibabacloud/cloud-siem/model/ListBindDataSourcesResult.h include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesRequest.h include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesResult.h include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesRequest.h include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesResult.h include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultRequest.h include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultResult.h + include/alibabacloud/cloud-siem/model/ListDataSourceLogsRequest.h + include/alibabacloud/cloud-siem/model/ListDataSourceLogsResult.h + include/alibabacloud/cloud-siem/model/ListDataSourceTypesRequest.h + include/alibabacloud/cloud-siem/model/ListDataSourceTypesResult.h include/alibabacloud/cloud-siem/model/ListDeliveryRequest.h include/alibabacloud/cloud-siem/model/ListDeliveryResult.h include/alibabacloud/cloud-siem/model/ListDisposeStrategyRequest.h include/alibabacloud/cloud-siem/model/ListDisposeStrategyResult.h + include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h + include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h include/alibabacloud/cloud-siem/model/ListOperationRequest.h include/alibabacloud/cloud-siem/model/ListOperationResult.h + include/alibabacloud/cloud-siem/model/ListProjectLogStoresRequest.h + include/alibabacloud/cloud-siem/model/ListProjectLogStoresResult.h include/alibabacloud/cloud-siem/model/ListQuickQueryRequest.h include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h + include/alibabacloud/cloud-siem/model/ListRdUsersRequest.h + include/alibabacloud/cloud-siem/model/ListRdUsersResult.h + include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h + include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.h + include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.h + include/alibabacloud/cloud-siem/model/ListUsersByProdResult.h + include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h + include/alibabacloud/cloud-siem/model/ModifyBindAccountResult.h + include/alibabacloud/cloud-siem/model/ModifyDataSourceRequest.h + include/alibabacloud/cloud-siem/model/ModifyDataSourceResult.h + include/alibabacloud/cloud-siem/model/ModifyDataSourceLogRequest.h + include/alibabacloud/cloud-siem/model/ModifyDataSourceLogResult.h include/alibabacloud/cloud-siem/model/OpenDeliveryRequest.h include/alibabacloud/cloud-siem/model/OpenDeliveryResult.h include/alibabacloud/cloud-siem/model/PostAutomateResponseConfigRequest.h @@ -153,6 +231,10 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/SetStorageResult.h include/alibabacloud/cloud-siem/model/ShowQuickAnalysisRequest.h include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h + include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h + include/alibabacloud/cloud-siem/model/SubmitImportLogTasksResult.h + include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h + include/alibabacloud/cloud-siem/model/SubmitJobsResult.h include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusRequest.h include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusResult.h include/alibabacloud/cloud-siem/model/UpdateWhiteRuleListRequest.h @@ -160,22 +242,42 @@ set(cloud-siem_public_header_model set(cloud-siem_src src/Cloud-siemClient.cc + src/model/AddDataSourceRequest.cc + src/model/AddDataSourceResult.cc + src/model/AddDataSourceLogRequest.cc + src/model/AddDataSourceLogResult.cc + src/model/AddUserRequest.cc + src/model/AddUserResult.cc + src/model/AddUserSourceLogConfigRequest.cc + src/model/AddUserSourceLogConfigResult.cc src/model/BatchJobCheckRequest.cc src/model/BatchJobCheckResult.cc src/model/BatchJobSubmitRequest.cc src/model/BatchJobSubmitResult.cc + src/model/BindAccountRequest.cc + src/model/BindAccountResult.cc src/model/CloseDeliveryRequest.cc src/model/CloseDeliveryResult.cc src/model/DeleteAutomateResponseConfigRequest.cc src/model/DeleteAutomateResponseConfigResult.cc + src/model/DeleteBindAccountRequest.cc + src/model/DeleteBindAccountResult.cc src/model/DeleteCustomizeRuleRequest.cc src/model/DeleteCustomizeRuleResult.cc + src/model/DeleteDataSourceRequest.cc + src/model/DeleteDataSourceResult.cc + src/model/DeleteDataSourceLogRequest.cc + src/model/DeleteDataSourceLogResult.cc src/model/DeleteQuickQueryRequest.cc src/model/DeleteQuickQueryResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc src/model/DeleteWhiteRuleListRequest.cc src/model/DeleteWhiteRuleListResult.cc src/model/DescribeAggregateFunctionRequest.cc src/model/DescribeAggregateFunctionResult.cc + src/model/DescribeAlertSceneRequest.cc + src/model/DescribeAlertSceneResult.cc src/model/DescribeAlertSceneByEventRequest.cc src/model/DescribeAlertSceneByEventResult.cc src/model/DescribeAlertSourceRequest.cc @@ -184,10 +286,18 @@ set(cloud-siem_src src/model/DescribeAlertSourceWithEventResult.cc src/model/DescribeAlertTypeRequest.cc src/model/DescribeAlertTypeResult.cc + src/model/DescribeAlertsRequest.cc + src/model/DescribeAlertsResult.cc src/model/DescribeAlertsCountRequest.cc src/model/DescribeAlertsCountResult.cc + src/model/DescribeAlertsWithEntityRequest.cc + src/model/DescribeAlertsWithEntityResult.cc + src/model/DescribeAlertsWithEventRequest.cc + src/model/DescribeAlertsWithEventResult.cc src/model/DescribeAttackTimeLineRequest.cc src/model/DescribeAttackTimeLineResult.cc + src/model/DescribeAuthRequest.cc + src/model/DescribeAuthResult.cc src/model/DescribeAutomateResponseConfigCounterRequest.cc src/model/DescribeAutomateResponseConfigCounterResult.cc src/model/DescribeAutomateResponseConfigFeatureRequest.cc @@ -202,6 +312,8 @@ set(cloud-siem_src src/model/DescribeCloudSiemEventDetailResult.cc src/model/DescribeCloudSiemEventsRequest.cc src/model/DescribeCloudSiemEventsResult.cc + src/model/DescribeCsImportedProdStatusByUserRequest.cc + src/model/DescribeCsImportedProdStatusByUserResult.cc src/model/DescribeCustomizeRuleRequest.cc src/model/DescribeCustomizeRuleResult.cc src/model/DescribeCustomizeRuleCountRequest.cc @@ -210,6 +322,10 @@ set(cloud-siem_src src/model/DescribeCustomizeRuleTestResult.cc src/model/DescribeCustomizeRuleTestHistogramRequest.cc src/model/DescribeCustomizeRuleTestHistogramResult.cc + src/model/DescribeDataSourceInstanceRequest.cc + src/model/DescribeDataSourceInstanceResult.cc + src/model/DescribeDataSourceParametersRequest.cc + src/model/DescribeDataSourceParametersResult.cc src/model/DescribeDisposeAndPlaybookRequest.cc src/model/DescribeDisposeAndPlaybookResult.cc src/model/DescribeDisposeStrategyPlaybookRequest.cc @@ -220,6 +336,8 @@ set(cloud-siem_src src/model/DescribeEventCountByThreatLevelResult.cc src/model/DescribeEventDisposeRequest.cc src/model/DescribeEventDisposeResult.cc + src/model/DescribeImportedLogCountRequest.cc + src/model/DescribeImportedLogCountResult.cc src/model/DescribeJobStatusRequest.cc src/model/DescribeJobStatusResult.cc src/model/DescribeLogFieldsRequest.cc @@ -232,16 +350,28 @@ set(cloud-siem_src src/model/DescribeLogTypeResult.cc src/model/DescribeOperatorsRequest.cc src/model/DescribeOperatorsResult.cc + src/model/DescribeProdCountRequest.cc + src/model/DescribeProdCountResult.cc src/model/DescribeScopeUsersRequest.cc src/model/DescribeScopeUsersResult.cc + src/model/DescribeServiceStatusRequest.cc + src/model/DescribeServiceStatusResult.cc src/model/DescribeStorageRequest.cc src/model/DescribeStorageResult.cc + src/model/DescribeUserBuyStatusRequest.cc + src/model/DescribeUserBuyStatusResult.cc src/model/DescribeWafScopeRequest.cc src/model/DescribeWafScopeResult.cc + src/model/DescribeWhiteRuleListRequest.cc + src/model/DescribeWhiteRuleListResult.cc src/model/DoQuickFieldRequest.cc src/model/DoQuickFieldResult.cc src/model/DoSelfDelegateRequest.cc src/model/DoSelfDelegateResult.cc + src/model/EnableAccessForCloudSiemRequest.cc + src/model/EnableAccessForCloudSiemResult.cc + src/model/EnableServiceForCloudSiemRequest.cc + src/model/EnableServiceForCloudSiemResult.cc src/model/GetCapacityRequest.cc src/model/GetCapacityResult.cc src/model/GetHistogramsRequest.cc @@ -252,22 +382,52 @@ set(cloud-siem_src src/model/GetQuickQueryResult.cc src/model/GetStorageRequest.cc src/model/GetStorageResult.cc + src/model/ListAccountAccessIdRequest.cc + src/model/ListAccountAccessIdResult.cc + src/model/ListAccountsByLogRequest.cc + src/model/ListAccountsByLogResult.cc + src/model/ListAllProdsRequest.cc + src/model/ListAllProdsResult.cc src/model/ListAutomateResponseConfigsRequest.cc src/model/ListAutomateResponseConfigsResult.cc + src/model/ListBindAccountRequest.cc + src/model/ListBindAccountResult.cc + src/model/ListBindDataSourcesRequest.cc + src/model/ListBindDataSourcesResult.cc src/model/ListCloudSiemCustomizeRulesRequest.cc src/model/ListCloudSiemCustomizeRulesResult.cc src/model/ListCloudSiemPredefinedRulesRequest.cc src/model/ListCloudSiemPredefinedRulesResult.cc src/model/ListCustomizeRuleTestResultRequest.cc src/model/ListCustomizeRuleTestResultResult.cc + src/model/ListDataSourceLogsRequest.cc + src/model/ListDataSourceLogsResult.cc + src/model/ListDataSourceTypesRequest.cc + src/model/ListDataSourceTypesResult.cc src/model/ListDeliveryRequest.cc src/model/ListDeliveryResult.cc src/model/ListDisposeStrategyRequest.cc src/model/ListDisposeStrategyResult.cc + src/model/ListImportedLogsByProdRequest.cc + src/model/ListImportedLogsByProdResult.cc src/model/ListOperationRequest.cc src/model/ListOperationResult.cc + src/model/ListProjectLogStoresRequest.cc + src/model/ListProjectLogStoresResult.cc src/model/ListQuickQueryRequest.cc src/model/ListQuickQueryResult.cc + src/model/ListRdUsersRequest.cc + src/model/ListRdUsersResult.cc + src/model/ListUserProdLogsRequest.cc + src/model/ListUserProdLogsResult.cc + src/model/ListUsersByProdRequest.cc + src/model/ListUsersByProdResult.cc + src/model/ModifyBindAccountRequest.cc + src/model/ModifyBindAccountResult.cc + src/model/ModifyDataSourceRequest.cc + src/model/ModifyDataSourceResult.cc + src/model/ModifyDataSourceLogRequest.cc + src/model/ModifyDataSourceLogResult.cc src/model/OpenDeliveryRequest.cc src/model/OpenDeliveryResult.cc src/model/PostAutomateResponseConfigRequest.cc @@ -292,6 +452,10 @@ set(cloud-siem_src src/model/SetStorageResult.cc src/model/ShowQuickAnalysisRequest.cc src/model/ShowQuickAnalysisResult.cc + src/model/SubmitImportLogTasksRequest.cc + src/model/SubmitImportLogTasksResult.cc + src/model/SubmitJobsRequest.cc + src/model/SubmitJobsResult.cc src/model/UpdateAutomateResponseConfigStatusRequest.cc src/model/UpdateAutomateResponseConfigStatusResult.cc src/model/UpdateWhiteRuleListRequest.cc diff --git a/cloud-siem/include/alibabacloud/cloud-siem/Cloud_siemClient.h b/cloud-siem/include/alibabacloud/cloud-siem/Cloud_siemClient.h index d013b06da..26ebea162 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/Cloud_siemClient.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/Cloud_siemClient.h @@ -22,22 +22,42 @@ #include #include #include "Cloud_siemExport.h" +#include "model/AddDataSourceRequest.h" +#include "model/AddDataSourceResult.h" +#include "model/AddDataSourceLogRequest.h" +#include "model/AddDataSourceLogResult.h" +#include "model/AddUserRequest.h" +#include "model/AddUserResult.h" +#include "model/AddUserSourceLogConfigRequest.h" +#include "model/AddUserSourceLogConfigResult.h" #include "model/BatchJobCheckRequest.h" #include "model/BatchJobCheckResult.h" #include "model/BatchJobSubmitRequest.h" #include "model/BatchJobSubmitResult.h" +#include "model/BindAccountRequest.h" +#include "model/BindAccountResult.h" #include "model/CloseDeliveryRequest.h" #include "model/CloseDeliveryResult.h" #include "model/DeleteAutomateResponseConfigRequest.h" #include "model/DeleteAutomateResponseConfigResult.h" +#include "model/DeleteBindAccountRequest.h" +#include "model/DeleteBindAccountResult.h" #include "model/DeleteCustomizeRuleRequest.h" #include "model/DeleteCustomizeRuleResult.h" +#include "model/DeleteDataSourceRequest.h" +#include "model/DeleteDataSourceResult.h" +#include "model/DeleteDataSourceLogRequest.h" +#include "model/DeleteDataSourceLogResult.h" #include "model/DeleteQuickQueryRequest.h" #include "model/DeleteQuickQueryResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" #include "model/DeleteWhiteRuleListRequest.h" #include "model/DeleteWhiteRuleListResult.h" #include "model/DescribeAggregateFunctionRequest.h" #include "model/DescribeAggregateFunctionResult.h" +#include "model/DescribeAlertSceneRequest.h" +#include "model/DescribeAlertSceneResult.h" #include "model/DescribeAlertSceneByEventRequest.h" #include "model/DescribeAlertSceneByEventResult.h" #include "model/DescribeAlertSourceRequest.h" @@ -46,10 +66,18 @@ #include "model/DescribeAlertSourceWithEventResult.h" #include "model/DescribeAlertTypeRequest.h" #include "model/DescribeAlertTypeResult.h" +#include "model/DescribeAlertsRequest.h" +#include "model/DescribeAlertsResult.h" #include "model/DescribeAlertsCountRequest.h" #include "model/DescribeAlertsCountResult.h" +#include "model/DescribeAlertsWithEntityRequest.h" +#include "model/DescribeAlertsWithEntityResult.h" +#include "model/DescribeAlertsWithEventRequest.h" +#include "model/DescribeAlertsWithEventResult.h" #include "model/DescribeAttackTimeLineRequest.h" #include "model/DescribeAttackTimeLineResult.h" +#include "model/DescribeAuthRequest.h" +#include "model/DescribeAuthResult.h" #include "model/DescribeAutomateResponseConfigCounterRequest.h" #include "model/DescribeAutomateResponseConfigCounterResult.h" #include "model/DescribeAutomateResponseConfigFeatureRequest.h" @@ -64,6 +92,8 @@ #include "model/DescribeCloudSiemEventDetailResult.h" #include "model/DescribeCloudSiemEventsRequest.h" #include "model/DescribeCloudSiemEventsResult.h" +#include "model/DescribeCsImportedProdStatusByUserRequest.h" +#include "model/DescribeCsImportedProdStatusByUserResult.h" #include "model/DescribeCustomizeRuleRequest.h" #include "model/DescribeCustomizeRuleResult.h" #include "model/DescribeCustomizeRuleCountRequest.h" @@ -72,6 +102,10 @@ #include "model/DescribeCustomizeRuleTestResult.h" #include "model/DescribeCustomizeRuleTestHistogramRequest.h" #include "model/DescribeCustomizeRuleTestHistogramResult.h" +#include "model/DescribeDataSourceInstanceRequest.h" +#include "model/DescribeDataSourceInstanceResult.h" +#include "model/DescribeDataSourceParametersRequest.h" +#include "model/DescribeDataSourceParametersResult.h" #include "model/DescribeDisposeAndPlaybookRequest.h" #include "model/DescribeDisposeAndPlaybookResult.h" #include "model/DescribeDisposeStrategyPlaybookRequest.h" @@ -82,6 +116,8 @@ #include "model/DescribeEventCountByThreatLevelResult.h" #include "model/DescribeEventDisposeRequest.h" #include "model/DescribeEventDisposeResult.h" +#include "model/DescribeImportedLogCountRequest.h" +#include "model/DescribeImportedLogCountResult.h" #include "model/DescribeJobStatusRequest.h" #include "model/DescribeJobStatusResult.h" #include "model/DescribeLogFieldsRequest.h" @@ -94,16 +130,28 @@ #include "model/DescribeLogTypeResult.h" #include "model/DescribeOperatorsRequest.h" #include "model/DescribeOperatorsResult.h" +#include "model/DescribeProdCountRequest.h" +#include "model/DescribeProdCountResult.h" #include "model/DescribeScopeUsersRequest.h" #include "model/DescribeScopeUsersResult.h" +#include "model/DescribeServiceStatusRequest.h" +#include "model/DescribeServiceStatusResult.h" #include "model/DescribeStorageRequest.h" #include "model/DescribeStorageResult.h" +#include "model/DescribeUserBuyStatusRequest.h" +#include "model/DescribeUserBuyStatusResult.h" #include "model/DescribeWafScopeRequest.h" #include "model/DescribeWafScopeResult.h" +#include "model/DescribeWhiteRuleListRequest.h" +#include "model/DescribeWhiteRuleListResult.h" #include "model/DoQuickFieldRequest.h" #include "model/DoQuickFieldResult.h" #include "model/DoSelfDelegateRequest.h" #include "model/DoSelfDelegateResult.h" +#include "model/EnableAccessForCloudSiemRequest.h" +#include "model/EnableAccessForCloudSiemResult.h" +#include "model/EnableServiceForCloudSiemRequest.h" +#include "model/EnableServiceForCloudSiemResult.h" #include "model/GetCapacityRequest.h" #include "model/GetCapacityResult.h" #include "model/GetHistogramsRequest.h" @@ -114,22 +162,52 @@ #include "model/GetQuickQueryResult.h" #include "model/GetStorageRequest.h" #include "model/GetStorageResult.h" +#include "model/ListAccountAccessIdRequest.h" +#include "model/ListAccountAccessIdResult.h" +#include "model/ListAccountsByLogRequest.h" +#include "model/ListAccountsByLogResult.h" +#include "model/ListAllProdsRequest.h" +#include "model/ListAllProdsResult.h" #include "model/ListAutomateResponseConfigsRequest.h" #include "model/ListAutomateResponseConfigsResult.h" +#include "model/ListBindAccountRequest.h" +#include "model/ListBindAccountResult.h" +#include "model/ListBindDataSourcesRequest.h" +#include "model/ListBindDataSourcesResult.h" #include "model/ListCloudSiemCustomizeRulesRequest.h" #include "model/ListCloudSiemCustomizeRulesResult.h" #include "model/ListCloudSiemPredefinedRulesRequest.h" #include "model/ListCloudSiemPredefinedRulesResult.h" #include "model/ListCustomizeRuleTestResultRequest.h" #include "model/ListCustomizeRuleTestResultResult.h" +#include "model/ListDataSourceLogsRequest.h" +#include "model/ListDataSourceLogsResult.h" +#include "model/ListDataSourceTypesRequest.h" +#include "model/ListDataSourceTypesResult.h" #include "model/ListDeliveryRequest.h" #include "model/ListDeliveryResult.h" #include "model/ListDisposeStrategyRequest.h" #include "model/ListDisposeStrategyResult.h" +#include "model/ListImportedLogsByProdRequest.h" +#include "model/ListImportedLogsByProdResult.h" #include "model/ListOperationRequest.h" #include "model/ListOperationResult.h" +#include "model/ListProjectLogStoresRequest.h" +#include "model/ListProjectLogStoresResult.h" #include "model/ListQuickQueryRequest.h" #include "model/ListQuickQueryResult.h" +#include "model/ListRdUsersRequest.h" +#include "model/ListRdUsersResult.h" +#include "model/ListUserProdLogsRequest.h" +#include "model/ListUserProdLogsResult.h" +#include "model/ListUsersByProdRequest.h" +#include "model/ListUsersByProdResult.h" +#include "model/ModifyBindAccountRequest.h" +#include "model/ModifyBindAccountResult.h" +#include "model/ModifyDataSourceRequest.h" +#include "model/ModifyDataSourceResult.h" +#include "model/ModifyDataSourceLogRequest.h" +#include "model/ModifyDataSourceLogResult.h" #include "model/OpenDeliveryRequest.h" #include "model/OpenDeliveryResult.h" #include "model/PostAutomateResponseConfigRequest.h" @@ -154,6 +232,10 @@ #include "model/SetStorageResult.h" #include "model/ShowQuickAnalysisRequest.h" #include "model/ShowQuickAnalysisResult.h" +#include "model/SubmitImportLogTasksRequest.h" +#include "model/SubmitImportLogTasksResult.h" +#include "model/SubmitJobsRequest.h" +#include "model/SubmitJobsResult.h" #include "model/UpdateAutomateResponseConfigStatusRequest.h" #include "model/UpdateAutomateResponseConfigStatusResult.h" #include "model/UpdateWhiteRuleListRequest.h" @@ -167,30 +249,60 @@ namespace AlibabaCloud class ALIBABACLOUD_CLOUD_SIEM_EXPORT Cloud_siemClient : public RpcServiceClient { public: + typedef Outcome AddDataSourceOutcome; + typedef std::future AddDataSourceOutcomeCallable; + typedef std::function&)> AddDataSourceAsyncHandler; + typedef Outcome AddDataSourceLogOutcome; + typedef std::future AddDataSourceLogOutcomeCallable; + typedef std::function&)> AddDataSourceLogAsyncHandler; + typedef Outcome AddUserOutcome; + typedef std::future AddUserOutcomeCallable; + typedef std::function&)> AddUserAsyncHandler; + typedef Outcome AddUserSourceLogConfigOutcome; + typedef std::future AddUserSourceLogConfigOutcomeCallable; + typedef std::function&)> AddUserSourceLogConfigAsyncHandler; typedef Outcome BatchJobCheckOutcome; typedef std::future BatchJobCheckOutcomeCallable; typedef std::function&)> BatchJobCheckAsyncHandler; typedef Outcome BatchJobSubmitOutcome; typedef std::future BatchJobSubmitOutcomeCallable; typedef std::function&)> BatchJobSubmitAsyncHandler; + typedef Outcome BindAccountOutcome; + typedef std::future BindAccountOutcomeCallable; + typedef std::function&)> BindAccountAsyncHandler; typedef Outcome CloseDeliveryOutcome; typedef std::future CloseDeliveryOutcomeCallable; typedef std::function&)> CloseDeliveryAsyncHandler; typedef Outcome DeleteAutomateResponseConfigOutcome; typedef std::future DeleteAutomateResponseConfigOutcomeCallable; typedef std::function&)> DeleteAutomateResponseConfigAsyncHandler; + typedef Outcome DeleteBindAccountOutcome; + typedef std::future DeleteBindAccountOutcomeCallable; + typedef std::function&)> DeleteBindAccountAsyncHandler; typedef Outcome DeleteCustomizeRuleOutcome; typedef std::future DeleteCustomizeRuleOutcomeCallable; typedef std::function&)> DeleteCustomizeRuleAsyncHandler; + typedef Outcome DeleteDataSourceOutcome; + typedef std::future DeleteDataSourceOutcomeCallable; + typedef std::function&)> DeleteDataSourceAsyncHandler; + typedef Outcome DeleteDataSourceLogOutcome; + typedef std::future DeleteDataSourceLogOutcomeCallable; + typedef std::function&)> DeleteDataSourceLogAsyncHandler; typedef Outcome DeleteQuickQueryOutcome; typedef std::future DeleteQuickQueryOutcomeCallable; typedef std::function&)> DeleteQuickQueryAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; typedef Outcome DeleteWhiteRuleListOutcome; typedef std::future DeleteWhiteRuleListOutcomeCallable; typedef std::function&)> DeleteWhiteRuleListAsyncHandler; typedef Outcome DescribeAggregateFunctionOutcome; typedef std::future DescribeAggregateFunctionOutcomeCallable; typedef std::function&)> DescribeAggregateFunctionAsyncHandler; + typedef Outcome DescribeAlertSceneOutcome; + typedef std::future DescribeAlertSceneOutcomeCallable; + typedef std::function&)> DescribeAlertSceneAsyncHandler; typedef Outcome DescribeAlertSceneByEventOutcome; typedef std::future DescribeAlertSceneByEventOutcomeCallable; typedef std::function&)> DescribeAlertSceneByEventAsyncHandler; @@ -203,12 +315,24 @@ namespace AlibabaCloud typedef Outcome DescribeAlertTypeOutcome; typedef std::future DescribeAlertTypeOutcomeCallable; typedef std::function&)> DescribeAlertTypeAsyncHandler; + typedef Outcome DescribeAlertsOutcome; + typedef std::future DescribeAlertsOutcomeCallable; + typedef std::function&)> DescribeAlertsAsyncHandler; typedef Outcome DescribeAlertsCountOutcome; typedef std::future DescribeAlertsCountOutcomeCallable; typedef std::function&)> DescribeAlertsCountAsyncHandler; + typedef Outcome DescribeAlertsWithEntityOutcome; + typedef std::future DescribeAlertsWithEntityOutcomeCallable; + typedef std::function&)> DescribeAlertsWithEntityAsyncHandler; + typedef Outcome DescribeAlertsWithEventOutcome; + typedef std::future DescribeAlertsWithEventOutcomeCallable; + typedef std::function&)> DescribeAlertsWithEventAsyncHandler; typedef Outcome DescribeAttackTimeLineOutcome; typedef std::future DescribeAttackTimeLineOutcomeCallable; typedef std::function&)> DescribeAttackTimeLineAsyncHandler; + typedef Outcome DescribeAuthOutcome; + typedef std::future DescribeAuthOutcomeCallable; + typedef std::function&)> DescribeAuthAsyncHandler; typedef Outcome DescribeAutomateResponseConfigCounterOutcome; typedef std::future DescribeAutomateResponseConfigCounterOutcomeCallable; typedef std::function&)> DescribeAutomateResponseConfigCounterAsyncHandler; @@ -230,6 +354,9 @@ namespace AlibabaCloud typedef Outcome DescribeCloudSiemEventsOutcome; typedef std::future DescribeCloudSiemEventsOutcomeCallable; typedef std::function&)> DescribeCloudSiemEventsAsyncHandler; + typedef Outcome DescribeCsImportedProdStatusByUserOutcome; + typedef std::future DescribeCsImportedProdStatusByUserOutcomeCallable; + typedef std::function&)> DescribeCsImportedProdStatusByUserAsyncHandler; typedef Outcome DescribeCustomizeRuleOutcome; typedef std::future DescribeCustomizeRuleOutcomeCallable; typedef std::function&)> DescribeCustomizeRuleAsyncHandler; @@ -242,6 +369,12 @@ namespace AlibabaCloud typedef Outcome DescribeCustomizeRuleTestHistogramOutcome; typedef std::future DescribeCustomizeRuleTestHistogramOutcomeCallable; typedef std::function&)> DescribeCustomizeRuleTestHistogramAsyncHandler; + typedef Outcome DescribeDataSourceInstanceOutcome; + typedef std::future DescribeDataSourceInstanceOutcomeCallable; + typedef std::function&)> DescribeDataSourceInstanceAsyncHandler; + typedef Outcome DescribeDataSourceParametersOutcome; + typedef std::future DescribeDataSourceParametersOutcomeCallable; + typedef std::function&)> DescribeDataSourceParametersAsyncHandler; typedef Outcome DescribeDisposeAndPlaybookOutcome; typedef std::future DescribeDisposeAndPlaybookOutcomeCallable; typedef std::function&)> DescribeDisposeAndPlaybookAsyncHandler; @@ -257,6 +390,9 @@ namespace AlibabaCloud typedef Outcome DescribeEventDisposeOutcome; typedef std::future DescribeEventDisposeOutcomeCallable; typedef std::function&)> DescribeEventDisposeAsyncHandler; + typedef Outcome DescribeImportedLogCountOutcome; + typedef std::future DescribeImportedLogCountOutcomeCallable; + typedef std::function&)> DescribeImportedLogCountAsyncHandler; typedef Outcome DescribeJobStatusOutcome; typedef std::future DescribeJobStatusOutcomeCallable; typedef std::function&)> DescribeJobStatusAsyncHandler; @@ -275,21 +411,39 @@ namespace AlibabaCloud typedef Outcome DescribeOperatorsOutcome; typedef std::future DescribeOperatorsOutcomeCallable; typedef std::function&)> DescribeOperatorsAsyncHandler; + typedef Outcome DescribeProdCountOutcome; + typedef std::future DescribeProdCountOutcomeCallable; + typedef std::function&)> DescribeProdCountAsyncHandler; typedef Outcome DescribeScopeUsersOutcome; typedef std::future DescribeScopeUsersOutcomeCallable; typedef std::function&)> DescribeScopeUsersAsyncHandler; + typedef Outcome DescribeServiceStatusOutcome; + typedef std::future DescribeServiceStatusOutcomeCallable; + typedef std::function&)> DescribeServiceStatusAsyncHandler; typedef Outcome DescribeStorageOutcome; typedef std::future DescribeStorageOutcomeCallable; typedef std::function&)> DescribeStorageAsyncHandler; + typedef Outcome DescribeUserBuyStatusOutcome; + typedef std::future DescribeUserBuyStatusOutcomeCallable; + typedef std::function&)> DescribeUserBuyStatusAsyncHandler; typedef Outcome DescribeWafScopeOutcome; typedef std::future DescribeWafScopeOutcomeCallable; typedef std::function&)> DescribeWafScopeAsyncHandler; + typedef Outcome DescribeWhiteRuleListOutcome; + typedef std::future DescribeWhiteRuleListOutcomeCallable; + typedef std::function&)> DescribeWhiteRuleListAsyncHandler; typedef Outcome DoQuickFieldOutcome; typedef std::future DoQuickFieldOutcomeCallable; typedef std::function&)> DoQuickFieldAsyncHandler; typedef Outcome DoSelfDelegateOutcome; typedef std::future DoSelfDelegateOutcomeCallable; typedef std::function&)> DoSelfDelegateAsyncHandler; + typedef Outcome EnableAccessForCloudSiemOutcome; + typedef std::future EnableAccessForCloudSiemOutcomeCallable; + typedef std::function&)> EnableAccessForCloudSiemAsyncHandler; + typedef Outcome EnableServiceForCloudSiemOutcome; + typedef std::future EnableServiceForCloudSiemOutcomeCallable; + typedef std::function&)> EnableServiceForCloudSiemAsyncHandler; typedef Outcome GetCapacityOutcome; typedef std::future GetCapacityOutcomeCallable; typedef std::function&)> GetCapacityAsyncHandler; @@ -305,9 +459,24 @@ namespace AlibabaCloud typedef Outcome GetStorageOutcome; typedef std::future GetStorageOutcomeCallable; typedef std::function&)> GetStorageAsyncHandler; + typedef Outcome ListAccountAccessIdOutcome; + typedef std::future ListAccountAccessIdOutcomeCallable; + typedef std::function&)> ListAccountAccessIdAsyncHandler; + typedef Outcome ListAccountsByLogOutcome; + typedef std::future ListAccountsByLogOutcomeCallable; + typedef std::function&)> ListAccountsByLogAsyncHandler; + typedef Outcome ListAllProdsOutcome; + typedef std::future ListAllProdsOutcomeCallable; + typedef std::function&)> ListAllProdsAsyncHandler; typedef Outcome ListAutomateResponseConfigsOutcome; typedef std::future ListAutomateResponseConfigsOutcomeCallable; typedef std::function&)> ListAutomateResponseConfigsAsyncHandler; + typedef Outcome ListBindAccountOutcome; + typedef std::future ListBindAccountOutcomeCallable; + typedef std::function&)> ListBindAccountAsyncHandler; + typedef Outcome ListBindDataSourcesOutcome; + typedef std::future ListBindDataSourcesOutcomeCallable; + typedef std::function&)> ListBindDataSourcesAsyncHandler; typedef Outcome ListCloudSiemCustomizeRulesOutcome; typedef std::future ListCloudSiemCustomizeRulesOutcomeCallable; typedef std::function&)> ListCloudSiemCustomizeRulesAsyncHandler; @@ -317,18 +486,48 @@ namespace AlibabaCloud typedef Outcome ListCustomizeRuleTestResultOutcome; typedef std::future ListCustomizeRuleTestResultOutcomeCallable; typedef std::function&)> ListCustomizeRuleTestResultAsyncHandler; + typedef Outcome ListDataSourceLogsOutcome; + typedef std::future ListDataSourceLogsOutcomeCallable; + typedef std::function&)> ListDataSourceLogsAsyncHandler; + typedef Outcome ListDataSourceTypesOutcome; + typedef std::future ListDataSourceTypesOutcomeCallable; + typedef std::function&)> ListDataSourceTypesAsyncHandler; typedef Outcome ListDeliveryOutcome; typedef std::future ListDeliveryOutcomeCallable; typedef std::function&)> ListDeliveryAsyncHandler; typedef Outcome ListDisposeStrategyOutcome; typedef std::future ListDisposeStrategyOutcomeCallable; typedef std::function&)> ListDisposeStrategyAsyncHandler; + typedef Outcome ListImportedLogsByProdOutcome; + typedef std::future ListImportedLogsByProdOutcomeCallable; + typedef std::function&)> ListImportedLogsByProdAsyncHandler; typedef Outcome ListOperationOutcome; typedef std::future ListOperationOutcomeCallable; typedef std::function&)> ListOperationAsyncHandler; + typedef Outcome ListProjectLogStoresOutcome; + typedef std::future ListProjectLogStoresOutcomeCallable; + typedef std::function&)> ListProjectLogStoresAsyncHandler; typedef Outcome ListQuickQueryOutcome; typedef std::future ListQuickQueryOutcomeCallable; typedef std::function&)> ListQuickQueryAsyncHandler; + typedef Outcome ListRdUsersOutcome; + typedef std::future ListRdUsersOutcomeCallable; + typedef std::function&)> ListRdUsersAsyncHandler; + typedef Outcome ListUserProdLogsOutcome; + typedef std::future ListUserProdLogsOutcomeCallable; + typedef std::function&)> ListUserProdLogsAsyncHandler; + typedef Outcome ListUsersByProdOutcome; + typedef std::future ListUsersByProdOutcomeCallable; + typedef std::function&)> ListUsersByProdAsyncHandler; + typedef Outcome ModifyBindAccountOutcome; + typedef std::future ModifyBindAccountOutcomeCallable; + typedef std::function&)> ModifyBindAccountAsyncHandler; + typedef Outcome ModifyDataSourceOutcome; + typedef std::future ModifyDataSourceOutcomeCallable; + typedef std::function&)> ModifyDataSourceAsyncHandler; + typedef Outcome ModifyDataSourceLogOutcome; + typedef std::future ModifyDataSourceLogOutcomeCallable; + typedef std::function&)> ModifyDataSourceLogAsyncHandler; typedef Outcome OpenDeliveryOutcome; typedef std::future OpenDeliveryOutcomeCallable; typedef std::function&)> OpenDeliveryAsyncHandler; @@ -365,6 +564,12 @@ namespace AlibabaCloud typedef Outcome ShowQuickAnalysisOutcome; typedef std::future ShowQuickAnalysisOutcomeCallable; typedef std::function&)> ShowQuickAnalysisAsyncHandler; + typedef Outcome SubmitImportLogTasksOutcome; + typedef std::future SubmitImportLogTasksOutcomeCallable; + typedef std::function&)> SubmitImportLogTasksAsyncHandler; + typedef Outcome SubmitJobsOutcome; + typedef std::future SubmitJobsOutcomeCallable; + typedef std::function&)> SubmitJobsAsyncHandler; typedef Outcome UpdateAutomateResponseConfigStatusOutcome; typedef std::future UpdateAutomateResponseConfigStatusOutcomeCallable; typedef std::function&)> UpdateAutomateResponseConfigStatusAsyncHandler; @@ -376,30 +581,60 @@ namespace AlibabaCloud Cloud_siemClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); Cloud_siemClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~Cloud_siemClient(); + AddDataSourceOutcome addDataSource(const Model::AddDataSourceRequest &request)const; + void addDataSourceAsync(const Model::AddDataSourceRequest& request, const AddDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddDataSourceOutcomeCallable addDataSourceCallable(const Model::AddDataSourceRequest& request) const; + AddDataSourceLogOutcome addDataSourceLog(const Model::AddDataSourceLogRequest &request)const; + void addDataSourceLogAsync(const Model::AddDataSourceLogRequest& request, const AddDataSourceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddDataSourceLogOutcomeCallable addDataSourceLogCallable(const Model::AddDataSourceLogRequest& request) const; + AddUserOutcome addUser(const Model::AddUserRequest &request)const; + void addUserAsync(const Model::AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserOutcomeCallable addUserCallable(const Model::AddUserRequest& request) const; + AddUserSourceLogConfigOutcome addUserSourceLogConfig(const Model::AddUserSourceLogConfigRequest &request)const; + void addUserSourceLogConfigAsync(const Model::AddUserSourceLogConfigRequest& request, const AddUserSourceLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserSourceLogConfigOutcomeCallable addUserSourceLogConfigCallable(const Model::AddUserSourceLogConfigRequest& request) const; BatchJobCheckOutcome batchJobCheck(const Model::BatchJobCheckRequest &request)const; void batchJobCheckAsync(const Model::BatchJobCheckRequest& request, const BatchJobCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchJobCheckOutcomeCallable batchJobCheckCallable(const Model::BatchJobCheckRequest& request) const; BatchJobSubmitOutcome batchJobSubmit(const Model::BatchJobSubmitRequest &request)const; void batchJobSubmitAsync(const Model::BatchJobSubmitRequest& request, const BatchJobSubmitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchJobSubmitOutcomeCallable batchJobSubmitCallable(const Model::BatchJobSubmitRequest& request) const; + BindAccountOutcome bindAccount(const Model::BindAccountRequest &request)const; + void bindAccountAsync(const Model::BindAccountRequest& request, const BindAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindAccountOutcomeCallable bindAccountCallable(const Model::BindAccountRequest& request) const; CloseDeliveryOutcome closeDelivery(const Model::CloseDeliveryRequest &request)const; void closeDeliveryAsync(const Model::CloseDeliveryRequest& request, const CloseDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloseDeliveryOutcomeCallable closeDeliveryCallable(const Model::CloseDeliveryRequest& request) const; DeleteAutomateResponseConfigOutcome deleteAutomateResponseConfig(const Model::DeleteAutomateResponseConfigRequest &request)const; void deleteAutomateResponseConfigAsync(const Model::DeleteAutomateResponseConfigRequest& request, const DeleteAutomateResponseConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAutomateResponseConfigOutcomeCallable deleteAutomateResponseConfigCallable(const Model::DeleteAutomateResponseConfigRequest& request) const; + DeleteBindAccountOutcome deleteBindAccount(const Model::DeleteBindAccountRequest &request)const; + void deleteBindAccountAsync(const Model::DeleteBindAccountRequest& request, const DeleteBindAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBindAccountOutcomeCallable deleteBindAccountCallable(const Model::DeleteBindAccountRequest& request) const; DeleteCustomizeRuleOutcome deleteCustomizeRule(const Model::DeleteCustomizeRuleRequest &request)const; void deleteCustomizeRuleAsync(const Model::DeleteCustomizeRuleRequest& request, const DeleteCustomizeRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCustomizeRuleOutcomeCallable deleteCustomizeRuleCallable(const Model::DeleteCustomizeRuleRequest& request) const; + DeleteDataSourceOutcome deleteDataSource(const Model::DeleteDataSourceRequest &request)const; + void deleteDataSourceAsync(const Model::DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataSourceOutcomeCallable deleteDataSourceCallable(const Model::DeleteDataSourceRequest& request) const; + DeleteDataSourceLogOutcome deleteDataSourceLog(const Model::DeleteDataSourceLogRequest &request)const; + void deleteDataSourceLogAsync(const Model::DeleteDataSourceLogRequest& request, const DeleteDataSourceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataSourceLogOutcomeCallable deleteDataSourceLogCallable(const Model::DeleteDataSourceLogRequest& request) const; DeleteQuickQueryOutcome deleteQuickQuery(const Model::DeleteQuickQueryRequest &request)const; void deleteQuickQueryAsync(const Model::DeleteQuickQueryRequest& request, const DeleteQuickQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteQuickQueryOutcomeCallable deleteQuickQueryCallable(const Model::DeleteQuickQueryRequest& 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; DeleteWhiteRuleListOutcome deleteWhiteRuleList(const Model::DeleteWhiteRuleListRequest &request)const; void deleteWhiteRuleListAsync(const Model::DeleteWhiteRuleListRequest& request, const DeleteWhiteRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteWhiteRuleListOutcomeCallable deleteWhiteRuleListCallable(const Model::DeleteWhiteRuleListRequest& request) const; DescribeAggregateFunctionOutcome describeAggregateFunction(const Model::DescribeAggregateFunctionRequest &request)const; void describeAggregateFunctionAsync(const Model::DescribeAggregateFunctionRequest& request, const DescribeAggregateFunctionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAggregateFunctionOutcomeCallable describeAggregateFunctionCallable(const Model::DescribeAggregateFunctionRequest& request) const; + DescribeAlertSceneOutcome describeAlertScene(const Model::DescribeAlertSceneRequest &request)const; + void describeAlertSceneAsync(const Model::DescribeAlertSceneRequest& request, const DescribeAlertSceneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlertSceneOutcomeCallable describeAlertSceneCallable(const Model::DescribeAlertSceneRequest& request) const; DescribeAlertSceneByEventOutcome describeAlertSceneByEvent(const Model::DescribeAlertSceneByEventRequest &request)const; void describeAlertSceneByEventAsync(const Model::DescribeAlertSceneByEventRequest& request, const DescribeAlertSceneByEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAlertSceneByEventOutcomeCallable describeAlertSceneByEventCallable(const Model::DescribeAlertSceneByEventRequest& request) const; @@ -412,12 +647,24 @@ namespace AlibabaCloud DescribeAlertTypeOutcome describeAlertType(const Model::DescribeAlertTypeRequest &request)const; void describeAlertTypeAsync(const Model::DescribeAlertTypeRequest& request, const DescribeAlertTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAlertTypeOutcomeCallable describeAlertTypeCallable(const Model::DescribeAlertTypeRequest& request) const; + DescribeAlertsOutcome describeAlerts(const Model::DescribeAlertsRequest &request)const; + void describeAlertsAsync(const Model::DescribeAlertsRequest& request, const DescribeAlertsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlertsOutcomeCallable describeAlertsCallable(const Model::DescribeAlertsRequest& request) const; DescribeAlertsCountOutcome describeAlertsCount(const Model::DescribeAlertsCountRequest &request)const; void describeAlertsCountAsync(const Model::DescribeAlertsCountRequest& request, const DescribeAlertsCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAlertsCountOutcomeCallable describeAlertsCountCallable(const Model::DescribeAlertsCountRequest& request) const; + DescribeAlertsWithEntityOutcome describeAlertsWithEntity(const Model::DescribeAlertsWithEntityRequest &request)const; + void describeAlertsWithEntityAsync(const Model::DescribeAlertsWithEntityRequest& request, const DescribeAlertsWithEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlertsWithEntityOutcomeCallable describeAlertsWithEntityCallable(const Model::DescribeAlertsWithEntityRequest& request) const; + DescribeAlertsWithEventOutcome describeAlertsWithEvent(const Model::DescribeAlertsWithEventRequest &request)const; + void describeAlertsWithEventAsync(const Model::DescribeAlertsWithEventRequest& request, const DescribeAlertsWithEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlertsWithEventOutcomeCallable describeAlertsWithEventCallable(const Model::DescribeAlertsWithEventRequest& request) const; DescribeAttackTimeLineOutcome describeAttackTimeLine(const Model::DescribeAttackTimeLineRequest &request)const; void describeAttackTimeLineAsync(const Model::DescribeAttackTimeLineRequest& request, const DescribeAttackTimeLineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAttackTimeLineOutcomeCallable describeAttackTimeLineCallable(const Model::DescribeAttackTimeLineRequest& request) const; + DescribeAuthOutcome describeAuth(const Model::DescribeAuthRequest &request)const; + void describeAuthAsync(const Model::DescribeAuthRequest& request, const DescribeAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuthOutcomeCallable describeAuthCallable(const Model::DescribeAuthRequest& request) const; DescribeAutomateResponseConfigCounterOutcome describeAutomateResponseConfigCounter(const Model::DescribeAutomateResponseConfigCounterRequest &request)const; void describeAutomateResponseConfigCounterAsync(const Model::DescribeAutomateResponseConfigCounterRequest& request, const DescribeAutomateResponseConfigCounterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAutomateResponseConfigCounterOutcomeCallable describeAutomateResponseConfigCounterCallable(const Model::DescribeAutomateResponseConfigCounterRequest& request) const; @@ -439,6 +686,9 @@ namespace AlibabaCloud DescribeCloudSiemEventsOutcome describeCloudSiemEvents(const Model::DescribeCloudSiemEventsRequest &request)const; void describeCloudSiemEventsAsync(const Model::DescribeCloudSiemEventsRequest& request, const DescribeCloudSiemEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCloudSiemEventsOutcomeCallable describeCloudSiemEventsCallable(const Model::DescribeCloudSiemEventsRequest& request) const; + DescribeCsImportedProdStatusByUserOutcome describeCsImportedProdStatusByUser(const Model::DescribeCsImportedProdStatusByUserRequest &request)const; + void describeCsImportedProdStatusByUserAsync(const Model::DescribeCsImportedProdStatusByUserRequest& request, const DescribeCsImportedProdStatusByUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCsImportedProdStatusByUserOutcomeCallable describeCsImportedProdStatusByUserCallable(const Model::DescribeCsImportedProdStatusByUserRequest& request) const; DescribeCustomizeRuleOutcome describeCustomizeRule(const Model::DescribeCustomizeRuleRequest &request)const; void describeCustomizeRuleAsync(const Model::DescribeCustomizeRuleRequest& request, const DescribeCustomizeRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCustomizeRuleOutcomeCallable describeCustomizeRuleCallable(const Model::DescribeCustomizeRuleRequest& request) const; @@ -451,6 +701,12 @@ namespace AlibabaCloud DescribeCustomizeRuleTestHistogramOutcome describeCustomizeRuleTestHistogram(const Model::DescribeCustomizeRuleTestHistogramRequest &request)const; void describeCustomizeRuleTestHistogramAsync(const Model::DescribeCustomizeRuleTestHistogramRequest& request, const DescribeCustomizeRuleTestHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCustomizeRuleTestHistogramOutcomeCallable describeCustomizeRuleTestHistogramCallable(const Model::DescribeCustomizeRuleTestHistogramRequest& request) const; + DescribeDataSourceInstanceOutcome describeDataSourceInstance(const Model::DescribeDataSourceInstanceRequest &request)const; + void describeDataSourceInstanceAsync(const Model::DescribeDataSourceInstanceRequest& request, const DescribeDataSourceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSourceInstanceOutcomeCallable describeDataSourceInstanceCallable(const Model::DescribeDataSourceInstanceRequest& request) const; + DescribeDataSourceParametersOutcome describeDataSourceParameters(const Model::DescribeDataSourceParametersRequest &request)const; + void describeDataSourceParametersAsync(const Model::DescribeDataSourceParametersRequest& request, const DescribeDataSourceParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSourceParametersOutcomeCallable describeDataSourceParametersCallable(const Model::DescribeDataSourceParametersRequest& request) const; DescribeDisposeAndPlaybookOutcome describeDisposeAndPlaybook(const Model::DescribeDisposeAndPlaybookRequest &request)const; void describeDisposeAndPlaybookAsync(const Model::DescribeDisposeAndPlaybookRequest& request, const DescribeDisposeAndPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDisposeAndPlaybookOutcomeCallable describeDisposeAndPlaybookCallable(const Model::DescribeDisposeAndPlaybookRequest& request) const; @@ -466,6 +722,9 @@ namespace AlibabaCloud DescribeEventDisposeOutcome describeEventDispose(const Model::DescribeEventDisposeRequest &request)const; void describeEventDisposeAsync(const Model::DescribeEventDisposeRequest& request, const DescribeEventDisposeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEventDisposeOutcomeCallable describeEventDisposeCallable(const Model::DescribeEventDisposeRequest& request) const; + DescribeImportedLogCountOutcome describeImportedLogCount(const Model::DescribeImportedLogCountRequest &request)const; + void describeImportedLogCountAsync(const Model::DescribeImportedLogCountRequest& request, const DescribeImportedLogCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImportedLogCountOutcomeCallable describeImportedLogCountCallable(const Model::DescribeImportedLogCountRequest& request) const; DescribeJobStatusOutcome describeJobStatus(const Model::DescribeJobStatusRequest &request)const; void describeJobStatusAsync(const Model::DescribeJobStatusRequest& request, const DescribeJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeJobStatusOutcomeCallable describeJobStatusCallable(const Model::DescribeJobStatusRequest& request) const; @@ -484,21 +743,39 @@ namespace AlibabaCloud DescribeOperatorsOutcome describeOperators(const Model::DescribeOperatorsRequest &request)const; void describeOperatorsAsync(const Model::DescribeOperatorsRequest& request, const DescribeOperatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOperatorsOutcomeCallable describeOperatorsCallable(const Model::DescribeOperatorsRequest& request) const; + DescribeProdCountOutcome describeProdCount(const Model::DescribeProdCountRequest &request)const; + void describeProdCountAsync(const Model::DescribeProdCountRequest& request, const DescribeProdCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProdCountOutcomeCallable describeProdCountCallable(const Model::DescribeProdCountRequest& request) const; DescribeScopeUsersOutcome describeScopeUsers(const Model::DescribeScopeUsersRequest &request)const; void describeScopeUsersAsync(const Model::DescribeScopeUsersRequest& request, const DescribeScopeUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScopeUsersOutcomeCallable describeScopeUsersCallable(const Model::DescribeScopeUsersRequest& request) const; + DescribeServiceStatusOutcome describeServiceStatus(const Model::DescribeServiceStatusRequest &request)const; + void describeServiceStatusAsync(const Model::DescribeServiceStatusRequest& request, const DescribeServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServiceStatusOutcomeCallable describeServiceStatusCallable(const Model::DescribeServiceStatusRequest& request) const; DescribeStorageOutcome describeStorage(const Model::DescribeStorageRequest &request)const; void describeStorageAsync(const Model::DescribeStorageRequest& request, const DescribeStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStorageOutcomeCallable describeStorageCallable(const Model::DescribeStorageRequest& request) const; + DescribeUserBuyStatusOutcome describeUserBuyStatus(const Model::DescribeUserBuyStatusRequest &request)const; + void describeUserBuyStatusAsync(const Model::DescribeUserBuyStatusRequest& request, const DescribeUserBuyStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBuyStatusOutcomeCallable describeUserBuyStatusCallable(const Model::DescribeUserBuyStatusRequest& request) const; DescribeWafScopeOutcome describeWafScope(const Model::DescribeWafScopeRequest &request)const; void describeWafScopeAsync(const Model::DescribeWafScopeRequest& request, const DescribeWafScopeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeWafScopeOutcomeCallable describeWafScopeCallable(const Model::DescribeWafScopeRequest& request) const; + DescribeWhiteRuleListOutcome describeWhiteRuleList(const Model::DescribeWhiteRuleListRequest &request)const; + void describeWhiteRuleListAsync(const Model::DescribeWhiteRuleListRequest& request, const DescribeWhiteRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWhiteRuleListOutcomeCallable describeWhiteRuleListCallable(const Model::DescribeWhiteRuleListRequest& request) const; DoQuickFieldOutcome doQuickField(const Model::DoQuickFieldRequest &request)const; void doQuickFieldAsync(const Model::DoQuickFieldRequest& request, const DoQuickFieldAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DoQuickFieldOutcomeCallable doQuickFieldCallable(const Model::DoQuickFieldRequest& request) const; DoSelfDelegateOutcome doSelfDelegate(const Model::DoSelfDelegateRequest &request)const; void doSelfDelegateAsync(const Model::DoSelfDelegateRequest& request, const DoSelfDelegateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DoSelfDelegateOutcomeCallable doSelfDelegateCallable(const Model::DoSelfDelegateRequest& request) const; + EnableAccessForCloudSiemOutcome enableAccessForCloudSiem(const Model::EnableAccessForCloudSiemRequest &request)const; + void enableAccessForCloudSiemAsync(const Model::EnableAccessForCloudSiemRequest& request, const EnableAccessForCloudSiemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableAccessForCloudSiemOutcomeCallable enableAccessForCloudSiemCallable(const Model::EnableAccessForCloudSiemRequest& request) const; + EnableServiceForCloudSiemOutcome enableServiceForCloudSiem(const Model::EnableServiceForCloudSiemRequest &request)const; + void enableServiceForCloudSiemAsync(const Model::EnableServiceForCloudSiemRequest& request, const EnableServiceForCloudSiemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableServiceForCloudSiemOutcomeCallable enableServiceForCloudSiemCallable(const Model::EnableServiceForCloudSiemRequest& request) const; GetCapacityOutcome getCapacity(const Model::GetCapacityRequest &request)const; void getCapacityAsync(const Model::GetCapacityRequest& request, const GetCapacityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCapacityOutcomeCallable getCapacityCallable(const Model::GetCapacityRequest& request) const; @@ -514,9 +791,24 @@ namespace AlibabaCloud GetStorageOutcome getStorage(const Model::GetStorageRequest &request)const; void getStorageAsync(const Model::GetStorageRequest& request, const GetStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStorageOutcomeCallable getStorageCallable(const Model::GetStorageRequest& request) const; + ListAccountAccessIdOutcome listAccountAccessId(const Model::ListAccountAccessIdRequest &request)const; + void listAccountAccessIdAsync(const Model::ListAccountAccessIdRequest& request, const ListAccountAccessIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccountAccessIdOutcomeCallable listAccountAccessIdCallable(const Model::ListAccountAccessIdRequest& request) const; + ListAccountsByLogOutcome listAccountsByLog(const Model::ListAccountsByLogRequest &request)const; + void listAccountsByLogAsync(const Model::ListAccountsByLogRequest& request, const ListAccountsByLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAccountsByLogOutcomeCallable listAccountsByLogCallable(const Model::ListAccountsByLogRequest& request) const; + ListAllProdsOutcome listAllProds(const Model::ListAllProdsRequest &request)const; + void listAllProdsAsync(const Model::ListAllProdsRequest& request, const ListAllProdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAllProdsOutcomeCallable listAllProdsCallable(const Model::ListAllProdsRequest& request) const; ListAutomateResponseConfigsOutcome listAutomateResponseConfigs(const Model::ListAutomateResponseConfigsRequest &request)const; void listAutomateResponseConfigsAsync(const Model::ListAutomateResponseConfigsRequest& request, const ListAutomateResponseConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAutomateResponseConfigsOutcomeCallable listAutomateResponseConfigsCallable(const Model::ListAutomateResponseConfigsRequest& request) const; + ListBindAccountOutcome listBindAccount(const Model::ListBindAccountRequest &request)const; + void listBindAccountAsync(const Model::ListBindAccountRequest& request, const ListBindAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBindAccountOutcomeCallable listBindAccountCallable(const Model::ListBindAccountRequest& request) const; + ListBindDataSourcesOutcome listBindDataSources(const Model::ListBindDataSourcesRequest &request)const; + void listBindDataSourcesAsync(const Model::ListBindDataSourcesRequest& request, const ListBindDataSourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBindDataSourcesOutcomeCallable listBindDataSourcesCallable(const Model::ListBindDataSourcesRequest& request) const; ListCloudSiemCustomizeRulesOutcome listCloudSiemCustomizeRules(const Model::ListCloudSiemCustomizeRulesRequest &request)const; void listCloudSiemCustomizeRulesAsync(const Model::ListCloudSiemCustomizeRulesRequest& request, const ListCloudSiemCustomizeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCloudSiemCustomizeRulesOutcomeCallable listCloudSiemCustomizeRulesCallable(const Model::ListCloudSiemCustomizeRulesRequest& request) const; @@ -526,18 +818,48 @@ namespace AlibabaCloud ListCustomizeRuleTestResultOutcome listCustomizeRuleTestResult(const Model::ListCustomizeRuleTestResultRequest &request)const; void listCustomizeRuleTestResultAsync(const Model::ListCustomizeRuleTestResultRequest& request, const ListCustomizeRuleTestResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCustomizeRuleTestResultOutcomeCallable listCustomizeRuleTestResultCallable(const Model::ListCustomizeRuleTestResultRequest& request) const; + ListDataSourceLogsOutcome listDataSourceLogs(const Model::ListDataSourceLogsRequest &request)const; + void listDataSourceLogsAsync(const Model::ListDataSourceLogsRequest& request, const ListDataSourceLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSourceLogsOutcomeCallable listDataSourceLogsCallable(const Model::ListDataSourceLogsRequest& request) const; + ListDataSourceTypesOutcome listDataSourceTypes(const Model::ListDataSourceTypesRequest &request)const; + void listDataSourceTypesAsync(const Model::ListDataSourceTypesRequest& request, const ListDataSourceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataSourceTypesOutcomeCallable listDataSourceTypesCallable(const Model::ListDataSourceTypesRequest& request) const; ListDeliveryOutcome listDelivery(const Model::ListDeliveryRequest &request)const; void listDeliveryAsync(const Model::ListDeliveryRequest& request, const ListDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDeliveryOutcomeCallable listDeliveryCallable(const Model::ListDeliveryRequest& request) const; ListDisposeStrategyOutcome listDisposeStrategy(const Model::ListDisposeStrategyRequest &request)const; void listDisposeStrategyAsync(const Model::ListDisposeStrategyRequest& request, const ListDisposeStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDisposeStrategyOutcomeCallable listDisposeStrategyCallable(const Model::ListDisposeStrategyRequest& request) const; + ListImportedLogsByProdOutcome listImportedLogsByProd(const Model::ListImportedLogsByProdRequest &request)const; + void listImportedLogsByProdAsync(const Model::ListImportedLogsByProdRequest& request, const ListImportedLogsByProdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImportedLogsByProdOutcomeCallable listImportedLogsByProdCallable(const Model::ListImportedLogsByProdRequest& request) const; ListOperationOutcome listOperation(const Model::ListOperationRequest &request)const; void listOperationAsync(const Model::ListOperationRequest& request, const ListOperationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOperationOutcomeCallable listOperationCallable(const Model::ListOperationRequest& request) const; + ListProjectLogStoresOutcome listProjectLogStores(const Model::ListProjectLogStoresRequest &request)const; + void listProjectLogStoresAsync(const Model::ListProjectLogStoresRequest& request, const ListProjectLogStoresAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectLogStoresOutcomeCallable listProjectLogStoresCallable(const Model::ListProjectLogStoresRequest& request) const; ListQuickQueryOutcome listQuickQuery(const Model::ListQuickQueryRequest &request)const; void listQuickQueryAsync(const Model::ListQuickQueryRequest& request, const ListQuickQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListQuickQueryOutcomeCallable listQuickQueryCallable(const Model::ListQuickQueryRequest& request) const; + ListRdUsersOutcome listRdUsers(const Model::ListRdUsersRequest &request)const; + void listRdUsersAsync(const Model::ListRdUsersRequest& request, const ListRdUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRdUsersOutcomeCallable listRdUsersCallable(const Model::ListRdUsersRequest& request) const; + ListUserProdLogsOutcome listUserProdLogs(const Model::ListUserProdLogsRequest &request)const; + void listUserProdLogsAsync(const Model::ListUserProdLogsRequest& request, const ListUserProdLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserProdLogsOutcomeCallable listUserProdLogsCallable(const Model::ListUserProdLogsRequest& request) const; + ListUsersByProdOutcome listUsersByProd(const Model::ListUsersByProdRequest &request)const; + void listUsersByProdAsync(const Model::ListUsersByProdRequest& request, const ListUsersByProdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersByProdOutcomeCallable listUsersByProdCallable(const Model::ListUsersByProdRequest& request) const; + ModifyBindAccountOutcome modifyBindAccount(const Model::ModifyBindAccountRequest &request)const; + void modifyBindAccountAsync(const Model::ModifyBindAccountRequest& request, const ModifyBindAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBindAccountOutcomeCallable modifyBindAccountCallable(const Model::ModifyBindAccountRequest& request) const; + ModifyDataSourceOutcome modifyDataSource(const Model::ModifyDataSourceRequest &request)const; + void modifyDataSourceAsync(const Model::ModifyDataSourceRequest& request, const ModifyDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataSourceOutcomeCallable modifyDataSourceCallable(const Model::ModifyDataSourceRequest& request) const; + ModifyDataSourceLogOutcome modifyDataSourceLog(const Model::ModifyDataSourceLogRequest &request)const; + void modifyDataSourceLogAsync(const Model::ModifyDataSourceLogRequest& request, const ModifyDataSourceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataSourceLogOutcomeCallable modifyDataSourceLogCallable(const Model::ModifyDataSourceLogRequest& request) const; OpenDeliveryOutcome openDelivery(const Model::OpenDeliveryRequest &request)const; void openDeliveryAsync(const Model::OpenDeliveryRequest& request, const OpenDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenDeliveryOutcomeCallable openDeliveryCallable(const Model::OpenDeliveryRequest& request) const; @@ -574,6 +896,12 @@ namespace AlibabaCloud ShowQuickAnalysisOutcome showQuickAnalysis(const Model::ShowQuickAnalysisRequest &request)const; void showQuickAnalysisAsync(const Model::ShowQuickAnalysisRequest& request, const ShowQuickAnalysisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ShowQuickAnalysisOutcomeCallable showQuickAnalysisCallable(const Model::ShowQuickAnalysisRequest& request) const; + SubmitImportLogTasksOutcome submitImportLogTasks(const Model::SubmitImportLogTasksRequest &request)const; + void submitImportLogTasksAsync(const Model::SubmitImportLogTasksRequest& request, const SubmitImportLogTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitImportLogTasksOutcomeCallable submitImportLogTasksCallable(const Model::SubmitImportLogTasksRequest& request) const; + SubmitJobsOutcome submitJobs(const Model::SubmitJobsRequest &request)const; + void submitJobsAsync(const Model::SubmitJobsRequest& request, const SubmitJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitJobsOutcomeCallable submitJobsCallable(const Model::SubmitJobsRequest& request) const; UpdateAutomateResponseConfigStatusOutcome updateAutomateResponseConfigStatus(const Model::UpdateAutomateResponseConfigStatusRequest &request)const; void updateAutomateResponseConfigStatusAsync(const Model::UpdateAutomateResponseConfigStatusRequest& request, const UpdateAutomateResponseConfigStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAutomateResponseConfigStatusOutcomeCallable updateAutomateResponseConfigStatusCallable(const Model::UpdateAutomateResponseConfigStatusRequest& request) const; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogRequest.h new file mode 100644 index 000000000..d02ada08f --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogRequest.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_CLOUD_SIEM_MODEL_ADDDATASOURCELOGREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCELOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddDataSourceLogRequest : public RpcServiceRequest { +public: + AddDataSourceLogRequest(); + ~AddDataSourceLogRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getLogCode() const; + void setLogCode(const std::string &logCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDataSourceInstanceLogs() const; + void setDataSourceInstanceLogs(const std::string &dataSourceInstanceLogs); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string logCode_; + std::string regionId_; + std::string dataSourceInstanceLogs_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCELOGREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogResult.h new file mode 100644 index 000000000..432b438a0 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceLogResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCELOGRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddDataSourceLogResult : public ServiceResult + { + public: + struct Data + { + std::string logInstanceId; + int count; + }; + + + AddDataSourceLogResult(); + explicit AddDataSourceLogResult(const std::string &payload); + ~AddDataSourceLogResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCELOGRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceRequest.h new file mode 100644 index 000000000..eb548388d --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceRequest.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_CLOUD_SIEM_MODEL_ADDDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddDataSourceRequest : public RpcServiceRequest { +public: + AddDataSourceRequest(); + ~AddDataSourceRequest(); + std::string getDataSourceType() const; + void setDataSourceType(const std::string &dataSourceType); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getDataSourceInstanceName() const; + void setDataSourceInstanceName(const std::string &dataSourceInstanceName); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDataSourceInstanceRemark() const; + void setDataSourceInstanceRemark(const std::string &dataSourceInstanceRemark); + std::string getDataSourceInstanceParams() const; + void setDataSourceInstanceParams(const std::string &dataSourceInstanceParams); + +private: + std::string dataSourceType_; + std::string cloudCode_; + std::string dataSourceInstanceName_; + std::string accountId_; + std::string regionId_; + std::string dataSourceInstanceRemark_; + std::string dataSourceInstanceParams_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceResult.h new file mode 100644 index 000000000..4c7507c73 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddDataSourceResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCERESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddDataSourceResult : public ServiceResult + { + public: + struct Data + { + int count; + std::string dataSourceInstanceId; + }; + + + AddDataSourceResult(); + explicit AddDataSourceResult(const std::string &payload); + ~AddDataSourceResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDDATASOURCERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserRequest.h new file mode 100644 index 000000000..32e23027d --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserRequest.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_CLOUD_SIEM_MODEL_ADDUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddUserRequest : public RpcServiceRequest { +public: + AddUserRequest(); + ~AddUserRequest(); + long getAddedUserId() const; + void setAddedUserId(long addedUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long addedUserId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserResult.h new file mode 100644 index 000000000..ffe01615c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserResult.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_CLOUD_SIEM_MODEL_ADDUSERRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddUserResult : public ServiceResult + { + public: + + + AddUserResult(); + explicit AddUserResult(const std::string &payload); + ~AddUserResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigRequest.h new file mode 100644 index 000000000..c7d4f6658 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigRequest.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_CLOUD_SIEM_MODEL_ADDUSERSOURCELOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERSOURCELOGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddUserSourceLogConfigRequest : public RpcServiceRequest { +public: + AddUserSourceLogConfigRequest(); + ~AddUserSourceLogConfigRequest(); + std::string getDisPlayLine() const; + void setDisPlayLine(const std::string &disPlayLine); + long getSubUserId() const; + void setSubUserId(long subUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceProdCode() const; + void setSourceProdCode(const std::string &sourceProdCode); + std::string getSourceLogInfo() const; + void setSourceLogInfo(const std::string &sourceLogInfo); + int getDeleted() const; + void setDeleted(int deleted); + std::string getSourceLogCode() const; + void setSourceLogCode(const std::string &sourceLogCode); + +private: + std::string disPlayLine_; + long subUserId_; + std::string regionId_; + std::string sourceProdCode_; + std::string sourceLogInfo_; + int deleted_; + std::string sourceLogCode_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERSOURCELOGCONFIGREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.h new file mode 100644 index 000000000..ed19eb2b7 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.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_CLOUD_SIEM_MODEL_ADDUSERSOURCELOGCONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERSOURCELOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT AddUserSourceLogConfigResult : public ServiceResult + { + public: + struct Data + { + long mainUserId; + bool displayed; + std::string diplayLine; + std::string subUserName; + std::string sourceProdCode; + bool imported; + long subUserId; + std::string sourceLogCode; + }; + + + AddUserSourceLogConfigResult(); + explicit AddUserSourceLogConfigResult(const std::string &payload); + ~AddUserSourceLogConfigResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ADDUSERSOURCELOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountRequest.h new file mode 100644 index 000000000..5aae9827e --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountRequest.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_CLOUD_SIEM_MODEL_BINDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BINDACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT BindAccountRequest : public RpcServiceRequest { +public: + BindAccountRequest(); + ~BindAccountRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAccessId() const; + void setAccessId(const std::string &accessId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string accountName_; + std::string regionId_; + std::string accessId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BINDACCOUNTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountResult.h new file mode 100644 index 000000000..63cec8a54 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountResult.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_CLOUD_SIEM_MODEL_BINDACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BINDACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT BindAccountResult : public ServiceResult + { + public: + struct Data + { + int count; + }; + + + BindAccountResult(); + explicit BindAccountResult(const std::string &payload); + ~BindAccountResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BINDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryResult.h index 3fefa2523..0091def96 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud CloseDeliveryResult(); explicit CloseDeliveryResult(const std::string &payload); ~CloseDeliveryResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h new file mode 100644 index 000000000..5494fc5a5 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.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_CLOUD_SIEM_MODEL_DELETEBINDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEBINDACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteBindAccountRequest : public RpcServiceRequest { +public: + DeleteBindAccountRequest(); + ~DeleteBindAccountRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getBindId() const; + void setBindId(long bindId); + std::string getAccessId() const; + void setAccessId(const std::string &accessId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string regionId_; + long bindId_; + std::string accessId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEBINDACCOUNTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountResult.h new file mode 100644 index 000000000..06657684c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountResult.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_CLOUD_SIEM_MODEL_DELETEBINDACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEBINDACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteBindAccountResult : public ServiceResult + { + public: + struct Data + { + int count; + }; + + + DeleteBindAccountResult(); + explicit DeleteBindAccountResult(const std::string &payload); + ~DeleteBindAccountResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEBINDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogRequest.h new file mode 100644 index 000000000..4f70aa8f8 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogRequest.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_CLOUD_SIEM_MODEL_DELETEDATASOURCELOGREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCELOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteDataSourceLogRequest : public RpcServiceRequest { +public: + DeleteDataSourceLogRequest(); + ~DeleteDataSourceLogRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLogInstanceId() const; + void setLogInstanceId(const std::string &logInstanceId); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string regionId_; + std::string logInstanceId_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCELOGREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h new file mode 100644 index 000000000..b4004b405 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCELOGRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteDataSourceLogResult : public ServiceResult + { + public: + struct Data + { + std::string logInstanceId; + int count; + }; + + + DeleteDataSourceLogResult(); + explicit DeleteDataSourceLogResult(const std::string &payload); + ~DeleteDataSourceLogResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCELOGRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceRequest.h new file mode 100644 index 000000000..cd4a173e4 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceRequest.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_CLOUD_SIEM_MODEL_DELETEDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteDataSourceRequest : public RpcServiceRequest { +public: + DeleteDataSourceRequest(); + ~DeleteDataSourceRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string regionId_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceResult.h new file mode 100644 index 000000000..a407813a0 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteDataSourceResult.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_CLOUD_SIEM_MODEL_DELETEDATASOURCERESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteDataSourceResult : public ServiceResult + { + public: + struct Data + { + int count; + }; + + + DeleteDataSourceResult(); + explicit DeleteDataSourceResult(const std::string &payload); + ~DeleteDataSourceResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEDATASOURCERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h index 4e66091a3..8d87f5959 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud DeleteQuickQueryResult(); explicit DeleteQuickQueryResult(const std::string &payload); ~DeleteQuickQueryResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.h new file mode 100644 index 000000000..5e8201238 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.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_CLOUD_SIEM_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteUserRequest : public RpcServiceRequest { +public: + DeleteUserRequest(); + ~DeleteUserRequest(); + long getAddedUserId() const; + void setAddedUserId(long addedUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long addedUserId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEUSERREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserResult.h new file mode 100644 index 000000000..0b1dbd15a --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserResult.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_CLOUD_SIEM_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteUserResult : public ServiceResult + { + public: + + + DeleteUserResult(); + explicit DeleteUserResult(const std::string &payload); + ~DeleteUserResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEUSERRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h new file mode 100644 index 000000000..a81321054 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSCENEREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSCENEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSceneRequest : public RpcServiceRequest { +public: + DescribeAlertSceneRequest(); + ~DescribeAlertSceneRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSCENEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneResult.h new file mode 100644 index 000000000..4c2d78d7a --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSCENERESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSCENERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSceneResult : public ServiceResult + { + public: + struct DataItem + { + struct Target + { + std::string type; + std::string value; + std::vector values; + std::string name; + }; + std::string alertType; + std::string alertTileId; + std::string alertName; + std::vector targets; + std::string alertTypeId; + std::string alertNameId; + std::string alertTile; + }; + + + DescribeAlertSceneResult(); + explicit DescribeAlertSceneResult(const std::string &payload); + ~DescribeAlertSceneResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSCENERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h new file mode 100644 index 000000000..c06962e56 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsRequest : public RpcServiceRequest { +public: + DescribeAlertsRequest(); + ~DescribeAlertsRequest(); + std::string getSource() const; + void setSource(const std::string &source); + std::string getIsDefend() const; + void setIsDefend(const std::string &isDefend); + long getStartTime() const; + void setStartTime(long startTime); + std::string getSubUserId() const; + void setSubUserId(const std::string &subUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getLevel() const; + void setLevel(const std::vector &level); + long getEndTime() const; + void setEndTime(long endTime); + std::string getAlertTitle() const; + void setAlertTitle(const std::string &alertTitle); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getAlertUuid() const; + void setAlertUuid(const std::string &alertUuid); + +private: + std::string source_; + std::string isDefend_; + long startTime_; + std::string subUserId_; + std::string regionId_; + int pageSize_; + std::vector level_; + long endTime_; + std::string alertTitle_; + int currentPage_; + std::string alertUuid_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h new file mode 100644 index 000000000..3f4004ef9 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + long totalCount; + int pageSize; + int currentPage; + }; + struct ResponseDataItem + { + struct AlertInfoListItem + { + std::string keyName; + std::string values; + std::string key; + }; + std::string alertDescEn; + std::string attCk; + std::string endTime; + std::string alertTypeEn; + std::string logTime; + std::string gmtModified; + std::string alertTypeCode; + long subUserId; + std::string isDefend; + std::vector alertInfoList; + std::string alertType; + std::string alertTitle; + std::string alertDetail; + std::string alertTitleEn; + std::string alertLevel; + std::string assetList; + std::string alertNameCode; + std::string alertUuid; + long mainUserId; + std::string cloudCode; + std::string alertName; + std::string alertSrcProd; + std::string alertSrcProdModule; + std::string alertDescCode; + std::string startTime; + std::string logUuid; + std::string occurTime; + std::string alertDesc; + std::string gmtCreate; + std::string alertNameEn; + long id; + std::string incidentUuid; + }; + PageInfo pageInfo; + std::vector responseData; + }; + + + DescribeAlertsResult(); + explicit DescribeAlertsResult(const std::string &payload); + ~DescribeAlertsResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h new file mode 100644 index 000000000..6763a8846 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.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_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHENTITYREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHENTITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEntityRequest : public RpcServiceRequest { +public: + DescribeAlertsWithEntityRequest(); + ~DescribeAlertsWithEntityRequest(); + long getEntityId() const; + void setEntityId(long entityId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSophonTaskId() const; + void setSophonTaskId(const std::string &sophonTaskId); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getIncidentUuid() const; + void setIncidentUuid(const std::string &incidentUuid); + +private: + long entityId_; + std::string regionId_; + int pageSize_; + std::string sophonTaskId_; + int currentPage_; + std::string incidentUuid_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHENTITYREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h new file mode 100644 index 000000000..c68a40ee4 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHENTITYRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHENTITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEntityResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + long totalCount; + int pageSize; + int currentPage; + }; + struct ResponseDataItem + { + struct AlertInfoListItem + { + std::string keyName; + std::string values; + std::string key; + }; + std::string alertDescEn; + std::string attCk; + std::string endTime; + std::string alertTypeEn; + std::string logTime; + std::string gmtModified; + std::string alertTypeCode; + long subUserId; + std::string isDefend; + std::vector alertInfoList; + std::string alertType; + std::string alertTitle; + std::string alertDetail; + std::string alertTitleEn; + std::string alertLevel; + std::string assetList; + std::string alertNameCode; + std::string alertUuid; + long mainUserId; + std::string cloudCode; + std::string alertName; + std::string alertSrcProd; + std::string alertSrcProdModule; + std::string alertDescCode; + std::string startTime; + std::string logUuid; + std::string occurTime; + std::string alertDesc; + std::string gmtCreate; + std::string alertNameEn; + long id; + std::string incidentUuid; + }; + PageInfo pageInfo; + std::vector responseData; + }; + + + DescribeAlertsWithEntityResult(); + explicit DescribeAlertsWithEntityResult(const std::string &payload); + ~DescribeAlertsWithEntityResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHENTITYRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h new file mode 100644 index 000000000..3d2686273 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.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_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHEVENTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEventRequest : public RpcServiceRequest { +public: + DescribeAlertsWithEventRequest(); + ~DescribeAlertsWithEventRequest(); + std::string getSource() const; + void setSource(const std::string &source); + std::string getIsDefend() const; + void setIsDefend(const std::string &isDefend); + long getSubUserId() const; + void setSubUserId(long subUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getLevel() const; + void setLevel(const std::vector &level); + std::string getAlertTitle() const; + void setAlertTitle(const std::string &alertTitle); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getIncidentUuid() const; + void setIncidentUuid(const std::string &incidentUuid); + +private: + std::string source_; + std::string isDefend_; + long subUserId_; + std::string regionId_; + int pageSize_; + std::vector level_; + std::string alertTitle_; + int currentPage_; + std::string incidentUuid_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHEVENTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h new file mode 100644 index 000000000..15b8c6e79 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHEVENTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEventResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + long totalCount; + int pageSize; + int currentPage; + }; + struct ResponseDataItem + { + struct AlertInfoListItem + { + std::string keyName; + std::string values; + std::string key; + }; + std::string alertDescEn; + std::string attCk; + std::string endTime; + std::string alertTypeEn; + std::string logTime; + std::string gmtModified; + std::string alertTypeCode; + long subUserId; + std::string isDefend; + std::vector alertInfoList; + std::string alertType; + std::string alertTitle; + std::string alertDetail; + std::string alertTitleEn; + std::string alertLevel; + std::string assetList; + std::string alertNameCode; + std::string alertUuid; + long mainUserId; + std::string cloudCode; + std::string alertName; + std::string alertSrcProd; + std::string alertSrcProdModule; + std::string alertDescCode; + std::string startTime; + std::string logUuid; + std::string occurTime; + std::string alertDesc; + std::string gmtCreate; + std::string alertNameEn; + long id; + std::string incidentUuid; + }; + PageInfo pageInfo; + std::vector responseData; + }; + + + DescribeAlertsWithEventResult(); + explicit DescribeAlertsWithEventResult(const std::string &payload); + ~DescribeAlertsWithEventResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEALERTSWITHEVENTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthRequest.h new file mode 100644 index 000000000..e498d099c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEAUTHREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEAUTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAuthRequest : public RpcServiceRequest { +public: + DescribeAuthRequest(); + ~DescribeAuthRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEAUTHREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthResult.h new file mode 100644 index 000000000..53ccac3d6 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAuthResult.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_CLOUD_SIEM_MODEL_DESCRIBEAUTHRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEAUTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAuthResult : public ServiceResult + { + public: + + + DescribeAuthResult(); + explicit DescribeAuthResult(const std::string &payload); + ~DescribeAuthResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEAUTHRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h new file mode 100644 index 000000000..baa007343 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.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_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCsImportedProdStatusByUserRequest : public RpcServiceRequest { +public: + DescribeCsImportedProdStatusByUserRequest(); + ~DescribeCsImportedProdStatusByUserRequest(); + long getUserId() const; + void setUserId(long userId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceLogProd() const; + void setSourceLogProd(const std::string &sourceLogProd); + +private: + long userId_; + std::string regionId_; + std::string sourceLogProd_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h new file mode 100644 index 000000000..07313a3e1 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.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_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCsImportedProdStatusByUserResult : public ServiceResult + { + public: + + + DescribeCsImportedProdStatusByUserResult(); + explicit DescribeCsImportedProdStatusByUserResult(const std::string &payload); + ~DescribeCsImportedProdStatusByUserResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceRequest.h new file mode 100644 index 000000000..e77593a05 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceRequest.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_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDataSourceInstanceRequest : public RpcServiceRequest { +public: + DescribeDataSourceInstanceRequest(); + ~DescribeDataSourceInstanceRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string regionId_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEINSTANCEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceResult.h new file mode 100644 index 000000000..57e1e018e --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceInstanceResult.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_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEINSTANCERESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDataSourceInstanceResult : public ServiceResult + { + public: + struct Data + { + struct DataSourceInstanceParam + { + std::string paraCode; + std::string paraValue; + }; + std::string cloudCode; + std::string accountId; + std::vector dataSourceInstanceParams; + std::string dataSourceInstanceId; + }; + + + DescribeDataSourceInstanceResult(); + explicit DescribeDataSourceInstanceResult(const std::string &payload); + ~DescribeDataSourceInstanceResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEINSTANCERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersRequest.h new file mode 100644 index 000000000..ff5e1bb00 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersRequest.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_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEPARAMETERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDataSourceParametersRequest : public RpcServiceRequest { +public: + DescribeDataSourceParametersRequest(); + ~DescribeDataSourceParametersRequest(); + std::string getDataSourceType() const; + void setDataSourceType(const std::string &dataSourceType); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string dataSourceType_; + std::string cloudCode_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEPARAMETERSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersResult.h new file mode 100644 index 000000000..11e12f8a7 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDataSourceParametersResult.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_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEPARAMETERSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDataSourceParametersResult : public ServiceResult + { + public: + struct DataItem + { + struct ParamValueItem + { + std::string label; + std::string value; + }; + int canEditted; + std::string cloudCode; + std::vector paramValue; + std::string title; + std::string defaultValue; + std::string hit; + std::string paraCode; + int required; + std::string paraName; + std::string dataSourceType; + int paraLevel; + std::string paraType; + std::string formatCheck; + bool disabled; + }; + + + DescribeDataSourceParametersResult(); + explicit DescribeDataSourceParametersResult(const std::string &payload); + ~DescribeDataSourceParametersResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEDATASOURCEPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h new file mode 100644 index 000000000..c378a6e77 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEIMPORTEDLOGCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEIMPORTEDLOGCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeImportedLogCountRequest : public RpcServiceRequest { +public: + DescribeImportedLogCountRequest(); + ~DescribeImportedLogCountRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEIMPORTEDLOGCOUNTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountResult.h new file mode 100644 index 000000000..31d82a159 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountResult.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_CLOUD_SIEM_MODEL_DESCRIBEIMPORTEDLOGCOUNTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEIMPORTEDLOGCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeImportedLogCountResult : public ServiceResult + { + public: + struct Data + { + int totalLogCount; + int unImportedLogCount; + int importedLogCount; + }; + + + DescribeImportedLogCountResult(); + explicit DescribeImportedLogCountResult(const std::string &payload); + ~DescribeImportedLogCountResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEIMPORTEDLOGCOUNTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h index f5b25ab8a..079f475f7 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h @@ -47,24 +47,12 @@ namespace AlibabaCloud DescribeLogStoreResult(); explicit DescribeLogStoreResult(const std::string &payload); ~DescribeLogStoreResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h new file mode 100644 index 000000000..1565fe88b --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEPRODCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEPRODCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeProdCountRequest : public RpcServiceRequest { +public: + DescribeProdCountRequest(); + ~DescribeProdCountRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEPRODCOUNTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h new file mode 100644 index 000000000..3ea29bd65 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.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_CLOUD_SIEM_MODEL_DESCRIBEPRODCOUNTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEPRODCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeProdCountResult : public ServiceResult + { + public: + struct Data + { + int aliyunProdCount; + int hcloudProdCount; + int qcloudProdCount; + }; + + + DescribeProdCountResult(); + explicit DescribeProdCountResult(const std::string &payload); + ~DescribeProdCountResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEPRODCOUNTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusRequest.h new file mode 100644 index 000000000..070ecc7eb --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBESERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBESERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeServiceStatusRequest : public RpcServiceRequest { +public: + DescribeServiceStatusRequest(); + ~DescribeServiceStatusRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBESERVICESTATUSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusResult.h new file mode 100644 index 000000000..41224c7c0 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeServiceStatusResult.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_CLOUD_SIEM_MODEL_DESCRIBESERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBESERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeServiceStatusResult : public ServiceResult + { + public: + + + DescribeServiceStatusResult(); + explicit DescribeServiceStatusResult(const std::string &payload); + ~DescribeServiceStatusResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBESERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageResult.h index c2e023dfc..6f305626d 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud DescribeStorageResult(); explicit DescribeStorageResult(const std::string &payload); ~DescribeStorageResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusRequest.h new file mode 100644 index 000000000..0951daea1 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusRequest.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_CLOUD_SIEM_MODEL_DESCRIBEUSERBUYSTATUSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEUSERBUYSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeUserBuyStatusRequest : public RpcServiceRequest { +public: + DescribeUserBuyStatusRequest(); + ~DescribeUserBuyStatusRequest(); + long getSubUserId() const; + void setSubUserId(long subUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long subUserId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEUSERBUYSTATUSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h new file mode 100644 index 000000000..8f7ac09c9 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEUSERBUYSTATUSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEUSERBUYSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeUserBuyStatusResult : public ServiceResult + { + public: + struct Data + { + long mainUserId; + long endTime; + int capacity; + std::string subUserName; + bool canBuy; + std::string masterUserName; + std::string sasInstanceId; + long subUserId; + long masterUserId; + long durationDays; + std::string mainUserName; + }; + + + DescribeUserBuyStatusResult(); + explicit DescribeUserBuyStatusResult(const std::string &payload); + ~DescribeUserBuyStatusResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEUSERBUYSTATUSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h new file mode 100644 index 000000000..56355f137 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.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_CLOUD_SIEM_MODEL_DESCRIBEWHITERULELISTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEWHITERULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeWhiteRuleListRequest : public RpcServiceRequest { +public: + DescribeWhiteRuleListRequest(); + ~DescribeWhiteRuleListRequest(); + std::string getAlertName() const; + void setAlertName(const std::string &alertName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getAlertType() const; + void setAlertType(const std::string &alertType); + std::string getIncidentUuid() const; + void setIncidentUuid(const std::string &incidentUuid); + +private: + std::string alertName_; + std::string regionId_; + int pageSize_; + int currentPage_; + std::string alertType_; + std::string incidentUuid_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEWHITERULELISTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListResult.h new file mode 100644 index 000000000..fa3cb09ea --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEWHITERULELISTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEWHITERULELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeWhiteRuleListResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + long totalCount; + int pageSize; + int currentPage; + }; + struct ResponseDataItem + { + struct Expression + { + struct Condition + { + struct Left + { + std::string modifierParam; + std::string type; + bool isVar; + std::string value; + std::string modifier; + }; + struct Right + { + std::string modifierParam; + std::string type; + bool isVar; + std::string value; + std::string modifier; + }; + Left left; + bool isNot; + Right right; + std::string _operator; + int itemId; + }; + std::string logic; + std::vector conditions; + }; + int status; + std::string alertName; + std::string gmtModified; + std::string alertTypeId; + std::string alertNameId; + std::string alertType; + std::string gmtCreate; + Expression expression; + long subAliuid; + long id; + long aliuid; + std::string incidentUuid; + std::string alertUuid; + }; + PageInfo pageInfo; + std::vector responseData; + }; + + + DescribeWhiteRuleListResult(); + explicit DescribeWhiteRuleListResult(const std::string &payload); + ~DescribeWhiteRuleListResult(); + std::string getMessage()const; + Data getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEWHITERULELISTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h index 4a8675215..4446ef55e 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h @@ -51,24 +51,12 @@ namespace AlibabaCloud DoQuickFieldResult(); explicit DoQuickFieldResult(const std::string &payload); ~DoQuickFieldResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h index 9337edb4e..9dc8e49ee 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud DoSelfDelegateResult(); explicit DoSelfDelegateResult(const std::string &payload); ~DoSelfDelegateResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h new file mode 100644 index 000000000..a63c62818 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLEACCESSFORCLOUDSIEMREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLEACCESSFORCLOUDSIEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT EnableAccessForCloudSiemRequest : public RpcServiceRequest { +public: + EnableAccessForCloudSiemRequest(); + ~EnableAccessForCloudSiemRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLEACCESSFORCLOUDSIEMREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemResult.h new file mode 100644 index 000000000..b76997593 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemResult.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_CLOUD_SIEM_MODEL_ENABLEACCESSFORCLOUDSIEMRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLEACCESSFORCLOUDSIEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT EnableAccessForCloudSiemResult : public ServiceResult + { + public: + + + EnableAccessForCloudSiemResult(); + explicit EnableAccessForCloudSiemResult(const std::string &payload); + ~EnableAccessForCloudSiemResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLEACCESSFORCLOUDSIEMRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemRequest.h new file mode 100644 index 000000000..b09d9078e --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLESERVICEFORCLOUDSIEMREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLESERVICEFORCLOUDSIEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT EnableServiceForCloudSiemRequest : public RpcServiceRequest { +public: + EnableServiceForCloudSiemRequest(); + ~EnableServiceForCloudSiemRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLESERVICEFORCLOUDSIEMREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemResult.h new file mode 100644 index 000000000..4553a2d40 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemResult.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_CLOUD_SIEM_MODEL_ENABLESERVICEFORCLOUDSIEMRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLESERVICEFORCLOUDSIEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT EnableServiceForCloudSiemResult : public ServiceResult + { + public: + + + EnableServiceForCloudSiemResult(); + explicit EnableServiceForCloudSiemResult(const std::string &payload); + ~EnableServiceForCloudSiemResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_ENABLESERVICEFORCLOUDSIEMRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityResult.h index 2f3889427..8e8c7ffd3 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityResult.h @@ -43,24 +43,12 @@ namespace AlibabaCloud GetCapacityResult(); explicit GetCapacityResult(const std::string &payload); ~GetCapacityResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h index b99371b21..141eb12d8 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h @@ -50,24 +50,12 @@ namespace AlibabaCloud GetHistogramsResult(); explicit GetHistogramsResult(const std::string &payload); ~GetHistogramsResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h index 26ad211f9..169577c73 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud GetQuickQueryResult(); explicit GetQuickQueryResult(const std::string &payload); ~GetQuickQueryResult(); - std::string getDyCode()const; - std::string getMessage()const; std::string getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; std::string data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageResult.h index b93a135fe..6d4957b7f 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageResult.h @@ -44,24 +44,12 @@ namespace AlibabaCloud GetStorageResult(); explicit GetStorageResult(const std::string &payload); ~GetStorageResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h new file mode 100644 index 000000000..da02a5ba2 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.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_CLOUD_SIEM_MODEL_LISTACCOUNTACCESSIDREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTACCESSIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAccountAccessIdRequest : public RpcServiceRequest { +public: + ListAccountAccessIdRequest(); + ~ListAccountAccessIdRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string cloudCode_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTACCESSIDREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdResult.h new file mode 100644 index 000000000..309990fe8 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdResult.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_CLOUD_SIEM_MODEL_LISTACCOUNTACCESSIDRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTACCESSIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAccountAccessIdResult : public ServiceResult + { + public: + struct DataItem + { + std::string cloudCode; + std::string accountId; + std::string accessId; + int bound; + long subUserId; + std::string accountStr; + std::string accessIdMd5; + }; + + + ListAccountAccessIdResult(); + explicit ListAccountAccessIdResult(const std::string &payload); + ~ListAccountAccessIdResult(); + std::string getMessage()const; + std::vector getData()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTACCESSIDRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h new file mode 100644 index 000000000..5f3d9ea9c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.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_CLOUD_SIEM_MODEL_LISTACCOUNTSBYLOGREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTSBYLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAccountsByLogRequest : public RpcServiceRequest { +public: + ListAccountsByLogRequest(); + ~ListAccountsByLogRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getLogCodes() const; + void setLogCodes(const std::vector &logCodes); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + +private: + std::string cloudCode_; + std::string regionId_; + std::vector logCodes_; + std::string prodCode_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTSBYLOGREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogResult.h new file mode 100644 index 000000000..df01c6d1c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogResult.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_CLOUD_SIEM_MODEL_LISTACCOUNTSBYLOGRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTSBYLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAccountsByLogResult : public ServiceResult + { + public: + struct DataItem + { + long mainUserId; + std::string accountId; + int imported; + long subUserId; + std::string prodCode; + std::string logCode; + std::string accountName; + }; + + + ListAccountsByLogResult(); + explicit ListAccountsByLogResult(const std::string &payload); + ~ListAccountsByLogResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTACCOUNTSBYLOGRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h new file mode 100644 index 000000000..66958056e --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTALLPRODSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTALLPRODSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAllProdsRequest : public RpcServiceRequest { +public: + ListAllProdsRequest(); + ~ListAllProdsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTALLPRODSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsResult.h new file mode 100644 index 000000000..04fc94011 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsResult.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_CLOUD_SIEM_MODEL_LISTALLPRODSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTALLPRODSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAllProdsResult : public ServiceResult + { + public: + struct Data + { + struct ProdListItem + { + std::string modifyTime; + std::string cloudCode; + int totalLogCount; + std::string prodCode; + int importedLogCount; + }; + int totalCount; + int pageSize; + int currentPage; + std::vector prodList; + }; + + + ListAllProdsResult(); + explicit ListAllProdsResult(const std::string &payload); + ~ListAllProdsResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTALLPRODSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h new file mode 100644 index 000000000..c06e91c89 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.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_CLOUD_SIEM_MODEL_LISTBINDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListBindAccountRequest : public RpcServiceRequest { +public: + ListBindAccountRequest(); + ~ListBindAccountRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string cloudCode_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDACCOUNTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountResult.h new file mode 100644 index 000000000..4d54c2156 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountResult.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_CLOUD_SIEM_MODEL_LISTBINDACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListBindAccountResult : public ServiceResult + { + public: + struct DataItem + { + std::string modifyTime; + std::string cloudCode; + long bindId; + std::string accountId; + std::string accessId; + std::string createUser; + long dataSourceCount; + std::string accountName; + }; + + + ListBindAccountResult(); + explicit ListBindAccountResult(const std::string &payload); + ~ListBindAccountResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesRequest.h new file mode 100644 index 000000000..286252abd --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesRequest.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_CLOUD_SIEM_MODEL_LISTBINDDATASOURCESREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDDATASOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListBindDataSourcesRequest : public RpcServiceRequest { +public: + ListBindDataSourcesRequest(); + ~ListBindDataSourcesRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDDATASOURCESREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesResult.h new file mode 100644 index 000000000..41a31786c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindDataSourcesResult.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_CLOUD_SIEM_MODEL_LISTBINDDATASOURCESRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDDATASOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListBindDataSourcesResult : public ServiceResult + { + public: + struct DataItem + { + std::string cloudCode; + std::string accountId; + std::string dataSourceName; + std::string dataSourceType; + int taskCount; + std::string dataSourceRemark; + std::string accountName; + std::string dataSourceInstanceId; + int logCount; + }; + + + ListBindDataSourcesResult(); + explicit ListBindDataSourcesResult(const std::string &payload); + ~ListBindDataSourcesResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTBINDDATASOURCESRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsRequest.h new file mode 100644 index 000000000..7e5a2e77c --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsRequest.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_CLOUD_SIEM_MODEL_LISTDATASOURCELOGSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCELOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListDataSourceLogsRequest : public RpcServiceRequest { +public: + ListDataSourceLogsRequest(); + ~ListDataSourceLogsRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string regionId_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCELOGSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsResult.h new file mode 100644 index 000000000..ee972d66e --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceLogsResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCELOGSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCELOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListDataSourceLogsResult : public ServiceResult + { + public: + struct Data + { + struct DataSourceInstanceLog + { + struct LogParam + { + std::string paraCode; + std::string paraValue; + }; + std::string logInstanceId; + int taskStatus; + std::string logCode; + std::string logMdsCode; + std::vector logParams; + }; + std::vector dataSourceInstanceLogs; + std::string cloudCode; + std::string accountId; + long subUserId; + std::string dataSourceInstanceName; + std::string dataSourceInstanceRemark; + std::string dataSourceInstanceId; + }; + + + ListDataSourceLogsResult(); + explicit ListDataSourceLogsResult(const std::string &payload); + ~ListDataSourceLogsResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCELOGSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesRequest.h new file mode 100644 index 000000000..9fa229966 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesRequest.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_CLOUD_SIEM_MODEL_LISTDATASOURCETYPESREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListDataSourceTypesRequest : public RpcServiceRequest { +public: + ListDataSourceTypesRequest(); + ~ListDataSourceTypesRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string cloudCode_; + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCETYPESREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesResult.h new file mode 100644 index 000000000..cba58b978 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDataSourceTypesResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCETYPESRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListDataSourceTypesResult : public ServiceResult + { + public: + struct DataItem + { + std::string cloudCode; + std::string dataSourceType; + }; + + + ListDataSourceTypesResult(); + explicit ListDataSourceTypesResult(const std::string &payload); + ~ListDataSourceTypesResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTDATASOURCETYPESRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h new file mode 100644 index 000000000..1523a25ad --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.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_CLOUD_SIEM_MODEL_LISTIMPORTEDLOGSBYPRODREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTIMPORTEDLOGSBYPRODREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListImportedLogsByProdRequest : public RpcServiceRequest { +public: + ListImportedLogsByProdRequest(); + ~ListImportedLogsByProdRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + +private: + std::string cloudCode_; + std::string regionId_; + std::string prodCode_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTIMPORTEDLOGSBYPRODREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h new file mode 100644 index 000000000..27f527314 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.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_CLOUD_SIEM_MODEL_LISTIMPORTEDLOGSBYPRODRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTIMPORTEDLOGSBYPRODRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListImportedLogsByProdResult : public ServiceResult + { + public: + struct DataItem + { + std::string modifyTime; + std::string cloudCode; + int autoImported; + int importedUserCount; + int imported; + int totalUserCount; + std::string prodCode; + int unImportedUserCount; + std::string logCode; + std::string logMdsCode; + }; + + + ListImportedLogsByProdResult(); + explicit ListImportedLogsByProdResult(const std::string &payload); + ~ListImportedLogsByProdResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTIMPORTEDLOGSBYPRODRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h index 09ad0eda8..873089d8b 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h @@ -42,24 +42,12 @@ namespace AlibabaCloud ListOperationResult(); explicit ListOperationResult(const std::string &payload); ~ListOperationResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresRequest.h new file mode 100644 index 000000000..f437da318 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresRequest.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_CLOUD_SIEM_MODEL_LISTPROJECTLOGSTORESREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTPROJECTLOGSTORESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListProjectLogStoresRequest : public RpcServiceRequest { +public: + ListProjectLogStoresRequest(); + ~ListProjectLogStoresRequest(); + long getSubUserId() const; + void setSubUserId(long subUserId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceProdCode() const; + void setSourceProdCode(const std::string &sourceProdCode); + std::string getSourceLogCode() const; + void setSourceLogCode(const std::string &sourceLogCode); + +private: + long subUserId_; + std::string regionId_; + std::string sourceProdCode_; + std::string sourceLogCode_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTPROJECTLOGSTORESREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresResult.h new file mode 100644 index 000000000..7820a8560 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListProjectLogStoresResult.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_CLOUD_SIEM_MODEL_LISTPROJECTLOGSTORESRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTPROJECTLOGSTORESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListProjectLogStoresResult : public ServiceResult + { + public: + struct DataItem + { + std::string project; + long mainUserId; + std::string logStore; + std::string subUserName; + long subUserId; + std::string endPoint; + std::string regionId; + std::string localName; + }; + + + ListProjectLogStoresResult(); + explicit ListProjectLogStoresResult(const std::string &payload); + ~ListProjectLogStoresResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTPROJECTLOGSTORESRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h index 66e2e3678..606b1b21e 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h @@ -49,24 +49,12 @@ namespace AlibabaCloud ListQuickQueryResult(); explicit ListQuickQueryResult(const std::string &payload); ~ListQuickQueryResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersRequest.h new file mode 100644 index 000000000..b609b2cd1 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTRDUSERSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTRDUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListRdUsersRequest : public RpcServiceRequest { +public: + ListRdUsersRequest(); + ~ListRdUsersRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTRDUSERSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersResult.h new file mode 100644 index 000000000..b4bcc04c1 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListRdUsersResult.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_CLOUD_SIEM_MODEL_LISTRDUSERSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTRDUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListRdUsersResult : public ServiceResult + { + public: + struct DataItem + { + long mainUserId; + bool delegatedOrNot; + std::string joinedTime; + std::string subUserName; + long subUserId; + bool joined; + }; + + + ListRdUsersResult(); + explicit ListRdUsersResult(const std::string &payload); + ~ListRdUsersResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTRDUSERSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h new file mode 100644 index 000000000..ba82ab050 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.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_CLOUD_SIEM_MODEL_LISTUSERPRODLOGSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERPRODLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListUserProdLogsRequest : public RpcServiceRequest { +public: + ListUserProdLogsRequest(); + ~ListUserProdLogsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceProdCode() const; + void setSourceProdCode(const std::string &sourceProdCode); + std::string getSourceLogCode() const; + void setSourceLogCode(const std::string &sourceLogCode); + +private: + std::string regionId_; + std::string sourceProdCode_; + std::string sourceLogCode_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERPRODLOGSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.h new file mode 100644 index 000000000..6f537efe1 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.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_CLOUD_SIEM_MODEL_LISTUSERPRODLOGSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERPRODLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListUserProdLogsResult : public ServiceResult + { + public: + struct DataItem + { + long mainUserId; + std::string displayLine; + int isDeleted; + bool displayed; + std::string subUserName; + std::string sourceProdCode; + bool imported; + long subUserId; + std::string sourceLogInfo; + std::string sourceLogCode; + }; + + + ListUserProdLogsResult(); + explicit ListUserProdLogsResult(const std::string &payload); + ~ListUserProdLogsResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERPRODLOGSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.h new file mode 100644 index 000000000..65ebabba8 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.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_CLOUD_SIEM_MODEL_LISTUSERSBYPRODREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERSBYPRODREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListUsersByProdRequest : public RpcServiceRequest { +public: + ListUsersByProdRequest(); + ~ListUsersByProdRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceProdCode() const; + void setSourceProdCode(const std::string &sourceProdCode); + +private: + std::string regionId_; + std::string sourceProdCode_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERSBYPRODREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdResult.h new file mode 100644 index 000000000..b3c472cc8 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdResult.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_CLOUD_SIEM_MODEL_LISTUSERSBYPRODRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERSBYPRODRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListUsersByProdResult : public ServiceResult + { + public: + struct DataItem + { + std::string cloudCode; + long mainUserId; + std::string subUserName; + std::string sourceProdCode; + std::string sourceLogName; + bool imported; + long subUserId; + std::string sourceLogCode; + std::string logMdsCode; + }; + + + ListUsersByProdResult(); + explicit ListUsersByProdResult(const std::string &payload); + ~ListUsersByProdResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTUSERSBYPRODRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h new file mode 100644 index 000000000..0a1eb070e --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.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_CLOUD_SIEM_MODEL_MODIFYBINDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYBINDACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ModifyBindAccountRequest : public RpcServiceRequest { +public: + ModifyBindAccountRequest(); + ~ModifyBindAccountRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getBindId() const; + void setBindId(long bindId); + std::string getAccessId() const; + void setAccessId(const std::string &accessId); + +private: + std::string cloudCode_; + std::string accountId_; + std::string accountName_; + std::string regionId_; + long bindId_; + std::string accessId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYBINDACCOUNTREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountResult.h new file mode 100644 index 000000000..cde23a3b2 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountResult.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_CLOUD_SIEM_MODEL_MODIFYBINDACCOUNTRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYBINDACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ModifyBindAccountResult : public ServiceResult + { + public: + struct Data + { + int count; + }; + + + ModifyBindAccountResult(); + explicit ModifyBindAccountResult(const std::string &payload); + ~ModifyBindAccountResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYBINDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogRequest.h new file mode 100644 index 000000000..c440ecd34 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogRequest.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_CLOUD_SIEM_MODEL_MODIFYDATASOURCELOGREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCELOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ModifyDataSourceLogRequest : public RpcServiceRequest { +public: + ModifyDataSourceLogRequest(); + ~ModifyDataSourceLogRequest(); + std::string getDataSourceType() const; + void setDataSourceType(const std::string &dataSourceType); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getLogCode() const; + void setLogCode(const std::string &logCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLogInstanceId() const; + void setLogInstanceId(const std::string &logInstanceId); + std::string getDataSourceInstanceLogs() const; + void setDataSourceInstanceLogs(const std::string &dataSourceInstanceLogs); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string dataSourceType_; + std::string cloudCode_; + std::string accountId_; + std::string logCode_; + std::string regionId_; + std::string logInstanceId_; + std::string dataSourceInstanceLogs_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCELOGREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogResult.h new file mode 100644 index 000000000..d81113839 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceLogResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCELOGRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ModifyDataSourceLogResult : public ServiceResult + { + public: + struct Data + { + std::string logInstanceId; + int count; + }; + + + ModifyDataSourceLogResult(); + explicit ModifyDataSourceLogResult(const std::string &payload); + ~ModifyDataSourceLogResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCELOGRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceRequest.h new file mode 100644 index 000000000..d2eec1a81 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceRequest.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_CLOUD_SIEM_MODEL_MODIFYDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ModifyDataSourceRequest : public RpcServiceRequest { +public: + ModifyDataSourceRequest(); + ~ModifyDataSourceRequest(); + std::string getDataSourceType() const; + void setDataSourceType(const std::string &dataSourceType); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getDataSourceInstanceName() const; + void setDataSourceInstanceName(const std::string &dataSourceInstanceName); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDataSourceInstanceRemark() const; + void setDataSourceInstanceRemark(const std::string &dataSourceInstanceRemark); + std::string getDataSourceInstanceParams() const; + void setDataSourceInstanceParams(const std::string &dataSourceInstanceParams); + std::string getDataSourceInstanceId() const; + void setDataSourceInstanceId(const std::string &dataSourceInstanceId); + +private: + std::string dataSourceType_; + std::string cloudCode_; + std::string dataSourceInstanceName_; + std::string accountId_; + std::string regionId_; + std::string dataSourceInstanceRemark_; + std::string dataSourceInstanceParams_; + std::string dataSourceInstanceId_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceResult.h new file mode 100644 index 000000000..6c9ac4785 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyDataSourceResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCERESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ModifyDataSourceResult : public ServiceResult + { + public: + struct Data + { + int count; + std::string dataSourceInstanceId; + }; + + + ModifyDataSourceResult(); + explicit ModifyDataSourceResult(const std::string &payload); + ~ModifyDataSourceResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_MODIFYDATASOURCERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryResult.h index 35edaf947..e18e04b7c 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud OpenDeliveryResult(); explicit OpenDeliveryResult(const std::string &payload); ~OpenDeliveryResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityResult.h index e01f7780d..ef6a58382 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud RestoreCapacityResult(); explicit RestoreCapacityResult(const std::string &payload); ~RestoreCapacityResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h index ce1eaf2a0..e562fe03b 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud SaveQuickQueryResult(); explicit SaveQuickQueryResult(const std::string &payload); ~SaveQuickQueryResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageResult.h index 615235397..88eda25cd 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageResult.h @@ -37,24 +37,12 @@ namespace AlibabaCloud SetStorageResult(); explicit SetStorageResult(const std::string &payload); ~SetStorageResult(); - std::string getDyCode()const; - std::string getMessage()const; bool getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; bool data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h index 716d6c287..c0f847d3b 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h @@ -41,24 +41,12 @@ namespace AlibabaCloud ShowQuickAnalysisResult(); explicit ShowQuickAnalysisResult(const std::string &payload); ~ShowQuickAnalysisResult(); - std::string getDyCode()const; - std::string getMessage()const; Data getData()const; - int getCode()const; - std::string getDyMessage()const; - bool getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: - std::string dyCode_; - std::string message_; Data data_; - int code_; - std::string dyMessage_; - bool success_; - std::string errCode_; }; } diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h new file mode 100644 index 000000000..933805750 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.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_CLOUD_SIEM_MODEL_SUBMITIMPORTLOGTASKSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITIMPORTLOGTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT SubmitImportLogTasksRequest : public RpcServiceRequest { +public: + SubmitImportLogTasksRequest(); + ~SubmitImportLogTasksRequest(); + std::string getCloudCode() const; + void setCloudCode(const std::string &cloudCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLogCodes() const; + void setLogCodes(const std::string &logCodes); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + int getAutoImported() const; + void setAutoImported(int autoImported); + std::string getAccounts() const; + void setAccounts(const std::string &accounts); + +private: + std::string cloudCode_; + std::string regionId_; + std::string logCodes_; + std::string prodCode_; + int autoImported_; + std::string accounts_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITIMPORTLOGTASKSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksResult.h new file mode 100644 index 000000000..e7ace04da --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksResult.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_CLOUD_SIEM_MODEL_SUBMITIMPORTLOGTASKSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITIMPORTLOGTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT SubmitImportLogTasksResult : public ServiceResult + { + public: + struct Data + { + int count; + }; + + + SubmitImportLogTasksResult(); + explicit SubmitImportLogTasksResult(const std::string &payload); + ~SubmitImportLogTasksResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITIMPORTLOGTASKSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h new file mode 100644 index 000000000..9eef7e213 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.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_CLOUD_SIEM_MODEL_SUBMITJOBSREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT SubmitJobsRequest : public RpcServiceRequest { +public: + SubmitJobsRequest(); + ~SubmitJobsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getJsonParam() const; + void setJsonParam(const std::string &jsonParam); + +private: + std::string regionId_; + std::string jsonParam_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITJOBSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsResult.h new file mode 100644 index 000000000..ab53d3850 --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsResult.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_CLOUD_SIEM_MODEL_SUBMITJOBSRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloud_siem + { + namespace Model + { + class ALIBABACLOUD_CLOUD_SIEM_EXPORT SubmitJobsResult : public ServiceResult + { + public: + + + SubmitJobsResult(); + explicit SubmitJobsResult(const std::string &payload); + ~SubmitJobsResult(); + int getData()const; + + protected: + void parse(const std::string &payload); + private: + int data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SUBMITJOBSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/src/Cloud-siemClient.cc b/cloud-siem/src/Cloud-siemClient.cc index 0182a6ade..ffa95f49f 100644 --- a/cloud-siem/src/Cloud-siemClient.cc +++ b/cloud-siem/src/Cloud-siemClient.cc @@ -51,6 +51,150 @@ Cloud_siemClient::Cloud_siemClient(const std::string & accessKeyId, const std::s Cloud_siemClient::~Cloud_siemClient() {} +Cloud_siemClient::AddDataSourceOutcome Cloud_siemClient::addDataSource(const AddDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddDataSourceOutcome(AddDataSourceResult(outcome.result())); + else + return AddDataSourceOutcome(outcome.error()); +} + +void Cloud_siemClient::addDataSourceAsync(const AddDataSourceRequest& request, const AddDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::AddDataSourceOutcomeCallable Cloud_siemClient::addDataSourceCallable(const AddDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::AddDataSourceLogOutcome Cloud_siemClient::addDataSourceLog(const AddDataSourceLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddDataSourceLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddDataSourceLogOutcome(AddDataSourceLogResult(outcome.result())); + else + return AddDataSourceLogOutcome(outcome.error()); +} + +void Cloud_siemClient::addDataSourceLogAsync(const AddDataSourceLogRequest& request, const AddDataSourceLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addDataSourceLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::AddDataSourceLogOutcomeCallable Cloud_siemClient::addDataSourceLogCallable(const AddDataSourceLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addDataSourceLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::AddUserOutcome Cloud_siemClient::addUser(const AddUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserOutcome(AddUserResult(outcome.result())); + else + return AddUserOutcome(outcome.error()); +} + +void Cloud_siemClient::addUserAsync(const AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::AddUserOutcomeCallable Cloud_siemClient::addUserCallable(const AddUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::AddUserSourceLogConfigOutcome Cloud_siemClient::addUserSourceLogConfig(const AddUserSourceLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserSourceLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserSourceLogConfigOutcome(AddUserSourceLogConfigResult(outcome.result())); + else + return AddUserSourceLogConfigOutcome(outcome.error()); +} + +void Cloud_siemClient::addUserSourceLogConfigAsync(const AddUserSourceLogConfigRequest& request, const AddUserSourceLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUserSourceLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::AddUserSourceLogConfigOutcomeCallable Cloud_siemClient::addUserSourceLogConfigCallable(const AddUserSourceLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUserSourceLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::BatchJobCheckOutcome Cloud_siemClient::batchJobCheck(const BatchJobCheckRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +267,42 @@ Cloud_siemClient::BatchJobSubmitOutcomeCallable Cloud_siemClient::batchJobSubmit return task->get_future(); } +Cloud_siemClient::BindAccountOutcome Cloud_siemClient::bindAccount(const BindAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindAccountOutcome(BindAccountResult(outcome.result())); + else + return BindAccountOutcome(outcome.error()); +} + +void Cloud_siemClient::bindAccountAsync(const BindAccountRequest& request, const BindAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::BindAccountOutcomeCallable Cloud_siemClient::bindAccountCallable(const BindAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::CloseDeliveryOutcome Cloud_siemClient::closeDelivery(const CloseDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +375,42 @@ Cloud_siemClient::DeleteAutomateResponseConfigOutcomeCallable Cloud_siemClient:: return task->get_future(); } +Cloud_siemClient::DeleteBindAccountOutcome Cloud_siemClient::deleteBindAccount(const DeleteBindAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBindAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBindAccountOutcome(DeleteBindAccountResult(outcome.result())); + else + return DeleteBindAccountOutcome(outcome.error()); +} + +void Cloud_siemClient::deleteBindAccountAsync(const DeleteBindAccountRequest& request, const DeleteBindAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBindAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DeleteBindAccountOutcomeCallable Cloud_siemClient::deleteBindAccountCallable(const DeleteBindAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBindAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DeleteCustomizeRuleOutcome Cloud_siemClient::deleteCustomizeRule(const DeleteCustomizeRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +447,78 @@ Cloud_siemClient::DeleteCustomizeRuleOutcomeCallable Cloud_siemClient::deleteCus return task->get_future(); } +Cloud_siemClient::DeleteDataSourceOutcome Cloud_siemClient::deleteDataSource(const DeleteDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataSourceOutcome(DeleteDataSourceResult(outcome.result())); + else + return DeleteDataSourceOutcome(outcome.error()); +} + +void Cloud_siemClient::deleteDataSourceAsync(const DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DeleteDataSourceOutcomeCallable Cloud_siemClient::deleteDataSourceCallable(const DeleteDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::DeleteDataSourceLogOutcome Cloud_siemClient::deleteDataSourceLog(const DeleteDataSourceLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataSourceLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataSourceLogOutcome(DeleteDataSourceLogResult(outcome.result())); + else + return DeleteDataSourceLogOutcome(outcome.error()); +} + +void Cloud_siemClient::deleteDataSourceLogAsync(const DeleteDataSourceLogRequest& request, const DeleteDataSourceLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataSourceLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DeleteDataSourceLogOutcomeCallable Cloud_siemClient::deleteDataSourceLogCallable(const DeleteDataSourceLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataSourceLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DeleteQuickQueryOutcome Cloud_siemClient::deleteQuickQuery(const DeleteQuickQueryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +555,42 @@ Cloud_siemClient::DeleteQuickQueryOutcomeCallable Cloud_siemClient::deleteQuickQ return task->get_future(); } +Cloud_siemClient::DeleteUserOutcome Cloud_siemClient::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 Cloud_siemClient::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)); +} + +Cloud_siemClient::DeleteUserOutcomeCallable Cloud_siemClient::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(); +} + Cloud_siemClient::DeleteWhiteRuleListOutcome Cloud_siemClient::deleteWhiteRuleList(const DeleteWhiteRuleListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +663,42 @@ Cloud_siemClient::DescribeAggregateFunctionOutcomeCallable Cloud_siemClient::des return task->get_future(); } +Cloud_siemClient::DescribeAlertSceneOutcome Cloud_siemClient::describeAlertScene(const DescribeAlertSceneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlertSceneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlertSceneOutcome(DescribeAlertSceneResult(outcome.result())); + else + return DescribeAlertSceneOutcome(outcome.error()); +} + +void Cloud_siemClient::describeAlertSceneAsync(const DescribeAlertSceneRequest& request, const DescribeAlertSceneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlertScene(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeAlertSceneOutcomeCallable Cloud_siemClient::describeAlertSceneCallable(const DescribeAlertSceneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlertScene(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeAlertSceneByEventOutcome Cloud_siemClient::describeAlertSceneByEvent(const DescribeAlertSceneByEventRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +843,42 @@ Cloud_siemClient::DescribeAlertTypeOutcomeCallable Cloud_siemClient::describeAle return task->get_future(); } +Cloud_siemClient::DescribeAlertsOutcome Cloud_siemClient::describeAlerts(const DescribeAlertsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlertsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlertsOutcome(DescribeAlertsResult(outcome.result())); + else + return DescribeAlertsOutcome(outcome.error()); +} + +void Cloud_siemClient::describeAlertsAsync(const DescribeAlertsRequest& request, const DescribeAlertsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlerts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeAlertsOutcomeCallable Cloud_siemClient::describeAlertsCallable(const DescribeAlertsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlerts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeAlertsCountOutcome Cloud_siemClient::describeAlertsCount(const DescribeAlertsCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +915,78 @@ Cloud_siemClient::DescribeAlertsCountOutcomeCallable Cloud_siemClient::describeA return task->get_future(); } +Cloud_siemClient::DescribeAlertsWithEntityOutcome Cloud_siemClient::describeAlertsWithEntity(const DescribeAlertsWithEntityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlertsWithEntityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlertsWithEntityOutcome(DescribeAlertsWithEntityResult(outcome.result())); + else + return DescribeAlertsWithEntityOutcome(outcome.error()); +} + +void Cloud_siemClient::describeAlertsWithEntityAsync(const DescribeAlertsWithEntityRequest& request, const DescribeAlertsWithEntityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlertsWithEntity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeAlertsWithEntityOutcomeCallable Cloud_siemClient::describeAlertsWithEntityCallable(const DescribeAlertsWithEntityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlertsWithEntity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::DescribeAlertsWithEventOutcome Cloud_siemClient::describeAlertsWithEvent(const DescribeAlertsWithEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlertsWithEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlertsWithEventOutcome(DescribeAlertsWithEventResult(outcome.result())); + else + return DescribeAlertsWithEventOutcome(outcome.error()); +} + +void Cloud_siemClient::describeAlertsWithEventAsync(const DescribeAlertsWithEventRequest& request, const DescribeAlertsWithEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlertsWithEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeAlertsWithEventOutcomeCallable Cloud_siemClient::describeAlertsWithEventCallable(const DescribeAlertsWithEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlertsWithEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeAttackTimeLineOutcome Cloud_siemClient::describeAttackTimeLine(const DescribeAttackTimeLineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +1023,42 @@ Cloud_siemClient::DescribeAttackTimeLineOutcomeCallable Cloud_siemClient::descri return task->get_future(); } +Cloud_siemClient::DescribeAuthOutcome Cloud_siemClient::describeAuth(const DescribeAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuthOutcome(DescribeAuthResult(outcome.result())); + else + return DescribeAuthOutcome(outcome.error()); +} + +void Cloud_siemClient::describeAuthAsync(const DescribeAuthRequest& request, const DescribeAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeAuthOutcomeCallable Cloud_siemClient::describeAuthCallable(const DescribeAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeAutomateResponseConfigCounterOutcome Cloud_siemClient::describeAutomateResponseConfigCounter(const DescribeAutomateResponseConfigCounterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1311,42 @@ Cloud_siemClient::DescribeCloudSiemEventsOutcomeCallable Cloud_siemClient::descr return task->get_future(); } +Cloud_siemClient::DescribeCsImportedProdStatusByUserOutcome Cloud_siemClient::describeCsImportedProdStatusByUser(const DescribeCsImportedProdStatusByUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCsImportedProdStatusByUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCsImportedProdStatusByUserOutcome(DescribeCsImportedProdStatusByUserResult(outcome.result())); + else + return DescribeCsImportedProdStatusByUserOutcome(outcome.error()); +} + +void Cloud_siemClient::describeCsImportedProdStatusByUserAsync(const DescribeCsImportedProdStatusByUserRequest& request, const DescribeCsImportedProdStatusByUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCsImportedProdStatusByUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeCsImportedProdStatusByUserOutcomeCallable Cloud_siemClient::describeCsImportedProdStatusByUserCallable(const DescribeCsImportedProdStatusByUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCsImportedProdStatusByUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeCustomizeRuleOutcome Cloud_siemClient::describeCustomizeRule(const DescribeCustomizeRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1491,78 @@ Cloud_siemClient::DescribeCustomizeRuleTestHistogramOutcomeCallable Cloud_siemCl return task->get_future(); } +Cloud_siemClient::DescribeDataSourceInstanceOutcome Cloud_siemClient::describeDataSourceInstance(const DescribeDataSourceInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSourceInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSourceInstanceOutcome(DescribeDataSourceInstanceResult(outcome.result())); + else + return DescribeDataSourceInstanceOutcome(outcome.error()); +} + +void Cloud_siemClient::describeDataSourceInstanceAsync(const DescribeDataSourceInstanceRequest& request, const DescribeDataSourceInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSourceInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeDataSourceInstanceOutcomeCallable Cloud_siemClient::describeDataSourceInstanceCallable(const DescribeDataSourceInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSourceInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::DescribeDataSourceParametersOutcome Cloud_siemClient::describeDataSourceParameters(const DescribeDataSourceParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSourceParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSourceParametersOutcome(DescribeDataSourceParametersResult(outcome.result())); + else + return DescribeDataSourceParametersOutcome(outcome.error()); +} + +void Cloud_siemClient::describeDataSourceParametersAsync(const DescribeDataSourceParametersRequest& request, const DescribeDataSourceParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSourceParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeDataSourceParametersOutcomeCallable Cloud_siemClient::describeDataSourceParametersCallable(const DescribeDataSourceParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSourceParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeDisposeAndPlaybookOutcome Cloud_siemClient::describeDisposeAndPlaybook(const DescribeDisposeAndPlaybookRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1743,42 @@ Cloud_siemClient::DescribeEventDisposeOutcomeCallable Cloud_siemClient::describe return task->get_future(); } +Cloud_siemClient::DescribeImportedLogCountOutcome Cloud_siemClient::describeImportedLogCount(const DescribeImportedLogCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImportedLogCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImportedLogCountOutcome(DescribeImportedLogCountResult(outcome.result())); + else + return DescribeImportedLogCountOutcome(outcome.error()); +} + +void Cloud_siemClient::describeImportedLogCountAsync(const DescribeImportedLogCountRequest& request, const DescribeImportedLogCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImportedLogCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeImportedLogCountOutcomeCallable Cloud_siemClient::describeImportedLogCountCallable(const DescribeImportedLogCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImportedLogCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeJobStatusOutcome Cloud_siemClient::describeJobStatus(const DescribeJobStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1995,42 @@ Cloud_siemClient::DescribeOperatorsOutcomeCallable Cloud_siemClient::describeOpe return task->get_future(); } +Cloud_siemClient::DescribeProdCountOutcome Cloud_siemClient::describeProdCount(const DescribeProdCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProdCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProdCountOutcome(DescribeProdCountResult(outcome.result())); + else + return DescribeProdCountOutcome(outcome.error()); +} + +void Cloud_siemClient::describeProdCountAsync(const DescribeProdCountRequest& request, const DescribeProdCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProdCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeProdCountOutcomeCallable Cloud_siemClient::describeProdCountCallable(const DescribeProdCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProdCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeScopeUsersOutcome Cloud_siemClient::describeScopeUsers(const DescribeScopeUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +2067,42 @@ Cloud_siemClient::DescribeScopeUsersOutcomeCallable Cloud_siemClient::describeSc return task->get_future(); } +Cloud_siemClient::DescribeServiceStatusOutcome Cloud_siemClient::describeServiceStatus(const DescribeServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServiceStatusOutcome(DescribeServiceStatusResult(outcome.result())); + else + return DescribeServiceStatusOutcome(outcome.error()); +} + +void Cloud_siemClient::describeServiceStatusAsync(const DescribeServiceStatusRequest& request, const DescribeServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeServiceStatusOutcomeCallable Cloud_siemClient::describeServiceStatusCallable(const DescribeServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeStorageOutcome Cloud_siemClient::describeStorage(const DescribeStorageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +2139,42 @@ Cloud_siemClient::DescribeStorageOutcomeCallable Cloud_siemClient::describeStora return task->get_future(); } +Cloud_siemClient::DescribeUserBuyStatusOutcome Cloud_siemClient::describeUserBuyStatus(const DescribeUserBuyStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBuyStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBuyStatusOutcome(DescribeUserBuyStatusResult(outcome.result())); + else + return DescribeUserBuyStatusOutcome(outcome.error()); +} + +void Cloud_siemClient::describeUserBuyStatusAsync(const DescribeUserBuyStatusRequest& request, const DescribeUserBuyStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBuyStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeUserBuyStatusOutcomeCallable Cloud_siemClient::describeUserBuyStatusCallable(const DescribeUserBuyStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBuyStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DescribeWafScopeOutcome Cloud_siemClient::describeWafScope(const DescribeWafScopeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +2211,42 @@ Cloud_siemClient::DescribeWafScopeOutcomeCallable Cloud_siemClient::describeWafS return task->get_future(); } +Cloud_siemClient::DescribeWhiteRuleListOutcome Cloud_siemClient::describeWhiteRuleList(const DescribeWhiteRuleListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWhiteRuleListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWhiteRuleListOutcome(DescribeWhiteRuleListResult(outcome.result())); + else + return DescribeWhiteRuleListOutcome(outcome.error()); +} + +void Cloud_siemClient::describeWhiteRuleListAsync(const DescribeWhiteRuleListRequest& request, const DescribeWhiteRuleListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWhiteRuleList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::DescribeWhiteRuleListOutcomeCallable Cloud_siemClient::describeWhiteRuleListCallable(const DescribeWhiteRuleListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWhiteRuleList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::DoQuickFieldOutcome Cloud_siemClient::doQuickField(const DoQuickFieldRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +2319,78 @@ Cloud_siemClient::DoSelfDelegateOutcomeCallable Cloud_siemClient::doSelfDelegate return task->get_future(); } +Cloud_siemClient::EnableAccessForCloudSiemOutcome Cloud_siemClient::enableAccessForCloudSiem(const EnableAccessForCloudSiemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableAccessForCloudSiemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableAccessForCloudSiemOutcome(EnableAccessForCloudSiemResult(outcome.result())); + else + return EnableAccessForCloudSiemOutcome(outcome.error()); +} + +void Cloud_siemClient::enableAccessForCloudSiemAsync(const EnableAccessForCloudSiemRequest& request, const EnableAccessForCloudSiemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableAccessForCloudSiem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::EnableAccessForCloudSiemOutcomeCallable Cloud_siemClient::enableAccessForCloudSiemCallable(const EnableAccessForCloudSiemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableAccessForCloudSiem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::EnableServiceForCloudSiemOutcome Cloud_siemClient::enableServiceForCloudSiem(const EnableServiceForCloudSiemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableServiceForCloudSiemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableServiceForCloudSiemOutcome(EnableServiceForCloudSiemResult(outcome.result())); + else + return EnableServiceForCloudSiemOutcome(outcome.error()); +} + +void Cloud_siemClient::enableServiceForCloudSiemAsync(const EnableServiceForCloudSiemRequest& request, const EnableServiceForCloudSiemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableServiceForCloudSiem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::EnableServiceForCloudSiemOutcomeCallable Cloud_siemClient::enableServiceForCloudSiemCallable(const EnableServiceForCloudSiemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableServiceForCloudSiem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::GetCapacityOutcome Cloud_siemClient::getCapacity(const GetCapacityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +2571,114 @@ Cloud_siemClient::GetStorageOutcomeCallable Cloud_siemClient::getStorageCallable return task->get_future(); } +Cloud_siemClient::ListAccountAccessIdOutcome Cloud_siemClient::listAccountAccessId(const ListAccountAccessIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccountAccessIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccountAccessIdOutcome(ListAccountAccessIdResult(outcome.result())); + else + return ListAccountAccessIdOutcome(outcome.error()); +} + +void Cloud_siemClient::listAccountAccessIdAsync(const ListAccountAccessIdRequest& request, const ListAccountAccessIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccountAccessId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListAccountAccessIdOutcomeCallable Cloud_siemClient::listAccountAccessIdCallable(const ListAccountAccessIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccountAccessId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ListAccountsByLogOutcome Cloud_siemClient::listAccountsByLog(const ListAccountsByLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccountsByLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccountsByLogOutcome(ListAccountsByLogResult(outcome.result())); + else + return ListAccountsByLogOutcome(outcome.error()); +} + +void Cloud_siemClient::listAccountsByLogAsync(const ListAccountsByLogRequest& request, const ListAccountsByLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccountsByLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListAccountsByLogOutcomeCallable Cloud_siemClient::listAccountsByLogCallable(const ListAccountsByLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccountsByLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ListAllProdsOutcome Cloud_siemClient::listAllProds(const ListAllProdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAllProdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAllProdsOutcome(ListAllProdsResult(outcome.result())); + else + return ListAllProdsOutcome(outcome.error()); +} + +void Cloud_siemClient::listAllProdsAsync(const ListAllProdsRequest& request, const ListAllProdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAllProds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListAllProdsOutcomeCallable Cloud_siemClient::listAllProdsCallable(const ListAllProdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAllProds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::ListAutomateResponseConfigsOutcome Cloud_siemClient::listAutomateResponseConfigs(const ListAutomateResponseConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +2715,78 @@ Cloud_siemClient::ListAutomateResponseConfigsOutcomeCallable Cloud_siemClient::l return task->get_future(); } +Cloud_siemClient::ListBindAccountOutcome Cloud_siemClient::listBindAccount(const ListBindAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBindAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBindAccountOutcome(ListBindAccountResult(outcome.result())); + else + return ListBindAccountOutcome(outcome.error()); +} + +void Cloud_siemClient::listBindAccountAsync(const ListBindAccountRequest& request, const ListBindAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBindAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListBindAccountOutcomeCallable Cloud_siemClient::listBindAccountCallable(const ListBindAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBindAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ListBindDataSourcesOutcome Cloud_siemClient::listBindDataSources(const ListBindDataSourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBindDataSourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBindDataSourcesOutcome(ListBindDataSourcesResult(outcome.result())); + else + return ListBindDataSourcesOutcome(outcome.error()); +} + +void Cloud_siemClient::listBindDataSourcesAsync(const ListBindDataSourcesRequest& request, const ListBindDataSourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBindDataSources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListBindDataSourcesOutcomeCallable Cloud_siemClient::listBindDataSourcesCallable(const ListBindDataSourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBindDataSources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::ListCloudSiemCustomizeRulesOutcome Cloud_siemClient::listCloudSiemCustomizeRules(const ListCloudSiemCustomizeRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,6 +2895,78 @@ Cloud_siemClient::ListCustomizeRuleTestResultOutcomeCallable Cloud_siemClient::l return task->get_future(); } +Cloud_siemClient::ListDataSourceLogsOutcome Cloud_siemClient::listDataSourceLogs(const ListDataSourceLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSourceLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSourceLogsOutcome(ListDataSourceLogsResult(outcome.result())); + else + return ListDataSourceLogsOutcome(outcome.error()); +} + +void Cloud_siemClient::listDataSourceLogsAsync(const ListDataSourceLogsRequest& request, const ListDataSourceLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSourceLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListDataSourceLogsOutcomeCallable Cloud_siemClient::listDataSourceLogsCallable(const ListDataSourceLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSourceLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ListDataSourceTypesOutcome Cloud_siemClient::listDataSourceTypes(const ListDataSourceTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSourceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSourceTypesOutcome(ListDataSourceTypesResult(outcome.result())); + else + return ListDataSourceTypesOutcome(outcome.error()); +} + +void Cloud_siemClient::listDataSourceTypesAsync(const ListDataSourceTypesRequest& request, const ListDataSourceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataSourceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListDataSourceTypesOutcomeCallable Cloud_siemClient::listDataSourceTypesCallable(const ListDataSourceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataSourceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::ListDeliveryOutcome Cloud_siemClient::listDelivery(const ListDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +3039,42 @@ Cloud_siemClient::ListDisposeStrategyOutcomeCallable Cloud_siemClient::listDispo return task->get_future(); } +Cloud_siemClient::ListImportedLogsByProdOutcome Cloud_siemClient::listImportedLogsByProd(const ListImportedLogsByProdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImportedLogsByProdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImportedLogsByProdOutcome(ListImportedLogsByProdResult(outcome.result())); + else + return ListImportedLogsByProdOutcome(outcome.error()); +} + +void Cloud_siemClient::listImportedLogsByProdAsync(const ListImportedLogsByProdRequest& request, const ListImportedLogsByProdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImportedLogsByProd(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListImportedLogsByProdOutcomeCallable Cloud_siemClient::listImportedLogsByProdCallable(const ListImportedLogsByProdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImportedLogsByProd(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::ListOperationOutcome Cloud_siemClient::listOperation(const ListOperationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +3111,42 @@ Cloud_siemClient::ListOperationOutcomeCallable Cloud_siemClient::listOperationCa return task->get_future(); } +Cloud_siemClient::ListProjectLogStoresOutcome Cloud_siemClient::listProjectLogStores(const ListProjectLogStoresRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectLogStoresOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectLogStoresOutcome(ListProjectLogStoresResult(outcome.result())); + else + return ListProjectLogStoresOutcome(outcome.error()); +} + +void Cloud_siemClient::listProjectLogStoresAsync(const ListProjectLogStoresRequest& request, const ListProjectLogStoresAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectLogStores(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListProjectLogStoresOutcomeCallable Cloud_siemClient::listProjectLogStoresCallable(const ListProjectLogStoresRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectLogStores(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::ListQuickQueryOutcome Cloud_siemClient::listQuickQuery(const ListQuickQueryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +3183,222 @@ Cloud_siemClient::ListQuickQueryOutcomeCallable Cloud_siemClient::listQuickQuery return task->get_future(); } +Cloud_siemClient::ListRdUsersOutcome Cloud_siemClient::listRdUsers(const ListRdUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRdUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRdUsersOutcome(ListRdUsersResult(outcome.result())); + else + return ListRdUsersOutcome(outcome.error()); +} + +void Cloud_siemClient::listRdUsersAsync(const ListRdUsersRequest& request, const ListRdUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRdUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListRdUsersOutcomeCallable Cloud_siemClient::listRdUsersCallable(const ListRdUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRdUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ListUserProdLogsOutcome Cloud_siemClient::listUserProdLogs(const ListUserProdLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserProdLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserProdLogsOutcome(ListUserProdLogsResult(outcome.result())); + else + return ListUserProdLogsOutcome(outcome.error()); +} + +void Cloud_siemClient::listUserProdLogsAsync(const ListUserProdLogsRequest& request, const ListUserProdLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserProdLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListUserProdLogsOutcomeCallable Cloud_siemClient::listUserProdLogsCallable(const ListUserProdLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserProdLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ListUsersByProdOutcome Cloud_siemClient::listUsersByProd(const ListUsersByProdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersByProdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersByProdOutcome(ListUsersByProdResult(outcome.result())); + else + return ListUsersByProdOutcome(outcome.error()); +} + +void Cloud_siemClient::listUsersByProdAsync(const ListUsersByProdRequest& request, const ListUsersByProdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsersByProd(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListUsersByProdOutcomeCallable Cloud_siemClient::listUsersByProdCallable(const ListUsersByProdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsersByProd(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ModifyBindAccountOutcome Cloud_siemClient::modifyBindAccount(const ModifyBindAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBindAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBindAccountOutcome(ModifyBindAccountResult(outcome.result())); + else + return ModifyBindAccountOutcome(outcome.error()); +} + +void Cloud_siemClient::modifyBindAccountAsync(const ModifyBindAccountRequest& request, const ModifyBindAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBindAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ModifyBindAccountOutcomeCallable Cloud_siemClient::modifyBindAccountCallable(const ModifyBindAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBindAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ModifyDataSourceOutcome Cloud_siemClient::modifyDataSource(const ModifyDataSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDataSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDataSourceOutcome(ModifyDataSourceResult(outcome.result())); + else + return ModifyDataSourceOutcome(outcome.error()); +} + +void Cloud_siemClient::modifyDataSourceAsync(const ModifyDataSourceRequest& request, const ModifyDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDataSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ModifyDataSourceOutcomeCallable Cloud_siemClient::modifyDataSourceCallable(const ModifyDataSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDataSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::ModifyDataSourceLogOutcome Cloud_siemClient::modifyDataSourceLog(const ModifyDataSourceLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDataSourceLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDataSourceLogOutcome(ModifyDataSourceLogResult(outcome.result())); + else + return ModifyDataSourceLogOutcome(outcome.error()); +} + +void Cloud_siemClient::modifyDataSourceLogAsync(const ModifyDataSourceLogRequest& request, const ModifyDataSourceLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDataSourceLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ModifyDataSourceLogOutcomeCallable Cloud_siemClient::modifyDataSourceLogCallable(const ModifyDataSourceLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDataSourceLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::OpenDeliveryOutcome Cloud_siemClient::openDelivery(const OpenDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +3831,78 @@ Cloud_siemClient::ShowQuickAnalysisOutcomeCallable Cloud_siemClient::showQuickAn return task->get_future(); } +Cloud_siemClient::SubmitImportLogTasksOutcome Cloud_siemClient::submitImportLogTasks(const SubmitImportLogTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitImportLogTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitImportLogTasksOutcome(SubmitImportLogTasksResult(outcome.result())); + else + return SubmitImportLogTasksOutcome(outcome.error()); +} + +void Cloud_siemClient::submitImportLogTasksAsync(const SubmitImportLogTasksRequest& request, const SubmitImportLogTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitImportLogTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::SubmitImportLogTasksOutcomeCallable Cloud_siemClient::submitImportLogTasksCallable(const SubmitImportLogTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitImportLogTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Cloud_siemClient::SubmitJobsOutcome Cloud_siemClient::submitJobs(const SubmitJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitJobsOutcome(SubmitJobsResult(outcome.result())); + else + return SubmitJobsOutcome(outcome.error()); +} + +void Cloud_siemClient::submitJobsAsync(const SubmitJobsRequest& request, const SubmitJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::SubmitJobsOutcomeCallable Cloud_siemClient::submitJobsCallable(const SubmitJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::UpdateAutomateResponseConfigStatusOutcome Cloud_siemClient::updateAutomateResponseConfigStatus(const UpdateAutomateResponseConfigStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cloud-siem/src/model/AddDataSourceLogRequest.cc b/cloud-siem/src/model/AddDataSourceLogRequest.cc new file mode 100644 index 000000000..26070fd89 --- /dev/null +++ b/cloud-siem/src/model/AddDataSourceLogRequest.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 + +using AlibabaCloud::Cloud_siem::Model::AddDataSourceLogRequest; + +AddDataSourceLogRequest::AddDataSourceLogRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "AddDataSourceLog") { + setMethod(HttpRequest::Method::Post); +} + +AddDataSourceLogRequest::~AddDataSourceLogRequest() {} + +std::string AddDataSourceLogRequest::getCloudCode() const { + return cloudCode_; +} + +void AddDataSourceLogRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string AddDataSourceLogRequest::getAccountId() const { + return accountId_; +} + +void AddDataSourceLogRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string AddDataSourceLogRequest::getLogCode() const { + return logCode_; +} + +void AddDataSourceLogRequest::setLogCode(const std::string &logCode) { + logCode_ = logCode; + setBodyParameter(std::string("LogCode"), logCode); +} + +std::string AddDataSourceLogRequest::getRegionId() const { + return regionId_; +} + +void AddDataSourceLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string AddDataSourceLogRequest::getDataSourceInstanceLogs() const { + return dataSourceInstanceLogs_; +} + +void AddDataSourceLogRequest::setDataSourceInstanceLogs(const std::string &dataSourceInstanceLogs) { + dataSourceInstanceLogs_ = dataSourceInstanceLogs; + setBodyParameter(std::string("DataSourceInstanceLogs"), dataSourceInstanceLogs); +} + +std::string AddDataSourceLogRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void AddDataSourceLogRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/AddDataSourceLogResult.cc b/cloud-siem/src/model/AddDataSourceLogResult.cc new file mode 100644 index 000000000..6d9b406a1 --- /dev/null +++ b/cloud-siem/src/model/AddDataSourceLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +AddDataSourceLogResult::AddDataSourceLogResult() : + ServiceResult() +{} + +AddDataSourceLogResult::AddDataSourceLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddDataSourceLogResult::~AddDataSourceLogResult() +{} + +void AddDataSourceLogResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + if(!dataNode["LogInstanceId"].isNull()) + data_.logInstanceId = dataNode["LogInstanceId"].asString(); + +} + +AddDataSourceLogResult::Data AddDataSourceLogResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/AddDataSourceRequest.cc b/cloud-siem/src/model/AddDataSourceRequest.cc new file mode 100644 index 000000000..a1ca1bdd8 --- /dev/null +++ b/cloud-siem/src/model/AddDataSourceRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::AddDataSourceRequest; + +AddDataSourceRequest::AddDataSourceRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "AddDataSource") { + setMethod(HttpRequest::Method::Post); +} + +AddDataSourceRequest::~AddDataSourceRequest() {} + +std::string AddDataSourceRequest::getDataSourceType() const { + return dataSourceType_; +} + +void AddDataSourceRequest::setDataSourceType(const std::string &dataSourceType) { + dataSourceType_ = dataSourceType; + setBodyParameter(std::string("DataSourceType"), dataSourceType); +} + +std::string AddDataSourceRequest::getCloudCode() const { + return cloudCode_; +} + +void AddDataSourceRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string AddDataSourceRequest::getDataSourceInstanceName() const { + return dataSourceInstanceName_; +} + +void AddDataSourceRequest::setDataSourceInstanceName(const std::string &dataSourceInstanceName) { + dataSourceInstanceName_ = dataSourceInstanceName; + setBodyParameter(std::string("DataSourceInstanceName"), dataSourceInstanceName); +} + +std::string AddDataSourceRequest::getAccountId() const { + return accountId_; +} + +void AddDataSourceRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string AddDataSourceRequest::getRegionId() const { + return regionId_; +} + +void AddDataSourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string AddDataSourceRequest::getDataSourceInstanceRemark() const { + return dataSourceInstanceRemark_; +} + +void AddDataSourceRequest::setDataSourceInstanceRemark(const std::string &dataSourceInstanceRemark) { + dataSourceInstanceRemark_ = dataSourceInstanceRemark; + setBodyParameter(std::string("DataSourceInstanceRemark"), dataSourceInstanceRemark); +} + +std::string AddDataSourceRequest::getDataSourceInstanceParams() const { + return dataSourceInstanceParams_; +} + +void AddDataSourceRequest::setDataSourceInstanceParams(const std::string &dataSourceInstanceParams) { + dataSourceInstanceParams_ = dataSourceInstanceParams; + setBodyParameter(std::string("DataSourceInstanceParams"), dataSourceInstanceParams); +} + diff --git a/cloud-siem/src/model/AddDataSourceResult.cc b/cloud-siem/src/model/AddDataSourceResult.cc new file mode 100644 index 000000000..b2cd52264 --- /dev/null +++ b/cloud-siem/src/model/AddDataSourceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +AddDataSourceResult::AddDataSourceResult() : + ServiceResult() +{} + +AddDataSourceResult::AddDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddDataSourceResult::~AddDataSourceResult() +{} + +void AddDataSourceResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + if(!dataNode["DataSourceInstanceId"].isNull()) + data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString(); + +} + +AddDataSourceResult::Data AddDataSourceResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/AddUserRequest.cc b/cloud-siem/src/model/AddUserRequest.cc new file mode 100644 index 000000000..61c2de407 --- /dev/null +++ b/cloud-siem/src/model/AddUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::AddUserRequest; + +AddUserRequest::AddUserRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "AddUser") { + setMethod(HttpRequest::Method::Post); +} + +AddUserRequest::~AddUserRequest() {} + +long AddUserRequest::getAddedUserId() const { + return addedUserId_; +} + +void AddUserRequest::setAddedUserId(long addedUserId) { + addedUserId_ = addedUserId; + setBodyParameter(std::string("AddedUserId"), std::to_string(addedUserId)); +} + +std::string AddUserRequest::getRegionId() const { + return regionId_; +} + +void AddUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/AddUserResult.cc b/cloud-siem/src/model/AddUserResult.cc new file mode 100644 index 000000000..620077ba7 --- /dev/null +++ b/cloud-siem/src/model/AddUserResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +AddUserResult::AddUserResult() : + ServiceResult() +{} + +AddUserResult::AddUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserResult::~AddUserResult() +{} + +void AddUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool AddUserResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/AddUserSourceLogConfigRequest.cc b/cloud-siem/src/model/AddUserSourceLogConfigRequest.cc new file mode 100644 index 000000000..2da02b36e --- /dev/null +++ b/cloud-siem/src/model/AddUserSourceLogConfigRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::AddUserSourceLogConfigRequest; + +AddUserSourceLogConfigRequest::AddUserSourceLogConfigRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "AddUserSourceLogConfig") { + setMethod(HttpRequest::Method::Post); +} + +AddUserSourceLogConfigRequest::~AddUserSourceLogConfigRequest() {} + +std::string AddUserSourceLogConfigRequest::getDisPlayLine() const { + return disPlayLine_; +} + +void AddUserSourceLogConfigRequest::setDisPlayLine(const std::string &disPlayLine) { + disPlayLine_ = disPlayLine; + setBodyParameter(std::string("DisPlayLine"), disPlayLine); +} + +long AddUserSourceLogConfigRequest::getSubUserId() const { + return subUserId_; +} + +void AddUserSourceLogConfigRequest::setSubUserId(long subUserId) { + subUserId_ = subUserId; + setBodyParameter(std::string("SubUserId"), std::to_string(subUserId)); +} + +std::string AddUserSourceLogConfigRequest::getRegionId() const { + return regionId_; +} + +void AddUserSourceLogConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string AddUserSourceLogConfigRequest::getSourceProdCode() const { + return sourceProdCode_; +} + +void AddUserSourceLogConfigRequest::setSourceProdCode(const std::string &sourceProdCode) { + sourceProdCode_ = sourceProdCode; + setBodyParameter(std::string("SourceProdCode"), sourceProdCode); +} + +std::string AddUserSourceLogConfigRequest::getSourceLogInfo() const { + return sourceLogInfo_; +} + +void AddUserSourceLogConfigRequest::setSourceLogInfo(const std::string &sourceLogInfo) { + sourceLogInfo_ = sourceLogInfo; + setBodyParameter(std::string("SourceLogInfo"), sourceLogInfo); +} + +int AddUserSourceLogConfigRequest::getDeleted() const { + return deleted_; +} + +void AddUserSourceLogConfigRequest::setDeleted(int deleted) { + deleted_ = deleted; + setBodyParameter(std::string("Deleted"), std::to_string(deleted)); +} + +std::string AddUserSourceLogConfigRequest::getSourceLogCode() const { + return sourceLogCode_; +} + +void AddUserSourceLogConfigRequest::setSourceLogCode(const std::string &sourceLogCode) { + sourceLogCode_ = sourceLogCode; + setBodyParameter(std::string("SourceLogCode"), sourceLogCode); +} + diff --git a/cloud-siem/src/model/AddUserSourceLogConfigResult.cc b/cloud-siem/src/model/AddUserSourceLogConfigResult.cc new file mode 100644 index 000000000..e22deabf2 --- /dev/null +++ b/cloud-siem/src/model/AddUserSourceLogConfigResult.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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +AddUserSourceLogConfigResult::AddUserSourceLogConfigResult() : + ServiceResult() +{} + +AddUserSourceLogConfigResult::AddUserSourceLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserSourceLogConfigResult::~AddUserSourceLogConfigResult() +{} + +void AddUserSourceLogConfigResult::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["DiplayLine"].isNull()) + data_.diplayLine = dataNode["DiplayLine"].asString(); + if(!dataNode["SourceProdCode"].isNull()) + data_.sourceProdCode = dataNode["SourceProdCode"].asString(); + if(!dataNode["SourceLogCode"].isNull()) + data_.sourceLogCode = dataNode["SourceLogCode"].asString(); + if(!dataNode["Displayed"].isNull()) + data_.displayed = dataNode["Displayed"].asString() == "true"; + if(!dataNode["Imported"].isNull()) + data_.imported = dataNode["Imported"].asString() == "true"; + if(!dataNode["MainUserId"].isNull()) + data_.mainUserId = std::stol(dataNode["MainUserId"].asString()); + if(!dataNode["SubUserId"].isNull()) + data_.subUserId = std::stol(dataNode["SubUserId"].asString()); + if(!dataNode["SubUserName"].isNull()) + data_.subUserName = dataNode["SubUserName"].asString(); + +} + +AddUserSourceLogConfigResult::Data AddUserSourceLogConfigResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/BindAccountRequest.cc b/cloud-siem/src/model/BindAccountRequest.cc new file mode 100644 index 000000000..42f8297b0 --- /dev/null +++ b/cloud-siem/src/model/BindAccountRequest.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 + +using AlibabaCloud::Cloud_siem::Model::BindAccountRequest; + +BindAccountRequest::BindAccountRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "BindAccount") { + setMethod(HttpRequest::Method::Post); +} + +BindAccountRequest::~BindAccountRequest() {} + +std::string BindAccountRequest::getCloudCode() const { + return cloudCode_; +} + +void BindAccountRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string BindAccountRequest::getAccountId() const { + return accountId_; +} + +void BindAccountRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string BindAccountRequest::getAccountName() const { + return accountName_; +} + +void BindAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setBodyParameter(std::string("AccountName"), accountName); +} + +std::string BindAccountRequest::getRegionId() const { + return regionId_; +} + +void BindAccountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string BindAccountRequest::getAccessId() const { + return accessId_; +} + +void BindAccountRequest::setAccessId(const std::string &accessId) { + accessId_ = accessId; + setBodyParameter(std::string("AccessId"), accessId); +} + diff --git a/cloud-siem/src/model/BindAccountResult.cc b/cloud-siem/src/model/BindAccountResult.cc new file mode 100644 index 000000000..7200761d7 --- /dev/null +++ b/cloud-siem/src/model/BindAccountResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +BindAccountResult::BindAccountResult() : + ServiceResult() +{} + +BindAccountResult::BindAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindAccountResult::~BindAccountResult() +{} + +void BindAccountResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + +} + +BindAccountResult::Data BindAccountResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/CloseDeliveryResult.cc b/cloud-siem/src/model/CloseDeliveryResult.cc index f408ec8e8..5ef7e2753 100644 --- a/cloud-siem/src/model/CloseDeliveryResult.cc +++ b/cloud-siem/src/model/CloseDeliveryResult.cc @@ -41,53 +41,11 @@ void CloseDeliveryResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string CloseDeliveryResult::getDyCode()const -{ - return dyCode_; -} - -std::string CloseDeliveryResult::getMessage()const -{ - return message_; -} - bool CloseDeliveryResult::getData()const { return data_; } -int CloseDeliveryResult::getCode()const -{ - return code_; -} - -std::string CloseDeliveryResult::getDyMessage()const -{ - return dyMessage_; -} - -bool CloseDeliveryResult::getSuccess()const -{ - return success_; -} - -std::string CloseDeliveryResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/DeleteBindAccountRequest.cc b/cloud-siem/src/model/DeleteBindAccountRequest.cc new file mode 100644 index 000000000..f52614ef0 --- /dev/null +++ b/cloud-siem/src/model/DeleteBindAccountRequest.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 + +using AlibabaCloud::Cloud_siem::Model::DeleteBindAccountRequest; + +DeleteBindAccountRequest::DeleteBindAccountRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteBindAccount") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBindAccountRequest::~DeleteBindAccountRequest() {} + +std::string DeleteBindAccountRequest::getCloudCode() const { + return cloudCode_; +} + +void DeleteBindAccountRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string DeleteBindAccountRequest::getAccountId() const { + return accountId_; +} + +void DeleteBindAccountRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string DeleteBindAccountRequest::getRegionId() const { + return regionId_; +} + +void DeleteBindAccountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +long DeleteBindAccountRequest::getBindId() const { + return bindId_; +} + +void DeleteBindAccountRequest::setBindId(long bindId) { + bindId_ = bindId; + setBodyParameter(std::string("BindId"), std::to_string(bindId)); +} + +std::string DeleteBindAccountRequest::getAccessId() const { + return accessId_; +} + +void DeleteBindAccountRequest::setAccessId(const std::string &accessId) { + accessId_ = accessId; + setBodyParameter(std::string("AccessId"), accessId); +} + diff --git a/cloud-siem/src/model/DeleteBindAccountResult.cc b/cloud-siem/src/model/DeleteBindAccountResult.cc new file mode 100644 index 000000000..32806c9a3 --- /dev/null +++ b/cloud-siem/src/model/DeleteBindAccountResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DeleteBindAccountResult::DeleteBindAccountResult() : + ServiceResult() +{} + +DeleteBindAccountResult::DeleteBindAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBindAccountResult::~DeleteBindAccountResult() +{} + +void DeleteBindAccountResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + +} + +DeleteBindAccountResult::Data DeleteBindAccountResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DeleteDataSourceLogRequest.cc b/cloud-siem/src/model/DeleteDataSourceLogRequest.cc new file mode 100644 index 000000000..4c4fda557 --- /dev/null +++ b/cloud-siem/src/model/DeleteDataSourceLogRequest.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 + +using AlibabaCloud::Cloud_siem::Model::DeleteDataSourceLogRequest; + +DeleteDataSourceLogRequest::DeleteDataSourceLogRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteDataSourceLog") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDataSourceLogRequest::~DeleteDataSourceLogRequest() {} + +std::string DeleteDataSourceLogRequest::getCloudCode() const { + return cloudCode_; +} + +void DeleteDataSourceLogRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string DeleteDataSourceLogRequest::getAccountId() const { + return accountId_; +} + +void DeleteDataSourceLogRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string DeleteDataSourceLogRequest::getRegionId() const { + return regionId_; +} + +void DeleteDataSourceLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string DeleteDataSourceLogRequest::getLogInstanceId() const { + return logInstanceId_; +} + +void DeleteDataSourceLogRequest::setLogInstanceId(const std::string &logInstanceId) { + logInstanceId_ = logInstanceId; + setBodyParameter(std::string("LogInstanceId"), logInstanceId); +} + +std::string DeleteDataSourceLogRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void DeleteDataSourceLogRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/DeleteDataSourceLogResult.cc b/cloud-siem/src/model/DeleteDataSourceLogResult.cc new file mode 100644 index 000000000..f96dfd011 --- /dev/null +++ b/cloud-siem/src/model/DeleteDataSourceLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DeleteDataSourceLogResult::DeleteDataSourceLogResult() : + ServiceResult() +{} + +DeleteDataSourceLogResult::DeleteDataSourceLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataSourceLogResult::~DeleteDataSourceLogResult() +{} + +void DeleteDataSourceLogResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + if(!dataNode["LogInstanceId"].isNull()) + data_.logInstanceId = dataNode["LogInstanceId"].asString(); + +} + +DeleteDataSourceLogResult::Data DeleteDataSourceLogResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DeleteDataSourceRequest.cc b/cloud-siem/src/model/DeleteDataSourceRequest.cc new file mode 100644 index 000000000..c1b8af5d6 --- /dev/null +++ b/cloud-siem/src/model/DeleteDataSourceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DeleteDataSourceRequest; + +DeleteDataSourceRequest::DeleteDataSourceRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteDataSource") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDataSourceRequest::~DeleteDataSourceRequest() {} + +std::string DeleteDataSourceRequest::getCloudCode() const { + return cloudCode_; +} + +void DeleteDataSourceRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string DeleteDataSourceRequest::getAccountId() const { + return accountId_; +} + +void DeleteDataSourceRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string DeleteDataSourceRequest::getRegionId() const { + return regionId_; +} + +void DeleteDataSourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string DeleteDataSourceRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void DeleteDataSourceRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/DeleteDataSourceResult.cc b/cloud-siem/src/model/DeleteDataSourceResult.cc new file mode 100644 index 000000000..604948bf1 --- /dev/null +++ b/cloud-siem/src/model/DeleteDataSourceResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DeleteDataSourceResult::DeleteDataSourceResult() : + ServiceResult() +{} + +DeleteDataSourceResult::DeleteDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataSourceResult::~DeleteDataSourceResult() +{} + +void DeleteDataSourceResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + +} + +DeleteDataSourceResult::Data DeleteDataSourceResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DeleteQuickQueryResult.cc b/cloud-siem/src/model/DeleteQuickQueryResult.cc index 32266944d..46b3edc9c 100644 --- a/cloud-siem/src/model/DeleteQuickQueryResult.cc +++ b/cloud-siem/src/model/DeleteQuickQueryResult.cc @@ -41,53 +41,11 @@ void DeleteQuickQueryResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string DeleteQuickQueryResult::getDyCode()const -{ - return dyCode_; -} - -std::string DeleteQuickQueryResult::getMessage()const -{ - return message_; -} - bool DeleteQuickQueryResult::getData()const { return data_; } -int DeleteQuickQueryResult::getCode()const -{ - return code_; -} - -std::string DeleteQuickQueryResult::getDyMessage()const -{ - return dyMessage_; -} - -bool DeleteQuickQueryResult::getSuccess()const -{ - return success_; -} - -std::string DeleteQuickQueryResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/DeleteUserRequest.cc b/cloud-siem/src/model/DeleteUserRequest.cc new file mode 100644 index 000000000..9e3e9ed48 --- /dev/null +++ b/cloud-siem/src/model/DeleteUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteUser") { + setMethod(HttpRequest::Method::Post); +} + +DeleteUserRequest::~DeleteUserRequest() {} + +long DeleteUserRequest::getAddedUserId() const { + return addedUserId_; +} + +void DeleteUserRequest::setAddedUserId(long addedUserId) { + addedUserId_ = addedUserId; + setBodyParameter(std::string("AddedUserId"), std::to_string(addedUserId)); +} + +std::string DeleteUserRequest::getRegionId() const { + return regionId_; +} + +void DeleteUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DeleteUserResult.cc b/cloud-siem/src/model/DeleteUserResult.cc new file mode 100644 index 000000000..0f019e36a --- /dev/null +++ b/cloud-siem/src/model/DeleteUserResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::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()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DeleteUserResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeAlertSceneRequest.cc b/cloud-siem/src/model/DescribeAlertSceneRequest.cc new file mode 100644 index 000000000..bc035010b --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertSceneRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::DescribeAlertSceneRequest; + +DescribeAlertSceneRequest::DescribeAlertSceneRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlertScene") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAlertSceneRequest::~DescribeAlertSceneRequest() {} + +std::string DescribeAlertSceneRequest::getRegionId() const { + return regionId_; +} + +void DescribeAlertSceneRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeAlertSceneResult.cc b/cloud-siem/src/model/DescribeAlertSceneResult.cc new file mode 100644 index 000000000..a63587a85 --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertSceneResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeAlertSceneResult::DescribeAlertSceneResult() : + ServiceResult() +{} + +DescribeAlertSceneResult::DescribeAlertSceneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlertSceneResult::~DescribeAlertSceneResult() +{} + +void DescribeAlertSceneResult::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["AlertType"].isNull()) + dataObject.alertType = valueDataDataItem["AlertType"].asString(); + if(!valueDataDataItem["AlertTypeId"].isNull()) + dataObject.alertTypeId = valueDataDataItem["AlertTypeId"].asString(); + if(!valueDataDataItem["AlertName"].isNull()) + dataObject.alertName = valueDataDataItem["AlertName"].asString(); + if(!valueDataDataItem["AlertNameId"].isNull()) + dataObject.alertNameId = valueDataDataItem["AlertNameId"].asString(); + if(!valueDataDataItem["AlertTile"].isNull()) + dataObject.alertTile = valueDataDataItem["AlertTile"].asString(); + if(!valueDataDataItem["AlertTileId"].isNull()) + dataObject.alertTileId = valueDataDataItem["AlertTileId"].asString(); + auto allTargetsNode = valueDataDataItem["Targets"]["Target"]; + for (auto valueDataDataItemTargetsTarget : allTargetsNode) + { + DataItem::Target targetsObject; + if(!valueDataDataItemTargetsTarget["Type"].isNull()) + targetsObject.type = valueDataDataItemTargetsTarget["Type"].asString(); + if(!valueDataDataItemTargetsTarget["Name"].isNull()) + targetsObject.name = valueDataDataItemTargetsTarget["Name"].asString(); + if(!valueDataDataItemTargetsTarget["Value"].isNull()) + targetsObject.value = valueDataDataItemTargetsTarget["Value"].asString(); + auto allValues = value["Values"]["Value"]; + for (auto value : allValues) + targetsObject.values.push_back(value.asString()); + dataObject.targets.push_back(targetsObject); + } + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeAlertSceneResult::getMessage()const +{ + return message_; +} + +std::vector DescribeAlertSceneResult::getData()const +{ + return data_; +} + +int DescribeAlertSceneResult::getCode()const +{ + return code_; +} + +bool DescribeAlertSceneResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/DescribeAlertsRequest.cc b/cloud-siem/src/model/DescribeAlertsRequest.cc new file mode 100644 index 000000000..86b9c6a82 --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertsRequest.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DescribeAlertsRequest; + +DescribeAlertsRequest::DescribeAlertsRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlerts") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAlertsRequest::~DescribeAlertsRequest() {} + +std::string DescribeAlertsRequest::getSource() const { + return source_; +} + +void DescribeAlertsRequest::setSource(const std::string &source) { + source_ = source; + setBodyParameter(std::string("Source"), source); +} + +std::string DescribeAlertsRequest::getIsDefend() const { + return isDefend_; +} + +void DescribeAlertsRequest::setIsDefend(const std::string &isDefend) { + isDefend_ = isDefend; + setBodyParameter(std::string("IsDefend"), isDefend); +} + +long DescribeAlertsRequest::getStartTime() const { + return startTime_; +} + +void DescribeAlertsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string DescribeAlertsRequest::getSubUserId() const { + return subUserId_; +} + +void DescribeAlertsRequest::setSubUserId(const std::string &subUserId) { + subUserId_ = subUserId; + setBodyParameter(std::string("SubUserId"), subUserId); +} + +std::string DescribeAlertsRequest::getRegionId() const { + return regionId_; +} + +void DescribeAlertsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int DescribeAlertsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAlertsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeAlertsRequest::getLevel() const { + return level_; +} + +void DescribeAlertsRequest::setLevel(const std::vector &level) { + level_ = level; +} + +long DescribeAlertsRequest::getEndTime() const { + return endTime_; +} + +void DescribeAlertsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string DescribeAlertsRequest::getAlertTitle() const { + return alertTitle_; +} + +void DescribeAlertsRequest::setAlertTitle(const std::string &alertTitle) { + alertTitle_ = alertTitle; + setBodyParameter(std::string("AlertTitle"), alertTitle); +} + +int DescribeAlertsRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeAlertsRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribeAlertsRequest::getAlertUuid() const { + return alertUuid_; +} + +void DescribeAlertsRequest::setAlertUuid(const std::string &alertUuid) { + alertUuid_ = alertUuid; + setBodyParameter(std::string("AlertUuid"), alertUuid); +} + diff --git a/cloud-siem/src/model/DescribeAlertsResult.cc b/cloud-siem/src/model/DescribeAlertsResult.cc new file mode 100644 index 000000000..ae32d01df --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertsResult.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeAlertsResult::DescribeAlertsResult() : + ServiceResult() +{} + +DescribeAlertsResult::DescribeAlertsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlertsResult::~DescribeAlertsResult() +{} + +void DescribeAlertsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"]; + for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode) + { + Data::ResponseDataItem responseDataItemObject; + if(!dataNodeResponseDataResponseDataItem["Id"].isNull()) + responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString()); + if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull()) + responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString(); + if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull()) + responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString(); + if(!dataNodeResponseDataResponseDataItem["MainUserId"].isNull()) + responseDataItemObject.mainUserId = std::stol(dataNodeResponseDataResponseDataItem["MainUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull()) + responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull()) + responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull()) + responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertSrcProd"].isNull()) + responseDataItemObject.alertSrcProd = dataNodeResponseDataResponseDataItem["AlertSrcProd"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTitle"].isNull()) + responseDataItemObject.alertTitle = dataNodeResponseDataResponseDataItem["AlertTitle"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTitleEn"].isNull()) + responseDataItemObject.alertTitleEn = dataNodeResponseDataResponseDataItem["AlertTitleEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull()) + responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeEn"].isNull()) + responseDataItemObject.alertTypeEn = dataNodeResponseDataResponseDataItem["AlertTypeEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeCode"].isNull()) + responseDataItemObject.alertTypeCode = dataNodeResponseDataResponseDataItem["AlertTypeCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull()) + responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameEn"].isNull()) + responseDataItemObject.alertNameEn = dataNodeResponseDataResponseDataItem["AlertNameEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameCode"].isNull()) + responseDataItemObject.alertNameCode = dataNodeResponseDataResponseDataItem["AlertNameCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertLevel"].isNull()) + responseDataItemObject.alertLevel = dataNodeResponseDataResponseDataItem["AlertLevel"].asString(); + if(!dataNodeResponseDataResponseDataItem["AssetList"].isNull()) + responseDataItemObject.assetList = dataNodeResponseDataResponseDataItem["AssetList"].asString(); + if(!dataNodeResponseDataResponseDataItem["OccurTime"].isNull()) + responseDataItemObject.occurTime = dataNodeResponseDataResponseDataItem["OccurTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["StartTime"].isNull()) + responseDataItemObject.startTime = dataNodeResponseDataResponseDataItem["StartTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["EndTime"].isNull()) + responseDataItemObject.endTime = dataNodeResponseDataResponseDataItem["EndTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].isNull()) + responseDataItemObject.alertSrcProdModule = dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDesc"].isNull()) + responseDataItemObject.alertDesc = dataNodeResponseDataResponseDataItem["AlertDesc"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDescEn"].isNull()) + responseDataItemObject.alertDescEn = dataNodeResponseDataResponseDataItem["AlertDescEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDescCode"].isNull()) + responseDataItemObject.alertDescCode = dataNodeResponseDataResponseDataItem["AlertDescCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDetail"].isNull()) + responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); + if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull()) + responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) + responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); + if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) + responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) + responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull()) + responseDataItemObject.isDefend = dataNodeResponseDataResponseDataItem["IsDefend"].asString(); + auto allAlertInfoListNode = dataNodeResponseDataResponseDataItem["AlertInfoList"]["AlertInfoListItem"]; + for (auto dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem : allAlertInfoListNode) + { + Data::ResponseDataItem::AlertInfoListItem alertInfoListObject; + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].isNull()) + alertInfoListObject.key = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].asString(); + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].isNull()) + alertInfoListObject.keyName = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].asString(); + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].isNull()) + alertInfoListObject.values = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].asString(); + responseDataItemObject.alertInfoList.push_back(alertInfoListObject); + } + data_.responseData.push_back(responseDataItemObject); + } + auto pageInfoNode = dataNode["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeAlertsResult::getMessage()const +{ + return message_; +} + +DescribeAlertsResult::Data DescribeAlertsResult::getData()const +{ + return data_; +} + +int DescribeAlertsResult::getCode()const +{ + return code_; +} + +bool DescribeAlertsResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc b/cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc new file mode 100644 index 000000000..46e108ccd --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertsWithEntityRequest.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 + +using AlibabaCloud::Cloud_siem::Model::DescribeAlertsWithEntityRequest; + +DescribeAlertsWithEntityRequest::DescribeAlertsWithEntityRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlertsWithEntity") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAlertsWithEntityRequest::~DescribeAlertsWithEntityRequest() {} + +long DescribeAlertsWithEntityRequest::getEntityId() const { + return entityId_; +} + +void DescribeAlertsWithEntityRequest::setEntityId(long entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), std::to_string(entityId)); +} + +std::string DescribeAlertsWithEntityRequest::getRegionId() const { + return regionId_; +} + +void DescribeAlertsWithEntityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int DescribeAlertsWithEntityRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAlertsWithEntityRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeAlertsWithEntityRequest::getSophonTaskId() const { + return sophonTaskId_; +} + +void DescribeAlertsWithEntityRequest::setSophonTaskId(const std::string &sophonTaskId) { + sophonTaskId_ = sophonTaskId; + setBodyParameter(std::string("SophonTaskId"), sophonTaskId); +} + +int DescribeAlertsWithEntityRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeAlertsWithEntityRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribeAlertsWithEntityRequest::getIncidentUuid() const { + return incidentUuid_; +} + +void DescribeAlertsWithEntityRequest::setIncidentUuid(const std::string &incidentUuid) { + incidentUuid_ = incidentUuid; + setBodyParameter(std::string("IncidentUuid"), incidentUuid); +} + diff --git a/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc b/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc new file mode 100644 index 000000000..142772579 --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeAlertsWithEntityResult::DescribeAlertsWithEntityResult() : + ServiceResult() +{} + +DescribeAlertsWithEntityResult::DescribeAlertsWithEntityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlertsWithEntityResult::~DescribeAlertsWithEntityResult() +{} + +void DescribeAlertsWithEntityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"]; + for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode) + { + Data::ResponseDataItem responseDataItemObject; + if(!dataNodeResponseDataResponseDataItem["Id"].isNull()) + responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString()); + if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull()) + responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString(); + if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull()) + responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString(); + if(!dataNodeResponseDataResponseDataItem["MainUserId"].isNull()) + responseDataItemObject.mainUserId = std::stol(dataNodeResponseDataResponseDataItem["MainUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull()) + responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull()) + responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull()) + responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertSrcProd"].isNull()) + responseDataItemObject.alertSrcProd = dataNodeResponseDataResponseDataItem["AlertSrcProd"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTitle"].isNull()) + responseDataItemObject.alertTitle = dataNodeResponseDataResponseDataItem["AlertTitle"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTitleEn"].isNull()) + responseDataItemObject.alertTitleEn = dataNodeResponseDataResponseDataItem["AlertTitleEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull()) + responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeEn"].isNull()) + responseDataItemObject.alertTypeEn = dataNodeResponseDataResponseDataItem["AlertTypeEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeCode"].isNull()) + responseDataItemObject.alertTypeCode = dataNodeResponseDataResponseDataItem["AlertTypeCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull()) + responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameEn"].isNull()) + responseDataItemObject.alertNameEn = dataNodeResponseDataResponseDataItem["AlertNameEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameCode"].isNull()) + responseDataItemObject.alertNameCode = dataNodeResponseDataResponseDataItem["AlertNameCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertLevel"].isNull()) + responseDataItemObject.alertLevel = dataNodeResponseDataResponseDataItem["AlertLevel"].asString(); + if(!dataNodeResponseDataResponseDataItem["AssetList"].isNull()) + responseDataItemObject.assetList = dataNodeResponseDataResponseDataItem["AssetList"].asString(); + if(!dataNodeResponseDataResponseDataItem["OccurTime"].isNull()) + responseDataItemObject.occurTime = dataNodeResponseDataResponseDataItem["OccurTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["StartTime"].isNull()) + responseDataItemObject.startTime = dataNodeResponseDataResponseDataItem["StartTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["EndTime"].isNull()) + responseDataItemObject.endTime = dataNodeResponseDataResponseDataItem["EndTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].isNull()) + responseDataItemObject.alertSrcProdModule = dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDesc"].isNull()) + responseDataItemObject.alertDesc = dataNodeResponseDataResponseDataItem["AlertDesc"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDescEn"].isNull()) + responseDataItemObject.alertDescEn = dataNodeResponseDataResponseDataItem["AlertDescEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDescCode"].isNull()) + responseDataItemObject.alertDescCode = dataNodeResponseDataResponseDataItem["AlertDescCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDetail"].isNull()) + responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); + if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull()) + responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) + responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); + if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) + responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) + responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull()) + responseDataItemObject.isDefend = dataNodeResponseDataResponseDataItem["IsDefend"].asString(); + auto allAlertInfoListNode = dataNodeResponseDataResponseDataItem["AlertInfoList"]["AlertInfoListItem"]; + for (auto dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem : allAlertInfoListNode) + { + Data::ResponseDataItem::AlertInfoListItem alertInfoListObject; + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].isNull()) + alertInfoListObject.key = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].asString(); + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].isNull()) + alertInfoListObject.keyName = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].asString(); + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].isNull()) + alertInfoListObject.values = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].asString(); + responseDataItemObject.alertInfoList.push_back(alertInfoListObject); + } + data_.responseData.push_back(responseDataItemObject); + } + auto pageInfoNode = dataNode["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeAlertsWithEntityResult::getMessage()const +{ + return message_; +} + +DescribeAlertsWithEntityResult::Data DescribeAlertsWithEntityResult::getData()const +{ + return data_; +} + +int DescribeAlertsWithEntityResult::getCode()const +{ + return code_; +} + +bool DescribeAlertsWithEntityResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc b/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc new file mode 100644 index 000000000..83b75ab1e --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DescribeAlertsWithEventRequest; + +DescribeAlertsWithEventRequest::DescribeAlertsWithEventRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlertsWithEvent") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAlertsWithEventRequest::~DescribeAlertsWithEventRequest() {} + +std::string DescribeAlertsWithEventRequest::getSource() const { + return source_; +} + +void DescribeAlertsWithEventRequest::setSource(const std::string &source) { + source_ = source; + setBodyParameter(std::string("Source"), source); +} + +std::string DescribeAlertsWithEventRequest::getIsDefend() const { + return isDefend_; +} + +void DescribeAlertsWithEventRequest::setIsDefend(const std::string &isDefend) { + isDefend_ = isDefend; + setBodyParameter(std::string("IsDefend"), isDefend); +} + +long DescribeAlertsWithEventRequest::getSubUserId() const { + return subUserId_; +} + +void DescribeAlertsWithEventRequest::setSubUserId(long subUserId) { + subUserId_ = subUserId; + setBodyParameter(std::string("SubUserId"), std::to_string(subUserId)); +} + +std::string DescribeAlertsWithEventRequest::getRegionId() const { + return regionId_; +} + +void DescribeAlertsWithEventRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int DescribeAlertsWithEventRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAlertsWithEventRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeAlertsWithEventRequest::getLevel() const { + return level_; +} + +void DescribeAlertsWithEventRequest::setLevel(const std::vector &level) { + level_ = level; +} + +std::string DescribeAlertsWithEventRequest::getAlertTitle() const { + return alertTitle_; +} + +void DescribeAlertsWithEventRequest::setAlertTitle(const std::string &alertTitle) { + alertTitle_ = alertTitle; + setBodyParameter(std::string("AlertTitle"), alertTitle); +} + +int DescribeAlertsWithEventRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeAlertsWithEventRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribeAlertsWithEventRequest::getIncidentUuid() const { + return incidentUuid_; +} + +void DescribeAlertsWithEventRequest::setIncidentUuid(const std::string &incidentUuid) { + incidentUuid_ = incidentUuid; + setBodyParameter(std::string("IncidentUuid"), incidentUuid); +} + diff --git a/cloud-siem/src/model/DescribeAlertsWithEventResult.cc b/cloud-siem/src/model/DescribeAlertsWithEventResult.cc new file mode 100644 index 000000000..0f8f821bb --- /dev/null +++ b/cloud-siem/src/model/DescribeAlertsWithEventResult.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeAlertsWithEventResult::DescribeAlertsWithEventResult() : + ServiceResult() +{} + +DescribeAlertsWithEventResult::DescribeAlertsWithEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlertsWithEventResult::~DescribeAlertsWithEventResult() +{} + +void DescribeAlertsWithEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"]; + for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode) + { + Data::ResponseDataItem responseDataItemObject; + if(!dataNodeResponseDataResponseDataItem["Id"].isNull()) + responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString()); + if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull()) + responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString(); + if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull()) + responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString(); + if(!dataNodeResponseDataResponseDataItem["MainUserId"].isNull()) + responseDataItemObject.mainUserId = std::stol(dataNodeResponseDataResponseDataItem["MainUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull()) + responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull()) + responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull()) + responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertSrcProd"].isNull()) + responseDataItemObject.alertSrcProd = dataNodeResponseDataResponseDataItem["AlertSrcProd"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTitle"].isNull()) + responseDataItemObject.alertTitle = dataNodeResponseDataResponseDataItem["AlertTitle"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTitleEn"].isNull()) + responseDataItemObject.alertTitleEn = dataNodeResponseDataResponseDataItem["AlertTitleEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull()) + responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeEn"].isNull()) + responseDataItemObject.alertTypeEn = dataNodeResponseDataResponseDataItem["AlertTypeEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeCode"].isNull()) + responseDataItemObject.alertTypeCode = dataNodeResponseDataResponseDataItem["AlertTypeCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull()) + responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameEn"].isNull()) + responseDataItemObject.alertNameEn = dataNodeResponseDataResponseDataItem["AlertNameEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameCode"].isNull()) + responseDataItemObject.alertNameCode = dataNodeResponseDataResponseDataItem["AlertNameCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertLevel"].isNull()) + responseDataItemObject.alertLevel = dataNodeResponseDataResponseDataItem["AlertLevel"].asString(); + if(!dataNodeResponseDataResponseDataItem["AssetList"].isNull()) + responseDataItemObject.assetList = dataNodeResponseDataResponseDataItem["AssetList"].asString(); + if(!dataNodeResponseDataResponseDataItem["OccurTime"].isNull()) + responseDataItemObject.occurTime = dataNodeResponseDataResponseDataItem["OccurTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["StartTime"].isNull()) + responseDataItemObject.startTime = dataNodeResponseDataResponseDataItem["StartTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["EndTime"].isNull()) + responseDataItemObject.endTime = dataNodeResponseDataResponseDataItem["EndTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].isNull()) + responseDataItemObject.alertSrcProdModule = dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDesc"].isNull()) + responseDataItemObject.alertDesc = dataNodeResponseDataResponseDataItem["AlertDesc"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDescEn"].isNull()) + responseDataItemObject.alertDescEn = dataNodeResponseDataResponseDataItem["AlertDescEn"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDescCode"].isNull()) + responseDataItemObject.alertDescCode = dataNodeResponseDataResponseDataItem["AlertDescCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertDetail"].isNull()) + responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); + if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull()) + responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) + responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); + if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) + responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) + responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull()) + responseDataItemObject.isDefend = dataNodeResponseDataResponseDataItem["IsDefend"].asString(); + auto allAlertInfoListNode = dataNodeResponseDataResponseDataItem["AlertInfoList"]["AlertInfoListItem"]; + for (auto dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem : allAlertInfoListNode) + { + Data::ResponseDataItem::AlertInfoListItem alertInfoListObject; + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].isNull()) + alertInfoListObject.key = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].asString(); + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].isNull()) + alertInfoListObject.keyName = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].asString(); + if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].isNull()) + alertInfoListObject.values = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].asString(); + responseDataItemObject.alertInfoList.push_back(alertInfoListObject); + } + data_.responseData.push_back(responseDataItemObject); + } + auto pageInfoNode = dataNode["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeAlertsWithEventResult::getMessage()const +{ + return message_; +} + +DescribeAlertsWithEventResult::Data DescribeAlertsWithEventResult::getData()const +{ + return data_; +} + +int DescribeAlertsWithEventResult::getCode()const +{ + return code_; +} + +bool DescribeAlertsWithEventResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/DescribeAuthRequest.cc b/cloud-siem/src/model/DescribeAuthRequest.cc new file mode 100644 index 000000000..91d960c15 --- /dev/null +++ b/cloud-siem/src/model/DescribeAuthRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::DescribeAuthRequest; + +DescribeAuthRequest::DescribeAuthRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAuth") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAuthRequest::~DescribeAuthRequest() {} + +std::string DescribeAuthRequest::getRegionId() const { + return regionId_; +} + +void DescribeAuthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeAuthResult.cc b/cloud-siem/src/model/DescribeAuthResult.cc new file mode 100644 index 000000000..c62466cb8 --- /dev/null +++ b/cloud-siem/src/model/DescribeAuthResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeAuthResult::DescribeAuthResult() : + ServiceResult() +{} + +DescribeAuthResult::DescribeAuthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuthResult::~DescribeAuthResult() +{} + +void DescribeAuthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DescribeAuthResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeCsImportedProdStatusByUserRequest.cc b/cloud-siem/src/model/DescribeCsImportedProdStatusByUserRequest.cc new file mode 100644 index 000000000..41f4fc753 --- /dev/null +++ b/cloud-siem/src/model/DescribeCsImportedProdStatusByUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DescribeCsImportedProdStatusByUserRequest; + +DescribeCsImportedProdStatusByUserRequest::DescribeCsImportedProdStatusByUserRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeCsImportedProdStatusByUser") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCsImportedProdStatusByUserRequest::~DescribeCsImportedProdStatusByUserRequest() {} + +long DescribeCsImportedProdStatusByUserRequest::getUserId() const { + return userId_; +} + +void DescribeCsImportedProdStatusByUserRequest::setUserId(long userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), std::to_string(userId)); +} + +std::string DescribeCsImportedProdStatusByUserRequest::getRegionId() const { + return regionId_; +} + +void DescribeCsImportedProdStatusByUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string DescribeCsImportedProdStatusByUserRequest::getSourceLogProd() const { + return sourceLogProd_; +} + +void DescribeCsImportedProdStatusByUserRequest::setSourceLogProd(const std::string &sourceLogProd) { + sourceLogProd_ = sourceLogProd; + setBodyParameter(std::string("SourceLogProd"), sourceLogProd); +} + diff --git a/cloud-siem/src/model/DescribeCsImportedProdStatusByUserResult.cc b/cloud-siem/src/model/DescribeCsImportedProdStatusByUserResult.cc new file mode 100644 index 000000000..97ae43103 --- /dev/null +++ b/cloud-siem/src/model/DescribeCsImportedProdStatusByUserResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeCsImportedProdStatusByUserResult::DescribeCsImportedProdStatusByUserResult() : + ServiceResult() +{} + +DescribeCsImportedProdStatusByUserResult::DescribeCsImportedProdStatusByUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCsImportedProdStatusByUserResult::~DescribeCsImportedProdStatusByUserResult() +{} + +void DescribeCsImportedProdStatusByUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DescribeCsImportedProdStatusByUserResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeDataSourceInstanceRequest.cc b/cloud-siem/src/model/DescribeDataSourceInstanceRequest.cc new file mode 100644 index 000000000..e35885e86 --- /dev/null +++ b/cloud-siem/src/model/DescribeDataSourceInstanceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DescribeDataSourceInstanceRequest; + +DescribeDataSourceInstanceRequest::DescribeDataSourceInstanceRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeDataSourceInstance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataSourceInstanceRequest::~DescribeDataSourceInstanceRequest() {} + +std::string DescribeDataSourceInstanceRequest::getCloudCode() const { + return cloudCode_; +} + +void DescribeDataSourceInstanceRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string DescribeDataSourceInstanceRequest::getAccountId() const { + return accountId_; +} + +void DescribeDataSourceInstanceRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string DescribeDataSourceInstanceRequest::getRegionId() const { + return regionId_; +} + +void DescribeDataSourceInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDataSourceInstanceRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void DescribeDataSourceInstanceRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/DescribeDataSourceInstanceResult.cc b/cloud-siem/src/model/DescribeDataSourceInstanceResult.cc new file mode 100644 index 000000000..5e0b9bfd1 --- /dev/null +++ b/cloud-siem/src/model/DescribeDataSourceInstanceResult.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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeDataSourceInstanceResult::DescribeDataSourceInstanceResult() : + ServiceResult() +{} + +DescribeDataSourceInstanceResult::DescribeDataSourceInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataSourceInstanceResult::~DescribeDataSourceInstanceResult() +{} + +void DescribeDataSourceInstanceResult::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["DataSourceInstanceId"].isNull()) + data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString(); + if(!dataNode["AccountId"].isNull()) + data_.accountId = dataNode["AccountId"].asString(); + if(!dataNode["CloudCode"].isNull()) + data_.cloudCode = dataNode["CloudCode"].asString(); + auto allDataSourceInstanceParamsNode = dataNode["DataSourceInstanceParams"]["DataSourceInstanceParam"]; + for (auto dataNodeDataSourceInstanceParamsDataSourceInstanceParam : allDataSourceInstanceParamsNode) + { + Data::DataSourceInstanceParam dataSourceInstanceParamObject; + if(!dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaCode"].isNull()) + dataSourceInstanceParamObject.paraCode = dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaCode"].asString(); + if(!dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaValue"].isNull()) + dataSourceInstanceParamObject.paraValue = dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaValue"].asString(); + data_.dataSourceInstanceParams.push_back(dataSourceInstanceParamObject); + } + +} + +DescribeDataSourceInstanceResult::Data DescribeDataSourceInstanceResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeDataSourceParametersRequest.cc b/cloud-siem/src/model/DescribeDataSourceParametersRequest.cc new file mode 100644 index 000000000..2f4d0bfc5 --- /dev/null +++ b/cloud-siem/src/model/DescribeDataSourceParametersRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DescribeDataSourceParametersRequest; + +DescribeDataSourceParametersRequest::DescribeDataSourceParametersRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeDataSourceParameters") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataSourceParametersRequest::~DescribeDataSourceParametersRequest() {} + +std::string DescribeDataSourceParametersRequest::getDataSourceType() const { + return dataSourceType_; +} + +void DescribeDataSourceParametersRequest::setDataSourceType(const std::string &dataSourceType) { + dataSourceType_ = dataSourceType; + setBodyParameter(std::string("DataSourceType"), dataSourceType); +} + +std::string DescribeDataSourceParametersRequest::getCloudCode() const { + return cloudCode_; +} + +void DescribeDataSourceParametersRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string DescribeDataSourceParametersRequest::getRegionId() const { + return regionId_; +} + +void DescribeDataSourceParametersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeDataSourceParametersResult.cc b/cloud-siem/src/model/DescribeDataSourceParametersResult.cc new file mode 100644 index 000000000..1692f1397 --- /dev/null +++ b/cloud-siem/src/model/DescribeDataSourceParametersResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeDataSourceParametersResult::DescribeDataSourceParametersResult() : + ServiceResult() +{} + +DescribeDataSourceParametersResult::DescribeDataSourceParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataSourceParametersResult::~DescribeDataSourceParametersResult() +{} + +void DescribeDataSourceParametersResult::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["DataSourceType"].isNull()) + dataObject.dataSourceType = valueDataDataItem["DataSourceType"].asString(); + if(!valueDataDataItem["ParaLevel"].isNull()) + dataObject.paraLevel = std::stoi(valueDataDataItem["ParaLevel"].asString()); + if(!valueDataDataItem["ParaCode"].isNull()) + dataObject.paraCode = valueDataDataItem["ParaCode"].asString(); + if(!valueDataDataItem["ParaName"].isNull()) + dataObject.paraName = valueDataDataItem["ParaName"].asString(); + if(!valueDataDataItem["ParaType"].isNull()) + dataObject.paraType = valueDataDataItem["ParaType"].asString(); + if(!valueDataDataItem["Required"].isNull()) + dataObject.required = std::stoi(valueDataDataItem["Required"].asString()); + if(!valueDataDataItem["FormatCheck"].isNull()) + dataObject.formatCheck = valueDataDataItem["FormatCheck"].asString(); + if(!valueDataDataItem["Title"].isNull()) + dataObject.title = valueDataDataItem["Title"].asString(); + if(!valueDataDataItem["Hit"].isNull()) + dataObject.hit = valueDataDataItem["Hit"].asString(); + if(!valueDataDataItem["DefaultValue"].isNull()) + dataObject.defaultValue = valueDataDataItem["DefaultValue"].asString(); + if(!valueDataDataItem["Disabled"].isNull()) + dataObject.disabled = valueDataDataItem["Disabled"].asString() == "true"; + if(!valueDataDataItem["CanEditted"].isNull()) + dataObject.canEditted = std::stoi(valueDataDataItem["CanEditted"].asString()); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + auto allParamValueNode = valueDataDataItem["ParamValue"]["ParamValueItem"]; + for (auto valueDataDataItemParamValueParamValueItem : allParamValueNode) + { + DataItem::ParamValueItem paramValueObject; + if(!valueDataDataItemParamValueParamValueItem["Label"].isNull()) + paramValueObject.label = valueDataDataItemParamValueParamValueItem["Label"].asString(); + if(!valueDataDataItemParamValueParamValueItem["Value"].isNull()) + paramValueObject.value = valueDataDataItemParamValueParamValueItem["Value"].asString(); + dataObject.paramValue.push_back(paramValueObject); + } + data_.push_back(dataObject); + } + +} + +std::vector DescribeDataSourceParametersResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeImportedLogCountRequest.cc b/cloud-siem/src/model/DescribeImportedLogCountRequest.cc new file mode 100644 index 000000000..f7f056c66 --- /dev/null +++ b/cloud-siem/src/model/DescribeImportedLogCountRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::DescribeImportedLogCountRequest; + +DescribeImportedLogCountRequest::DescribeImportedLogCountRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeImportedLogCount") { + setMethod(HttpRequest::Method::Post); +} + +DescribeImportedLogCountRequest::~DescribeImportedLogCountRequest() {} + +std::string DescribeImportedLogCountRequest::getRegionId() const { + return regionId_; +} + +void DescribeImportedLogCountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeImportedLogCountResult.cc b/cloud-siem/src/model/DescribeImportedLogCountResult.cc new file mode 100644 index 000000000..020c03716 --- /dev/null +++ b/cloud-siem/src/model/DescribeImportedLogCountResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeImportedLogCountResult::DescribeImportedLogCountResult() : + ServiceResult() +{} + +DescribeImportedLogCountResult::DescribeImportedLogCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImportedLogCountResult::~DescribeImportedLogCountResult() +{} + +void DescribeImportedLogCountResult::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["TotalLogCount"].isNull()) + data_.totalLogCount = std::stoi(dataNode["TotalLogCount"].asString()); + if(!dataNode["ImportedLogCount"].isNull()) + data_.importedLogCount = std::stoi(dataNode["ImportedLogCount"].asString()); + if(!dataNode["UnImportedLogCount"].isNull()) + data_.unImportedLogCount = std::stoi(dataNode["UnImportedLogCount"].asString()); + +} + +DescribeImportedLogCountResult::Data DescribeImportedLogCountResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeLogStoreResult.cc b/cloud-siem/src/model/DescribeLogStoreResult.cc index 9815fb997..6b6c58912 100644 --- a/cloud-siem/src/model/DescribeLogStoreResult.cc +++ b/cloud-siem/src/model/DescribeLogStoreResult.cc @@ -54,53 +54,11 @@ void DescribeLogStoreResult::parse(const std::string &payload) data_.maxSplitShard = std::stoi(dataNode["MaxSplitShard"].asString()); if(!dataNode["AppendMeta"].isNull()) data_.appendMeta = dataNode["AppendMeta"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string DescribeLogStoreResult::getDyCode()const -{ - return dyCode_; -} - -std::string DescribeLogStoreResult::getMessage()const -{ - return message_; -} - DescribeLogStoreResult::Data DescribeLogStoreResult::getData()const { return data_; } -int DescribeLogStoreResult::getCode()const -{ - return code_; -} - -std::string DescribeLogStoreResult::getDyMessage()const -{ - return dyMessage_; -} - -bool DescribeLogStoreResult::getSuccess()const -{ - return success_; -} - -std::string DescribeLogStoreResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/DescribeProdCountRequest.cc b/cloud-siem/src/model/DescribeProdCountRequest.cc new file mode 100644 index 000000000..795a7f117 --- /dev/null +++ b/cloud-siem/src/model/DescribeProdCountRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::DescribeProdCountRequest; + +DescribeProdCountRequest::DescribeProdCountRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeProdCount") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProdCountRequest::~DescribeProdCountRequest() {} + +std::string DescribeProdCountRequest::getRegionId() const { + return regionId_; +} + +void DescribeProdCountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeProdCountResult.cc b/cloud-siem/src/model/DescribeProdCountResult.cc new file mode 100644 index 000000000..05ef77685 --- /dev/null +++ b/cloud-siem/src/model/DescribeProdCountResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeProdCountResult::DescribeProdCountResult() : + ServiceResult() +{} + +DescribeProdCountResult::DescribeProdCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProdCountResult::~DescribeProdCountResult() +{} + +void DescribeProdCountResult::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["AliyunProdCount"].isNull()) + data_.aliyunProdCount = std::stoi(dataNode["AliyunProdCount"].asString()); + if(!dataNode["HcloudProdCount"].isNull()) + data_.hcloudProdCount = std::stoi(dataNode["HcloudProdCount"].asString()); + if(!dataNode["QcloudProdCount"].isNull()) + data_.qcloudProdCount = std::stoi(dataNode["QcloudProdCount"].asString()); + +} + +DescribeProdCountResult::Data DescribeProdCountResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeServiceStatusRequest.cc b/cloud-siem/src/model/DescribeServiceStatusRequest.cc new file mode 100644 index 000000000..84ccd67b8 --- /dev/null +++ b/cloud-siem/src/model/DescribeServiceStatusRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::DescribeServiceStatusRequest; + +DescribeServiceStatusRequest::DescribeServiceStatusRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeServiceStatusRequest::~DescribeServiceStatusRequest() {} + +std::string DescribeServiceStatusRequest::getRegionId() const { + return regionId_; +} + +void DescribeServiceStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeServiceStatusResult.cc b/cloud-siem/src/model/DescribeServiceStatusResult.cc new file mode 100644 index 000000000..68356a5ae --- /dev/null +++ b/cloud-siem/src/model/DescribeServiceStatusResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeServiceStatusResult::DescribeServiceStatusResult() : + ServiceResult() +{} + +DescribeServiceStatusResult::DescribeServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServiceStatusResult::~DescribeServiceStatusResult() +{} + +void DescribeServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DescribeServiceStatusResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeStorageResult.cc b/cloud-siem/src/model/DescribeStorageResult.cc index c36d2c12b..49f84b026 100644 --- a/cloud-siem/src/model/DescribeStorageResult.cc +++ b/cloud-siem/src/model/DescribeStorageResult.cc @@ -41,53 +41,11 @@ void DescribeStorageResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string DescribeStorageResult::getDyCode()const -{ - return dyCode_; -} - -std::string DescribeStorageResult::getMessage()const -{ - return message_; -} - bool DescribeStorageResult::getData()const { return data_; } -int DescribeStorageResult::getCode()const -{ - return code_; -} - -std::string DescribeStorageResult::getDyMessage()const -{ - return dyMessage_; -} - -bool DescribeStorageResult::getSuccess()const -{ - return success_; -} - -std::string DescribeStorageResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/DescribeUserBuyStatusRequest.cc b/cloud-siem/src/model/DescribeUserBuyStatusRequest.cc new file mode 100644 index 000000000..2f6a25537 --- /dev/null +++ b/cloud-siem/src/model/DescribeUserBuyStatusRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::DescribeUserBuyStatusRequest; + +DescribeUserBuyStatusRequest::DescribeUserBuyStatusRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeUserBuyStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeUserBuyStatusRequest::~DescribeUserBuyStatusRequest() {} + +long DescribeUserBuyStatusRequest::getSubUserId() const { + return subUserId_; +} + +void DescribeUserBuyStatusRequest::setSubUserId(long subUserId) { + subUserId_ = subUserId; + setBodyParameter(std::string("SubUserId"), std::to_string(subUserId)); +} + +std::string DescribeUserBuyStatusRequest::getRegionId() const { + return regionId_; +} + +void DescribeUserBuyStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/DescribeUserBuyStatusResult.cc b/cloud-siem/src/model/DescribeUserBuyStatusResult.cc new file mode 100644 index 000000000..ab9bf1a82 --- /dev/null +++ b/cloud-siem/src/model/DescribeUserBuyStatusResult.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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeUserBuyStatusResult::DescribeUserBuyStatusResult() : + ServiceResult() +{} + +DescribeUserBuyStatusResult::DescribeUserBuyStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBuyStatusResult::~DescribeUserBuyStatusResult() +{} + +void DescribeUserBuyStatusResult::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["MasterUserId"].isNull()) + data_.masterUserId = std::stol(dataNode["MasterUserId"].asString()); + if(!dataNode["MasterUserName"].isNull()) + data_.masterUserName = dataNode["MasterUserName"].asString(); + if(!dataNode["MainUserId"].isNull()) + data_.mainUserId = std::stol(dataNode["MainUserId"].asString()); + if(!dataNode["MainUserName"].isNull()) + data_.mainUserName = dataNode["MainUserName"].asString(); + if(!dataNode["SubUserId"].isNull()) + data_.subUserId = std::stol(dataNode["SubUserId"].asString()); + if(!dataNode["SubUserName"].isNull()) + data_.subUserName = dataNode["SubUserName"].asString(); + if(!dataNode["Capacity"].isNull()) + data_.capacity = std::stoi(dataNode["Capacity"].asString()); + if(!dataNode["SasInstanceId"].isNull()) + data_.sasInstanceId = dataNode["SasInstanceId"].asString(); + if(!dataNode["CanBuy"].isNull()) + data_.canBuy = dataNode["CanBuy"].asString() == "true"; + if(!dataNode["EndTime"].isNull()) + data_.endTime = std::stol(dataNode["EndTime"].asString()); + if(!dataNode["DurationDays"].isNull()) + data_.durationDays = std::stol(dataNode["DurationDays"].asString()); + +} + +DescribeUserBuyStatusResult::Data DescribeUserBuyStatusResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/DescribeWhiteRuleListRequest.cc b/cloud-siem/src/model/DescribeWhiteRuleListRequest.cc new file mode 100644 index 000000000..4b89a8b06 --- /dev/null +++ b/cloud-siem/src/model/DescribeWhiteRuleListRequest.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 + +using AlibabaCloud::Cloud_siem::Model::DescribeWhiteRuleListRequest; + +DescribeWhiteRuleListRequest::DescribeWhiteRuleListRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeWhiteRuleList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeWhiteRuleListRequest::~DescribeWhiteRuleListRequest() {} + +std::string DescribeWhiteRuleListRequest::getAlertName() const { + return alertName_; +} + +void DescribeWhiteRuleListRequest::setAlertName(const std::string &alertName) { + alertName_ = alertName; + setBodyParameter(std::string("AlertName"), alertName); +} + +std::string DescribeWhiteRuleListRequest::getRegionId() const { + return regionId_; +} + +void DescribeWhiteRuleListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int DescribeWhiteRuleListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeWhiteRuleListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int DescribeWhiteRuleListRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeWhiteRuleListRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribeWhiteRuleListRequest::getAlertType() const { + return alertType_; +} + +void DescribeWhiteRuleListRequest::setAlertType(const std::string &alertType) { + alertType_ = alertType; + setBodyParameter(std::string("AlertType"), alertType); +} + +std::string DescribeWhiteRuleListRequest::getIncidentUuid() const { + return incidentUuid_; +} + +void DescribeWhiteRuleListRequest::setIncidentUuid(const std::string &incidentUuid) { + incidentUuid_ = incidentUuid; + setBodyParameter(std::string("IncidentUuid"), incidentUuid); +} + diff --git a/cloud-siem/src/model/DescribeWhiteRuleListResult.cc b/cloud-siem/src/model/DescribeWhiteRuleListResult.cc new file mode 100644 index 000000000..e4b94baa4 --- /dev/null +++ b/cloud-siem/src/model/DescribeWhiteRuleListResult.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +DescribeWhiteRuleListResult::DescribeWhiteRuleListResult() : + ServiceResult() +{} + +DescribeWhiteRuleListResult::DescribeWhiteRuleListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWhiteRuleListResult::~DescribeWhiteRuleListResult() +{} + +void DescribeWhiteRuleListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"]; + for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode) + { + Data::ResponseDataItem responseDataItemObject; + if(!dataNodeResponseDataResponseDataItem["Id"].isNull()) + responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString()); + if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull()) + responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString(); + if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull()) + responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString(); + if(!dataNodeResponseDataResponseDataItem["Aliuid"].isNull()) + responseDataItemObject.aliuid = std::stol(dataNodeResponseDataResponseDataItem["Aliuid"].asString()); + if(!dataNodeResponseDataResponseDataItem["SubAliuid"].isNull()) + responseDataItemObject.subAliuid = std::stol(dataNodeResponseDataResponseDataItem["SubAliuid"].asString()); + if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull()) + responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertTypeId"].isNull()) + responseDataItemObject.alertTypeId = dataNodeResponseDataResponseDataItem["AlertTypeId"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull()) + responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNameId"].isNull()) + responseDataItemObject.alertNameId = dataNodeResponseDataResponseDataItem["AlertNameId"].asString(); + if(!dataNodeResponseDataResponseDataItem["Status"].isNull()) + responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString()); + if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull()) + responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull()) + responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString(); + auto expressionNode = value["Expression"]; + if(!expressionNode["Logic"].isNull()) + responseDataItemObject.expression.logic = expressionNode["Logic"].asString(); + auto allConditionsNode = expressionNode["Conditions"]["Condition"]; + for (auto expressionNodeConditionsCondition : allConditionsNode) + { + Data::ResponseDataItem::Expression::Condition conditionObject; + if(!expressionNodeConditionsCondition["ItemId"].isNull()) + conditionObject.itemId = std::stoi(expressionNodeConditionsCondition["ItemId"].asString()); + if(!expressionNodeConditionsCondition["Operator"].isNull()) + conditionObject._operator = expressionNodeConditionsCondition["Operator"].asString(); + if(!expressionNodeConditionsCondition["IsNot"].isNull()) + conditionObject.isNot = expressionNodeConditionsCondition["IsNot"].asString() == "true"; + auto leftNode = value["Left"]; + if(!leftNode["Value"].isNull()) + conditionObject.left.value = leftNode["Value"].asString(); + if(!leftNode["IsVar"].isNull()) + conditionObject.left.isVar = leftNode["IsVar"].asString() == "true"; + if(!leftNode["Type"].isNull()) + conditionObject.left.type = leftNode["Type"].asString(); + if(!leftNode["Modifier"].isNull()) + conditionObject.left.modifier = leftNode["Modifier"].asString(); + if(!leftNode["ModifierParam"].isNull()) + conditionObject.left.modifierParam = leftNode["ModifierParam"].asString(); + auto rightNode = value["Right"]; + if(!rightNode["Value"].isNull()) + conditionObject.right.value = rightNode["Value"].asString(); + if(!rightNode["IsVar"].isNull()) + conditionObject.right.isVar = rightNode["IsVar"].asString() == "true"; + if(!rightNode["Type"].isNull()) + conditionObject.right.type = rightNode["Type"].asString(); + if(!rightNode["Modifier"].isNull()) + conditionObject.right.modifier = rightNode["Modifier"].asString(); + if(!rightNode["ModifierParam"].isNull()) + conditionObject.right.modifierParam = rightNode["ModifierParam"].asString(); + responseDataItemObject.expression.conditions.push_back(conditionObject); + } + data_.responseData.push_back(responseDataItemObject); + } + auto pageInfoNode = dataNode["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeWhiteRuleListResult::getMessage()const +{ + return message_; +} + +DescribeWhiteRuleListResult::Data DescribeWhiteRuleListResult::getData()const +{ + return data_; +} + +int DescribeWhiteRuleListResult::getCode()const +{ + return code_; +} + +bool DescribeWhiteRuleListResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/DoQuickFieldResult.cc b/cloud-siem/src/model/DoQuickFieldResult.cc index e73532ace..96d7850e1 100644 --- a/cloud-siem/src/model/DoQuickFieldResult.cc +++ b/cloud-siem/src/model/DoQuickFieldResult.cc @@ -64,53 +64,11 @@ void DoQuickFieldResult::parse(const std::string &payload) auto allLogs = dataNode["Logs"]["Log"]; for (auto value : allLogs) data_.logs.push_back(value.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string DoQuickFieldResult::getDyCode()const -{ - return dyCode_; -} - -std::string DoQuickFieldResult::getMessage()const -{ - return message_; -} - DoQuickFieldResult::Data DoQuickFieldResult::getData()const { return data_; } -int DoQuickFieldResult::getCode()const -{ - return code_; -} - -std::string DoQuickFieldResult::getDyMessage()const -{ - return dyMessage_; -} - -bool DoQuickFieldResult::getSuccess()const -{ - return success_; -} - -std::string DoQuickFieldResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/DoSelfDelegateResult.cc b/cloud-siem/src/model/DoSelfDelegateResult.cc index 0e3fa51b7..be258ad13 100644 --- a/cloud-siem/src/model/DoSelfDelegateResult.cc +++ b/cloud-siem/src/model/DoSelfDelegateResult.cc @@ -41,53 +41,11 @@ void DoSelfDelegateResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string DoSelfDelegateResult::getDyCode()const -{ - return dyCode_; -} - -std::string DoSelfDelegateResult::getMessage()const -{ - return message_; -} - bool DoSelfDelegateResult::getData()const { return data_; } -int DoSelfDelegateResult::getCode()const -{ - return code_; -} - -std::string DoSelfDelegateResult::getDyMessage()const -{ - return dyMessage_; -} - -bool DoSelfDelegateResult::getSuccess()const -{ - return success_; -} - -std::string DoSelfDelegateResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc b/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc new file mode 100644 index 000000000..a3347c94b --- /dev/null +++ b/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::EnableAccessForCloudSiemRequest; + +EnableAccessForCloudSiemRequest::EnableAccessForCloudSiemRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "EnableAccessForCloudSiem") { + setMethod(HttpRequest::Method::Post); +} + +EnableAccessForCloudSiemRequest::~EnableAccessForCloudSiemRequest() {} + +std::string EnableAccessForCloudSiemRequest::getRegionId() const { + return regionId_; +} + +void EnableAccessForCloudSiemRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/EnableAccessForCloudSiemResult.cc b/cloud-siem/src/model/EnableAccessForCloudSiemResult.cc new file mode 100644 index 000000000..f0ed36903 --- /dev/null +++ b/cloud-siem/src/model/EnableAccessForCloudSiemResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +EnableAccessForCloudSiemResult::EnableAccessForCloudSiemResult() : + ServiceResult() +{} + +EnableAccessForCloudSiemResult::EnableAccessForCloudSiemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableAccessForCloudSiemResult::~EnableAccessForCloudSiemResult() +{} + +void EnableAccessForCloudSiemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool EnableAccessForCloudSiemResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/EnableServiceForCloudSiemRequest.cc b/cloud-siem/src/model/EnableServiceForCloudSiemRequest.cc new file mode 100644 index 000000000..be9621f0a --- /dev/null +++ b/cloud-siem/src/model/EnableServiceForCloudSiemRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::EnableServiceForCloudSiemRequest; + +EnableServiceForCloudSiemRequest::EnableServiceForCloudSiemRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "EnableServiceForCloudSiem") { + setMethod(HttpRequest::Method::Post); +} + +EnableServiceForCloudSiemRequest::~EnableServiceForCloudSiemRequest() {} + +std::string EnableServiceForCloudSiemRequest::getRegionId() const { + return regionId_; +} + +void EnableServiceForCloudSiemRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/EnableServiceForCloudSiemResult.cc b/cloud-siem/src/model/EnableServiceForCloudSiemResult.cc new file mode 100644 index 000000000..30297ad68 --- /dev/null +++ b/cloud-siem/src/model/EnableServiceForCloudSiemResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +EnableServiceForCloudSiemResult::EnableServiceForCloudSiemResult() : + ServiceResult() +{} + +EnableServiceForCloudSiemResult::EnableServiceForCloudSiemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableServiceForCloudSiemResult::~EnableServiceForCloudSiemResult() +{} + +void EnableServiceForCloudSiemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool EnableServiceForCloudSiemResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/GetCapacityResult.cc b/cloud-siem/src/model/GetCapacityResult.cc index 9b0c164ce..2241ec53f 100644 --- a/cloud-siem/src/model/GetCapacityResult.cc +++ b/cloud-siem/src/model/GetCapacityResult.cc @@ -46,53 +46,11 @@ void GetCapacityResult::parse(const std::string &payload) data_.preservedCapacity = std::stol(dataNode["PreservedCapacity"].asString()); if(!dataNode["ExistLogStore"].isNull()) data_.existLogStore = dataNode["ExistLogStore"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string GetCapacityResult::getDyCode()const -{ - return dyCode_; -} - -std::string GetCapacityResult::getMessage()const -{ - return message_; -} - GetCapacityResult::Data GetCapacityResult::getData()const { return data_; } -int GetCapacityResult::getCode()const -{ - return code_; -} - -std::string GetCapacityResult::getDyMessage()const -{ - return dyMessage_; -} - -bool GetCapacityResult::getSuccess()const -{ - return success_; -} - -std::string GetCapacityResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/GetHistogramsResult.cc b/cloud-siem/src/model/GetHistogramsResult.cc index 14460bb8f..fe40ad54c 100644 --- a/cloud-siem/src/model/GetHistogramsResult.cc +++ b/cloud-siem/src/model/GetHistogramsResult.cc @@ -58,53 +58,11 @@ void GetHistogramsResult::parse(const std::string &payload) histogramObject.completedOrNot = dataNodeHistogramsHistogram["CompletedOrNot"].asString() == "true"; data_.histograms.push_back(histogramObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string GetHistogramsResult::getDyCode()const -{ - return dyCode_; -} - -std::string GetHistogramsResult::getMessage()const -{ - return message_; -} - GetHistogramsResult::Data GetHistogramsResult::getData()const { return data_; } -int GetHistogramsResult::getCode()const -{ - return code_; -} - -std::string GetHistogramsResult::getDyMessage()const -{ - return dyMessage_; -} - -bool GetHistogramsResult::getSuccess()const -{ - return success_; -} - -std::string GetHistogramsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/GetQuickQueryResult.cc b/cloud-siem/src/model/GetQuickQueryResult.cc index 61ca5fb5d..82c249a07 100644 --- a/cloud-siem/src/model/GetQuickQueryResult.cc +++ b/cloud-siem/src/model/GetQuickQueryResult.cc @@ -41,53 +41,11 @@ void GetQuickQueryResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string GetQuickQueryResult::getDyCode()const -{ - return dyCode_; -} - -std::string GetQuickQueryResult::getMessage()const -{ - return message_; -} - std::string GetQuickQueryResult::getData()const { return data_; } -int GetQuickQueryResult::getCode()const -{ - return code_; -} - -std::string GetQuickQueryResult::getDyMessage()const -{ - return dyMessage_; -} - -bool GetQuickQueryResult::getSuccess()const -{ - return success_; -} - -std::string GetQuickQueryResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/GetStorageResult.cc b/cloud-siem/src/model/GetStorageResult.cc index 1abdc9077..8ace304a6 100644 --- a/cloud-siem/src/model/GetStorageResult.cc +++ b/cloud-siem/src/model/GetStorageResult.cc @@ -48,53 +48,11 @@ void GetStorageResult::parse(const std::string &payload) data_.displayRegion = dataNode["DisplayRegion"].asString() == "true"; if(!dataNode["CanOperate"].isNull()) data_.canOperate = dataNode["CanOperate"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string GetStorageResult::getDyCode()const -{ - return dyCode_; -} - -std::string GetStorageResult::getMessage()const -{ - return message_; -} - GetStorageResult::Data GetStorageResult::getData()const { return data_; } -int GetStorageResult::getCode()const -{ - return code_; -} - -std::string GetStorageResult::getDyMessage()const -{ - return dyMessage_; -} - -bool GetStorageResult::getSuccess()const -{ - return success_; -} - -std::string GetStorageResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/ListAccountAccessIdRequest.cc b/cloud-siem/src/model/ListAccountAccessIdRequest.cc new file mode 100644 index 000000000..9ad0d4a67 --- /dev/null +++ b/cloud-siem/src/model/ListAccountAccessIdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListAccountAccessIdRequest; + +ListAccountAccessIdRequest::ListAccountAccessIdRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListAccountAccessId") { + setMethod(HttpRequest::Method::Post); +} + +ListAccountAccessIdRequest::~ListAccountAccessIdRequest() {} + +std::string ListAccountAccessIdRequest::getCloudCode() const { + return cloudCode_; +} + +void ListAccountAccessIdRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListAccountAccessIdRequest::getRegionId() const { + return regionId_; +} + +void ListAccountAccessIdRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/ListAccountAccessIdResult.cc b/cloud-siem/src/model/ListAccountAccessIdResult.cc new file mode 100644 index 000000000..6131fcf3b --- /dev/null +++ b/cloud-siem/src/model/ListAccountAccessIdResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListAccountAccessIdResult::ListAccountAccessIdResult() : + ServiceResult() +{} + +ListAccountAccessIdResult::ListAccountAccessIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAccountAccessIdResult::~ListAccountAccessIdResult() +{} + +void ListAccountAccessIdResult::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["SubUserId"].isNull()) + dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString()); + if(!valueDataDataItem["AccessIdMd5"].isNull()) + dataObject.accessIdMd5 = valueDataDataItem["AccessIdMd5"].asString(); + if(!valueDataDataItem["AccountStr"].isNull()) + dataObject.accountStr = valueDataDataItem["AccountStr"].asString(); + if(!valueDataDataItem["Bound"].isNull()) + dataObject.bound = std::stoi(valueDataDataItem["Bound"].asString()); + if(!valueDataDataItem["AccessId"].isNull()) + dataObject.accessId = valueDataDataItem["AccessId"].asString(); + if(!valueDataDataItem["AccountId"].isNull()) + dataObject.accountId = valueDataDataItem["AccountId"].asString(); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + data_.push_back(dataObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListAccountAccessIdResult::getMessage()const +{ + return message_; +} + +std::vector ListAccountAccessIdResult::getData()const +{ + return data_; +} + +int ListAccountAccessIdResult::getCode()const +{ + return code_; +} + +bool ListAccountAccessIdResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/ListAccountsByLogRequest.cc b/cloud-siem/src/model/ListAccountsByLogRequest.cc new file mode 100644 index 000000000..2da50f951 --- /dev/null +++ b/cloud-siem/src/model/ListAccountsByLogRequest.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::Cloud_siem::Model::ListAccountsByLogRequest; + +ListAccountsByLogRequest::ListAccountsByLogRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListAccountsByLog") { + setMethod(HttpRequest::Method::Post); +} + +ListAccountsByLogRequest::~ListAccountsByLogRequest() {} + +std::string ListAccountsByLogRequest::getCloudCode() const { + return cloudCode_; +} + +void ListAccountsByLogRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListAccountsByLogRequest::getRegionId() const { + return regionId_; +} + +void ListAccountsByLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector ListAccountsByLogRequest::getLogCodes() const { + return logCodes_; +} + +void ListAccountsByLogRequest::setLogCodes(const std::vector &logCodes) { + logCodes_ = logCodes; +} + +std::string ListAccountsByLogRequest::getProdCode() const { + return prodCode_; +} + +void ListAccountsByLogRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setBodyParameter(std::string("ProdCode"), prodCode); +} + diff --git a/cloud-siem/src/model/ListAccountsByLogResult.cc b/cloud-siem/src/model/ListAccountsByLogResult.cc new file mode 100644 index 000000000..8eb34ca84 --- /dev/null +++ b/cloud-siem/src/model/ListAccountsByLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListAccountsByLogResult::ListAccountsByLogResult() : + ServiceResult() +{} + +ListAccountsByLogResult::ListAccountsByLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAccountsByLogResult::~ListAccountsByLogResult() +{} + +void ListAccountsByLogResult::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["SubUserId"].isNull()) + dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString()); + if(!valueDataDataItem["MainUserId"].isNull()) + dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString()); + if(!valueDataDataItem["AccountId"].isNull()) + dataObject.accountId = valueDataDataItem["AccountId"].asString(); + if(!valueDataDataItem["AccountName"].isNull()) + dataObject.accountName = valueDataDataItem["AccountName"].asString(); + if(!valueDataDataItem["Imported"].isNull()) + dataObject.imported = std::stoi(valueDataDataItem["Imported"].asString()); + if(!valueDataDataItem["LogCode"].isNull()) + dataObject.logCode = valueDataDataItem["LogCode"].asString(); + if(!valueDataDataItem["ProdCode"].isNull()) + dataObject.prodCode = valueDataDataItem["ProdCode"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListAccountsByLogResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListAllProdsRequest.cc b/cloud-siem/src/model/ListAllProdsRequest.cc new file mode 100644 index 000000000..6a68e20cc --- /dev/null +++ b/cloud-siem/src/model/ListAllProdsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::ListAllProdsRequest; + +ListAllProdsRequest::ListAllProdsRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListAllProds") { + setMethod(HttpRequest::Method::Post); +} + +ListAllProdsRequest::~ListAllProdsRequest() {} + +std::string ListAllProdsRequest::getRegionId() const { + return regionId_; +} + +void ListAllProdsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/ListAllProdsResult.cc b/cloud-siem/src/model/ListAllProdsResult.cc new file mode 100644 index 000000000..2923985ec --- /dev/null +++ b/cloud-siem/src/model/ListAllProdsResult.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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListAllProdsResult::ListAllProdsResult() : + ServiceResult() +{} + +ListAllProdsResult::ListAllProdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAllProdsResult::~ListAllProdsResult() +{} + +void ListAllProdsResult::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["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + auto allProdListNode = dataNode["ProdList"]["ProdListItem"]; + for (auto dataNodeProdListProdListItem : allProdListNode) + { + Data::ProdListItem prodListItemObject; + if(!dataNodeProdListProdListItem["ProdCode"].isNull()) + prodListItemObject.prodCode = dataNodeProdListProdListItem["ProdCode"].asString(); + if(!dataNodeProdListProdListItem["TotalLogCount"].isNull()) + prodListItemObject.totalLogCount = std::stoi(dataNodeProdListProdListItem["TotalLogCount"].asString()); + if(!dataNodeProdListProdListItem["ImportedLogCount"].isNull()) + prodListItemObject.importedLogCount = std::stoi(dataNodeProdListProdListItem["ImportedLogCount"].asString()); + if(!dataNodeProdListProdListItem["ModifyTime"].isNull()) + prodListItemObject.modifyTime = dataNodeProdListProdListItem["ModifyTime"].asString(); + if(!dataNodeProdListProdListItem["CloudCode"].isNull()) + prodListItemObject.cloudCode = dataNodeProdListProdListItem["CloudCode"].asString(); + data_.prodList.push_back(prodListItemObject); + } + +} + +ListAllProdsResult::Data ListAllProdsResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListBindAccountRequest.cc b/cloud-siem/src/model/ListBindAccountRequest.cc new file mode 100644 index 000000000..122bc94c8 --- /dev/null +++ b/cloud-siem/src/model/ListBindAccountRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListBindAccountRequest; + +ListBindAccountRequest::ListBindAccountRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListBindAccount") { + setMethod(HttpRequest::Method::Post); +} + +ListBindAccountRequest::~ListBindAccountRequest() {} + +std::string ListBindAccountRequest::getCloudCode() const { + return cloudCode_; +} + +void ListBindAccountRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListBindAccountRequest::getRegionId() const { + return regionId_; +} + +void ListBindAccountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/ListBindAccountResult.cc b/cloud-siem/src/model/ListBindAccountResult.cc new file mode 100644 index 000000000..f4793fd67 --- /dev/null +++ b/cloud-siem/src/model/ListBindAccountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListBindAccountResult::ListBindAccountResult() : + ServiceResult() +{} + +ListBindAccountResult::ListBindAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBindAccountResult::~ListBindAccountResult() +{} + +void ListBindAccountResult::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["AccountName"].isNull()) + dataObject.accountName = valueDataDataItem["AccountName"].asString(); + if(!valueDataDataItem["AccessId"].isNull()) + dataObject.accessId = valueDataDataItem["AccessId"].asString(); + if(!valueDataDataItem["DataSourceCount"].isNull()) + dataObject.dataSourceCount = std::stol(valueDataDataItem["DataSourceCount"].asString()); + if(!valueDataDataItem["ModifyTime"].isNull()) + dataObject.modifyTime = valueDataDataItem["ModifyTime"].asString(); + if(!valueDataDataItem["CreateUser"].isNull()) + dataObject.createUser = valueDataDataItem["CreateUser"].asString(); + if(!valueDataDataItem["BindId"].isNull()) + dataObject.bindId = std::stol(valueDataDataItem["BindId"].asString()); + if(!valueDataDataItem["AccountId"].isNull()) + dataObject.accountId = valueDataDataItem["AccountId"].asString(); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListBindAccountResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListBindDataSourcesRequest.cc b/cloud-siem/src/model/ListBindDataSourcesRequest.cc new file mode 100644 index 000000000..cb42a2c2a --- /dev/null +++ b/cloud-siem/src/model/ListBindDataSourcesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListBindDataSourcesRequest; + +ListBindDataSourcesRequest::ListBindDataSourcesRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListBindDataSources") { + setMethod(HttpRequest::Method::Post); +} + +ListBindDataSourcesRequest::~ListBindDataSourcesRequest() {} + +std::string ListBindDataSourcesRequest::getCloudCode() const { + return cloudCode_; +} + +void ListBindDataSourcesRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListBindDataSourcesRequest::getAccountId() const { + return accountId_; +} + +void ListBindDataSourcesRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string ListBindDataSourcesRequest::getRegionId() const { + return regionId_; +} + +void ListBindDataSourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/ListBindDataSourcesResult.cc b/cloud-siem/src/model/ListBindDataSourcesResult.cc new file mode 100644 index 000000000..b997cdd76 --- /dev/null +++ b/cloud-siem/src/model/ListBindDataSourcesResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListBindDataSourcesResult::ListBindDataSourcesResult() : + ServiceResult() +{} + +ListBindDataSourcesResult::ListBindDataSourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBindDataSourcesResult::~ListBindDataSourcesResult() +{} + +void ListBindDataSourcesResult::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["AccountName"].isNull()) + dataObject.accountName = valueDataDataItem["AccountName"].asString(); + if(!valueDataDataItem["DataSourceInstanceId"].isNull()) + dataObject.dataSourceInstanceId = valueDataDataItem["DataSourceInstanceId"].asString(); + if(!valueDataDataItem["DataSourceType"].isNull()) + dataObject.dataSourceType = valueDataDataItem["DataSourceType"].asString(); + if(!valueDataDataItem["DataSourceName"].isNull()) + dataObject.dataSourceName = valueDataDataItem["DataSourceName"].asString(); + if(!valueDataDataItem["DataSourceRemark"].isNull()) + dataObject.dataSourceRemark = valueDataDataItem["DataSourceRemark"].asString(); + if(!valueDataDataItem["LogCount"].isNull()) + dataObject.logCount = std::stoi(valueDataDataItem["LogCount"].asString()); + if(!valueDataDataItem["TaskCount"].isNull()) + dataObject.taskCount = std::stoi(valueDataDataItem["TaskCount"].asString()); + if(!valueDataDataItem["AccountId"].isNull()) + dataObject.accountId = valueDataDataItem["AccountId"].asString(); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListBindDataSourcesResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListDataSourceLogsRequest.cc b/cloud-siem/src/model/ListDataSourceLogsRequest.cc new file mode 100644 index 000000000..d46d3a139 --- /dev/null +++ b/cloud-siem/src/model/ListDataSourceLogsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListDataSourceLogsRequest; + +ListDataSourceLogsRequest::ListDataSourceLogsRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListDataSourceLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListDataSourceLogsRequest::~ListDataSourceLogsRequest() {} + +std::string ListDataSourceLogsRequest::getCloudCode() const { + return cloudCode_; +} + +void ListDataSourceLogsRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListDataSourceLogsRequest::getAccountId() const { + return accountId_; +} + +void ListDataSourceLogsRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string ListDataSourceLogsRequest::getRegionId() const { + return regionId_; +} + +void ListDataSourceLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ListDataSourceLogsRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void ListDataSourceLogsRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/ListDataSourceLogsResult.cc b/cloud-siem/src/model/ListDataSourceLogsResult.cc new file mode 100644 index 000000000..8331495f3 --- /dev/null +++ b/cloud-siem/src/model/ListDataSourceLogsResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListDataSourceLogsResult::ListDataSourceLogsResult() : + ServiceResult() +{} + +ListDataSourceLogsResult::ListDataSourceLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataSourceLogsResult::~ListDataSourceLogsResult() +{} + +void ListDataSourceLogsResult::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["SubUserId"].isNull()) + data_.subUserId = std::stol(dataNode["SubUserId"].asString()); + if(!dataNode["DataSourceInstanceId"].isNull()) + data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString(); + if(!dataNode["DataSourceInstanceName"].isNull()) + data_.dataSourceInstanceName = dataNode["DataSourceInstanceName"].asString(); + if(!dataNode["DataSourceInstanceRemark"].isNull()) + data_.dataSourceInstanceRemark = dataNode["DataSourceInstanceRemark"].asString(); + if(!dataNode["AccountId"].isNull()) + data_.accountId = dataNode["AccountId"].asString(); + if(!dataNode["CloudCode"].isNull()) + data_.cloudCode = dataNode["CloudCode"].asString(); + auto allDataSourceInstanceLogsNode = dataNode["DataSourceInstanceLogs"]["DataSourceInstanceLog"]; + for (auto dataNodeDataSourceInstanceLogsDataSourceInstanceLog : allDataSourceInstanceLogsNode) + { + Data::DataSourceInstanceLog dataSourceInstanceLogObject; + if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogInstanceId"].isNull()) + dataSourceInstanceLogObject.logInstanceId = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogInstanceId"].asString(); + if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogCode"].isNull()) + dataSourceInstanceLogObject.logCode = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogCode"].asString(); + if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogMdsCode"].isNull()) + dataSourceInstanceLogObject.logMdsCode = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogMdsCode"].asString(); + if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["TaskStatus"].isNull()) + dataSourceInstanceLogObject.taskStatus = std::stoi(dataNodeDataSourceInstanceLogsDataSourceInstanceLog["TaskStatus"].asString()); + auto allLogParamsNode = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogParams"]["LogParam"]; + for (auto dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam : allLogParamsNode) + { + Data::DataSourceInstanceLog::LogParam logParamsObject; + if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaCode"].isNull()) + logParamsObject.paraCode = dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaCode"].asString(); + if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaValue"].isNull()) + logParamsObject.paraValue = dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaValue"].asString(); + dataSourceInstanceLogObject.logParams.push_back(logParamsObject); + } + data_.dataSourceInstanceLogs.push_back(dataSourceInstanceLogObject); + } + +} + +ListDataSourceLogsResult::Data ListDataSourceLogsResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListDataSourceTypesRequest.cc b/cloud-siem/src/model/ListDataSourceTypesRequest.cc new file mode 100644 index 000000000..3a18e39bd --- /dev/null +++ b/cloud-siem/src/model/ListDataSourceTypesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListDataSourceTypesRequest; + +ListDataSourceTypesRequest::ListDataSourceTypesRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListDataSourceTypes") { + setMethod(HttpRequest::Method::Post); +} + +ListDataSourceTypesRequest::~ListDataSourceTypesRequest() {} + +std::string ListDataSourceTypesRequest::getCloudCode() const { + return cloudCode_; +} + +void ListDataSourceTypesRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListDataSourceTypesRequest::getRegionId() const { + return regionId_; +} + +void ListDataSourceTypesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/ListDataSourceTypesResult.cc b/cloud-siem/src/model/ListDataSourceTypesResult.cc new file mode 100644 index 000000000..deb318558 --- /dev/null +++ b/cloud-siem/src/model/ListDataSourceTypesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListDataSourceTypesResult::ListDataSourceTypesResult() : + ServiceResult() +{} + +ListDataSourceTypesResult::ListDataSourceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataSourceTypesResult::~ListDataSourceTypesResult() +{} + +void ListDataSourceTypesResult::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["DataSourceType"].isNull()) + dataObject.dataSourceType = valueDataDataItem["DataSourceType"].asString(); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListDataSourceTypesResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListImportedLogsByProdRequest.cc b/cloud-siem/src/model/ListImportedLogsByProdRequest.cc new file mode 100644 index 000000000..4fc58ea3c --- /dev/null +++ b/cloud-siem/src/model/ListImportedLogsByProdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListImportedLogsByProdRequest; + +ListImportedLogsByProdRequest::ListImportedLogsByProdRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListImportedLogsByProd") { + setMethod(HttpRequest::Method::Post); +} + +ListImportedLogsByProdRequest::~ListImportedLogsByProdRequest() {} + +std::string ListImportedLogsByProdRequest::getCloudCode() const { + return cloudCode_; +} + +void ListImportedLogsByProdRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ListImportedLogsByProdRequest::getRegionId() const { + return regionId_; +} + +void ListImportedLogsByProdRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ListImportedLogsByProdRequest::getProdCode() const { + return prodCode_; +} + +void ListImportedLogsByProdRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setBodyParameter(std::string("ProdCode"), prodCode); +} + diff --git a/cloud-siem/src/model/ListImportedLogsByProdResult.cc b/cloud-siem/src/model/ListImportedLogsByProdResult.cc new file mode 100644 index 000000000..b971845b0 --- /dev/null +++ b/cloud-siem/src/model/ListImportedLogsByProdResult.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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListImportedLogsByProdResult::ListImportedLogsByProdResult() : + ServiceResult() +{} + +ListImportedLogsByProdResult::ListImportedLogsByProdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImportedLogsByProdResult::~ListImportedLogsByProdResult() +{} + +void ListImportedLogsByProdResult::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["ProdCode"].isNull()) + dataObject.prodCode = valueDataDataItem["ProdCode"].asString(); + if(!valueDataDataItem["LogCode"].isNull()) + dataObject.logCode = valueDataDataItem["LogCode"].asString(); + if(!valueDataDataItem["LogMdsCode"].isNull()) + dataObject.logMdsCode = valueDataDataItem["LogMdsCode"].asString(); + if(!valueDataDataItem["ImportedUserCount"].isNull()) + dataObject.importedUserCount = std::stoi(valueDataDataItem["ImportedUserCount"].asString()); + if(!valueDataDataItem["UnImportedUserCount"].isNull()) + dataObject.unImportedUserCount = std::stoi(valueDataDataItem["UnImportedUserCount"].asString()); + if(!valueDataDataItem["TotalUserCount"].isNull()) + dataObject.totalUserCount = std::stoi(valueDataDataItem["TotalUserCount"].asString()); + if(!valueDataDataItem["ModifyTime"].isNull()) + dataObject.modifyTime = valueDataDataItem["ModifyTime"].asString(); + if(!valueDataDataItem["Imported"].isNull()) + dataObject.imported = std::stoi(valueDataDataItem["Imported"].asString()); + if(!valueDataDataItem["AutoImported"].isNull()) + dataObject.autoImported = std::stoi(valueDataDataItem["AutoImported"].asString()); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListImportedLogsByProdResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListOperationResult.cc b/cloud-siem/src/model/ListOperationResult.cc index 39020d5e9..ac39409bf 100644 --- a/cloud-siem/src/model/ListOperationResult.cc +++ b/cloud-siem/src/model/ListOperationResult.cc @@ -45,53 +45,11 @@ void ListOperationResult::parse(const std::string &payload) auto allOperationList = dataNode["OperationList"]["OperationList"]; for (auto value : allOperationList) data_.operationList.push_back(value.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string ListOperationResult::getDyCode()const -{ - return dyCode_; -} - -std::string ListOperationResult::getMessage()const -{ - return message_; -} - ListOperationResult::Data ListOperationResult::getData()const { return data_; } -int ListOperationResult::getCode()const -{ - return code_; -} - -std::string ListOperationResult::getDyMessage()const -{ - return dyMessage_; -} - -bool ListOperationResult::getSuccess()const -{ - return success_; -} - -std::string ListOperationResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/ListProjectLogStoresRequest.cc b/cloud-siem/src/model/ListProjectLogStoresRequest.cc new file mode 100644 index 000000000..3663380f1 --- /dev/null +++ b/cloud-siem/src/model/ListProjectLogStoresRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListProjectLogStoresRequest; + +ListProjectLogStoresRequest::ListProjectLogStoresRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListProjectLogStores") { + setMethod(HttpRequest::Method::Post); +} + +ListProjectLogStoresRequest::~ListProjectLogStoresRequest() {} + +long ListProjectLogStoresRequest::getSubUserId() const { + return subUserId_; +} + +void ListProjectLogStoresRequest::setSubUserId(long subUserId) { + subUserId_ = subUserId; + setBodyParameter(std::string("SubUserId"), std::to_string(subUserId)); +} + +std::string ListProjectLogStoresRequest::getRegionId() const { + return regionId_; +} + +void ListProjectLogStoresRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ListProjectLogStoresRequest::getSourceProdCode() const { + return sourceProdCode_; +} + +void ListProjectLogStoresRequest::setSourceProdCode(const std::string &sourceProdCode) { + sourceProdCode_ = sourceProdCode; + setBodyParameter(std::string("SourceProdCode"), sourceProdCode); +} + +std::string ListProjectLogStoresRequest::getSourceLogCode() const { + return sourceLogCode_; +} + +void ListProjectLogStoresRequest::setSourceLogCode(const std::string &sourceLogCode) { + sourceLogCode_ = sourceLogCode; + setBodyParameter(std::string("SourceLogCode"), sourceLogCode); +} + diff --git a/cloud-siem/src/model/ListProjectLogStoresResult.cc b/cloud-siem/src/model/ListProjectLogStoresResult.cc new file mode 100644 index 000000000..09f5d0032 --- /dev/null +++ b/cloud-siem/src/model/ListProjectLogStoresResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListProjectLogStoresResult::ListProjectLogStoresResult() : + ServiceResult() +{} + +ListProjectLogStoresResult::ListProjectLogStoresResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectLogStoresResult::~ListProjectLogStoresResult() +{} + +void ListProjectLogStoresResult::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["Project"].isNull()) + dataObject.project = valueDataDataItem["Project"].asString(); + if(!valueDataDataItem["LogStore"].isNull()) + dataObject.logStore = valueDataDataItem["LogStore"].asString(); + if(!valueDataDataItem["EndPoint"].isNull()) + dataObject.endPoint = valueDataDataItem["EndPoint"].asString(); + if(!valueDataDataItem["RegionId"].isNull()) + dataObject.regionId = valueDataDataItem["RegionId"].asString(); + if(!valueDataDataItem["LocalName"].isNull()) + dataObject.localName = valueDataDataItem["LocalName"].asString(); + if(!valueDataDataItem["MainUserId"].isNull()) + dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString()); + if(!valueDataDataItem["SubUserId"].isNull()) + dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString()); + if(!valueDataDataItem["SubUserName"].isNull()) + dataObject.subUserName = valueDataDataItem["SubUserName"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListProjectLogStoresResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListQuickQueryResult.cc b/cloud-siem/src/model/ListQuickQueryResult.cc index 2efa8fd3e..c9499fb4b 100644 --- a/cloud-siem/src/model/ListQuickQueryResult.cc +++ b/cloud-siem/src/model/ListQuickQueryResult.cc @@ -56,53 +56,11 @@ void ListQuickQueryResult::parse(const std::string &payload) quickQueryListItemObject.displayName = dataNodeQuickQueryListQuickQueryListItem["DisplayName"].asString(); data_.quickQueryList.push_back(quickQueryListItemObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string ListQuickQueryResult::getDyCode()const -{ - return dyCode_; -} - -std::string ListQuickQueryResult::getMessage()const -{ - return message_; -} - ListQuickQueryResult::Data ListQuickQueryResult::getData()const { return data_; } -int ListQuickQueryResult::getCode()const -{ - return code_; -} - -std::string ListQuickQueryResult::getDyMessage()const -{ - return dyMessage_; -} - -bool ListQuickQueryResult::getSuccess()const -{ - return success_; -} - -std::string ListQuickQueryResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/ListRdUsersRequest.cc b/cloud-siem/src/model/ListRdUsersRequest.cc new file mode 100644 index 000000000..269f8aac5 --- /dev/null +++ b/cloud-siem/src/model/ListRdUsersRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem::Model::ListRdUsersRequest; + +ListRdUsersRequest::ListRdUsersRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListRdUsers") { + setMethod(HttpRequest::Method::Post); +} + +ListRdUsersRequest::~ListRdUsersRequest() {} + +std::string ListRdUsersRequest::getRegionId() const { + return regionId_; +} + +void ListRdUsersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/cloud-siem/src/model/ListRdUsersResult.cc b/cloud-siem/src/model/ListRdUsersResult.cc new file mode 100644 index 000000000..b739a1dec --- /dev/null +++ b/cloud-siem/src/model/ListRdUsersResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListRdUsersResult::ListRdUsersResult() : + ServiceResult() +{} + +ListRdUsersResult::ListRdUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRdUsersResult::~ListRdUsersResult() +{} + +void ListRdUsersResult::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["Joined"].isNull()) + dataObject.joined = valueDataDataItem["Joined"].asString() == "true"; + if(!valueDataDataItem["JoinedTime"].isNull()) + dataObject.joinedTime = valueDataDataItem["JoinedTime"].asString(); + if(!valueDataDataItem["DelegatedOrNot"].isNull()) + dataObject.delegatedOrNot = valueDataDataItem["DelegatedOrNot"].asString() == "true"; + if(!valueDataDataItem["MainUserId"].isNull()) + dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString()); + if(!valueDataDataItem["SubUserId"].isNull()) + dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString()); + if(!valueDataDataItem["SubUserName"].isNull()) + dataObject.subUserName = valueDataDataItem["SubUserName"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListRdUsersResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListUserProdLogsRequest.cc b/cloud-siem/src/model/ListUserProdLogsRequest.cc new file mode 100644 index 000000000..491f19941 --- /dev/null +++ b/cloud-siem/src/model/ListUserProdLogsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListUserProdLogsRequest; + +ListUserProdLogsRequest::ListUserProdLogsRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListUserProdLogs") { + setMethod(HttpRequest::Method::Post); +} + +ListUserProdLogsRequest::~ListUserProdLogsRequest() {} + +std::string ListUserProdLogsRequest::getRegionId() const { + return regionId_; +} + +void ListUserProdLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ListUserProdLogsRequest::getSourceProdCode() const { + return sourceProdCode_; +} + +void ListUserProdLogsRequest::setSourceProdCode(const std::string &sourceProdCode) { + sourceProdCode_ = sourceProdCode; + setBodyParameter(std::string("SourceProdCode"), sourceProdCode); +} + +std::string ListUserProdLogsRequest::getSourceLogCode() const { + return sourceLogCode_; +} + +void ListUserProdLogsRequest::setSourceLogCode(const std::string &sourceLogCode) { + sourceLogCode_ = sourceLogCode; + setBodyParameter(std::string("SourceLogCode"), sourceLogCode); +} + diff --git a/cloud-siem/src/model/ListUserProdLogsResult.cc b/cloud-siem/src/model/ListUserProdLogsResult.cc new file mode 100644 index 000000000..aecbf253e --- /dev/null +++ b/cloud-siem/src/model/ListUserProdLogsResult.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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListUserProdLogsResult::ListUserProdLogsResult() : + ServiceResult() +{} + +ListUserProdLogsResult::ListUserProdLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserProdLogsResult::~ListUserProdLogsResult() +{} + +void ListUserProdLogsResult::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["SourceLogCode"].isNull()) + dataObject.sourceLogCode = valueDataDataItem["SourceLogCode"].asString(); + if(!valueDataDataItem["SourceLogInfo"].isNull()) + dataObject.sourceLogInfo = valueDataDataItem["SourceLogInfo"].asString(); + if(!valueDataDataItem["DisplayLine"].isNull()) + dataObject.displayLine = valueDataDataItem["DisplayLine"].asString(); + if(!valueDataDataItem["SourceProdCode"].isNull()) + dataObject.sourceProdCode = valueDataDataItem["SourceProdCode"].asString(); + if(!valueDataDataItem["IsDeleted"].isNull()) + dataObject.isDeleted = std::stoi(valueDataDataItem["IsDeleted"].asString()); + if(!valueDataDataItem["Imported"].isNull()) + dataObject.imported = valueDataDataItem["Imported"].asString() == "true"; + if(!valueDataDataItem["Displayed"].isNull()) + dataObject.displayed = valueDataDataItem["Displayed"].asString() == "true"; + if(!valueDataDataItem["MainUserId"].isNull()) + dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString()); + if(!valueDataDataItem["SubUserId"].isNull()) + dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString()); + if(!valueDataDataItem["SubUserName"].isNull()) + dataObject.subUserName = valueDataDataItem["SubUserName"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListUserProdLogsResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ListUsersByProdRequest.cc b/cloud-siem/src/model/ListUsersByProdRequest.cc new file mode 100644 index 000000000..4954498ab --- /dev/null +++ b/cloud-siem/src/model/ListUsersByProdRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ListUsersByProdRequest; + +ListUsersByProdRequest::ListUsersByProdRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListUsersByProd") { + setMethod(HttpRequest::Method::Post); +} + +ListUsersByProdRequest::~ListUsersByProdRequest() {} + +std::string ListUsersByProdRequest::getRegionId() const { + return regionId_; +} + +void ListUsersByProdRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ListUsersByProdRequest::getSourceProdCode() const { + return sourceProdCode_; +} + +void ListUsersByProdRequest::setSourceProdCode(const std::string &sourceProdCode) { + sourceProdCode_ = sourceProdCode; + setBodyParameter(std::string("SourceProdCode"), sourceProdCode); +} + diff --git a/cloud-siem/src/model/ListUsersByProdResult.cc b/cloud-siem/src/model/ListUsersByProdResult.cc new file mode 100644 index 000000000..3bd0a9b67 --- /dev/null +++ b/cloud-siem/src/model/ListUsersByProdResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ListUsersByProdResult::ListUsersByProdResult() : + ServiceResult() +{} + +ListUsersByProdResult::ListUsersByProdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersByProdResult::~ListUsersByProdResult() +{} + +void ListUsersByProdResult::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["SourceProdCode"].isNull()) + dataObject.sourceProdCode = valueDataDataItem["SourceProdCode"].asString(); + if(!valueDataDataItem["SourceLogCode"].isNull()) + dataObject.sourceLogCode = valueDataDataItem["SourceLogCode"].asString(); + if(!valueDataDataItem["SourceLogName"].isNull()) + dataObject.sourceLogName = valueDataDataItem["SourceLogName"].asString(); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); + if(!valueDataDataItem["Imported"].isNull()) + dataObject.imported = valueDataDataItem["Imported"].asString() == "true"; + if(!valueDataDataItem["LogMdsCode"].isNull()) + dataObject.logMdsCode = valueDataDataItem["LogMdsCode"].asString(); + if(!valueDataDataItem["MainUserId"].isNull()) + dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString()); + if(!valueDataDataItem["SubUserId"].isNull()) + dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString()); + if(!valueDataDataItem["SubUserName"].isNull()) + dataObject.subUserName = valueDataDataItem["SubUserName"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListUsersByProdResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ModifyBindAccountRequest.cc b/cloud-siem/src/model/ModifyBindAccountRequest.cc new file mode 100644 index 000000000..e3100fd60 --- /dev/null +++ b/cloud-siem/src/model/ModifyBindAccountRequest.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 + +using AlibabaCloud::Cloud_siem::Model::ModifyBindAccountRequest; + +ModifyBindAccountRequest::ModifyBindAccountRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ModifyBindAccount") { + setMethod(HttpRequest::Method::Post); +} + +ModifyBindAccountRequest::~ModifyBindAccountRequest() {} + +std::string ModifyBindAccountRequest::getCloudCode() const { + return cloudCode_; +} + +void ModifyBindAccountRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ModifyBindAccountRequest::getAccountId() const { + return accountId_; +} + +void ModifyBindAccountRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string ModifyBindAccountRequest::getAccountName() const { + return accountName_; +} + +void ModifyBindAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setBodyParameter(std::string("AccountName"), accountName); +} + +std::string ModifyBindAccountRequest::getRegionId() const { + return regionId_; +} + +void ModifyBindAccountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +long ModifyBindAccountRequest::getBindId() const { + return bindId_; +} + +void ModifyBindAccountRequest::setBindId(long bindId) { + bindId_ = bindId; + setBodyParameter(std::string("BindId"), std::to_string(bindId)); +} + +std::string ModifyBindAccountRequest::getAccessId() const { + return accessId_; +} + +void ModifyBindAccountRequest::setAccessId(const std::string &accessId) { + accessId_ = accessId; + setBodyParameter(std::string("AccessId"), accessId); +} + diff --git a/cloud-siem/src/model/ModifyBindAccountResult.cc b/cloud-siem/src/model/ModifyBindAccountResult.cc new file mode 100644 index 000000000..4bcd92b90 --- /dev/null +++ b/cloud-siem/src/model/ModifyBindAccountResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ModifyBindAccountResult::ModifyBindAccountResult() : + ServiceResult() +{} + +ModifyBindAccountResult::ModifyBindAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBindAccountResult::~ModifyBindAccountResult() +{} + +void ModifyBindAccountResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + +} + +ModifyBindAccountResult::Data ModifyBindAccountResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ModifyDataSourceLogRequest.cc b/cloud-siem/src/model/ModifyDataSourceLogRequest.cc new file mode 100644 index 000000000..39ce907fb --- /dev/null +++ b/cloud-siem/src/model/ModifyDataSourceLogRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ModifyDataSourceLogRequest; + +ModifyDataSourceLogRequest::ModifyDataSourceLogRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ModifyDataSourceLog") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDataSourceLogRequest::~ModifyDataSourceLogRequest() {} + +std::string ModifyDataSourceLogRequest::getDataSourceType() const { + return dataSourceType_; +} + +void ModifyDataSourceLogRequest::setDataSourceType(const std::string &dataSourceType) { + dataSourceType_ = dataSourceType; + setBodyParameter(std::string("DataSourceType"), dataSourceType); +} + +std::string ModifyDataSourceLogRequest::getCloudCode() const { + return cloudCode_; +} + +void ModifyDataSourceLogRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ModifyDataSourceLogRequest::getAccountId() const { + return accountId_; +} + +void ModifyDataSourceLogRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string ModifyDataSourceLogRequest::getLogCode() const { + return logCode_; +} + +void ModifyDataSourceLogRequest::setLogCode(const std::string &logCode) { + logCode_ = logCode; + setBodyParameter(std::string("LogCode"), logCode); +} + +std::string ModifyDataSourceLogRequest::getRegionId() const { + return regionId_; +} + +void ModifyDataSourceLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDataSourceLogRequest::getLogInstanceId() const { + return logInstanceId_; +} + +void ModifyDataSourceLogRequest::setLogInstanceId(const std::string &logInstanceId) { + logInstanceId_ = logInstanceId; + setBodyParameter(std::string("LogInstanceId"), logInstanceId); +} + +std::string ModifyDataSourceLogRequest::getDataSourceInstanceLogs() const { + return dataSourceInstanceLogs_; +} + +void ModifyDataSourceLogRequest::setDataSourceInstanceLogs(const std::string &dataSourceInstanceLogs) { + dataSourceInstanceLogs_ = dataSourceInstanceLogs; + setBodyParameter(std::string("DataSourceInstanceLogs"), dataSourceInstanceLogs); +} + +std::string ModifyDataSourceLogRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void ModifyDataSourceLogRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/ModifyDataSourceLogResult.cc b/cloud-siem/src/model/ModifyDataSourceLogResult.cc new file mode 100644 index 000000000..4b34fac03 --- /dev/null +++ b/cloud-siem/src/model/ModifyDataSourceLogResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ModifyDataSourceLogResult::ModifyDataSourceLogResult() : + ServiceResult() +{} + +ModifyDataSourceLogResult::ModifyDataSourceLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDataSourceLogResult::~ModifyDataSourceLogResult() +{} + +void ModifyDataSourceLogResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + if(!dataNode["LogInstanceId"].isNull()) + data_.logInstanceId = dataNode["LogInstanceId"].asString(); + +} + +ModifyDataSourceLogResult::Data ModifyDataSourceLogResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/ModifyDataSourceRequest.cc b/cloud-siem/src/model/ModifyDataSourceRequest.cc new file mode 100644 index 000000000..81a77ddf9 --- /dev/null +++ b/cloud-siem/src/model/ModifyDataSourceRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::ModifyDataSourceRequest; + +ModifyDataSourceRequest::ModifyDataSourceRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ModifyDataSource") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDataSourceRequest::~ModifyDataSourceRequest() {} + +std::string ModifyDataSourceRequest::getDataSourceType() const { + return dataSourceType_; +} + +void ModifyDataSourceRequest::setDataSourceType(const std::string &dataSourceType) { + dataSourceType_ = dataSourceType; + setBodyParameter(std::string("DataSourceType"), dataSourceType); +} + +std::string ModifyDataSourceRequest::getCloudCode() const { + return cloudCode_; +} + +void ModifyDataSourceRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string ModifyDataSourceRequest::getDataSourceInstanceName() const { + return dataSourceInstanceName_; +} + +void ModifyDataSourceRequest::setDataSourceInstanceName(const std::string &dataSourceInstanceName) { + dataSourceInstanceName_ = dataSourceInstanceName; + setBodyParameter(std::string("DataSourceInstanceName"), dataSourceInstanceName); +} + +std::string ModifyDataSourceRequest::getAccountId() const { + return accountId_; +} + +void ModifyDataSourceRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("AccountId"), accountId); +} + +std::string ModifyDataSourceRequest::getRegionId() const { + return regionId_; +} + +void ModifyDataSourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDataSourceRequest::getDataSourceInstanceRemark() const { + return dataSourceInstanceRemark_; +} + +void ModifyDataSourceRequest::setDataSourceInstanceRemark(const std::string &dataSourceInstanceRemark) { + dataSourceInstanceRemark_ = dataSourceInstanceRemark; + setBodyParameter(std::string("DataSourceInstanceRemark"), dataSourceInstanceRemark); +} + +std::string ModifyDataSourceRequest::getDataSourceInstanceParams() const { + return dataSourceInstanceParams_; +} + +void ModifyDataSourceRequest::setDataSourceInstanceParams(const std::string &dataSourceInstanceParams) { + dataSourceInstanceParams_ = dataSourceInstanceParams; + setBodyParameter(std::string("DataSourceInstanceParams"), dataSourceInstanceParams); +} + +std::string ModifyDataSourceRequest::getDataSourceInstanceId() const { + return dataSourceInstanceId_; +} + +void ModifyDataSourceRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) { + dataSourceInstanceId_ = dataSourceInstanceId; + setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId); +} + diff --git a/cloud-siem/src/model/ModifyDataSourceResult.cc b/cloud-siem/src/model/ModifyDataSourceResult.cc new file mode 100644 index 000000000..c25a98570 --- /dev/null +++ b/cloud-siem/src/model/ModifyDataSourceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +ModifyDataSourceResult::ModifyDataSourceResult() : + ServiceResult() +{} + +ModifyDataSourceResult::ModifyDataSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDataSourceResult::~ModifyDataSourceResult() +{} + +void ModifyDataSourceResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + if(!dataNode["DataSourceInstanceId"].isNull()) + data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString(); + +} + +ModifyDataSourceResult::Data ModifyDataSourceResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/OpenDeliveryResult.cc b/cloud-siem/src/model/OpenDeliveryResult.cc index 01c72cf9c..78a12d50a 100644 --- a/cloud-siem/src/model/OpenDeliveryResult.cc +++ b/cloud-siem/src/model/OpenDeliveryResult.cc @@ -41,53 +41,11 @@ void OpenDeliveryResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string OpenDeliveryResult::getDyCode()const -{ - return dyCode_; -} - -std::string OpenDeliveryResult::getMessage()const -{ - return message_; -} - bool OpenDeliveryResult::getData()const { return data_; } -int OpenDeliveryResult::getCode()const -{ - return code_; -} - -std::string OpenDeliveryResult::getDyMessage()const -{ - return dyMessage_; -} - -bool OpenDeliveryResult::getSuccess()const -{ - return success_; -} - -std::string OpenDeliveryResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/RestoreCapacityResult.cc b/cloud-siem/src/model/RestoreCapacityResult.cc index 511950f98..607431b73 100644 --- a/cloud-siem/src/model/RestoreCapacityResult.cc +++ b/cloud-siem/src/model/RestoreCapacityResult.cc @@ -41,53 +41,11 @@ void RestoreCapacityResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string RestoreCapacityResult::getDyCode()const -{ - return dyCode_; -} - -std::string RestoreCapacityResult::getMessage()const -{ - return message_; -} - bool RestoreCapacityResult::getData()const { return data_; } -int RestoreCapacityResult::getCode()const -{ - return code_; -} - -std::string RestoreCapacityResult::getDyMessage()const -{ - return dyMessage_; -} - -bool RestoreCapacityResult::getSuccess()const -{ - return success_; -} - -std::string RestoreCapacityResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/SaveQuickQueryResult.cc b/cloud-siem/src/model/SaveQuickQueryResult.cc index 5bba72df2..3b91b231d 100644 --- a/cloud-siem/src/model/SaveQuickQueryResult.cc +++ b/cloud-siem/src/model/SaveQuickQueryResult.cc @@ -41,53 +41,11 @@ void SaveQuickQueryResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string SaveQuickQueryResult::getDyCode()const -{ - return dyCode_; -} - -std::string SaveQuickQueryResult::getMessage()const -{ - return message_; -} - bool SaveQuickQueryResult::getData()const { return data_; } -int SaveQuickQueryResult::getCode()const -{ - return code_; -} - -std::string SaveQuickQueryResult::getDyMessage()const -{ - return dyMessage_; -} - -bool SaveQuickQueryResult::getSuccess()const -{ - return success_; -} - -std::string SaveQuickQueryResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/SetStorageResult.cc b/cloud-siem/src/model/SetStorageResult.cc index 1cb38f0d2..3ea72af9a 100644 --- a/cloud-siem/src/model/SetStorageResult.cc +++ b/cloud-siem/src/model/SetStorageResult.cc @@ -41,53 +41,11 @@ void SetStorageResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string SetStorageResult::getDyCode()const -{ - return dyCode_; -} - -std::string SetStorageResult::getMessage()const -{ - return message_; -} - bool SetStorageResult::getData()const { return data_; } -int SetStorageResult::getCode()const -{ - return code_; -} - -std::string SetStorageResult::getDyMessage()const -{ - return dyMessage_; -} - -bool SetStorageResult::getSuccess()const -{ - return success_; -} - -std::string SetStorageResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/ShowQuickAnalysisResult.cc b/cloud-siem/src/model/ShowQuickAnalysisResult.cc index 839a0c8d2..9cb34b7bb 100644 --- a/cloud-siem/src/model/ShowQuickAnalysisResult.cc +++ b/cloud-siem/src/model/ShowQuickAnalysisResult.cc @@ -43,53 +43,11 @@ void ShowQuickAnalysisResult::parse(const std::string &payload) auto allIndexList = dataNode["IndexList"]["IndexList"]; for (auto value : allIndexList) data_.indexList.push_back(value.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DyCode"].isNull()) - dyCode_ = value["DyCode"].asString(); - if(!value["DyMessage"].isNull()) - dyMessage_ = value["DyMessage"].asString(); } -std::string ShowQuickAnalysisResult::getDyCode()const -{ - return dyCode_; -} - -std::string ShowQuickAnalysisResult::getMessage()const -{ - return message_; -} - ShowQuickAnalysisResult::Data ShowQuickAnalysisResult::getData()const { return data_; } -int ShowQuickAnalysisResult::getCode()const -{ - return code_; -} - -std::string ShowQuickAnalysisResult::getDyMessage()const -{ - return dyMessage_; -} - -bool ShowQuickAnalysisResult::getSuccess()const -{ - return success_; -} - -std::string ShowQuickAnalysisResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/SubmitImportLogTasksRequest.cc b/cloud-siem/src/model/SubmitImportLogTasksRequest.cc new file mode 100644 index 000000000..70dcbc753 --- /dev/null +++ b/cloud-siem/src/model/SubmitImportLogTasksRequest.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 + +using AlibabaCloud::Cloud_siem::Model::SubmitImportLogTasksRequest; + +SubmitImportLogTasksRequest::SubmitImportLogTasksRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "SubmitImportLogTasks") { + setMethod(HttpRequest::Method::Post); +} + +SubmitImportLogTasksRequest::~SubmitImportLogTasksRequest() {} + +std::string SubmitImportLogTasksRequest::getCloudCode() const { + return cloudCode_; +} + +void SubmitImportLogTasksRequest::setCloudCode(const std::string &cloudCode) { + cloudCode_ = cloudCode; + setBodyParameter(std::string("CloudCode"), cloudCode); +} + +std::string SubmitImportLogTasksRequest::getRegionId() const { + return regionId_; +} + +void SubmitImportLogTasksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string SubmitImportLogTasksRequest::getLogCodes() const { + return logCodes_; +} + +void SubmitImportLogTasksRequest::setLogCodes(const std::string &logCodes) { + logCodes_ = logCodes; + setBodyParameter(std::string("LogCodes"), logCodes); +} + +std::string SubmitImportLogTasksRequest::getProdCode() const { + return prodCode_; +} + +void SubmitImportLogTasksRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setBodyParameter(std::string("ProdCode"), prodCode); +} + +int SubmitImportLogTasksRequest::getAutoImported() const { + return autoImported_; +} + +void SubmitImportLogTasksRequest::setAutoImported(int autoImported) { + autoImported_ = autoImported; + setBodyParameter(std::string("AutoImported"), std::to_string(autoImported)); +} + +std::string SubmitImportLogTasksRequest::getAccounts() const { + return accounts_; +} + +void SubmitImportLogTasksRequest::setAccounts(const std::string &accounts) { + accounts_ = accounts; + setBodyParameter(std::string("Accounts"), accounts); +} + diff --git a/cloud-siem/src/model/SubmitImportLogTasksResult.cc b/cloud-siem/src/model/SubmitImportLogTasksResult.cc new file mode 100644 index 000000000..b8514e2fb --- /dev/null +++ b/cloud-siem/src/model/SubmitImportLogTasksResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +SubmitImportLogTasksResult::SubmitImportLogTasksResult() : + ServiceResult() +{} + +SubmitImportLogTasksResult::SubmitImportLogTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitImportLogTasksResult::~SubmitImportLogTasksResult() +{} + +void SubmitImportLogTasksResult::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["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); + +} + +SubmitImportLogTasksResult::Data SubmitImportLogTasksResult::getData()const +{ + return data_; +} + diff --git a/cloud-siem/src/model/SubmitJobsRequest.cc b/cloud-siem/src/model/SubmitJobsRequest.cc new file mode 100644 index 000000000..b0f1f0401 --- /dev/null +++ b/cloud-siem/src/model/SubmitJobsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloud_siem::Model::SubmitJobsRequest; + +SubmitJobsRequest::SubmitJobsRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "SubmitJobs") { + setMethod(HttpRequest::Method::Post); +} + +SubmitJobsRequest::~SubmitJobsRequest() {} + +std::string SubmitJobsRequest::getRegionId() const { + return regionId_; +} + +void SubmitJobsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string SubmitJobsRequest::getJsonParam() const { + return jsonParam_; +} + +void SubmitJobsRequest::setJsonParam(const std::string &jsonParam) { + jsonParam_ = jsonParam; + setBodyParameter(std::string("JsonParam"), jsonParam); +} + diff --git a/cloud-siem/src/model/SubmitJobsResult.cc b/cloud-siem/src/model/SubmitJobsResult.cc new file mode 100644 index 000000000..3c7bd81a6 --- /dev/null +++ b/cloud-siem/src/model/SubmitJobsResult.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 +#include + +using namespace AlibabaCloud::Cloud_siem; +using namespace AlibabaCloud::Cloud_siem::Model; + +SubmitJobsResult::SubmitJobsResult() : + ServiceResult() +{} + +SubmitJobsResult::SubmitJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitJobsResult::~SubmitJobsResult() +{} + +void SubmitJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = std::stoi(value["Data"].asString()); + +} + +int SubmitJobsResult::getData()const +{ + return data_; +} +