diff --git a/VERSION b/VERSION index 5caae8ac7..cded702e7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2054 \ No newline at end of file +1.36.2055 \ No newline at end of file diff --git a/cloud-siem/CMakeLists.txt b/cloud-siem/CMakeLists.txt index 3f9ff5556..24e8b1116 100644 --- a/cloud-siem/CMakeLists.txt +++ b/cloud-siem/CMakeLists.txt @@ -25,14 +25,8 @@ set(cloud-siem_public_header_model 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 @@ -47,10 +41,6 @@ set(cloud-siem_public_header_model 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 @@ -73,8 +63,6 @@ set(cloud-siem_public_header_model 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 @@ -91,10 +79,6 @@ 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 include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountResult.h include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestRequest.h @@ -117,14 +101,10 @@ set(cloud-siem_public_header_model 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 include/alibabacloud/cloud-siem/model/DescribeLogFieldsResult.h include/alibabacloud/cloud-siem/model/DescribeLogSourceRequest.h include/alibabacloud/cloud-siem/model/DescribeLogSourceResult.h - include/alibabacloud/cloud-siem/model/DescribeLogStoreRequest.h - include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h include/alibabacloud/cloud-siem/model/DescribeLogTypeRequest.h include/alibabacloud/cloud-siem/model/DescribeLogTypeResult.h include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h @@ -143,22 +123,12 @@ set(cloud-siem_public_header_model 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 - include/alibabacloud/cloud-siem/model/GetHistogramsResult.h - include/alibabacloud/cloud-siem/model/GetLogsRequest.h - include/alibabacloud/cloud-siem/model/GetLogsResult.h - include/alibabacloud/cloud-siem/model/GetQuickQueryRequest.h - 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 @@ -187,20 +157,14 @@ set(cloud-siem_public_header_model 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/ListEntitiesRequest.h + include/alibabacloud/cloud-siem/model/ListEntitiesResult.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 @@ -225,16 +189,10 @@ set(cloud-siem_public_header_model include/alibabacloud/cloud-siem/model/PostRuleStatusChangeResult.h include/alibabacloud/cloud-siem/model/RestoreCapacityRequest.h include/alibabacloud/cloud-siem/model/RestoreCapacityResult.h - include/alibabacloud/cloud-siem/model/SaveQuickQueryRequest.h - include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h include/alibabacloud/cloud-siem/model/SetStorageRequest.h 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 @@ -246,14 +204,8 @@ set(cloud-siem_src 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 @@ -268,10 +220,6 @@ set(cloud-siem_src 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 @@ -294,8 +242,6 @@ set(cloud-siem_src 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 @@ -312,10 +258,6 @@ 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 src/model/DescribeCustomizeRuleCountResult.cc src/model/DescribeCustomizeRuleTestRequest.cc @@ -338,14 +280,10 @@ set(cloud-siem_src src/model/DescribeEventDisposeResult.cc src/model/DescribeImportedLogCountRequest.cc src/model/DescribeImportedLogCountResult.cc - src/model/DescribeJobStatusRequest.cc - src/model/DescribeJobStatusResult.cc src/model/DescribeLogFieldsRequest.cc src/model/DescribeLogFieldsResult.cc src/model/DescribeLogSourceRequest.cc src/model/DescribeLogSourceResult.cc - src/model/DescribeLogStoreRequest.cc - src/model/DescribeLogStoreResult.cc src/model/DescribeLogTypeRequest.cc src/model/DescribeLogTypeResult.cc src/model/DescribeOperatorsRequest.cc @@ -364,22 +302,12 @@ set(cloud-siem_src 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 - src/model/GetHistogramsResult.cc - src/model/GetLogsRequest.cc - src/model/GetLogsResult.cc - src/model/GetQuickQueryRequest.cc - src/model/GetQuickQueryResult.cc src/model/GetStorageRequest.cc src/model/GetStorageResult.cc src/model/ListAccountAccessIdRequest.cc @@ -408,20 +336,14 @@ set(cloud-siem_src src/model/ListDeliveryResult.cc src/model/ListDisposeStrategyRequest.cc src/model/ListDisposeStrategyResult.cc + src/model/ListEntitiesRequest.cc + src/model/ListEntitiesResult.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 @@ -446,16 +368,10 @@ set(cloud-siem_src src/model/PostRuleStatusChangeResult.cc src/model/RestoreCapacityRequest.cc src/model/RestoreCapacityResult.cc - src/model/SaveQuickQueryRequest.cc - src/model/SaveQuickQueryResult.cc src/model/SetStorageRequest.cc 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 26ebea162..f377fe733 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/Cloud_siemClient.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/Cloud_siemClient.h @@ -26,14 +26,8 @@ #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" @@ -48,10 +42,6 @@ #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" @@ -74,8 +64,6 @@ #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" @@ -92,10 +80,6 @@ #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" #include "model/DescribeCustomizeRuleCountResult.h" #include "model/DescribeCustomizeRuleTestRequest.h" @@ -118,14 +102,10 @@ #include "model/DescribeEventDisposeResult.h" #include "model/DescribeImportedLogCountRequest.h" #include "model/DescribeImportedLogCountResult.h" -#include "model/DescribeJobStatusRequest.h" -#include "model/DescribeJobStatusResult.h" #include "model/DescribeLogFieldsRequest.h" #include "model/DescribeLogFieldsResult.h" #include "model/DescribeLogSourceRequest.h" #include "model/DescribeLogSourceResult.h" -#include "model/DescribeLogStoreRequest.h" -#include "model/DescribeLogStoreResult.h" #include "model/DescribeLogTypeRequest.h" #include "model/DescribeLogTypeResult.h" #include "model/DescribeOperatorsRequest.h" @@ -144,22 +124,12 @@ #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" -#include "model/GetHistogramsResult.h" -#include "model/GetLogsRequest.h" -#include "model/GetLogsResult.h" -#include "model/GetQuickQueryRequest.h" -#include "model/GetQuickQueryResult.h" #include "model/GetStorageRequest.h" #include "model/GetStorageResult.h" #include "model/ListAccountAccessIdRequest.h" @@ -188,20 +158,14 @@ #include "model/ListDeliveryResult.h" #include "model/ListDisposeStrategyRequest.h" #include "model/ListDisposeStrategyResult.h" +#include "model/ListEntitiesRequest.h" +#include "model/ListEntitiesResult.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" @@ -226,16 +190,10 @@ #include "model/PostRuleStatusChangeResult.h" #include "model/RestoreCapacityRequest.h" #include "model/RestoreCapacityResult.h" -#include "model/SaveQuickQueryRequest.h" -#include "model/SaveQuickQueryResult.h" #include "model/SetStorageRequest.h" #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" @@ -255,18 +213,9 @@ namespace AlibabaCloud 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; @@ -288,12 +237,6 @@ namespace AlibabaCloud 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; @@ -327,9 +270,6 @@ namespace AlibabaCloud 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; @@ -354,12 +294,6 @@ 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; typedef Outcome DescribeCustomizeRuleCountOutcome; typedef std::future DescribeCustomizeRuleCountOutcomeCallable; typedef std::function&)> DescribeCustomizeRuleCountAsyncHandler; @@ -393,18 +327,12 @@ namespace AlibabaCloud typedef Outcome DescribeImportedLogCountOutcome; typedef std::future DescribeImportedLogCountOutcomeCallable; typedef std::function&)> DescribeImportedLogCountAsyncHandler; - typedef Outcome DescribeJobStatusOutcome; - typedef std::future DescribeJobStatusOutcomeCallable; - typedef std::function&)> DescribeJobStatusAsyncHandler; typedef Outcome DescribeLogFieldsOutcome; typedef std::future DescribeLogFieldsOutcomeCallable; typedef std::function&)> DescribeLogFieldsAsyncHandler; typedef Outcome DescribeLogSourceOutcome; typedef std::future DescribeLogSourceOutcomeCallable; typedef std::function&)> DescribeLogSourceAsyncHandler; - typedef Outcome DescribeLogStoreOutcome; - typedef std::future DescribeLogStoreOutcomeCallable; - typedef std::function&)> DescribeLogStoreAsyncHandler; typedef Outcome DescribeLogTypeOutcome; typedef std::future DescribeLogTypeOutcomeCallable; typedef std::function&)> DescribeLogTypeAsyncHandler; @@ -432,12 +360,6 @@ namespace AlibabaCloud 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; @@ -447,15 +369,6 @@ namespace AlibabaCloud typedef Outcome GetCapacityOutcome; typedef std::future GetCapacityOutcomeCallable; typedef std::function&)> GetCapacityAsyncHandler; - typedef Outcome GetHistogramsOutcome; - typedef std::future GetHistogramsOutcomeCallable; - typedef std::function&)> GetHistogramsAsyncHandler; - typedef Outcome GetLogsOutcome; - typedef std::future GetLogsOutcomeCallable; - typedef std::function&)> GetLogsAsyncHandler; - typedef Outcome GetQuickQueryOutcome; - typedef std::future GetQuickQueryOutcomeCallable; - typedef std::function&)> GetQuickQueryAsyncHandler; typedef Outcome GetStorageOutcome; typedef std::future GetStorageOutcomeCallable; typedef std::function&)> GetStorageAsyncHandler; @@ -498,27 +411,18 @@ namespace AlibabaCloud typedef Outcome ListDisposeStrategyOutcome; typedef std::future ListDisposeStrategyOutcomeCallable; typedef std::function&)> ListDisposeStrategyAsyncHandler; + typedef Outcome ListEntitiesOutcome; + typedef std::future ListEntitiesOutcomeCallable; + typedef std::function&)> ListEntitiesAsyncHandler; 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; @@ -555,21 +459,12 @@ namespace AlibabaCloud typedef Outcome RestoreCapacityOutcome; typedef std::future RestoreCapacityOutcomeCallable; typedef std::function&)> RestoreCapacityAsyncHandler; - typedef Outcome SaveQuickQueryOutcome; - typedef std::future SaveQuickQueryOutcomeCallable; - typedef std::function&)> SaveQuickQueryAsyncHandler; typedef Outcome SetStorageOutcome; typedef std::future SetStorageOutcomeCallable; typedef std::function&)> SetStorageAsyncHandler; - 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; @@ -587,18 +482,9 @@ namespace AlibabaCloud 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; @@ -620,12 +506,6 @@ namespace AlibabaCloud 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; @@ -659,9 +539,6 @@ namespace AlibabaCloud 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; @@ -686,12 +563,6 @@ 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; DescribeCustomizeRuleCountOutcome describeCustomizeRuleCount(const Model::DescribeCustomizeRuleCountRequest &request)const; void describeCustomizeRuleCountAsync(const Model::DescribeCustomizeRuleCountRequest& request, const DescribeCustomizeRuleCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCustomizeRuleCountOutcomeCallable describeCustomizeRuleCountCallable(const Model::DescribeCustomizeRuleCountRequest& request) const; @@ -725,18 +596,12 @@ namespace AlibabaCloud 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; DescribeLogFieldsOutcome describeLogFields(const Model::DescribeLogFieldsRequest &request)const; void describeLogFieldsAsync(const Model::DescribeLogFieldsRequest& request, const DescribeLogFieldsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogFieldsOutcomeCallable describeLogFieldsCallable(const Model::DescribeLogFieldsRequest& request) const; DescribeLogSourceOutcome describeLogSource(const Model::DescribeLogSourceRequest &request)const; void describeLogSourceAsync(const Model::DescribeLogSourceRequest& request, const DescribeLogSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogSourceOutcomeCallable describeLogSourceCallable(const Model::DescribeLogSourceRequest& request) const; - DescribeLogStoreOutcome describeLogStore(const Model::DescribeLogStoreRequest &request)const; - void describeLogStoreAsync(const Model::DescribeLogStoreRequest& request, const DescribeLogStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLogStoreOutcomeCallable describeLogStoreCallable(const Model::DescribeLogStoreRequest& request) const; DescribeLogTypeOutcome describeLogType(const Model::DescribeLogTypeRequest &request)const; void describeLogTypeAsync(const Model::DescribeLogTypeRequest& request, const DescribeLogTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogTypeOutcomeCallable describeLogTypeCallable(const Model::DescribeLogTypeRequest& request) const; @@ -764,12 +629,6 @@ namespace AlibabaCloud 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; @@ -779,15 +638,6 @@ namespace AlibabaCloud 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; - GetHistogramsOutcome getHistograms(const Model::GetHistogramsRequest &request)const; - void getHistogramsAsync(const Model::GetHistogramsRequest& request, const GetHistogramsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetHistogramsOutcomeCallable getHistogramsCallable(const Model::GetHistogramsRequest& request) const; - GetLogsOutcome getLogs(const Model::GetLogsRequest &request)const; - void getLogsAsync(const Model::GetLogsRequest& request, const GetLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLogsOutcomeCallable getLogsCallable(const Model::GetLogsRequest& request) const; - GetQuickQueryOutcome getQuickQuery(const Model::GetQuickQueryRequest &request)const; - void getQuickQueryAsync(const Model::GetQuickQueryRequest& request, const GetQuickQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetQuickQueryOutcomeCallable getQuickQueryCallable(const Model::GetQuickQueryRequest& request) const; 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; @@ -830,27 +680,18 @@ namespace AlibabaCloud 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; + ListEntitiesOutcome listEntities(const Model::ListEntitiesRequest &request)const; + void listEntitiesAsync(const Model::ListEntitiesRequest& request, const ListEntitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEntitiesOutcomeCallable listEntitiesCallable(const Model::ListEntitiesRequest& 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; @@ -887,21 +728,12 @@ namespace AlibabaCloud RestoreCapacityOutcome restoreCapacity(const Model::RestoreCapacityRequest &request)const; void restoreCapacityAsync(const Model::RestoreCapacityRequest& request, const RestoreCapacityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestoreCapacityOutcomeCallable restoreCapacityCallable(const Model::RestoreCapacityRequest& request) const; - SaveQuickQueryOutcome saveQuickQuery(const Model::SaveQuickQueryRequest &request)const; - void saveQuickQueryAsync(const Model::SaveQuickQueryRequest& request, const SaveQuickQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SaveQuickQueryOutcomeCallable saveQuickQueryCallable(const Model::SaveQuickQueryRequest& request) const; SetStorageOutcome setStorage(const Model::SetStorageRequest &request)const; void setStorageAsync(const Model::SetStorageRequest& request, const SetStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetStorageOutcomeCallable setStorageCallable(const Model::SetStorageRequest& request) const; - 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/AddUserRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserRequest.h deleted file mode 100644 index 32e23027d..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index ffe01615c..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/AddUserResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/BatchJobCheckRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobCheckRequest.h deleted file mode 100644 index 0428966d9..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobCheckRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT BatchJobCheckRequest : public RpcServiceRequest { -public: - BatchJobCheckRequest(); - ~BatchJobCheckRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSubmitId() const; - void setSubmitId(const std::string &submitId); - -private: - std::string regionId_; - std::string submitId_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobCheckResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobCheckResult.h deleted file mode 100644 index 4dfa9bc48..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobCheckResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT BatchJobCheckResult : public ServiceResult - { - public: - struct Data - { - struct ErrTaskListItem - { - struct ProductListItem - { - struct LogListItem - { - std::string projectNamePattern; - std::string regionCode; - std::string logStoreNamePattern; - std::string productCode; - std::string errorCode; - std::string logCode; - }; - std::vector logList; - std::string productCode; - }; - std::vector productList; - long userId; - }; - int taskCount; - int finishCount; - int failedCount; - std::string configId; - std::string folderId; - std::string taskStatus; - std::vector errTaskList; - }; - - - BatchJobCheckResult(); - explicit BatchJobCheckResult(const std::string &payload); - ~BatchJobCheckResult(); - std::string getMessage()const; - Data getData()const; - int getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Data data_; - int code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobSubmitRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobSubmitRequest.h deleted file mode 100644 index b43e7e680..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobSubmitRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBSUBMITREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBSUBMITREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT BatchJobSubmitRequest : public RpcServiceRequest { -public: - BatchJobSubmitRequest(); - ~BatchJobSubmitRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getJsonConfig() const; - void setJsonConfig(const std::string &jsonConfig); - -private: - std::string regionId_; - std::string jsonConfig_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBSUBMITREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobSubmitResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobSubmitResult.h deleted file mode 100644 index 62b5f6e6c..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/BatchJobSubmitResult.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBSUBMITRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBSUBMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT BatchJobSubmitResult : public ServiceResult - { - public: - struct Data - { - struct ConfigListItem - { - struct ProductListItem - { - struct LogListItem - { - std::string projectNamePattern; - std::string regionCode; - std::string logStoreNamePattern; - std::string productCode; - std::string errorCode; - std::string logCode; - }; - std::vector logList; - std::string productCode; - }; - std::vector productList; - long userId; - }; - std::string submitId; - int taskCount; - std::string configId; - std::vector configList; - }; - - - BatchJobSubmitResult(); - explicit BatchJobSubmitResult(const std::string &payload); - ~BatchJobSubmitResult(); - std::string getMessage()const; - Data getData()const; - int getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Data data_; - int code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBSUBMITRESULT_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 index 5aae9827e..34ffd6453 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/BindAccountRequest.h @@ -32,20 +32,26 @@ public: ~BindAccountRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); 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); + int getRoleType() const; + void setRoleType(int roleType); std::string getAccessId() const; void setAccessId(const std::string &accessId); private: std::string cloudCode_; + long roleFor_; std::string accountId_; std::string accountName_; std::string regionId_; + int roleType_; std::string accessId_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryRequest.h index 1fa005d12..290f5e55a 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/CloseDeliveryRequest.h @@ -32,15 +32,21 @@ public: ~CloseDeliveryRequest(); std::string getProductCode() const; void setProductCode(const std::string &productCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getLogCode() const; void setLogCode(const std::string &logCode); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: std::string productCode_; + long roleFor_; std::string logCode_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteAutomateResponseConfigRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteAutomateResponseConfigRequest.h index 324548df7..518d0e629 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteAutomateResponseConfigRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteAutomateResponseConfigRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteAutomateResponseConfigRequest : publi public: DeleteAutomateResponseConfigRequest(); ~DeleteAutomateResponseConfigRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); private: + long roleFor_; std::string regionId_; + int roleType_; long id_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h index 5494fc5a5..99052fe43 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteBindAccountRequest.h @@ -32,10 +32,14 @@ public: ~DeleteBindAccountRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getAccountId() const; void setAccountId(const std::string &accountId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getBindId() const; void setBindId(long bindId); std::string getAccessId() const; @@ -43,8 +47,10 @@ public: private: std::string cloudCode_; + long roleFor_; std::string accountId_; std::string regionId_; + int roleType_; long bindId_; std::string accessId_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteCustomizeRuleRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteCustomizeRuleRequest.h index 932d2c6e8..e23238c69 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteCustomizeRuleRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteCustomizeRuleRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteCustomizeRuleRequest : public RpcServ public: DeleteCustomizeRuleRequest(); ~DeleteCustomizeRuleRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getRuleId() const; void setRuleId(long ruleId); private: + long roleFor_; std::string regionId_; + int roleType_; long ruleId_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryRequest.h deleted file mode 100644 index 4369888cc..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEQUICKQUERYREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEQUICKQUERYREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteQuickQueryRequest : public RpcServiceRequest { -public: - DeleteQuickQueryRequest(); - ~DeleteQuickQueryRequest(); - std::string getSearchName() const; - void setSearchName(const std::string &searchName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string searchName_; - std::string regionId_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEQUICKQUERYREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h deleted file mode 100644 index 8d87f5959..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEQUICKQUERYRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEQUICKQUERYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteQuickQueryResult : public ServiceResult - { - public: - - - DeleteQuickQueryResult(); - explicit DeleteQuickQueryResult(const std::string &payload); - ~DeleteQuickQueryResult(); - bool getData()const; - - protected: - void parse(const std::string &payload); - private: - bool data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DELETEQUICKQUERYRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.h deleted file mode 100644 index 5e8201238..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0b1dbd15a..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteUserResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DeleteWhiteRuleListRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListRequest.h index 3dfbc369a..e9dc8f1fa 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteWhiteRuleListRequest : public RpcServ public: DeleteWhiteRuleListRequest(); ~DeleteWhiteRuleListRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); private: + long roleFor_; std::string regionId_; + int roleType_; long id_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionRequest.h index c708d11b3..b79ec03ec 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAggregateFunctionRequest : public R public: DescribeAggregateFunctionRequest(); ~DescribeAggregateFunctionRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneByEventRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneByEventRequest.h index 41fb9c4ed..d36d976a7 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneByEventRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneByEventRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSceneByEventRequest : public R public: DescribeAlertSceneByEventRequest(); ~DescribeAlertSceneByEventRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; + int roleType_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h index a81321054..cd69ae1da 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSceneRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSceneRequest : public RpcServi public: DescribeAlertSceneRequest(); ~DescribeAlertSceneRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceRequest.h index b66730087..5ab70169d 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceRequest.h @@ -30,18 +30,24 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSourceRequest : public RpcServ public: DescribeAlertSourceRequest(); ~DescribeAlertSourceRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); long getStartTime() const; void setStartTime(long startTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::vector getLevel() const; void setLevel(const std::vector &level); long getEndTime() const; void setEndTime(long endTime); private: + long roleFor_; long startTime_; std::string regionId_; + int roleType_; std::vector level_; long endTime_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceWithEventRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceWithEventRequest.h index 05e23105d..ca94237c9 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceWithEventRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertSourceWithEventRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSourceWithEventRequest : publi public: DescribeAlertSourceWithEventRequest(); ~DescribeAlertSourceWithEventRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; + int roleType_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertTypeRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertTypeRequest.h index 23e4dfa55..525bb4bc7 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertTypeRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertTypeRequest.h @@ -30,11 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertTypeRequest : public RpcServic public: DescribeAlertTypeRequest(); ~DescribeAlertTypeRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); + std::string getRuleType() const; + void setRuleType(const std::string &ruleType); private: + long roleFor_; std::string regionId_; + int roleType_; + std::string ruleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountRequest.h index 7bee3ca6e..914fb6e5a 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountRequest.h @@ -30,16 +30,25 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsCountRequest : public RpcServ public: DescribeAlertsCountRequest(); ~DescribeAlertsCountRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); long getStartTime() const; void setStartTime(long startTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); + std::string getQueryType() const; + void setQueryType(const std::string &queryType); long getEndTime() const; void setEndTime(long endTime); private: + long roleFor_; long startTime_; std::string regionId_; + int roleType_; + std::string queryType_; long endTime_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountResult.h index b57217496..1a13d1bed 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsCountResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { long high; long all; + std::string countMap; long low; long medium; int productNum; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h index c06962e56..ae33e7263 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsRequest.h @@ -30,6 +30,16 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsRequest : public RpcServiceRe public: DescribeAlertsRequest(); ~DescribeAlertsRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getAlertName() const; + void setAlertName(const std::string &alertName); + std::string getEntityName() const; + void setEntityName(const std::string &entityName); + std::string getAssetName() const; + void setAssetName(const std::string &assetName); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); std::string getSource() const; void setSource(const std::string &source); std::string getIsDefend() const; @@ -42,6 +52,8 @@ public: void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::vector getLevel() const; void setLevel(const std::vector &level); long getEndTime() const; @@ -50,21 +62,36 @@ public: void setAlertTitle(const std::string &alertTitle); int getCurrentPage() const; void setCurrentPage(int currentPage); + std::string getAlertType() const; + void setAlertType(const std::string &alertType); std::string getAlertUuid() const; void setAlertUuid(const std::string &alertUuid); + std::string getAssetId() const; + void setAssetId(const std::string &assetId); + std::string getLabelType() const; + void setLabelType(const std::string &labelType); private: + long roleFor_; + std::string alertName_; + std::string entityName_; + std::string assetName_; + std::string entityId_; std::string source_; std::string isDefend_; long startTime_; std::string subUserId_; std::string regionId_; int pageSize_; + int roleType_; std::vector level_; long endTime_; std::string alertTitle_; int currentPage_; + std::string alertType_; std::string alertUuid_; + std::string assetId_; + std::string labelType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h index 3f4004ef9..406710fc2 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsResult.h @@ -74,6 +74,8 @@ namespace AlibabaCloud std::string alertDescCode; std::string startTime; std::string logUuid; + std::string entityList; + std::string subUserName; std::string occurTime; std::string alertDesc; std::string gmtCreate; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h index 6763a8846..c9bddf67d 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityRequest.h @@ -30,25 +30,40 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEntityRequest : public Rp public: DescribeAlertsWithEntityRequest(); ~DescribeAlertsWithEntityRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); long getEntityId() const; void setEntityId(long entityId); + long getStartTime() const; + void setStartTime(long startTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::string getSophonTaskId() const; void setSophonTaskId(const std::string &sophonTaskId); + long getEndTime() const; + void setEndTime(long endTime); int getCurrentPage() const; void setCurrentPage(int currentPage); + std::string getEntityUuid() const; + void setEntityUuid(const std::string &entityUuid); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; long entityId_; + long startTime_; std::string regionId_; int pageSize_; + int roleType_; std::string sophonTaskId_; + long endTime_; int currentPage_; + std::string entityUuid_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h index c68a40ee4..e273ec604 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h @@ -74,6 +74,8 @@ namespace AlibabaCloud std::string alertDescCode; std::string startTime; std::string logUuid; + std::string entityList; + std::string subUserName; std::string occurTime; std::string alertDesc; std::string gmtCreate; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h index 3d2686273..4620e8f9f 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h @@ -30,34 +30,64 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEventRequest : public Rpc public: DescribeAlertsWithEventRequest(); ~DescribeAlertsWithEventRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getAlertName() const; + void setAlertName(const std::string &alertName); + std::string getEntityName() const; + void setEntityName(const std::string &entityName); + std::string getAssetName() const; + void setAssetName(const std::string &assetName); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); 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); long getSubUserId() const; void setSubUserId(long subUserId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); 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 getAlertType() const; + void setAlertType(const std::string &alertType); + std::string getAssetId() const; + void setAssetId(const std::string &assetId); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; + std::string alertName_; + std::string entityName_; + std::string assetName_; + std::string entityId_; std::string source_; std::string isDefend_; + long startTime_; long subUserId_; std::string regionId_; int pageSize_; + int roleType_; std::vector level_; + long endTime_; std::string alertTitle_; int currentPage_; + std::string alertType_; + std::string assetId_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h index 15b8c6e79..1adad2c25 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h @@ -74,6 +74,8 @@ namespace AlibabaCloud std::string alertDescCode; std::string startTime; std::string logUuid; + std::string entityList; + std::string subUserName; std::string occurTime; std::string alertDesc; std::string gmtCreate; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineRequest.h deleted file mode 100644 index 65d028918..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINEREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAttackTimeLineRequest : public RpcServiceRequest { -public: - DescribeAttackTimeLineRequest(); - ~DescribeAttackTimeLineRequest(); - std::string getAssetName() const; - void setAssetName(const std::string &assetName); - long getStartTime() const; - void setStartTime(long startTime); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - long getEndTime() const; - void setEndTime(long endTime); - std::string getIncidentUuid() const; - void setIncidentUuid(const std::string &incidentUuid); - -private: - std::string assetName_; - long startTime_; - std::string regionId_; - long endTime_; - std::string incidentUuid_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineResult.h deleted file mode 100644 index 318bc16db..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINERESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAttackTimeLineResult : public ServiceResult - { - public: - struct DataItem - { - std::string cloudCode; - std::string attCk; - std::string alertName; - std::string alertTypeEn; - std::string logTime; - std::string alertSrcProd; - std::string alertSrcProdModule; - std::string alertTypeCode; - std::string assetName; - long alertTime; - std::string alertType; - std::string alertTitle; - std::string alertNameEn; - std::string alertLevel; - std::string assetList; - std::string alertTitleEn; - std::string alertNameCode; - std::string assetId; - std::string incidentUuid; - std::string alertUuid; - }; - - - DescribeAttackTimeLineResult(); - explicit DescribeAttackTimeLineResult(const std::string &payload); - ~DescribeAttackTimeLineResult(); - 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_DESCRIBEATTACKTIMELINERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterRequest.h index b98394aed..dad0389bc 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAutomateResponseConfigCounterReques public: DescribeAutomateResponseConfigCounterRequest(); ~DescribeAutomateResponseConfigCounterRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigFeatureRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigFeatureRequest.h index ac566136d..a28c1d83c 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigFeatureRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigFeatureRequest.h @@ -30,14 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAutomateResponseConfigFeatureReques public: DescribeAutomateResponseConfigFeatureRequest(); ~DescribeAutomateResponseConfigFeatureRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getAutoResponseType() const; void setAutoResponseType(const std::string &autoResponseType); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; std::string autoResponseType_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigPlayBooksRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigPlayBooksRequest.h index 3b665e52e..24a793fe8 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigPlayBooksRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigPlayBooksRequest.h @@ -30,16 +30,22 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAutomateResponseConfigPlayBooksRequ public: DescribeAutomateResponseConfigPlayBooksRequest(); ~DescribeAutomateResponseConfigPlayBooksRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getAutoResponseType() const; void setAutoResponseType(const std::string &autoResponseType); + int getRoleType() const; + void setRoleType(int roleType); std::string getEntityType() const; void setEntityType(const std::string &entityType); private: + long roleFor_; std::string regionId_; std::string autoResponseType_; + int roleType_; std::string entityType_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsCounterRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsCounterRequest.h index 811509d14..dec6765d0 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsCounterRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsCounterRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemAssetsCounterRequest : pub public: DescribeCloudSiemAssetsCounterRequest(); ~DescribeCloudSiemAssetsCounterRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; + int roleType_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsRequest.h index 80983c672..7b3dd416b 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemAssetsRequest.h @@ -30,21 +30,33 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemAssetsRequest : public Rpc public: DescribeCloudSiemAssetsRequest(); ~DescribeCloudSiemAssetsRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getAssetName() const; + void setAssetName(const std::string &assetName); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::string getAssetType() const; void setAssetType(const std::string &assetType); + std::string getAssetUuid() const; + void setAssetUuid(const std::string &assetUuid); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; + std::string assetName_; std::string regionId_; int pageSize_; + int roleType_; std::string assetType_; + std::string assetUuid_; int currentPage_; std::string incidentUuid_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailRequest.h index 8bc92d97b..a645c40de 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemEventDetailRequest : publi public: DescribeCloudSiemEventDetailRequest(); ~DescribeCloudSiemEventDetailRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; + int roleType_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailResult.h index ab332fc43..ca2512526 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailResult.h @@ -34,10 +34,19 @@ namespace AlibabaCloud public: struct Data { + struct AttckStage + { + std::string tacticName; + std::string tacticId; + int alertNum; + }; int status; + std::vector attckStages; std::string description; + std::string incidentType; std::string descriptionEn; float threatScore; + std::string ruleId; std::string gmtModified; int alertNum; int assetNum; @@ -49,6 +58,7 @@ namespace AlibabaCloud std::vector dataSources; std::string threatLevel; std::string incidentNameEn; + std::string referAccount; long aliuid; std::string incidentUuid; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsRequest.h index ac4846589..efa5428fe 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemEventsRequest : public Rpc public: DescribeCloudSiemEventsRequest(); ~DescribeCloudSiemEventsRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); long getStartTime() const; void setStartTime(long startTime); std::string getEventName() const; @@ -38,6 +40,8 @@ public: void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::string getOrderField() const; void setOrderField(const std::string &orderField); std::string getOrder() const; @@ -48,6 +52,8 @@ public: void setCurrentPage(int currentPage); std::vector getThreadLevel() const; void setThreadLevel(const std::vector &threadLevel); + std::string getEntityUuid() const; + void setEntityUuid(const std::string &entityUuid); std::string getAssetId() const; void setAssetId(const std::string &assetId); std::string getIncidentUuid() const; @@ -56,15 +62,18 @@ public: void setStatus(int status); private: + long roleFor_; long startTime_; std::string eventName_; std::string regionId_; int pageSize_; + int roleType_; std::string orderField_; std::string order_; long endTime_; int currentPage_; std::vector threadLevel_; + std::string entityUuid_; std::string assetId_; std::string incidentUuid_; int status_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsResult.h index d1be1a01d..df7ff9630 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsResult.h @@ -42,10 +42,19 @@ namespace AlibabaCloud }; struct ResponseDataItem { + struct AttckStage + { + std::string tacticName; + std::string tacticId; + int alertNum; + }; int status; + std::vector attckStages; std::string description; + std::string incidentType; std::string descriptionEn; float threatScore; + std::string ruleId; std::string gmtModified; int alertNum; int assetNum; @@ -57,6 +66,7 @@ namespace AlibabaCloud std::vector dataSources; std::string threatLevel; std::string incidentNameEn; + std::string referAccount; long aliuid; std::string incidentUuid; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h deleted file mode 100644 index baa007343..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 07313a3e1..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeCustomizeRuleCountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountRequest.h index 50bbeb517..2184a2659 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleCountRequest : public public: DescribeCustomizeRuleCountRequest(); ~DescribeCustomizeRuleCountRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountResult.h index 89012fe10..d0a8bc5df 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountResult.h @@ -34,10 +34,18 @@ namespace AlibabaCloud public: struct Data { + int customizeRuleNum; int inUseRuleNum; int highRuleNum; + int unEventRuleNum; + int expertRuleNum; int mediumRuleNum; + int graphComputingRuleNum; + int totalRuleNum; int lowRuleNum; + int predefinedRuleNum; + int aggregationRuleNum; + int singleAlertRuleNum; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleRequest.h deleted file mode 100644 index 34cef5812..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECUSTOMIZERULEREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECUSTOMIZERULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleRequest : public RpcServiceRequest { -public: - DescribeCustomizeRuleRequest(); - ~DescribeCustomizeRuleRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - long getRuleId() const; - void setRuleId(long ruleId); - -private: - std::string regionId_; - long ruleId_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECUSTOMIZERULEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleResult.h deleted file mode 100644 index ec07d201b..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECUSTOMIZERULERESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECUSTOMIZERULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleResult : public ServiceResult - { - public: - struct Data - { - int status; - int eventTransferSwitch; - std::string ruleCondition; - std::string gmtModified; - std::string logType; - std::string ruleType; - std::string ruleGroup; - std::string logTypeMds; - std::string alertType; - std::string eventTransferExt; - std::string gmtCreate; - std::string threatLevel; - std::string logSourceMds; - std::string logSource; - std::string alertTypeMds; - std::string eventTransferType; - std::string ruleDesc; - long id; - long aliuid; - std::string queryCycle; - std::string ruleName; - std::string ruleThreshold; - }; - - - DescribeCustomizeRuleResult(); - explicit DescribeCustomizeRuleResult(const std::string &payload); - ~DescribeCustomizeRuleResult(); - 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_DESCRIBECUSTOMIZERULERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestHistogramRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestHistogramRequest.h index 7df5dc6b3..947153148 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestHistogramRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestHistogramRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleTestHistogramRequest : public: DescribeCustomizeRuleTestHistogramRequest(); ~DescribeCustomizeRuleTestHistogramRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); private: + long roleFor_; std::string regionId_; + int roleType_; long id_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestRequest.h index 949bcb02b..d400e4d18 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleTestRequest : public R public: DescribeCustomizeRuleTestRequest(); ~DescribeCustomizeRuleTestRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); private: + long roleFor_; std::string regionId_; + int roleType_; long id_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookRequest.h index fbddd5f50..77f85e9b5 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookRequest.h @@ -30,22 +30,31 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDisposeAndPlaybookRequest : public public: DescribeDisposeAndPlaybookRequest(); ~DescribeDisposeAndPlaybookRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getEntityType() const; void setEntityType(const std::string &entityType); + std::string getEntityUuid() const; + void setEntityUuid(const std::string &entityUuid); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; int pageSize_; + int roleType_; int currentPage_; std::string entityType_; + std::string entityUuid_; std::string incidentUuid_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookResult.h index c21aef0ea..a5b480fb2 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeAndPlaybookResult.h @@ -45,14 +45,18 @@ namespace AlibabaCloud struct PlaybookListItem { std::string description; + std::string uuid; bool wafPlaybook; std::string opCode; std::string displayName; std::string opLevel; std::string taskConfig; + std::string available; + std::vector paramConfig; std::string name; }; long entityId; + std::string entityType; std::vector opcodeSet; std::string dispose; std::vector scope; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeStrategyPlaybookRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeStrategyPlaybookRequest.h index f465c5835..601d2d3b0 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeStrategyPlaybookRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeDisposeStrategyPlaybookRequest.h @@ -30,16 +30,22 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDisposeStrategyPlaybookRequest : pu public: DescribeDisposeStrategyPlaybookRequest(); ~DescribeDisposeStrategyPlaybookRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); long getStartTime() const; void setStartTime(long startTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getEndTime() const; void setEndTime(long endTime); private: + long roleFor_; long startTime_; std::string regionId_; + int roleType_; long endTime_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEntityInfoRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEntityInfoRequest.h index 1d0744bd9..1415bc0b4 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEntityInfoRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEntityInfoRequest.h @@ -32,10 +32,14 @@ public: ~DescribeEntityInfoRequest(); std::string getEntityIdentity() const; void setEntityIdentity(const std::string &entityIdentity); + long getRoleFor() const; + void setRoleFor(long roleFor); long getEntityId() const; void setEntityId(long entityId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getSophonTaskId() const; void setSophonTaskId(const std::string &sophonTaskId); std::string getIncidentUuid() const; @@ -43,8 +47,10 @@ public: private: std::string entityIdentity_; + long roleFor_; long entityId_; std::string regionId_; + int roleType_; std::string sophonTaskId_; std::string incidentUuid_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventCountByThreatLevelRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventCountByThreatLevelRequest.h index 1313d9614..5b480f2fe 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventCountByThreatLevelRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventCountByThreatLevelRequest.h @@ -30,11 +30,23 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeEventCountByThreatLevelRequest : pu public: DescribeEventCountByThreatLevelRequest(); ~DescribeEventCountByThreatLevelRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + long getStartTime() const; + void setStartTime(long startTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); + long getEndTime() const; + void setEndTime(long endTime); private: + long roleFor_; + long startTime_; std::string regionId_; + int roleType_; + long endTime_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventDisposeRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventDisposeRequest.h index 280128558..225e784ac 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventDisposeRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeEventDisposeRequest.h @@ -30,18 +30,24 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeEventDisposeRequest : public RpcSer public: DescribeEventDisposeRequest(); ~DescribeEventDisposeRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; int pageSize_; + int roleType_; int currentPage_; std::string incidentUuid_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h index c378a6e77..49839fdd6 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeImportedLogCountRequest : public Rp public: DescribeImportedLogCountRequest(); ~DescribeImportedLogCountRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); private: + std::string roleFor_; std::string regionId_; + std::string roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeJobStatusRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeJobStatusRequest.h deleted file mode 100644 index 14ff979c4..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeJobStatusRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeJobStatusRequest : public RpcServiceRequest { -public: - DescribeJobStatusRequest(); - ~DescribeJobStatusRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSubmitId() const; - void setSubmitId(const std::string &submitId); - -private: - std::string regionId_; - std::string submitId_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeJobStatusResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeJobStatusResult.h deleted file mode 100644 index 0663ab6a7..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeJobStatusResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeJobStatusResult : public ServiceResult - { - public: - struct Data - { - struct ErrTaskListItem - { - struct ProductListItem - { - struct LogListItem - { - std::string projectNamePattern; - std::string regionCode; - std::string logStoreNamePattern; - std::string productCode; - std::string errorCode; - std::string logCode; - }; - std::vector logList; - std::string productCode; - }; - std::vector productList; - long userId; - }; - int taskCount; - int finishCount; - int failedCount; - std::string configId; - std::string folderId; - std::string taskStatus; - std::vector errTaskList; - }; - - - DescribeJobStatusResult(); - explicit DescribeJobStatusResult(const std::string &payload); - ~DescribeJobStatusResult(); - std::string getMessage()const; - Data getData()const; - int getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - Data data_; - int code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogFieldsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogFieldsRequest.h index efa0d05e2..1d87dace5 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogFieldsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogFieldsRequest.h @@ -30,16 +30,22 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeLogFieldsRequest : public RpcServic public: DescribeLogFieldsRequest(); ~DescribeLogFieldsRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getLogType() const; void setLogType(const std::string &logType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getLogSource() const; void setLogSource(const std::string &logSource); private: + long roleFor_; std::string logType_; std::string regionId_; + int roleType_; std::string logSource_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogSourceRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogSourceRequest.h index 0fe6568e0..2bb87e017 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogSourceRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogSourceRequest.h @@ -30,14 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeLogSourceRequest : public RpcServic public: DescribeLogSourceRequest(); ~DescribeLogSourceRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getLogType() const; void setLogType(const std::string &logType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string logType_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreRequest.h deleted file mode 100644 index 7228a8ae6..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBELOGSTOREREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBELOGSTOREREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeLogStoreRequest : public RpcServiceRequest { -public: - DescribeLogStoreRequest(); - ~DescribeLogStoreRequest(); - 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_DESCRIBELOGSTOREREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h deleted file mode 100644 index 079f475f7..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBELOGSTORERESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBELOGSTORERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeLogStoreResult : public ServiceResult - { - public: - struct Data - { - std::string logStoreName; - bool appendMeta; - int maxSplitShard; - bool autoSplit; - bool enableTracking; - int ttl; - int shardCount; - }; - - - DescribeLogStoreResult(); - explicit DescribeLogStoreResult(const std::string &payload); - ~DescribeLogStoreResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBELOGSTORERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogTypeRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogTypeRequest.h index 790252f40..6b965b96b 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogTypeRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeLogTypeRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeLogTypeRequest : public RpcServiceR public: DescribeLogTypeRequest(); ~DescribeLogTypeRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h index 630ea066d..756adb1f7 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h @@ -30,14 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeOperatorsRequest : public RpcServic public: DescribeOperatorsRequest(); ~DescribeOperatorsRequest(); - std::string getSceneType() const; - void setSceneType(const std::string &sceneType); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); + std::string getSceneType() const; + void setSceneType(const std::string &sceneType); private: - std::string sceneType_; + long roleFor_; std::string regionId_; + int roleType_; + std::string sceneType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h index 1565fe88b..7a0179058 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeProdCountRequest : public RpcServic public: DescribeProdCountRequest(); ~DescribeProdCountRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h index 3ea29bd65..c081a0b95 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeProdCountResult.h @@ -35,7 +35,12 @@ namespace AlibabaCloud struct Data { int aliyunProdCount; + int aliyunImportedCount; + int hcloudImportedCount; int hcloudProdCount; + int idcProdCount; + int qcloudImportedCount; + int idcImportedCount; int qcloudProdCount; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersRequest.h index 73c34f428..a4432a7e2 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeScopeUsersRequest : public RpcServi public: DescribeScopeUsersRequest(); ~DescribeScopeUsersRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersResult.h index 2babbf8dd..bb4e6eaca 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeScopeUsersResult.h @@ -35,8 +35,10 @@ namespace AlibabaCloud struct DataItem { std::vector domains; + std::string cloudCode; std::string userName; std::string instanceId; + std::string userId; long aliUid; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageRequest.h index 6f14bdd47..d7b07e4f8 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeStorageRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeStorageRequest : public RpcServiceR public: DescribeStorageRequest(); ~DescribeStorageRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h index 8f7ac09c9..76e1d8b2f 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeUserBuyStatusResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud long masterUserId; long durationDays; std::string mainUserName; + int rdOrder; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWafScopeRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWafScopeRequest.h index a5421d542..5bce57dd6 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWafScopeRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWafScopeRequest.h @@ -30,14 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeWafScopeRequest : public RpcService public: DescribeWafScopeRequest(); ~DescribeWafScopeRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); long getEntityId() const; void setEntityId(long entityId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; long entityId_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h index 56355f137..cffab93ec 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h @@ -30,12 +30,16 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeWhiteRuleListRequest : public RpcSe public: DescribeWhiteRuleListRequest(); ~DescribeWhiteRuleListRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); 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 getRoleType() const; + void setRoleType(int roleType); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getAlertType() const; @@ -44,9 +48,11 @@ public: void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string alertName_; std::string regionId_; int pageSize_; + int roleType_; int currentPage_; std::string alertType_; std::string incidentUuid_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldRequest.h deleted file mode 100644 index cb12ad522..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DOQUICKFIELDREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DOQUICKFIELDREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DoQuickFieldRequest : public RpcServiceRequest { -public: - DoQuickFieldRequest(); - ~DoQuickFieldRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getFrom() const; - void setFrom(int from); - std::string getIndex() const; - void setIndex(const std::string &index); - bool getReverse() const; - void setReverse(bool reverse); - int getSize() const; - void setSize(int size); - int getTo() const; - void setTo(int to); - int getPage() const; - void setPage(int page); - -private: - std::string regionId_; - int from_; - std::string index_; - bool reverse_; - int size_; - int to_; - int page_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DOQUICKFIELDREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h deleted file mode 100644 index 4446ef55e..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DOQUICKFIELDRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DOQUICKFIELDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DoQuickFieldResult : public ServiceResult - { - public: - struct Data - { - std::string whereQuery; - long processedRows; - bool completeOrNot; - int queryMode; - std::string pQuery; - std::vector keys; - std::string aggQueryd; - int count; - std::vector logs; - long limited; - bool hasSQL; - }; - - - DoQuickFieldResult(); - explicit DoQuickFieldResult(const std::string &payload); - ~DoQuickFieldResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DOQUICKFIELDRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateRequest.h deleted file mode 100644 index bc29bb7d3..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DOSELFDELEGATEREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DOSELFDELEGATEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT DoSelfDelegateRequest : public RpcServiceRequest { -public: - DoSelfDelegateRequest(); - ~DoSelfDelegateRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - long getAliUid() const; - void setAliUid(long aliUid); - int getDelegateOrNot() const; - void setDelegateOrNot(int delegateOrNot); - -private: - std::string regionId_; - long aliUid_; - int delegateOrNot_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DOSELFDELEGATEREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h deleted file mode 100644 index 9dc8e49ee..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DOSELFDELEGATERESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DOSELFDELEGATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT DoSelfDelegateResult : public ServiceResult - { - public: - - - DoSelfDelegateResult(); - explicit DoSelfDelegateResult(const std::string &payload); - ~DoSelfDelegateResult(); - bool getData()const; - - protected: - void parse(const std::string &payload); - private: - bool data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DOSELFDELEGATERESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h index a63c62818..e7a505da7 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h @@ -30,11 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT EnableAccessForCloudSiemRequest : public Rp public: EnableAccessForCloudSiemRequest(); ~EnableAccessForCloudSiemRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + int getAutoSubmit() const; + void setAutoSubmit(int autoSubmit); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; + int autoSubmit_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityRequest.h index b9ed4bcfc..eb1f0781e 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/GetCapacityRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetCapacityRequest : public RpcServiceReque public: GetCapacityRequest(); ~GetCapacityRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsRequest.h deleted file mode 100644 index f88d2fe7f..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_GETHISTOGRAMSREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_GETHISTOGRAMSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetHistogramsRequest : public RpcServiceRequest { -public: - GetHistogramsRequest(); - ~GetHistogramsRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getFrom() const; - void setFrom(int from); - std::string getQuery() const; - void setQuery(const std::string &query); - int getTo() const; - void setTo(int to); - -private: - std::string regionId_; - int from_; - std::string query_; - int to_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_GETHISTOGRAMSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h deleted file mode 100644 index 141eb12d8..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetHistogramsResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_GETHISTOGRAMSRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_GETHISTOGRAMSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetHistogramsResult : public ServiceResult - { - public: - struct Data - { - struct Histogram - { - int from; - int to; - long count; - bool completedOrNot; - }; - std::vector histograms; - long totalCount; - std::string server; - }; - - - GetHistogramsResult(); - explicit GetHistogramsResult(const std::string &payload); - ~GetHistogramsResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_GETHISTOGRAMSRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetLogsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetLogsRequest.h deleted file mode 100644 index 62066abcf..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetLogsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_GETLOGSREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_GETLOGSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetLogsRequest : public RpcServiceRequest { -public: - GetLogsRequest(); - ~GetLogsRequest(); - long getTotal() const; - void setTotal(long total); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - int getFrom() const; - void setFrom(int from); - int getPageIndex() const; - void setPageIndex(int pageIndex); - bool getReverseOrNot() const; - void setReverseOrNot(bool reverseOrNot); - std::string getQuery() const; - void setQuery(const std::string &query); - int getTo() const; - void setTo(int to); - -private: - long total_; - std::string regionId_; - int pageSize_; - int from_; - int pageIndex_; - bool reverseOrNot_; - std::string query_; - int to_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_GETLOGSREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryRequest.h deleted file mode 100644 index ced968727..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_GETQUICKQUERYREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_GETQUICKQUERYREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetQuickQueryRequest : public RpcServiceRequest { -public: - GetQuickQueryRequest(); - ~GetQuickQueryRequest(); - std::string getSearchName() const; - void setSearchName(const std::string &searchName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string searchName_; - std::string regionId_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_GETQUICKQUERYREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h deleted file mode 100644 index 169577c73..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_GETQUICKQUERYRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_GETQUICKQUERYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetQuickQueryResult : public ServiceResult - { - public: - - - GetQuickQueryResult(); - explicit GetQuickQueryResult(const std::string &payload); - ~GetQuickQueryResult(); - std::string getData()const; - - protected: - void parse(const std::string &payload); - private: - std::string data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_GETQUICKQUERYRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageRequest.h index 072d0cbe2..19c0fc2f9 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/GetStorageRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetStorageRequest : public RpcServiceReques public: GetStorageRequest(); ~GetStorageRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h index da02a5ba2..212a33832 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h @@ -32,12 +32,18 @@ public: ~ListAccountAccessIdRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: std::string cloudCode_; + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h index 5f3d9ea9c..d7890a6e8 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAccountsByLogRequest.h @@ -32,8 +32,12 @@ public: ~ListAccountsByLogRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::vector getLogCodes() const; void setLogCodes(const std::vector &logCodes); std::string getProdCode() const; @@ -41,7 +45,9 @@ public: private: std::string cloudCode_; + long roleFor_; std::string regionId_; + int roleType_; std::vector logCodes_; std::string prodCode_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h index 66958056e..8b2b697fc 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAllProdsRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListAllProdsRequest : public RpcServiceRequ public: ListAllProdsRequest(); ~ListAllProdsRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsRequest.h index 8cdb2e5f9..f2ce828af 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsRequest.h @@ -32,6 +32,8 @@ public: ~ListAutomateResponseConfigsRequest(); std::string getActionType() const; void setActionType(const std::string &actionType); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRuleName() const; void setRuleName(const std::string &ruleName); long getSubUserId() const; @@ -42,6 +44,8 @@ public: void setPageSize(int pageSize); std::string getAutoResponseType() const; void setAutoResponseType(const std::string &autoResponseType); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); int getCurrentPage() const; @@ -53,11 +57,13 @@ public: private: std::string actionType_; + long roleFor_; std::string ruleName_; long subUserId_; std::string regionId_; int pageSize_; std::string autoResponseType_; + int roleType_; long id_; int currentPage_; std::string playbookUuid_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsResult.h index cb9b33f1a..f83c379c1 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListAutomateResponseConfigsResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud std::string actionType; std::string executionCondition; std::string gmtModified; + int dataType; long subUserId; long id; long aliuid; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h index c06e91c89..63c6d9f12 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListBindAccountRequest.h @@ -32,12 +32,18 @@ public: ~ListBindAccountRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: std::string cloudCode_; + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesRequest.h index 527416f89..41a90855d 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListCloudSiemCustomizeRulesRequest : public public: ListCloudSiemCustomizeRulesRequest(); ~ListCloudSiemCustomizeRulesRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRuleName() const; void setRuleName(const std::string &ruleName); long getStartTime() const; @@ -38,8 +40,14 @@ public: void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::string getId() const; void setId(const std::string &id); + std::string getOrderField() const; + void setOrderField(const std::string &orderField); + std::string getOrder() const; + void setOrder(const std::string &order); std::string getRuleType() const; void setRuleType(const std::string &ruleType); long getEndTime() const; @@ -54,11 +62,15 @@ public: void setStatus(int status); private: + long roleFor_; std::string ruleName_; long startTime_; std::string regionId_; int pageSize_; + int roleType_; std::string id_; + std::string orderField_; + std::string order_; std::string ruleType_; long endTime_; int currentPage_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesResult.h index cc86f7fe8..9ecc8d733 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemCustomizeRulesResult.h @@ -44,6 +44,7 @@ namespace AlibabaCloud { int status; int eventTransferSwitch; + std::string attCk; std::string ruleCondition; std::string gmtModified; std::string logType; @@ -59,6 +60,7 @@ namespace AlibabaCloud std::string alertTypeMds; std::string eventTransferType; std::string ruleDesc; + int dataType; long id; long aliuid; std::string queryCycle; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesRequest.h index ce4df3a94..00ef6db63 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesRequest.h @@ -30,6 +30,10 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListCloudSiemPredefinedRulesRequest : publi public: ListCloudSiemPredefinedRulesRequest(); ~ListCloudSiemPredefinedRulesRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getAttCk() const; + void setAttCk(const std::string &attCk); std::string getRuleName() const; void setRuleName(const std::string &ruleName); long getStartTime() const; @@ -38,31 +42,48 @@ public: void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::string getId() const; void setId(const std::string &id); + std::string getOrderField() const; + void setOrderField(const std::string &orderField); + std::string getOrder() const; + void setOrder(const std::string &order); std::string getRuleType() const; void setRuleType(const std::string &ruleType); long getEndTime() const; void setEndTime(long endTime); int getCurrentPage() const; void setCurrentPage(int currentPage); + std::string getLogSource() const; + void setLogSource(const std::string &logSource); std::string getAlertType() const; void setAlertType(const std::string &alertType); + std::string getEventTransferType() const; + void setEventTransferType(const std::string &eventTransferType); std::vector getThreatLevel() const; void setThreatLevel(const std::vector &threatLevel); int getStatus() const; void setStatus(int status); private: + long roleFor_; + std::string attCk_; std::string ruleName_; long startTime_; std::string regionId_; int pageSize_; + int roleType_; std::string id_; + std::string orderField_; + std::string order_; std::string ruleType_; long endTime_; int currentPage_; + std::string logSource_; std::string alertType_; + std::string eventTransferType_; std::vector threatLevel_; int status_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesResult.h index e660ea661..5ebbfb70a 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCloudSiemPredefinedRulesResult.h @@ -43,15 +43,19 @@ namespace AlibabaCloud struct ResponseDataItem { int status; + std::string attCk; + std::string ruleDescMds; + std::string gmtModified; + std::string source; std::string alertType; std::string gmtCreate; - std::string ruleDescMds; std::string threatLevel; + std::string ruleNameEn; + std::string eventTransferType; + std::string ruleNameCn; std::string ruleNameMds; - std::string gmtModified; long id; std::string ruleName; - std::string source; }; PageInfo pageInfo; std::vector responseData; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultRequest.h index 3610cfc7e..6db3dfddd 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultRequest.h @@ -30,20 +30,38 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListCustomizeRuleTestResultRequest : public public: ListCustomizeRuleTestResultRequest(); ~ListCustomizeRuleTestResultRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + long getStartTime() const; + void setStartTime(long startTime); + std::string getVerifyType() const; + void setVerifyType(const std::string &verifyType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); + long getEndTime() const; + void setEndTime(long endTime); int getCurrentPage() const; void setCurrentPage(int currentPage); + std::string getDetectionRuleId() const; + void setDetectionRuleId(const std::string &detectionRuleId); private: + long roleFor_; + long startTime_; + std::string verifyType_; std::string regionId_; int pageSize_; + int roleType_; long id_; + long endTime_; int currentPage_; + std::string detectionRuleId_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultResult.h index 618865fa4..5506dec66 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListCustomizeRuleTestResultResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud long totalCount; int pageSize; int currentPage; + long verifiedCount; }; struct ResponseDataItem { @@ -52,6 +53,7 @@ namespace AlibabaCloud std::string onlineStatus; std::string subUserId; std::string eventName; + std::string verifyType; std::string alertDesc; std::string uuid; std::string logSource; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDeliveryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDeliveryRequest.h index 8a3b74e5a..e5fd14779 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDeliveryRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDeliveryRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListDeliveryRequest : public RpcServiceRequ public: ListDeliveryRequest(); ~ListDeliveryRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyRequest.h index 96bb64394..170dc9729 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyRequest.h @@ -36,12 +36,16 @@ public: void setPlaybookName(const std::string &playbookName); std::string getPlaybookTypes() const; void setPlaybookTypes(const std::string &playbookTypes); + long getRoleFor() const; + void setRoleFor(long roleFor); long getStartTime() const; void setStartTime(long startTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); std::string getOrderField() const; void setOrderField(const std::string &orderField); std::string getOrder() const; @@ -58,14 +62,18 @@ public: void setPlaybookUuid(const std::string &playbookUuid); std::string getEntityType() const; void setEntityType(const std::string &entityType); + std::string getIncidentUuid() const; + void setIncidentUuid(const std::string &incidentUuid); private: std::string entityIdentity_; std::string playbookName_; std::string playbookTypes_; + long roleFor_; long startTime_; std::string regionId_; int pageSize_; + int roleType_; std::string orderField_; std::string order_; std::string sophonTaskId_; @@ -74,6 +82,7 @@ private: int currentPage_; std::string playbookUuid_; std::string entityType_; + std::string incidentUuid_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyResult.h index 2e3f3a03c..d62e60b85 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListDisposeStrategyResult.h @@ -52,6 +52,7 @@ namespace AlibabaCloud int effectiveStatus; std::string incidentName; std::string gmtCreate; + std::string taskUrl; std::string finishTime; std::vector scope; std::string taskParam; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListEntitiesRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListEntitiesRequest.h new file mode 100644 index 000000000..676cc4fba --- /dev/null +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListEntitiesRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTENTITIESREQUEST_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTENTITIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloud_siem { +namespace Model { +class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListEntitiesRequest : public RpcServiceRequest { +public: + ListEntitiesRequest(); + ~ListEntitiesRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getMalwareType() const; + void setMalwareType(const std::string &malwareType); + std::string getEntityName() const; + void setEntityName(const std::string &entityName); + std::string getAssetName() const; + void setAssetName(const std::string &assetName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + int getRoleType() const; + void setRoleType(int roleType); + std::string getAssetUuid() const; + void setAssetUuid(const std::string &assetUuid); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getIsMalwareEntity() const; + void setIsMalwareEntity(const std::string &isMalwareEntity); + std::string getEntityType() const; + void setEntityType(const std::string &entityType); + std::string getEntityUuid() const; + void setEntityUuid(const std::string &entityUuid); + std::string getIncidentUuid() const; + void setIncidentUuid(const std::string &incidentUuid); + std::string getIsAsset() const; + void setIsAsset(const std::string &isAsset); + +private: + long roleFor_; + std::string malwareType_; + std::string entityName_; + std::string assetName_; + std::string regionId_; + int pageSize_; + int roleType_; + std::string assetUuid_; + int currentPage_; + std::string isMalwareEntity_; + std::string entityType_; + std::string entityUuid_; + std::string incidentUuid_; + std::string isAsset_; +}; +} // namespace Model +} // namespace Cloud_siem +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTENTITIESREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/GetLogsResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListEntitiesResult.h similarity index 59% rename from cloud-siem/include/alibabacloud/cloud-siem/model/GetLogsResult.h rename to cloud-siem/include/alibabacloud/cloud-siem/model/ListEntitiesResult.h index fae06acc6..7406715eb 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/GetLogsResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListEntitiesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_GETLOGSRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_GETLOGSRESULT_H_ +#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTENTITIESRESULT_H_ +#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTENTITIESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT GetLogsResult : public ServiceResult + class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListEntitiesResult : public ServiceResult { public: struct Data @@ -40,23 +40,33 @@ namespace AlibabaCloud int pageSize; int currentPage; }; - struct ResponseData + struct ResponseDataItem { - bool completeOrNot; - std::vector keys; - int count; - long cost; - bool hasSql; - std::vector lines; + int eventNum; + std::string cloudCode; + std::string entityName; + std::string gmtModified; + int alertNum; + long subUserId; + std::string malwareType; + std::string entityType; + std::string entityId; + std::string gmtCreate; + std::string entityUuid; + std::string entityInfo; + long id; + long aliuid; + std::string incidentUuid; + std::string alertUuid; }; PageInfo pageInfo; - ResponseData responseData; + std::vector responseData; }; - GetLogsResult(); - explicit GetLogsResult(const std::string &payload); - ~GetLogsResult(); + ListEntitiesResult(); + explicit ListEntitiesResult(const std::string &payload); + ~ListEntitiesResult(); std::string getMessage()const; Data getData()const; int getCode()const; @@ -74,4 +84,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_GETLOGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTENTITIESRESULT_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 index 1523a25ad..bab0ee3eb 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h @@ -32,14 +32,20 @@ public: ~ListImportedLogsByProdRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getProdCode() const; void setProdCode(const std::string &prodCode); private: std::string cloudCode_; + long roleFor_; std::string regionId_; + int roleType_; std::string prodCode_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h index 27f527314..cd57734aa 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string modifyTime; std::string cloudCode; int autoImported; + int logType; int importedUserCount; int imported; int totalUserCount; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationRequest.h deleted file mode 100644 index ebc7e9f37..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTOPERATIONREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTOPERATIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListOperationRequest : public RpcServiceRequest { -public: - ListOperationRequest(); - ~ListOperationRequest(); - 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_LISTOPERATIONREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h deleted file mode 100644 index 873089d8b..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListOperationResult.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTOPERATIONRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTOPERATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListOperationResult : public ServiceResult - { - public: - struct Data - { - std::vector operationList; - bool adminOrNot; - }; - - - ListOperationResult(); - explicit ListOperationResult(const std::string &payload); - ~ListOperationResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTOPERATIONRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryRequest.h deleted file mode 100644 index a513d51bb..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTQUICKQUERYREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTQUICKQUERYREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListQuickQueryRequest : public RpcServiceRequest { -public: - ListQuickQueryRequest(); - ~ListQuickQueryRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - int getOffset() const; - void setOffset(int offset); - -private: - std::string regionId_; - int pageSize_; - int offset_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTQUICKQUERYREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h deleted file mode 100644 index 606b1b21e..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTQUICKQUERYRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTQUICKQUERYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT ListQuickQueryResult : public ServiceResult - { - public: - struct Data - { - struct QuickQueryListItem - { - std::string query; - std::string searchName; - std::string displayName; - }; - std::vector quickQueryList; - int total; - int count; - }; - - - ListQuickQueryResult(); - explicit ListQuickQueryResult(const std::string &payload); - ~ListQuickQueryResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_LISTQUICKQUERYRESULT_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 deleted file mode 100644 index ba82ab050..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 6f537efe1..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 65ebabba8..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index b3c472cc8..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ListUsersByProdResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 index 0a1eb070e..89d53fa00 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h @@ -32,12 +32,16 @@ public: ~ModifyBindAccountRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); 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); + int getRoleType() const; + void setRoleType(int roleType); long getBindId() const; void setBindId(long bindId); std::string getAccessId() const; @@ -45,9 +49,11 @@ public: private: std::string cloudCode_; + long roleFor_; std::string accountId_; std::string accountName_; std::string regionId_; + int roleType_; long bindId_; std::string accessId_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryRequest.h index e32d4b2fd..451d3f403 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/OpenDeliveryRequest.h @@ -32,15 +32,21 @@ public: ~OpenDeliveryRequest(); std::string getProductCode() const; void setProductCode(const std::string &productCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getLogCode() const; void setLogCode(const std::string &logCode); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: std::string productCode_; + long roleFor_; std::string logCode_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostAutomateResponseConfigRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostAutomateResponseConfigRequest.h index d210be695..27cc3fb1b 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostAutomateResponseConfigRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostAutomateResponseConfigRequest.h @@ -32,6 +32,8 @@ public: ~PostAutomateResponseConfigRequest(); std::string getActionType() const; void setActionType(const std::string &actionType); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRuleName() const; void setRuleName(const std::string &ruleName); std::string getExecutionCondition() const; @@ -44,17 +46,21 @@ public: void setRegionId(const std::string ®ionId); std::string getAutoResponseType() const; void setAutoResponseType(const std::string &autoResponseType); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); private: std::string actionType_; + long roleFor_; std::string ruleName_; std::string executionCondition_; std::string actionConfig_; long subUserId_; std::string regionId_; std::string autoResponseType_; + int roleType_; long id_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleRequest.h index b8087bb03..8d8fb5c3d 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleRequest.h @@ -30,6 +30,10 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT PostCustomizeRuleRequest : public RpcServic public: PostCustomizeRuleRequest(); ~PostCustomizeRuleRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getAttCk() const; + void setAttCk(const std::string &attCk); std::string getRuleDesc() const; void setRuleDesc(const std::string &ruleDesc); std::string getRuleName() const; @@ -46,6 +50,8 @@ public: void setRegionId(const std::string ®ionId); std::string getLogTypeMds() const; void setLogTypeMds(const std::string &logTypeMds); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); int getEventTransferSwitch() const; @@ -68,6 +74,8 @@ public: void setRuleGroup(const std::string &ruleGroup); private: + long roleFor_; + std::string attCk_; std::string ruleDesc_; std::string ruleName_; std::string alertTypeMds_; @@ -76,6 +84,7 @@ private: std::string logType_; std::string regionId_; std::string logTypeMds_; + int roleType_; long id_; int eventTransferSwitch_; std::string queryCycle_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleResult.h index 4756c1392..c920f77cd 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleResult.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { int status; int eventTransferSwitch; + std::string attCk; std::string ruleCondition; std::string gmtModified; std::string logType; @@ -51,6 +52,7 @@ namespace AlibabaCloud std::string alertTypeMds; std::string eventTransferType; std::string ruleDesc; + int dataType; long id; long aliuid; std::string queryCycle; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleTestRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleTestRequest.h index 435cef92c..4356eb550 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleTestRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostCustomizeRuleTestRequest.h @@ -30,8 +30,12 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT PostCustomizeRuleTestRequest : public RpcSe public: PostCustomizeRuleTestRequest(); ~PostCustomizeRuleTestRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); std::string getSimulatedData() const; @@ -40,7 +44,9 @@ public: void setTestType(const std::string &testType); private: + long roleFor_; std::string regionId_; + int roleType_; long id_; std::string simulatedData_; std::string testType_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventDisposeAndWhiteruleListRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventDisposeAndWhiteruleListRequest.h index f4bd516f4..31a45fdc1 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventDisposeAndWhiteruleListRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventDisposeAndWhiteruleListRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT PostEventDisposeAndWhiteruleListRequest : p public: PostEventDisposeAndWhiteruleListRequest(); ~PostEventDisposeAndWhiteruleListRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRemark() const; void setRemark(const std::string &remark); std::string getEventDispose() const; @@ -38,16 +40,23 @@ public: void setReceiverInfo(const std::string &receiverInfo); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); + std::string getThreatLevel() const; + void setThreatLevel(const std::string &threatLevel); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); int getStatus() const; void setStatus(int status); private: + long roleFor_; std::string remark_; std::string eventDispose_; std::string receiverInfo_; std::string regionId_; + int roleType_; + std::string threatLevel_; std::string incidentUuid_; int status_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventWhiteruleListRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventWhiteruleListRequest.h index 67116fd61..5f7a26ae0 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventWhiteruleListRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostEventWhiteruleListRequest.h @@ -30,15 +30,21 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT PostEventWhiteruleListRequest : public RpcS public: PostEventWhiteruleListRequest(); ~PostEventWhiteruleListRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getWhiteruleList() const; void setWhiteruleList(const std::string &whiteruleList); std::string getIncidentUuid() const; void setIncidentUuid(const std::string &incidentUuid); private: + long roleFor_; std::string regionId_; + int roleType_; std::string whiteruleList_; std::string incidentUuid_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostFinishCustomizeRuleTestRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostFinishCustomizeRuleTestRequest.h index 13b44d70f..5059a24e2 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostFinishCustomizeRuleTestRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostFinishCustomizeRuleTestRequest.h @@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT PostFinishCustomizeRuleTestRequest : public public: PostFinishCustomizeRuleTestRequest(); ~PostFinishCustomizeRuleTestRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); long getId() const; void setId(long id); private: + long roleFor_; std::string regionId_; + int roleType_; long id_; }; } // namespace Model diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/PostRuleStatusChangeRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/PostRuleStatusChangeRequest.h index 5b32c1968..6b200e23f 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/PostRuleStatusChangeRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/PostRuleStatusChangeRequest.h @@ -30,8 +30,12 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT PostRuleStatusChangeRequest : public RpcSer public: PostRuleStatusChangeRequest(); ~PostRuleStatusChangeRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getRuleType() const; void setRuleType(const std::string &ruleType); std::string getIds() const; @@ -40,7 +44,9 @@ public: void setInUse(bool inUse); private: + long roleFor_; std::string regionId_; + int roleType_; std::string ruleType_; std::string ids_; bool inUse_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityRequest.h index 7fb609941..ce49b62bc 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/RestoreCapacityRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT RestoreCapacityRequest : public RpcServiceR public: RestoreCapacityRequest(); ~RestoreCapacityRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); private: + long roleFor_; std::string regionId_; + int roleType_; }; } // namespace Model } // namespace Cloud_siem diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryRequest.h deleted file mode 100644 index d252a657b..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_SAVEQUICKQUERYREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SAVEQUICKQUERYREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT SaveQuickQueryRequest : public RpcServiceRequest { -public: - SaveQuickQueryRequest(); - ~SaveQuickQueryRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getQuery() const; - void setQuery(const std::string &query); - std::string getDisplayName() const; - void setDisplayName(const std::string &displayName); - -private: - std::string regionId_; - std::string query_; - std::string displayName_; -}; -} // namespace Model -} // namespace Cloud_siem -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SAVEQUICKQUERYREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h deleted file mode 100644 index e562fe03b..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_SAVEQUICKQUERYRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SAVEQUICKQUERYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT SaveQuickQueryResult : public ServiceResult - { - public: - - - SaveQuickQueryResult(); - explicit SaveQuickQueryResult(const std::string &payload); - ~SaveQuickQueryResult(); - bool getData()const; - - protected: - void parse(const std::string &payload); - private: - bool data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SAVEQUICKQUERYRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageRequest.h index edbbd07a0..f4fabf3cc 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SetStorageRequest.h @@ -30,15 +30,21 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT SetStorageRequest : public RpcServiceReques public: SetStorageRequest(); ~SetStorageRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); int getTtl() const; void setTtl(int ttl); std::string getRegion() const; void setRegion(const std::string ®ion); private: + long roleFor_; std::string regionId_; + int roleType_; int ttl_; std::string region_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisRequest.h deleted file mode 100644 index 7ba4a89cf..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_SHOWQUICKANALYSISREQUEST_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SHOWQUICKANALYSISREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cloud_siem { -namespace Model { -class ALIBABACLOUD_CLOUD_SIEM_EXPORT ShowQuickAnalysisRequest : public RpcServiceRequest { -public: - ShowQuickAnalysisRequest(); - ~ShowQuickAnalysisRequest(); - 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_SHOWQUICKANALYSISREQUEST_H_ diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h b/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h deleted file mode 100644 index c0f847d3b..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_SHOWQUICKANALYSISRESULT_H_ -#define ALIBABACLOUD_CLOUD_SIEM_MODEL_SHOWQUICKANALYSISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloud_siem - { - namespace Model - { - class ALIBABACLOUD_CLOUD_SIEM_EXPORT ShowQuickAnalysisResult : public ServiceResult - { - public: - struct Data - { - std::vector indexList; - }; - - - ShowQuickAnalysisResult(); - explicit ShowQuickAnalysisResult(const std::string &payload); - ~ShowQuickAnalysisResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_SHOWQUICKANALYSISRESULT_H_ \ No newline at end of file diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h index 933805750..67bb19e28 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h @@ -32,8 +32,12 @@ public: ~SubmitImportLogTasksRequest(); std::string getCloudCode() const; void setCloudCode(const std::string &cloudCode); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getLogCodes() const; void setLogCodes(const std::string &logCodes); std::string getProdCode() const; @@ -45,7 +49,9 @@ public: private: std::string cloudCode_; + long roleFor_; std::string regionId_; + int roleType_; std::string logCodes_; std::string prodCode_; int autoImported_; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h deleted file mode 100644 index 9eef7e213..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index ab53d3850..000000000 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/SubmitJobsResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusRequest.h index 0a379d60d..9c588ef0a 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusRequest.h @@ -30,15 +30,21 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT UpdateAutomateResponseConfigStatusRequest : public: UpdateAutomateResponseConfigStatusRequest(); ~UpdateAutomateResponseConfigStatusRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getIds() const; void setIds(const std::string &ids); bool getInUse() const; void setInUse(bool inUse); private: + long roleFor_; std::string regionId_; + int roleType_; std::string ids_; bool inUse_; }; diff --git a/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateWhiteRuleListRequest.h b/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateWhiteRuleListRequest.h index f6ff148a1..0a60fd74d 100644 --- a/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateWhiteRuleListRequest.h +++ b/cloud-siem/include/alibabacloud/cloud-siem/model/UpdateWhiteRuleListRequest.h @@ -32,8 +32,12 @@ public: ~UpdateWhiteRuleListRequest(); long getWhiteRuleId() const; void setWhiteRuleId(long whiteRuleId); + long getRoleFor() const; + void setRoleFor(long roleFor); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getRoleType() const; + void setRoleType(int roleType); std::string getExpression() const; void setExpression(const std::string &expression); std::string getIncidentUuid() const; @@ -41,7 +45,9 @@ public: private: long whiteRuleId_; + long roleFor_; std::string regionId_; + int roleType_; std::string expression_; std::string incidentUuid_; }; diff --git a/cloud-siem/src/Cloud-siemClient.cc b/cloud-siem/src/Cloud-siemClient.cc index ffa95f49f..f6e8bc506 100644 --- a/cloud-siem/src/Cloud-siemClient.cc +++ b/cloud-siem/src/Cloud-siemClient.cc @@ -123,42 +123,6 @@ Cloud_siemClient::AddDataSourceLogOutcomeCallable Cloud_siemClient::addDataSourc 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(); @@ -195,78 +159,6 @@ Cloud_siemClient::AddUserSourceLogConfigOutcomeCallable Cloud_siemClient::addUse return task->get_future(); } -Cloud_siemClient::BatchJobCheckOutcome Cloud_siemClient::batchJobCheck(const BatchJobCheckRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BatchJobCheckOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BatchJobCheckOutcome(BatchJobCheckResult(outcome.result())); - else - return BatchJobCheckOutcome(outcome.error()); -} - -void Cloud_siemClient::batchJobCheckAsync(const BatchJobCheckRequest& request, const BatchJobCheckAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, batchJobCheck(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::BatchJobCheckOutcomeCallable Cloud_siemClient::batchJobCheckCallable(const BatchJobCheckRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->batchJobCheck(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cloud_siemClient::BatchJobSubmitOutcome Cloud_siemClient::batchJobSubmit(const BatchJobSubmitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BatchJobSubmitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BatchJobSubmitOutcome(BatchJobSubmitResult(outcome.result())); - else - return BatchJobSubmitOutcome(outcome.error()); -} - -void Cloud_siemClient::batchJobSubmitAsync(const BatchJobSubmitRequest& request, const BatchJobSubmitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, batchJobSubmit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::BatchJobSubmitOutcomeCallable Cloud_siemClient::batchJobSubmitCallable(const BatchJobSubmitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->batchJobSubmit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::BindAccountOutcome Cloud_siemClient::bindAccount(const BindAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,78 +411,6 @@ Cloud_siemClient::DeleteDataSourceLogOutcomeCallable Cloud_siemClient::deleteDat return task->get_future(); } -Cloud_siemClient::DeleteQuickQueryOutcome Cloud_siemClient::deleteQuickQuery(const DeleteQuickQueryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteQuickQueryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteQuickQueryOutcome(DeleteQuickQueryResult(outcome.result())); - else - return DeleteQuickQueryOutcome(outcome.error()); -} - -void Cloud_siemClient::deleteQuickQueryAsync(const DeleteQuickQueryRequest& request, const DeleteQuickQueryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteQuickQuery(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DeleteQuickQueryOutcomeCallable Cloud_siemClient::deleteQuickQueryCallable(const DeleteQuickQueryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteQuickQuery(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); @@ -987,42 +807,6 @@ Cloud_siemClient::DescribeAlertsWithEventOutcomeCallable Cloud_siemClient::descr return task->get_future(); } -Cloud_siemClient::DescribeAttackTimeLineOutcome Cloud_siemClient::describeAttackTimeLine(const DescribeAttackTimeLineRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAttackTimeLineOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAttackTimeLineOutcome(DescribeAttackTimeLineResult(outcome.result())); - else - return DescribeAttackTimeLineOutcome(outcome.error()); -} - -void Cloud_siemClient::describeAttackTimeLineAsync(const DescribeAttackTimeLineRequest& request, const DescribeAttackTimeLineAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAttackTimeLine(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DescribeAttackTimeLineOutcomeCallable Cloud_siemClient::describeAttackTimeLineCallable(const DescribeAttackTimeLineRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAttackTimeLine(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::DescribeAuthOutcome Cloud_siemClient::describeAuth(const DescribeAuthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,78 +1095,6 @@ 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(); - if (!endpointOutcome.isSuccess()) - return DescribeCustomizeRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCustomizeRuleOutcome(DescribeCustomizeRuleResult(outcome.result())); - else - return DescribeCustomizeRuleOutcome(outcome.error()); -} - -void Cloud_siemClient::describeCustomizeRuleAsync(const DescribeCustomizeRuleRequest& request, const DescribeCustomizeRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCustomizeRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DescribeCustomizeRuleOutcomeCallable Cloud_siemClient::describeCustomizeRuleCallable(const DescribeCustomizeRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCustomizeRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::DescribeCustomizeRuleCountOutcome Cloud_siemClient::describeCustomizeRuleCount(const DescribeCustomizeRuleCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,42 +1491,6 @@ Cloud_siemClient::DescribeImportedLogCountOutcomeCallable Cloud_siemClient::desc return task->get_future(); } -Cloud_siemClient::DescribeJobStatusOutcome Cloud_siemClient::describeJobStatus(const DescribeJobStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeJobStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeJobStatusOutcome(DescribeJobStatusResult(outcome.result())); - else - return DescribeJobStatusOutcome(outcome.error()); -} - -void Cloud_siemClient::describeJobStatusAsync(const DescribeJobStatusRequest& request, const DescribeJobStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeJobStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DescribeJobStatusOutcomeCallable Cloud_siemClient::describeJobStatusCallable(const DescribeJobStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeJobStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::DescribeLogFieldsOutcome Cloud_siemClient::describeLogFields(const DescribeLogFieldsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,42 +1563,6 @@ Cloud_siemClient::DescribeLogSourceOutcomeCallable Cloud_siemClient::describeLog return task->get_future(); } -Cloud_siemClient::DescribeLogStoreOutcome Cloud_siemClient::describeLogStore(const DescribeLogStoreRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLogStoreOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLogStoreOutcome(DescribeLogStoreResult(outcome.result())); - else - return DescribeLogStoreOutcome(outcome.error()); -} - -void Cloud_siemClient::describeLogStoreAsync(const DescribeLogStoreRequest& request, const DescribeLogStoreAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLogStore(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DescribeLogStoreOutcomeCallable Cloud_siemClient::describeLogStoreCallable(const DescribeLogStoreRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLogStore(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::DescribeLogTypeOutcome Cloud_siemClient::describeLogType(const DescribeLogTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,78 +1887,6 @@ Cloud_siemClient::DescribeWhiteRuleListOutcomeCallable Cloud_siemClient::describ return task->get_future(); } -Cloud_siemClient::DoQuickFieldOutcome Cloud_siemClient::doQuickField(const DoQuickFieldRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DoQuickFieldOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DoQuickFieldOutcome(DoQuickFieldResult(outcome.result())); - else - return DoQuickFieldOutcome(outcome.error()); -} - -void Cloud_siemClient::doQuickFieldAsync(const DoQuickFieldRequest& request, const DoQuickFieldAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, doQuickField(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DoQuickFieldOutcomeCallable Cloud_siemClient::doQuickFieldCallable(const DoQuickFieldRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->doQuickField(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cloud_siemClient::DoSelfDelegateOutcome Cloud_siemClient::doSelfDelegate(const DoSelfDelegateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DoSelfDelegateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DoSelfDelegateOutcome(DoSelfDelegateResult(outcome.result())); - else - return DoSelfDelegateOutcome(outcome.error()); -} - -void Cloud_siemClient::doSelfDelegateAsync(const DoSelfDelegateRequest& request, const DoSelfDelegateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, doSelfDelegate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::DoSelfDelegateOutcomeCallable Cloud_siemClient::doSelfDelegateCallable(const DoSelfDelegateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->doSelfDelegate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::EnableAccessForCloudSiemOutcome Cloud_siemClient::enableAccessForCloudSiem(const EnableAccessForCloudSiemRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,114 +1995,6 @@ Cloud_siemClient::GetCapacityOutcomeCallable Cloud_siemClient::getCapacityCallab return task->get_future(); } -Cloud_siemClient::GetHistogramsOutcome Cloud_siemClient::getHistograms(const GetHistogramsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetHistogramsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetHistogramsOutcome(GetHistogramsResult(outcome.result())); - else - return GetHistogramsOutcome(outcome.error()); -} - -void Cloud_siemClient::getHistogramsAsync(const GetHistogramsRequest& request, const GetHistogramsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getHistograms(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::GetHistogramsOutcomeCallable Cloud_siemClient::getHistogramsCallable(const GetHistogramsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getHistograms(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cloud_siemClient::GetLogsOutcome Cloud_siemClient::getLogs(const GetLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetLogsOutcome(GetLogsResult(outcome.result())); - else - return GetLogsOutcome(outcome.error()); -} - -void Cloud_siemClient::getLogsAsync(const GetLogsRequest& request, const GetLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::GetLogsOutcomeCallable Cloud_siemClient::getLogsCallable(const GetLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Cloud_siemClient::GetQuickQueryOutcome Cloud_siemClient::getQuickQuery(const GetQuickQueryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetQuickQueryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetQuickQueryOutcome(GetQuickQueryResult(outcome.result())); - else - return GetQuickQueryOutcome(outcome.error()); -} - -void Cloud_siemClient::getQuickQueryAsync(const GetQuickQueryRequest& request, const GetQuickQueryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getQuickQuery(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::GetQuickQueryOutcomeCallable Cloud_siemClient::getQuickQueryCallable(const GetQuickQueryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getQuickQuery(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::GetStorageOutcome Cloud_siemClient::getStorage(const GetStorageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3039,6 +2499,42 @@ Cloud_siemClient::ListDisposeStrategyOutcomeCallable Cloud_siemClient::listDispo return task->get_future(); } +Cloud_siemClient::ListEntitiesOutcome Cloud_siemClient::listEntities(const ListEntitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEntitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEntitiesOutcome(ListEntitiesResult(outcome.result())); + else + return ListEntitiesOutcome(outcome.error()); +} + +void Cloud_siemClient::listEntitiesAsync(const ListEntitiesRequest& request, const ListEntitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEntities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Cloud_siemClient::ListEntitiesOutcomeCallable Cloud_siemClient::listEntitiesCallable(const ListEntitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEntities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Cloud_siemClient::ListImportedLogsByProdOutcome Cloud_siemClient::listImportedLogsByProd(const ListImportedLogsByProdRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3075,42 +2571,6 @@ Cloud_siemClient::ListImportedLogsByProdOutcomeCallable Cloud_siemClient::listIm return task->get_future(); } -Cloud_siemClient::ListOperationOutcome Cloud_siemClient::listOperation(const ListOperationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListOperationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListOperationOutcome(ListOperationResult(outcome.result())); - else - return ListOperationOutcome(outcome.error()); -} - -void Cloud_siemClient::listOperationAsync(const ListOperationRequest& request, const ListOperationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listOperation(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::ListOperationOutcomeCallable Cloud_siemClient::listOperationCallable(const ListOperationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listOperation(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::ListProjectLogStoresOutcome Cloud_siemClient::listProjectLogStores(const ListProjectLogStoresRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,42 +2607,6 @@ Cloud_siemClient::ListProjectLogStoresOutcomeCallable Cloud_siemClient::listProj return task->get_future(); } -Cloud_siemClient::ListQuickQueryOutcome Cloud_siemClient::listQuickQuery(const ListQuickQueryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListQuickQueryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListQuickQueryOutcome(ListQuickQueryResult(outcome.result())); - else - return ListQuickQueryOutcome(outcome.error()); -} - -void Cloud_siemClient::listQuickQueryAsync(const ListQuickQueryRequest& request, const ListQuickQueryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listQuickQuery(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::ListQuickQueryOutcomeCallable Cloud_siemClient::listQuickQueryCallable(const ListQuickQueryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listQuickQuery(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::ListRdUsersOutcome Cloud_siemClient::listRdUsers(const ListRdUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,78 +2643,6 @@ Cloud_siemClient::ListRdUsersOutcomeCallable Cloud_siemClient::listRdUsersCallab 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(); @@ -3723,42 +3075,6 @@ Cloud_siemClient::RestoreCapacityOutcomeCallable Cloud_siemClient::restoreCapaci return task->get_future(); } -Cloud_siemClient::SaveQuickQueryOutcome Cloud_siemClient::saveQuickQuery(const SaveQuickQueryRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SaveQuickQueryOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SaveQuickQueryOutcome(SaveQuickQueryResult(outcome.result())); - else - return SaveQuickQueryOutcome(outcome.error()); -} - -void Cloud_siemClient::saveQuickQueryAsync(const SaveQuickQueryRequest& request, const SaveQuickQueryAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, saveQuickQuery(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::SaveQuickQueryOutcomeCallable Cloud_siemClient::saveQuickQueryCallable(const SaveQuickQueryRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->saveQuickQuery(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::SetStorageOutcome Cloud_siemClient::setStorage(const SetStorageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3795,42 +3111,6 @@ Cloud_siemClient::SetStorageOutcomeCallable Cloud_siemClient::setStorageCallable return task->get_future(); } -Cloud_siemClient::ShowQuickAnalysisOutcome Cloud_siemClient::showQuickAnalysis(const ShowQuickAnalysisRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ShowQuickAnalysisOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ShowQuickAnalysisOutcome(ShowQuickAnalysisResult(outcome.result())); - else - return ShowQuickAnalysisOutcome(outcome.error()); -} - -void Cloud_siemClient::showQuickAnalysisAsync(const ShowQuickAnalysisRequest& request, const ShowQuickAnalysisAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, showQuickAnalysis(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Cloud_siemClient::ShowQuickAnalysisOutcomeCallable Cloud_siemClient::showQuickAnalysisCallable(const ShowQuickAnalysisRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->showQuickAnalysis(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Cloud_siemClient::SubmitImportLogTasksOutcome Cloud_siemClient::submitImportLogTasks(const SubmitImportLogTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3867,42 +3147,6 @@ Cloud_siemClient::SubmitImportLogTasksOutcomeCallable Cloud_siemClient::submitIm 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/AddUserRequest.cc b/cloud-siem/src/model/AddUserRequest.cc deleted file mode 100644 index 61c2de407..000000000 --- a/cloud-siem/src/model/AddUserRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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 deleted file mode 100644 index 620077ba7..000000000 --- a/cloud-siem/src/model/AddUserResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::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/BatchJobCheckRequest.cc b/cloud-siem/src/model/BatchJobCheckRequest.cc deleted file mode 100644 index a43307940..000000000 --- a/cloud-siem/src/model/BatchJobCheckRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::BatchJobCheckRequest; - -BatchJobCheckRequest::BatchJobCheckRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "BatchJobCheck") { - setMethod(HttpRequest::Method::Post); -} - -BatchJobCheckRequest::~BatchJobCheckRequest() {} - -std::string BatchJobCheckRequest::getRegionId() const { - return regionId_; -} - -void BatchJobCheckRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string BatchJobCheckRequest::getSubmitId() const { - return submitId_; -} - -void BatchJobCheckRequest::setSubmitId(const std::string &submitId) { - submitId_ = submitId; - setBodyParameter(std::string("SubmitId"), submitId); -} - diff --git a/cloud-siem/src/model/BatchJobCheckResult.cc b/cloud-siem/src/model/BatchJobCheckResult.cc deleted file mode 100644 index b877f0bc3..000000000 --- a/cloud-siem/src/model/BatchJobCheckResult.cc +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -BatchJobCheckResult::BatchJobCheckResult() : - ServiceResult() -{} - -BatchJobCheckResult::BatchJobCheckResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BatchJobCheckResult::~BatchJobCheckResult() -{} - -void BatchJobCheckResult::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["TaskCount"].isNull()) - data_.taskCount = std::stoi(dataNode["TaskCount"].asString()); - if(!dataNode["FinishCount"].isNull()) - data_.finishCount = std::stoi(dataNode["FinishCount"].asString()); - if(!dataNode["FailedCount"].isNull()) - data_.failedCount = std::stoi(dataNode["FailedCount"].asString()); - if(!dataNode["TaskStatus"].isNull()) - data_.taskStatus = dataNode["TaskStatus"].asString(); - if(!dataNode["ConfigId"].isNull()) - data_.configId = dataNode["ConfigId"].asString(); - if(!dataNode["FolderId"].isNull()) - data_.folderId = dataNode["FolderId"].asString(); - auto allErrTaskListNode = dataNode["ErrTaskList"]["ErrTaskListItem"]; - for (auto dataNodeErrTaskListErrTaskListItem : allErrTaskListNode) - { - Data::ErrTaskListItem errTaskListItemObject; - if(!dataNodeErrTaskListErrTaskListItem["UserId"].isNull()) - errTaskListItemObject.userId = std::stol(dataNodeErrTaskListErrTaskListItem["UserId"].asString()); - auto allProductListNode = dataNodeErrTaskListErrTaskListItem["ProductList"]["ProductListItem"]; - for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItem : allProductListNode) - { - Data::ErrTaskListItem::ProductListItem productListObject; - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].isNull()) - productListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].asString(); - auto allLogListNode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["LogList"]["LogListItem"]; - for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem : allLogListNode) - { - Data::ErrTaskListItem::ProductListItem::LogListItem logListObject; - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].isNull()) - logListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].isNull()) - logListObject.logCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].isNull()) - logListObject.regionCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].isNull()) - logListObject.projectNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].isNull()) - logListObject.logStoreNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].isNull()) - logListObject.errorCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].asString(); - productListObject.logList.push_back(logListObject); - } - errTaskListItemObject.productList.push_back(productListObject); - } - data_.errTaskList.push_back(errTaskListItemObject); - } - 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(); - -} - -std::string BatchJobCheckResult::getMessage()const -{ - return message_; -} - -BatchJobCheckResult::Data BatchJobCheckResult::getData()const -{ - return data_; -} - -int BatchJobCheckResult::getCode()const -{ - return code_; -} - -bool BatchJobCheckResult::getSuccess()const -{ - return success_; -} - -std::string BatchJobCheckResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/BatchJobSubmitRequest.cc b/cloud-siem/src/model/BatchJobSubmitRequest.cc deleted file mode 100644 index 7b74489e2..000000000 --- a/cloud-siem/src/model/BatchJobSubmitRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::BatchJobSubmitRequest; - -BatchJobSubmitRequest::BatchJobSubmitRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "BatchJobSubmit") { - setMethod(HttpRequest::Method::Post); -} - -BatchJobSubmitRequest::~BatchJobSubmitRequest() {} - -std::string BatchJobSubmitRequest::getRegionId() const { - return regionId_; -} - -void BatchJobSubmitRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string BatchJobSubmitRequest::getJsonConfig() const { - return jsonConfig_; -} - -void BatchJobSubmitRequest::setJsonConfig(const std::string &jsonConfig) { - jsonConfig_ = jsonConfig; - setBodyParameter(std::string("JsonConfig"), jsonConfig); -} - diff --git a/cloud-siem/src/model/BatchJobSubmitResult.cc b/cloud-siem/src/model/BatchJobSubmitResult.cc deleted file mode 100644 index 521e6cb4f..000000000 --- a/cloud-siem/src/model/BatchJobSubmitResult.cc +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -BatchJobSubmitResult::BatchJobSubmitResult() : - ServiceResult() -{} - -BatchJobSubmitResult::BatchJobSubmitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BatchJobSubmitResult::~BatchJobSubmitResult() -{} - -void BatchJobSubmitResult::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["SubmitId"].isNull()) - data_.submitId = dataNode["SubmitId"].asString(); - if(!dataNode["TaskCount"].isNull()) - data_.taskCount = std::stoi(dataNode["TaskCount"].asString()); - if(!dataNode["ConfigId"].isNull()) - data_.configId = dataNode["ConfigId"].asString(); - auto allConfigListNode = dataNode["ConfigList"]["ConfigListItem"]; - for (auto dataNodeConfigListConfigListItem : allConfigListNode) - { - Data::ConfigListItem configListItemObject; - if(!dataNodeConfigListConfigListItem["UserId"].isNull()) - configListItemObject.userId = std::stol(dataNodeConfigListConfigListItem["UserId"].asString()); - auto allProductListNode = dataNodeConfigListConfigListItem["ProductList"]["ProductListItem"]; - for (auto dataNodeConfigListConfigListItemProductListProductListItem : allProductListNode) - { - Data::ConfigListItem::ProductListItem productListObject; - if(!dataNodeConfigListConfigListItemProductListProductListItem["ProductCode"].isNull()) - productListObject.productCode = dataNodeConfigListConfigListItemProductListProductListItem["ProductCode"].asString(); - auto allLogListNode = dataNodeConfigListConfigListItemProductListProductListItem["LogList"]["LogListItem"]; - for (auto dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem : allLogListNode) - { - Data::ConfigListItem::ProductListItem::LogListItem logListObject; - if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProductCode"].isNull()) - logListObject.productCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProductCode"].asString(); - if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogCode"].isNull()) - logListObject.logCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogCode"].asString(); - if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["RegionCode"].isNull()) - logListObject.regionCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["RegionCode"].asString(); - if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].isNull()) - logListObject.projectNamePattern = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].asString(); - if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].isNull()) - logListObject.logStoreNamePattern = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].asString(); - if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ErrorCode"].isNull()) - logListObject.errorCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ErrorCode"].asString(); - productListObject.logList.push_back(logListObject); - } - configListItemObject.productList.push_back(productListObject); - } - data_.configList.push_back(configListItemObject); - } - 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(); - -} - -std::string BatchJobSubmitResult::getMessage()const -{ - return message_; -} - -BatchJobSubmitResult::Data BatchJobSubmitResult::getData()const -{ - return data_; -} - -int BatchJobSubmitResult::getCode()const -{ - return code_; -} - -bool BatchJobSubmitResult::getSuccess()const -{ - return success_; -} - -std::string BatchJobSubmitResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/BindAccountRequest.cc b/cloud-siem/src/model/BindAccountRequest.cc index 42f8297b0..5dc368295 100644 --- a/cloud-siem/src/model/BindAccountRequest.cc +++ b/cloud-siem/src/model/BindAccountRequest.cc @@ -34,6 +34,15 @@ void BindAccountRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long BindAccountRequest::getRoleFor() const { + return roleFor_; +} + +void BindAccountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string BindAccountRequest::getAccountId() const { return accountId_; } @@ -61,6 +70,15 @@ void BindAccountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int BindAccountRequest::getRoleType() const { + return roleType_; +} + +void BindAccountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string BindAccountRequest::getAccessId() const { return accessId_; } diff --git a/cloud-siem/src/model/CloseDeliveryRequest.cc b/cloud-siem/src/model/CloseDeliveryRequest.cc index 78d508716..94a12b8e4 100644 --- a/cloud-siem/src/model/CloseDeliveryRequest.cc +++ b/cloud-siem/src/model/CloseDeliveryRequest.cc @@ -34,6 +34,15 @@ void CloseDeliveryRequest::setProductCode(const std::string &productCode) { setBodyParameter(std::string("ProductCode"), productCode); } +long CloseDeliveryRequest::getRoleFor() const { + return roleFor_; +} + +void CloseDeliveryRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string CloseDeliveryRequest::getLogCode() const { return logCode_; } @@ -52,3 +61,12 @@ void CloseDeliveryRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int CloseDeliveryRequest::getRoleType() const { + return roleType_; +} + +void CloseDeliveryRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DeleteAutomateResponseConfigRequest.cc b/cloud-siem/src/model/DeleteAutomateResponseConfigRequest.cc index a9db5bf7b..7a4f0013a 100644 --- a/cloud-siem/src/model/DeleteAutomateResponseConfigRequest.cc +++ b/cloud-siem/src/model/DeleteAutomateResponseConfigRequest.cc @@ -25,6 +25,15 @@ DeleteAutomateResponseConfigRequest::DeleteAutomateResponseConfigRequest() DeleteAutomateResponseConfigRequest::~DeleteAutomateResponseConfigRequest() {} +long DeleteAutomateResponseConfigRequest::getRoleFor() const { + return roleFor_; +} + +void DeleteAutomateResponseConfigRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DeleteAutomateResponseConfigRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DeleteAutomateResponseConfigRequest::setRegionId(const std::string ®ionI setBodyParameter(std::string("RegionId"), regionId); } +int DeleteAutomateResponseConfigRequest::getRoleType() const { + return roleType_; +} + +void DeleteAutomateResponseConfigRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DeleteAutomateResponseConfigRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/DeleteAutomateResponseConfigResult.cc b/cloud-siem/src/model/DeleteAutomateResponseConfigResult.cc index 886ae02ac..ec9f26349 100644 --- a/cloud-siem/src/model/DeleteAutomateResponseConfigResult.cc +++ b/cloud-siem/src/model/DeleteAutomateResponseConfigResult.cc @@ -39,14 +39,14 @@ void DeleteAutomateResponseConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); 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["Data"].isNull()) - data_ = value["Data"].asString(); } diff --git a/cloud-siem/src/model/DeleteBindAccountRequest.cc b/cloud-siem/src/model/DeleteBindAccountRequest.cc index f52614ef0..99801a60f 100644 --- a/cloud-siem/src/model/DeleteBindAccountRequest.cc +++ b/cloud-siem/src/model/DeleteBindAccountRequest.cc @@ -34,6 +34,15 @@ void DeleteBindAccountRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long DeleteBindAccountRequest::getRoleFor() const { + return roleFor_; +} + +void DeleteBindAccountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DeleteBindAccountRequest::getAccountId() const { return accountId_; } @@ -52,6 +61,15 @@ void DeleteBindAccountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DeleteBindAccountRequest::getRoleType() const { + return roleType_; +} + +void DeleteBindAccountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DeleteBindAccountRequest::getBindId() const { return bindId_; } diff --git a/cloud-siem/src/model/DeleteCustomizeRuleRequest.cc b/cloud-siem/src/model/DeleteCustomizeRuleRequest.cc index fc89758b2..47287161d 100644 --- a/cloud-siem/src/model/DeleteCustomizeRuleRequest.cc +++ b/cloud-siem/src/model/DeleteCustomizeRuleRequest.cc @@ -25,6 +25,15 @@ DeleteCustomizeRuleRequest::DeleteCustomizeRuleRequest() DeleteCustomizeRuleRequest::~DeleteCustomizeRuleRequest() {} +long DeleteCustomizeRuleRequest::getRoleFor() const { + return roleFor_; +} + +void DeleteCustomizeRuleRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DeleteCustomizeRuleRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DeleteCustomizeRuleRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DeleteCustomizeRuleRequest::getRoleType() const { + return roleType_; +} + +void DeleteCustomizeRuleRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DeleteCustomizeRuleRequest::getRuleId() const { return ruleId_; } diff --git a/cloud-siem/src/model/DeleteCustomizeRuleResult.cc b/cloud-siem/src/model/DeleteCustomizeRuleResult.cc index 5f29ed91f..a60846995 100644 --- a/cloud-siem/src/model/DeleteCustomizeRuleResult.cc +++ b/cloud-siem/src/model/DeleteCustomizeRuleResult.cc @@ -39,14 +39,14 @@ void DeleteCustomizeRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = std::stoi(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["Data"].isNull()) - data_ = std::stoi(value["Data"].asString()); } diff --git a/cloud-siem/src/model/DeleteQuickQueryRequest.cc b/cloud-siem/src/model/DeleteQuickQueryRequest.cc deleted file mode 100644 index 552670a71..000000000 --- a/cloud-siem/src/model/DeleteQuickQueryRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DeleteQuickQueryRequest; - -DeleteQuickQueryRequest::DeleteQuickQueryRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteQuickQuery") { - setMethod(HttpRequest::Method::Post); -} - -DeleteQuickQueryRequest::~DeleteQuickQueryRequest() {} - -std::string DeleteQuickQueryRequest::getSearchName() const { - return searchName_; -} - -void DeleteQuickQueryRequest::setSearchName(const std::string &searchName) { - searchName_ = searchName; - setBodyParameter(std::string("SearchName"), searchName); -} - -std::string DeleteQuickQueryRequest::getRegionId() const { - return regionId_; -} - -void DeleteQuickQueryRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - diff --git a/cloud-siem/src/model/DeleteQuickQueryResult.cc b/cloud-siem/src/model/DeleteQuickQueryResult.cc deleted file mode 100644 index 46b3edc9c..000000000 --- a/cloud-siem/src/model/DeleteQuickQueryResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DeleteQuickQueryResult::DeleteQuickQueryResult() : - ServiceResult() -{} - -DeleteQuickQueryResult::DeleteQuickQueryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteQuickQueryResult::~DeleteQuickQueryResult() -{} - -void DeleteQuickQueryResult::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 DeleteQuickQueryResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/DeleteUserRequest.cc b/cloud-siem/src/model/DeleteUserRequest.cc deleted file mode 100644 index 9e3e9ed48..000000000 --- a/cloud-siem/src/model/DeleteUserRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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 deleted file mode 100644 index 0f019e36a..000000000 --- a/cloud-siem/src/model/DeleteUserResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::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/DeleteWhiteRuleListRequest.cc b/cloud-siem/src/model/DeleteWhiteRuleListRequest.cc index f00fa4d9d..6be52287f 100644 --- a/cloud-siem/src/model/DeleteWhiteRuleListRequest.cc +++ b/cloud-siem/src/model/DeleteWhiteRuleListRequest.cc @@ -25,6 +25,15 @@ DeleteWhiteRuleListRequest::DeleteWhiteRuleListRequest() DeleteWhiteRuleListRequest::~DeleteWhiteRuleListRequest() {} +long DeleteWhiteRuleListRequest::getRoleFor() const { + return roleFor_; +} + +void DeleteWhiteRuleListRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DeleteWhiteRuleListRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DeleteWhiteRuleListRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DeleteWhiteRuleListRequest::getRoleType() const { + return roleType_; +} + +void DeleteWhiteRuleListRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DeleteWhiteRuleListRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/DescribeAggregateFunctionRequest.cc b/cloud-siem/src/model/DescribeAggregateFunctionRequest.cc index c1be65f99..8c833f095 100644 --- a/cloud-siem/src/model/DescribeAggregateFunctionRequest.cc +++ b/cloud-siem/src/model/DescribeAggregateFunctionRequest.cc @@ -25,6 +25,15 @@ DescribeAggregateFunctionRequest::DescribeAggregateFunctionRequest() DescribeAggregateFunctionRequest::~DescribeAggregateFunctionRequest() {} +long DescribeAggregateFunctionRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAggregateFunctionRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAggregateFunctionRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeAggregateFunctionRequest::setRegionId(const std::string ®ionId) setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAggregateFunctionRequest::getRoleType() const { + return roleType_; +} + +void DescribeAggregateFunctionRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeAlertSceneByEventRequest.cc b/cloud-siem/src/model/DescribeAlertSceneByEventRequest.cc index d38ae11da..1503f95c9 100644 --- a/cloud-siem/src/model/DescribeAlertSceneByEventRequest.cc +++ b/cloud-siem/src/model/DescribeAlertSceneByEventRequest.cc @@ -25,6 +25,15 @@ DescribeAlertSceneByEventRequest::DescribeAlertSceneByEventRequest() DescribeAlertSceneByEventRequest::~DescribeAlertSceneByEventRequest() {} +long DescribeAlertSceneByEventRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertSceneByEventRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAlertSceneByEventRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DescribeAlertSceneByEventRequest::setRegionId(const std::string ®ionId) setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAlertSceneByEventRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertSceneByEventRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeAlertSceneByEventRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeAlertSceneRequest.cc b/cloud-siem/src/model/DescribeAlertSceneRequest.cc index bc035010b..b4ce8c6e7 100644 --- a/cloud-siem/src/model/DescribeAlertSceneRequest.cc +++ b/cloud-siem/src/model/DescribeAlertSceneRequest.cc @@ -25,6 +25,15 @@ DescribeAlertSceneRequest::DescribeAlertSceneRequest() DescribeAlertSceneRequest::~DescribeAlertSceneRequest() {} +long DescribeAlertSceneRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertSceneRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAlertSceneRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeAlertSceneRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAlertSceneRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertSceneRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeAlertSourceRequest.cc b/cloud-siem/src/model/DescribeAlertSourceRequest.cc index 56903aae3..f030066cb 100644 --- a/cloud-siem/src/model/DescribeAlertSourceRequest.cc +++ b/cloud-siem/src/model/DescribeAlertSourceRequest.cc @@ -25,6 +25,15 @@ DescribeAlertSourceRequest::DescribeAlertSourceRequest() DescribeAlertSourceRequest::~DescribeAlertSourceRequest() {} +long DescribeAlertSourceRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertSourceRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeAlertSourceRequest::getStartTime() const { return startTime_; } @@ -43,6 +52,15 @@ void DescribeAlertSourceRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAlertSourceRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertSourceRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::vector DescribeAlertSourceRequest::getLevel() const { return level_; } diff --git a/cloud-siem/src/model/DescribeAlertSourceWithEventRequest.cc b/cloud-siem/src/model/DescribeAlertSourceWithEventRequest.cc index a7e8fba23..93b05532e 100644 --- a/cloud-siem/src/model/DescribeAlertSourceWithEventRequest.cc +++ b/cloud-siem/src/model/DescribeAlertSourceWithEventRequest.cc @@ -25,6 +25,15 @@ DescribeAlertSourceWithEventRequest::DescribeAlertSourceWithEventRequest() DescribeAlertSourceWithEventRequest::~DescribeAlertSourceWithEventRequest() {} +long DescribeAlertSourceWithEventRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertSourceWithEventRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAlertSourceWithEventRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DescribeAlertSourceWithEventRequest::setRegionId(const std::string ®ionI setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAlertSourceWithEventRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertSourceWithEventRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeAlertSourceWithEventRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeAlertTypeRequest.cc b/cloud-siem/src/model/DescribeAlertTypeRequest.cc index cf1519556..99ade599d 100644 --- a/cloud-siem/src/model/DescribeAlertTypeRequest.cc +++ b/cloud-siem/src/model/DescribeAlertTypeRequest.cc @@ -25,6 +25,15 @@ DescribeAlertTypeRequest::DescribeAlertTypeRequest() DescribeAlertTypeRequest::~DescribeAlertTypeRequest() {} +long DescribeAlertTypeRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertTypeRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAlertTypeRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,21 @@ void DescribeAlertTypeRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAlertTypeRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertTypeRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + +std::string DescribeAlertTypeRequest::getRuleType() const { + return ruleType_; +} + +void DescribeAlertTypeRequest::setRuleType(const std::string &ruleType) { + ruleType_ = ruleType; + setBodyParameter(std::string("RuleType"), ruleType); +} + diff --git a/cloud-siem/src/model/DescribeAlertsCountRequest.cc b/cloud-siem/src/model/DescribeAlertsCountRequest.cc index 4495f7243..6d6079531 100644 --- a/cloud-siem/src/model/DescribeAlertsCountRequest.cc +++ b/cloud-siem/src/model/DescribeAlertsCountRequest.cc @@ -25,6 +25,15 @@ DescribeAlertsCountRequest::DescribeAlertsCountRequest() DescribeAlertsCountRequest::~DescribeAlertsCountRequest() {} +long DescribeAlertsCountRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertsCountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeAlertsCountRequest::getStartTime() const { return startTime_; } @@ -43,6 +52,24 @@ void DescribeAlertsCountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAlertsCountRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertsCountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + +std::string DescribeAlertsCountRequest::getQueryType() const { + return queryType_; +} + +void DescribeAlertsCountRequest::setQueryType(const std::string &queryType) { + queryType_ = queryType; + setBodyParameter(std::string("QueryType"), queryType); +} + long DescribeAlertsCountRequest::getEndTime() const { return endTime_; } diff --git a/cloud-siem/src/model/DescribeAlertsCountResult.cc b/cloud-siem/src/model/DescribeAlertsCountResult.cc index ac74626bb..cff6b8275 100644 --- a/cloud-siem/src/model/DescribeAlertsCountResult.cc +++ b/cloud-siem/src/model/DescribeAlertsCountResult.cc @@ -50,6 +50,8 @@ void DescribeAlertsCountResult::parse(const std::string &payload) data_.all = std::stol(dataNode["All"].asString()); if(!dataNode["ProductNum"].isNull()) data_.productNum = std::stoi(dataNode["ProductNum"].asString()); + if(!dataNode["CountMap"].isNull()) + data_.countMap = dataNode["CountMap"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/cloud-siem/src/model/DescribeAlertsRequest.cc b/cloud-siem/src/model/DescribeAlertsRequest.cc index 86b9c6a82..c881bd421 100644 --- a/cloud-siem/src/model/DescribeAlertsRequest.cc +++ b/cloud-siem/src/model/DescribeAlertsRequest.cc @@ -25,6 +25,51 @@ DescribeAlertsRequest::DescribeAlertsRequest() DescribeAlertsRequest::~DescribeAlertsRequest() {} +long DescribeAlertsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string DescribeAlertsRequest::getAlertName() const { + return alertName_; +} + +void DescribeAlertsRequest::setAlertName(const std::string &alertName) { + alertName_ = alertName; + setBodyParameter(std::string("AlertName"), alertName); +} + +std::string DescribeAlertsRequest::getEntityName() const { + return entityName_; +} + +void DescribeAlertsRequest::setEntityName(const std::string &entityName) { + entityName_ = entityName; + setBodyParameter(std::string("EntityName"), entityName); +} + +std::string DescribeAlertsRequest::getAssetName() const { + return assetName_; +} + +void DescribeAlertsRequest::setAssetName(const std::string &assetName) { + assetName_ = assetName; + setBodyParameter(std::string("AssetName"), assetName); +} + +std::string DescribeAlertsRequest::getEntityId() const { + return entityId_; +} + +void DescribeAlertsRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); +} + std::string DescribeAlertsRequest::getSource() const { return source_; } @@ -79,6 +124,15 @@ void DescribeAlertsRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeAlertsRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::vector DescribeAlertsRequest::getLevel() const { return level_; } @@ -114,6 +168,15 @@ void DescribeAlertsRequest::setCurrentPage(int currentPage) { setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string DescribeAlertsRequest::getAlertType() const { + return alertType_; +} + +void DescribeAlertsRequest::setAlertType(const std::string &alertType) { + alertType_ = alertType; + setBodyParameter(std::string("AlertType"), alertType); +} + std::string DescribeAlertsRequest::getAlertUuid() const { return alertUuid_; } @@ -123,3 +186,21 @@ void DescribeAlertsRequest::setAlertUuid(const std::string &alertUuid) { setBodyParameter(std::string("AlertUuid"), alertUuid); } +std::string DescribeAlertsRequest::getAssetId() const { + return assetId_; +} + +void DescribeAlertsRequest::setAssetId(const std::string &assetId) { + assetId_ = assetId; + setBodyParameter(std::string("AssetId"), assetId); +} + +std::string DescribeAlertsRequest::getLabelType() const { + return labelType_; +} + +void DescribeAlertsRequest::setLabelType(const std::string &labelType) { + labelType_ = labelType; + setBodyParameter(std::string("LabelType"), labelType); +} + diff --git a/cloud-siem/src/model/DescribeAlertsResult.cc b/cloud-siem/src/model/DescribeAlertsResult.cc index ae32d01df..26549a46b 100644 --- a/cloud-siem/src/model/DescribeAlertsResult.cc +++ b/cloud-siem/src/model/DescribeAlertsResult.cc @@ -98,10 +98,14 @@ void DescribeAlertsResult::parse(const std::string &payload) responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull()) responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityList"].isNull()) + responseDataItemObject.entityList = dataNodeResponseDataResponseDataItem["EntityList"].asString(); if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["SubUserName"].isNull()) + responseDataItemObject.subUserName = dataNodeResponseDataResponseDataItem["SubUserName"].asString(); if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull()) diff --git a/cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc b/cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc index 46e108ccd..2dc7f4cc2 100644 --- a/cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc +++ b/cloud-siem/src/model/DescribeAlertsWithEntityRequest.cc @@ -25,6 +25,15 @@ DescribeAlertsWithEntityRequest::DescribeAlertsWithEntityRequest() DescribeAlertsWithEntityRequest::~DescribeAlertsWithEntityRequest() {} +long DescribeAlertsWithEntityRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertsWithEntityRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeAlertsWithEntityRequest::getEntityId() const { return entityId_; } @@ -34,6 +43,15 @@ void DescribeAlertsWithEntityRequest::setEntityId(long entityId) { setBodyParameter(std::string("EntityId"), std::to_string(entityId)); } +long DescribeAlertsWithEntityRequest::getStartTime() const { + return startTime_; +} + +void DescribeAlertsWithEntityRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + std::string DescribeAlertsWithEntityRequest::getRegionId() const { return regionId_; } @@ -52,6 +70,15 @@ void DescribeAlertsWithEntityRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeAlertsWithEntityRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertsWithEntityRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeAlertsWithEntityRequest::getSophonTaskId() const { return sophonTaskId_; } @@ -61,6 +88,15 @@ void DescribeAlertsWithEntityRequest::setSophonTaskId(const std::string &sophonT setBodyParameter(std::string("SophonTaskId"), sophonTaskId); } +long DescribeAlertsWithEntityRequest::getEndTime() const { + return endTime_; +} + +void DescribeAlertsWithEntityRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + int DescribeAlertsWithEntityRequest::getCurrentPage() const { return currentPage_; } @@ -70,6 +106,15 @@ void DescribeAlertsWithEntityRequest::setCurrentPage(int currentPage) { setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string DescribeAlertsWithEntityRequest::getEntityUuid() const { + return entityUuid_; +} + +void DescribeAlertsWithEntityRequest::setEntityUuid(const std::string &entityUuid) { + entityUuid_ = entityUuid; + setBodyParameter(std::string("EntityUuid"), entityUuid); +} + std::string DescribeAlertsWithEntityRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc b/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc index 142772579..de7a131c3 100644 --- a/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc +++ b/cloud-siem/src/model/DescribeAlertsWithEntityResult.cc @@ -98,10 +98,14 @@ void DescribeAlertsWithEntityResult::parse(const std::string &payload) responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull()) responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityList"].isNull()) + responseDataItemObject.entityList = dataNodeResponseDataResponseDataItem["EntityList"].asString(); if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["SubUserName"].isNull()) + responseDataItemObject.subUserName = dataNodeResponseDataResponseDataItem["SubUserName"].asString(); if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull()) diff --git a/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc b/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc index 83b75ab1e..076d4ae9b 100644 --- a/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc +++ b/cloud-siem/src/model/DescribeAlertsWithEventRequest.cc @@ -25,6 +25,51 @@ DescribeAlertsWithEventRequest::DescribeAlertsWithEventRequest() DescribeAlertsWithEventRequest::~DescribeAlertsWithEventRequest() {} +long DescribeAlertsWithEventRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAlertsWithEventRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string DescribeAlertsWithEventRequest::getAlertName() const { + return alertName_; +} + +void DescribeAlertsWithEventRequest::setAlertName(const std::string &alertName) { + alertName_ = alertName; + setBodyParameter(std::string("AlertName"), alertName); +} + +std::string DescribeAlertsWithEventRequest::getEntityName() const { + return entityName_; +} + +void DescribeAlertsWithEventRequest::setEntityName(const std::string &entityName) { + entityName_ = entityName; + setBodyParameter(std::string("EntityName"), entityName); +} + +std::string DescribeAlertsWithEventRequest::getAssetName() const { + return assetName_; +} + +void DescribeAlertsWithEventRequest::setAssetName(const std::string &assetName) { + assetName_ = assetName; + setBodyParameter(std::string("AssetName"), assetName); +} + +std::string DescribeAlertsWithEventRequest::getEntityId() const { + return entityId_; +} + +void DescribeAlertsWithEventRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); +} + std::string DescribeAlertsWithEventRequest::getSource() const { return source_; } @@ -43,6 +88,15 @@ void DescribeAlertsWithEventRequest::setIsDefend(const std::string &isDefend) { setBodyParameter(std::string("IsDefend"), isDefend); } +long DescribeAlertsWithEventRequest::getStartTime() const { + return startTime_; +} + +void DescribeAlertsWithEventRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + long DescribeAlertsWithEventRequest::getSubUserId() const { return subUserId_; } @@ -70,6 +124,15 @@ void DescribeAlertsWithEventRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeAlertsWithEventRequest::getRoleType() const { + return roleType_; +} + +void DescribeAlertsWithEventRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::vector DescribeAlertsWithEventRequest::getLevel() const { return level_; } @@ -78,6 +141,15 @@ void DescribeAlertsWithEventRequest::setLevel(const std::vector &le level_ = level; } +long DescribeAlertsWithEventRequest::getEndTime() const { + return endTime_; +} + +void DescribeAlertsWithEventRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + std::string DescribeAlertsWithEventRequest::getAlertTitle() const { return alertTitle_; } @@ -96,6 +168,24 @@ void DescribeAlertsWithEventRequest::setCurrentPage(int currentPage) { setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string DescribeAlertsWithEventRequest::getAlertType() const { + return alertType_; +} + +void DescribeAlertsWithEventRequest::setAlertType(const std::string &alertType) { + alertType_ = alertType; + setBodyParameter(std::string("AlertType"), alertType); +} + +std::string DescribeAlertsWithEventRequest::getAssetId() const { + return assetId_; +} + +void DescribeAlertsWithEventRequest::setAssetId(const std::string &assetId) { + assetId_ = assetId; + setBodyParameter(std::string("AssetId"), assetId); +} + std::string DescribeAlertsWithEventRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeAlertsWithEventResult.cc b/cloud-siem/src/model/DescribeAlertsWithEventResult.cc index 0f8f821bb..61345b562 100644 --- a/cloud-siem/src/model/DescribeAlertsWithEventResult.cc +++ b/cloud-siem/src/model/DescribeAlertsWithEventResult.cc @@ -98,10 +98,14 @@ void DescribeAlertsWithEventResult::parse(const std::string &payload) responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull()) responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityList"].isNull()) + responseDataItemObject.entityList = dataNodeResponseDataResponseDataItem["EntityList"].asString(); if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["SubUserName"].isNull()) + responseDataItemObject.subUserName = dataNodeResponseDataResponseDataItem["SubUserName"].asString(); if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull()) diff --git a/cloud-siem/src/model/DescribeAttackTimeLineRequest.cc b/cloud-siem/src/model/DescribeAttackTimeLineRequest.cc deleted file mode 100644 index 39ebbdb62..000000000 --- a/cloud-siem/src/model/DescribeAttackTimeLineRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DescribeAttackTimeLineRequest; - -DescribeAttackTimeLineRequest::DescribeAttackTimeLineRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAttackTimeLine") { - setMethod(HttpRequest::Method::Post); -} - -DescribeAttackTimeLineRequest::~DescribeAttackTimeLineRequest() {} - -std::string DescribeAttackTimeLineRequest::getAssetName() const { - return assetName_; -} - -void DescribeAttackTimeLineRequest::setAssetName(const std::string &assetName) { - assetName_ = assetName; - setBodyParameter(std::string("AssetName"), assetName); -} - -long DescribeAttackTimeLineRequest::getStartTime() const { - return startTime_; -} - -void DescribeAttackTimeLineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setBodyParameter(std::string("StartTime"), std::to_string(startTime)); -} - -std::string DescribeAttackTimeLineRequest::getRegionId() const { - return regionId_; -} - -void DescribeAttackTimeLineRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -long DescribeAttackTimeLineRequest::getEndTime() const { - return endTime_; -} - -void DescribeAttackTimeLineRequest::setEndTime(long endTime) { - endTime_ = endTime; - setBodyParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string DescribeAttackTimeLineRequest::getIncidentUuid() const { - return incidentUuid_; -} - -void DescribeAttackTimeLineRequest::setIncidentUuid(const std::string &incidentUuid) { - incidentUuid_ = incidentUuid; - setBodyParameter(std::string("IncidentUuid"), incidentUuid); -} - diff --git a/cloud-siem/src/model/DescribeAttackTimeLineResult.cc b/cloud-siem/src/model/DescribeAttackTimeLineResult.cc deleted file mode 100644 index e5ce51639..000000000 --- a/cloud-siem/src/model/DescribeAttackTimeLineResult.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DescribeAttackTimeLineResult::DescribeAttackTimeLineResult() : - ServiceResult() -{} - -DescribeAttackTimeLineResult::DescribeAttackTimeLineResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAttackTimeLineResult::~DescribeAttackTimeLineResult() -{} - -void DescribeAttackTimeLineResult::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["AssetName"].isNull()) - dataObject.assetName = valueDataDataItem["AssetName"].asString(); - if(!valueDataDataItem["AlertTime"].isNull()) - dataObject.alertTime = std::stol(valueDataDataItem["AlertTime"].asString()); - if(!valueDataDataItem["AssetId"].isNull()) - dataObject.assetId = valueDataDataItem["AssetId"].asString(); - if(!valueDataDataItem["IncidentUuid"].isNull()) - dataObject.incidentUuid = valueDataDataItem["IncidentUuid"].asString(); - if(!valueDataDataItem["AlertUuid"].isNull()) - dataObject.alertUuid = valueDataDataItem["AlertUuid"].asString(); - if(!valueDataDataItem["LogTime"].isNull()) - dataObject.logTime = valueDataDataItem["LogTime"].asString(); - if(!valueDataDataItem["AlertSrcProd"].isNull()) - dataObject.alertSrcProd = valueDataDataItem["AlertSrcProd"].asString(); - if(!valueDataDataItem["AlertTitle"].isNull()) - dataObject.alertTitle = valueDataDataItem["AlertTitle"].asString(); - if(!valueDataDataItem["AlertLevel"].isNull()) - dataObject.alertLevel = valueDataDataItem["AlertLevel"].asString(); - if(!valueDataDataItem["AssetList"].isNull()) - dataObject.assetList = valueDataDataItem["AssetList"].asString(); - if(!valueDataDataItem["AlertSrcProdModule"].isNull()) - dataObject.alertSrcProdModule = valueDataDataItem["AlertSrcProdModule"].asString(); - if(!valueDataDataItem["AttCk"].isNull()) - dataObject.attCk = valueDataDataItem["AttCk"].asString(); - if(!valueDataDataItem["CloudCode"].isNull()) - dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); - if(!valueDataDataItem["AlertTitleEn"].isNull()) - dataObject.alertTitleEn = valueDataDataItem["AlertTitleEn"].asString(); - if(!valueDataDataItem["AlertType"].isNull()) - dataObject.alertType = valueDataDataItem["AlertType"].asString(); - if(!valueDataDataItem["AlertTypeEn"].isNull()) - dataObject.alertTypeEn = valueDataDataItem["AlertTypeEn"].asString(); - if(!valueDataDataItem["AlertTypeCode"].isNull()) - dataObject.alertTypeCode = valueDataDataItem["AlertTypeCode"].asString(); - if(!valueDataDataItem["AlertName"].isNull()) - dataObject.alertName = valueDataDataItem["AlertName"].asString(); - if(!valueDataDataItem["AlertNameEn"].isNull()) - dataObject.alertNameEn = valueDataDataItem["AlertNameEn"].asString(); - if(!valueDataDataItem["AlertNameCode"].isNull()) - dataObject.alertNameCode = valueDataDataItem["AlertNameCode"].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 DescribeAttackTimeLineResult::getMessage()const -{ - return message_; -} - -std::vector DescribeAttackTimeLineResult::getData()const -{ - return data_; -} - -int DescribeAttackTimeLineResult::getCode()const -{ - return code_; -} - -bool DescribeAttackTimeLineResult::getSuccess()const -{ - return success_; -} - diff --git a/cloud-siem/src/model/DescribeAutomateResponseConfigCounterRequest.cc b/cloud-siem/src/model/DescribeAutomateResponseConfigCounterRequest.cc index 2a0e58655..43cbae8cf 100644 --- a/cloud-siem/src/model/DescribeAutomateResponseConfigCounterRequest.cc +++ b/cloud-siem/src/model/DescribeAutomateResponseConfigCounterRequest.cc @@ -25,6 +25,15 @@ DescribeAutomateResponseConfigCounterRequest::DescribeAutomateResponseConfigCoun DescribeAutomateResponseConfigCounterRequest::~DescribeAutomateResponseConfigCounterRequest() {} +long DescribeAutomateResponseConfigCounterRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAutomateResponseConfigCounterRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAutomateResponseConfigCounterRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeAutomateResponseConfigCounterRequest::setRegionId(const std::string setBodyParameter(std::string("RegionId"), regionId); } +int DescribeAutomateResponseConfigCounterRequest::getRoleType() const { + return roleType_; +} + +void DescribeAutomateResponseConfigCounterRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeAutomateResponseConfigFeatureRequest.cc b/cloud-siem/src/model/DescribeAutomateResponseConfigFeatureRequest.cc index b6a8bb9a3..44a7ddc6e 100644 --- a/cloud-siem/src/model/DescribeAutomateResponseConfigFeatureRequest.cc +++ b/cloud-siem/src/model/DescribeAutomateResponseConfigFeatureRequest.cc @@ -25,6 +25,15 @@ DescribeAutomateResponseConfigFeatureRequest::DescribeAutomateResponseConfigFeat DescribeAutomateResponseConfigFeatureRequest::~DescribeAutomateResponseConfigFeatureRequest() {} +long DescribeAutomateResponseConfigFeatureRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAutomateResponseConfigFeatureRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAutomateResponseConfigFeatureRequest::getRegionId() const { return regionId_; } @@ -43,3 +52,12 @@ void DescribeAutomateResponseConfigFeatureRequest::setAutoResponseType(const std setBodyParameter(std::string("AutoResponseType"), autoResponseType); } +int DescribeAutomateResponseConfigFeatureRequest::getRoleType() const { + return roleType_; +} + +void DescribeAutomateResponseConfigFeatureRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeAutomateResponseConfigPlayBooksRequest.cc b/cloud-siem/src/model/DescribeAutomateResponseConfigPlayBooksRequest.cc index 26f24a14c..d93a33cb8 100644 --- a/cloud-siem/src/model/DescribeAutomateResponseConfigPlayBooksRequest.cc +++ b/cloud-siem/src/model/DescribeAutomateResponseConfigPlayBooksRequest.cc @@ -25,6 +25,15 @@ DescribeAutomateResponseConfigPlayBooksRequest::DescribeAutomateResponseConfigPl DescribeAutomateResponseConfigPlayBooksRequest::~DescribeAutomateResponseConfigPlayBooksRequest() {} +long DescribeAutomateResponseConfigPlayBooksRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeAutomateResponseConfigPlayBooksRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeAutomateResponseConfigPlayBooksRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void DescribeAutomateResponseConfigPlayBooksRequest::setAutoResponseType(const s setBodyParameter(std::string("AutoResponseType"), autoResponseType); } +int DescribeAutomateResponseConfigPlayBooksRequest::getRoleType() const { + return roleType_; +} + +void DescribeAutomateResponseConfigPlayBooksRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeAutomateResponseConfigPlayBooksRequest::getEntityType() const { return entityType_; } diff --git a/cloud-siem/src/model/DescribeCloudSiemAssetsCounterRequest.cc b/cloud-siem/src/model/DescribeCloudSiemAssetsCounterRequest.cc index ebf2edfd5..cd8433283 100644 --- a/cloud-siem/src/model/DescribeCloudSiemAssetsCounterRequest.cc +++ b/cloud-siem/src/model/DescribeCloudSiemAssetsCounterRequest.cc @@ -25,6 +25,15 @@ DescribeCloudSiemAssetsCounterRequest::DescribeCloudSiemAssetsCounterRequest() DescribeCloudSiemAssetsCounterRequest::~DescribeCloudSiemAssetsCounterRequest() {} +long DescribeCloudSiemAssetsCounterRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCloudSiemAssetsCounterRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeCloudSiemAssetsCounterRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DescribeCloudSiemAssetsCounterRequest::setRegionId(const std::string ®io setBodyParameter(std::string("RegionId"), regionId); } +int DescribeCloudSiemAssetsCounterRequest::getRoleType() const { + return roleType_; +} + +void DescribeCloudSiemAssetsCounterRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeCloudSiemAssetsCounterRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeCloudSiemAssetsRequest.cc b/cloud-siem/src/model/DescribeCloudSiemAssetsRequest.cc index 3122c5ccd..73b0d2cfa 100644 --- a/cloud-siem/src/model/DescribeCloudSiemAssetsRequest.cc +++ b/cloud-siem/src/model/DescribeCloudSiemAssetsRequest.cc @@ -25,6 +25,24 @@ DescribeCloudSiemAssetsRequest::DescribeCloudSiemAssetsRequest() DescribeCloudSiemAssetsRequest::~DescribeCloudSiemAssetsRequest() {} +long DescribeCloudSiemAssetsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCloudSiemAssetsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string DescribeCloudSiemAssetsRequest::getAssetName() const { + return assetName_; +} + +void DescribeCloudSiemAssetsRequest::setAssetName(const std::string &assetName) { + assetName_ = assetName; + setBodyParameter(std::string("AssetName"), assetName); +} + std::string DescribeCloudSiemAssetsRequest::getRegionId() const { return regionId_; } @@ -43,6 +61,15 @@ void DescribeCloudSiemAssetsRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeCloudSiemAssetsRequest::getRoleType() const { + return roleType_; +} + +void DescribeCloudSiemAssetsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeCloudSiemAssetsRequest::getAssetType() const { return assetType_; } @@ -52,6 +79,15 @@ void DescribeCloudSiemAssetsRequest::setAssetType(const std::string &assetType) setBodyParameter(std::string("AssetType"), assetType); } +std::string DescribeCloudSiemAssetsRequest::getAssetUuid() const { + return assetUuid_; +} + +void DescribeCloudSiemAssetsRequest::setAssetUuid(const std::string &assetUuid) { + assetUuid_ = assetUuid; + setBodyParameter(std::string("AssetUuid"), assetUuid); +} + int DescribeCloudSiemAssetsRequest::getCurrentPage() const { return currentPage_; } diff --git a/cloud-siem/src/model/DescribeCloudSiemEventDetailRequest.cc b/cloud-siem/src/model/DescribeCloudSiemEventDetailRequest.cc index abca19986..505eaceff 100644 --- a/cloud-siem/src/model/DescribeCloudSiemEventDetailRequest.cc +++ b/cloud-siem/src/model/DescribeCloudSiemEventDetailRequest.cc @@ -25,6 +25,15 @@ DescribeCloudSiemEventDetailRequest::DescribeCloudSiemEventDetailRequest() DescribeCloudSiemEventDetailRequest::~DescribeCloudSiemEventDetailRequest() {} +long DescribeCloudSiemEventDetailRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCloudSiemEventDetailRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeCloudSiemEventDetailRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DescribeCloudSiemEventDetailRequest::setRegionId(const std::string ®ionI setBodyParameter(std::string("RegionId"), regionId); } +int DescribeCloudSiemEventDetailRequest::getRoleType() const { + return roleType_; +} + +void DescribeCloudSiemEventDetailRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeCloudSiemEventDetailRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeCloudSiemEventDetailResult.cc b/cloud-siem/src/model/DescribeCloudSiemEventDetailResult.cc index 2c1f7e01d..1d968e702 100644 --- a/cloud-siem/src/model/DescribeCloudSiemEventDetailResult.cc +++ b/cloud-siem/src/model/DescribeCloudSiemEventDetailResult.cc @@ -68,8 +68,26 @@ void DescribeCloudSiemEventDetailResult::parse(const std::string &payload) data_.extContent = dataNode["ExtContent"].asString(); if(!dataNode["Status"].isNull()) data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["ReferAccount"].isNull()) + data_.referAccount = dataNode["ReferAccount"].asString(); + if(!dataNode["IncidentType"].isNull()) + data_.incidentType = dataNode["IncidentType"].asString(); + if(!dataNode["RuleId"].isNull()) + data_.ruleId = dataNode["RuleId"].asString(); if(!dataNode["Remark"].isNull()) data_.remark = dataNode["Remark"].asString(); + auto allAttckStagesNode = dataNode["AttckStages"]["AttckStage"]; + for (auto dataNodeAttckStagesAttckStage : allAttckStagesNode) + { + Data::AttckStage attckStageObject; + if(!dataNodeAttckStagesAttckStage["TacticId"].isNull()) + attckStageObject.tacticId = dataNodeAttckStagesAttckStage["TacticId"].asString(); + if(!dataNodeAttckStagesAttckStage["TacticName"].isNull()) + attckStageObject.tacticName = dataNodeAttckStagesAttckStage["TacticName"].asString(); + if(!dataNodeAttckStagesAttckStage["AlertNum"].isNull()) + attckStageObject.alertNum = std::stoi(dataNodeAttckStagesAttckStage["AlertNum"].asString()); + data_.attckStages.push_back(attckStageObject); + } auto allDataSources = dataNode["DataSources"]["DataSource"]; for (auto value : allDataSources) data_.dataSources.push_back(value.asString()); diff --git a/cloud-siem/src/model/DescribeCloudSiemEventsRequest.cc b/cloud-siem/src/model/DescribeCloudSiemEventsRequest.cc index 7905aef4f..3a34c5284 100644 --- a/cloud-siem/src/model/DescribeCloudSiemEventsRequest.cc +++ b/cloud-siem/src/model/DescribeCloudSiemEventsRequest.cc @@ -25,6 +25,15 @@ DescribeCloudSiemEventsRequest::DescribeCloudSiemEventsRequest() DescribeCloudSiemEventsRequest::~DescribeCloudSiemEventsRequest() {} +long DescribeCloudSiemEventsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCloudSiemEventsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeCloudSiemEventsRequest::getStartTime() const { return startTime_; } @@ -61,6 +70,15 @@ void DescribeCloudSiemEventsRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeCloudSiemEventsRequest::getRoleType() const { + return roleType_; +} + +void DescribeCloudSiemEventsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeCloudSiemEventsRequest::getOrderField() const { return orderField_; } @@ -105,6 +123,15 @@ void DescribeCloudSiemEventsRequest::setThreadLevel(const std::vector - -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 deleted file mode 100644 index 97ae43103..000000000 --- a/cloud-siem/src/model/DescribeCsImportedProdStatusByUserResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::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/DescribeCustomizeRuleCountRequest.cc b/cloud-siem/src/model/DescribeCustomizeRuleCountRequest.cc index eeebc1ef9..66844042c 100644 --- a/cloud-siem/src/model/DescribeCustomizeRuleCountRequest.cc +++ b/cloud-siem/src/model/DescribeCustomizeRuleCountRequest.cc @@ -25,6 +25,15 @@ DescribeCustomizeRuleCountRequest::DescribeCustomizeRuleCountRequest() DescribeCustomizeRuleCountRequest::~DescribeCustomizeRuleCountRequest() {} +long DescribeCustomizeRuleCountRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCustomizeRuleCountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeCustomizeRuleCountRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeCustomizeRuleCountRequest::setRegionId(const std::string ®ionId) setBodyParameter(std::string("RegionId"), regionId); } +int DescribeCustomizeRuleCountRequest::getRoleType() const { + return roleType_; +} + +void DescribeCustomizeRuleCountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeCustomizeRuleCountResult.cc b/cloud-siem/src/model/DescribeCustomizeRuleCountResult.cc index bf37458ac..4baf7c3d3 100644 --- a/cloud-siem/src/model/DescribeCustomizeRuleCountResult.cc +++ b/cloud-siem/src/model/DescribeCustomizeRuleCountResult.cc @@ -48,6 +48,22 @@ void DescribeCustomizeRuleCountResult::parse(const std::string &payload) data_.mediumRuleNum = std::stoi(dataNode["MediumRuleNum"].asString()); if(!dataNode["LowRuleNum"].isNull()) data_.lowRuleNum = std::stoi(dataNode["LowRuleNum"].asString()); + if(!dataNode["TotalRuleNum"].isNull()) + data_.totalRuleNum = std::stoi(dataNode["TotalRuleNum"].asString()); + if(!dataNode["CustomizeRuleNum"].isNull()) + data_.customizeRuleNum = std::stoi(dataNode["CustomizeRuleNum"].asString()); + if(!dataNode["PredefinedRuleNum"].isNull()) + data_.predefinedRuleNum = std::stoi(dataNode["PredefinedRuleNum"].asString()); + if(!dataNode["UnEventRuleNum"].isNull()) + data_.unEventRuleNum = std::stoi(dataNode["UnEventRuleNum"].asString()); + if(!dataNode["ExpertRuleNum"].isNull()) + data_.expertRuleNum = std::stoi(dataNode["ExpertRuleNum"].asString()); + if(!dataNode["GraphComputingRuleNum"].isNull()) + data_.graphComputingRuleNum = std::stoi(dataNode["GraphComputingRuleNum"].asString()); + if(!dataNode["SingleAlertRuleNum"].isNull()) + data_.singleAlertRuleNum = std::stoi(dataNode["SingleAlertRuleNum"].asString()); + if(!dataNode["AggregationRuleNum"].isNull()) + data_.aggregationRuleNum = std::stoi(dataNode["AggregationRuleNum"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/cloud-siem/src/model/DescribeCustomizeRuleRequest.cc b/cloud-siem/src/model/DescribeCustomizeRuleRequest.cc deleted file mode 100644 index b5b66d31e..000000000 --- a/cloud-siem/src/model/DescribeCustomizeRuleRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DescribeCustomizeRuleRequest; - -DescribeCustomizeRuleRequest::DescribeCustomizeRuleRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeCustomizeRule") { - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomizeRuleRequest::~DescribeCustomizeRuleRequest() {} - -std::string DescribeCustomizeRuleRequest::getRegionId() const { - return regionId_; -} - -void DescribeCustomizeRuleRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -long DescribeCustomizeRuleRequest::getRuleId() const { - return ruleId_; -} - -void DescribeCustomizeRuleRequest::setRuleId(long ruleId) { - ruleId_ = ruleId; - setBodyParameter(std::string("RuleId"), std::to_string(ruleId)); -} - diff --git a/cloud-siem/src/model/DescribeCustomizeRuleResult.cc b/cloud-siem/src/model/DescribeCustomizeRuleResult.cc deleted file mode 100644 index c2354f3b7..000000000 --- a/cloud-siem/src/model/DescribeCustomizeRuleResult.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DescribeCustomizeRuleResult::DescribeCustomizeRuleResult() : - ServiceResult() -{} - -DescribeCustomizeRuleResult::DescribeCustomizeRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCustomizeRuleResult::~DescribeCustomizeRuleResult() -{} - -void DescribeCustomizeRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - if(!dataNode["Id"].isNull()) - data_.id = std::stol(dataNode["Id"].asString()); - if(!dataNode["GmtCreate"].isNull()) - data_.gmtCreate = dataNode["GmtCreate"].asString(); - if(!dataNode["GmtModified"].isNull()) - data_.gmtModified = dataNode["GmtModified"].asString(); - if(!dataNode["Aliuid"].isNull()) - data_.aliuid = std::stol(dataNode["Aliuid"].asString()); - if(!dataNode["RuleName"].isNull()) - data_.ruleName = dataNode["RuleName"].asString(); - if(!dataNode["RuleDesc"].isNull()) - data_.ruleDesc = dataNode["RuleDesc"].asString(); - if(!dataNode["RuleType"].isNull()) - data_.ruleType = dataNode["RuleType"].asString(); - if(!dataNode["ThreatLevel"].isNull()) - data_.threatLevel = dataNode["ThreatLevel"].asString(); - if(!dataNode["AlertType"].isNull()) - data_.alertType = dataNode["AlertType"].asString(); - if(!dataNode["AlertTypeMds"].isNull()) - data_.alertTypeMds = dataNode["AlertTypeMds"].asString(); - if(!dataNode["LogType"].isNull()) - data_.logType = dataNode["LogType"].asString(); - if(!dataNode["LogTypeMds"].isNull()) - data_.logTypeMds = dataNode["LogTypeMds"].asString(); - if(!dataNode["LogSource"].isNull()) - data_.logSource = dataNode["LogSource"].asString(); - if(!dataNode["LogSourceMds"].isNull()) - data_.logSourceMds = dataNode["LogSourceMds"].asString(); - if(!dataNode["RuleCondition"].isNull()) - data_.ruleCondition = dataNode["RuleCondition"].asString(); - if(!dataNode["RuleGroup"].isNull()) - data_.ruleGroup = dataNode["RuleGroup"].asString(); - if(!dataNode["RuleThreshold"].isNull()) - data_.ruleThreshold = dataNode["RuleThreshold"].asString(); - if(!dataNode["QueryCycle"].isNull()) - data_.queryCycle = dataNode["QueryCycle"].asString(); - if(!dataNode["EventTransferSwitch"].isNull()) - data_.eventTransferSwitch = std::stoi(dataNode["EventTransferSwitch"].asString()); - if(!dataNode["EventTransferType"].isNull()) - data_.eventTransferType = dataNode["EventTransferType"].asString(); - if(!dataNode["EventTransferExt"].isNull()) - data_.eventTransferExt = dataNode["EventTransferExt"].asString(); - if(!dataNode["Status"].isNull()) - data_.status = std::stoi(dataNode["Status"].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 DescribeCustomizeRuleResult::getMessage()const -{ - return message_; -} - -DescribeCustomizeRuleResult::Data DescribeCustomizeRuleResult::getData()const -{ - return data_; -} - -int DescribeCustomizeRuleResult::getCode()const -{ - return code_; -} - -bool DescribeCustomizeRuleResult::getSuccess()const -{ - return success_; -} - diff --git a/cloud-siem/src/model/DescribeCustomizeRuleTestHistogramRequest.cc b/cloud-siem/src/model/DescribeCustomizeRuleTestHistogramRequest.cc index 7b385c25a..4917b7bfd 100644 --- a/cloud-siem/src/model/DescribeCustomizeRuleTestHistogramRequest.cc +++ b/cloud-siem/src/model/DescribeCustomizeRuleTestHistogramRequest.cc @@ -25,6 +25,15 @@ DescribeCustomizeRuleTestHistogramRequest::DescribeCustomizeRuleTestHistogramReq DescribeCustomizeRuleTestHistogramRequest::~DescribeCustomizeRuleTestHistogramRequest() {} +long DescribeCustomizeRuleTestHistogramRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCustomizeRuleTestHistogramRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeCustomizeRuleTestHistogramRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DescribeCustomizeRuleTestHistogramRequest::setRegionId(const std::string &r setBodyParameter(std::string("RegionId"), regionId); } +int DescribeCustomizeRuleTestHistogramRequest::getRoleType() const { + return roleType_; +} + +void DescribeCustomizeRuleTestHistogramRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DescribeCustomizeRuleTestHistogramRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/DescribeCustomizeRuleTestRequest.cc b/cloud-siem/src/model/DescribeCustomizeRuleTestRequest.cc index 79113bbbc..054c116e0 100644 --- a/cloud-siem/src/model/DescribeCustomizeRuleTestRequest.cc +++ b/cloud-siem/src/model/DescribeCustomizeRuleTestRequest.cc @@ -25,6 +25,15 @@ DescribeCustomizeRuleTestRequest::DescribeCustomizeRuleTestRequest() DescribeCustomizeRuleTestRequest::~DescribeCustomizeRuleTestRequest() {} +long DescribeCustomizeRuleTestRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeCustomizeRuleTestRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeCustomizeRuleTestRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void DescribeCustomizeRuleTestRequest::setRegionId(const std::string ®ionId) setBodyParameter(std::string("RegionId"), regionId); } +int DescribeCustomizeRuleTestRequest::getRoleType() const { + return roleType_; +} + +void DescribeCustomizeRuleTestRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DescribeCustomizeRuleTestRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/DescribeDisposeAndPlaybookRequest.cc b/cloud-siem/src/model/DescribeDisposeAndPlaybookRequest.cc index c27093ac8..0d33d4ae4 100644 --- a/cloud-siem/src/model/DescribeDisposeAndPlaybookRequest.cc +++ b/cloud-siem/src/model/DescribeDisposeAndPlaybookRequest.cc @@ -25,6 +25,15 @@ DescribeDisposeAndPlaybookRequest::DescribeDisposeAndPlaybookRequest() DescribeDisposeAndPlaybookRequest::~DescribeDisposeAndPlaybookRequest() {} +long DescribeDisposeAndPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeDisposeAndPlaybookRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeDisposeAndPlaybookRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void DescribeDisposeAndPlaybookRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeDisposeAndPlaybookRequest::getRoleType() const { + return roleType_; +} + +void DescribeDisposeAndPlaybookRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + int DescribeDisposeAndPlaybookRequest::getCurrentPage() const { return currentPage_; } @@ -61,6 +79,15 @@ void DescribeDisposeAndPlaybookRequest::setEntityType(const std::string &entityT setBodyParameter(std::string("EntityType"), entityType); } +std::string DescribeDisposeAndPlaybookRequest::getEntityUuid() const { + return entityUuid_; +} + +void DescribeDisposeAndPlaybookRequest::setEntityUuid(const std::string &entityUuid) { + entityUuid_ = entityUuid; + setBodyParameter(std::string("EntityUuid"), entityUuid); +} + std::string DescribeDisposeAndPlaybookRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/DescribeDisposeAndPlaybookResult.cc b/cloud-siem/src/model/DescribeDisposeAndPlaybookResult.cc index 9cfef2eae..0b59af723 100644 --- a/cloud-siem/src/model/DescribeDisposeAndPlaybookResult.cc +++ b/cloud-siem/src/model/DescribeDisposeAndPlaybookResult.cc @@ -46,6 +46,8 @@ void DescribeDisposeAndPlaybookResult::parse(const std::string &payload) Data::ResponseDataItem responseDataItemObject; if(!dataNodeResponseDataResponseDataItem["EntityId"].isNull()) responseDataItemObject.entityId = std::stol(dataNodeResponseDataResponseDataItem["EntityId"].asString()); + if(!dataNodeResponseDataResponseDataItem["EntityType"].isNull()) + responseDataItemObject.entityType = dataNodeResponseDataResponseDataItem["EntityType"].asString(); if(!dataNodeResponseDataResponseDataItem["OpcodeMap"].isNull()) responseDataItemObject.opcodeMap = dataNodeResponseDataResponseDataItem["OpcodeMap"].asString(); if(!dataNodeResponseDataResponseDataItem["EntityInfo"].isNull()) @@ -70,8 +72,15 @@ void DescribeDisposeAndPlaybookResult::parse(const std::string &payload) playbookListObject.taskConfig = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["TaskConfig"].asString(); if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Name"].isNull()) playbookListObject.name = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Name"].asString(); + if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Uuid"].isNull()) + playbookListObject.uuid = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Uuid"].asString(); if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["WafPlaybook"].isNull()) playbookListObject.wafPlaybook = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["WafPlaybook"].asString() == "true"; + if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Available"].isNull()) + playbookListObject.available = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Available"].asString(); + auto allParamConfig = value["ParamConfig"]["ParamConfig"]; + for (auto value : allParamConfig) + playbookListObject.paramConfig.push_back(value.asString()); responseDataItemObject.playbookList.push_back(playbookListObject); } auto allOpcodeSet = value["OpcodeSet"]["OpcodeSet"]; diff --git a/cloud-siem/src/model/DescribeDisposeStrategyPlaybookRequest.cc b/cloud-siem/src/model/DescribeDisposeStrategyPlaybookRequest.cc index d654b0e24..ee04549a8 100644 --- a/cloud-siem/src/model/DescribeDisposeStrategyPlaybookRequest.cc +++ b/cloud-siem/src/model/DescribeDisposeStrategyPlaybookRequest.cc @@ -25,6 +25,15 @@ DescribeDisposeStrategyPlaybookRequest::DescribeDisposeStrategyPlaybookRequest() DescribeDisposeStrategyPlaybookRequest::~DescribeDisposeStrategyPlaybookRequest() {} +long DescribeDisposeStrategyPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeDisposeStrategyPlaybookRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeDisposeStrategyPlaybookRequest::getStartTime() const { return startTime_; } @@ -43,6 +52,15 @@ void DescribeDisposeStrategyPlaybookRequest::setRegionId(const std::string ®i setBodyParameter(std::string("RegionId"), regionId); } +int DescribeDisposeStrategyPlaybookRequest::getRoleType() const { + return roleType_; +} + +void DescribeDisposeStrategyPlaybookRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long DescribeDisposeStrategyPlaybookRequest::getEndTime() const { return endTime_; } diff --git a/cloud-siem/src/model/DescribeEntityInfoRequest.cc b/cloud-siem/src/model/DescribeEntityInfoRequest.cc index 1446d2e51..40fdbe3f6 100644 --- a/cloud-siem/src/model/DescribeEntityInfoRequest.cc +++ b/cloud-siem/src/model/DescribeEntityInfoRequest.cc @@ -34,6 +34,15 @@ void DescribeEntityInfoRequest::setEntityIdentity(const std::string &entityIdent setBodyParameter(std::string("EntityIdentity"), entityIdentity); } +long DescribeEntityInfoRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeEntityInfoRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeEntityInfoRequest::getEntityId() const { return entityId_; } @@ -52,6 +61,15 @@ void DescribeEntityInfoRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeEntityInfoRequest::getRoleType() const { + return roleType_; +} + +void DescribeEntityInfoRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeEntityInfoRequest::getSophonTaskId() const { return sophonTaskId_; } diff --git a/cloud-siem/src/model/DescribeEventCountByThreatLevelRequest.cc b/cloud-siem/src/model/DescribeEventCountByThreatLevelRequest.cc index 6ad66ae36..35d6f0a8f 100644 --- a/cloud-siem/src/model/DescribeEventCountByThreatLevelRequest.cc +++ b/cloud-siem/src/model/DescribeEventCountByThreatLevelRequest.cc @@ -25,6 +25,24 @@ DescribeEventCountByThreatLevelRequest::DescribeEventCountByThreatLevelRequest() DescribeEventCountByThreatLevelRequest::~DescribeEventCountByThreatLevelRequest() {} +long DescribeEventCountByThreatLevelRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeEventCountByThreatLevelRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +long DescribeEventCountByThreatLevelRequest::getStartTime() const { + return startTime_; +} + +void DescribeEventCountByThreatLevelRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + std::string DescribeEventCountByThreatLevelRequest::getRegionId() const { return regionId_; } @@ -34,3 +52,21 @@ void DescribeEventCountByThreatLevelRequest::setRegionId(const std::string ®i setBodyParameter(std::string("RegionId"), regionId); } +int DescribeEventCountByThreatLevelRequest::getRoleType() const { + return roleType_; +} + +void DescribeEventCountByThreatLevelRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + +long DescribeEventCountByThreatLevelRequest::getEndTime() const { + return endTime_; +} + +void DescribeEventCountByThreatLevelRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + diff --git a/cloud-siem/src/model/DescribeEventDisposeRequest.cc b/cloud-siem/src/model/DescribeEventDisposeRequest.cc index d6cae7e09..a5e8a5b21 100644 --- a/cloud-siem/src/model/DescribeEventDisposeRequest.cc +++ b/cloud-siem/src/model/DescribeEventDisposeRequest.cc @@ -25,6 +25,15 @@ DescribeEventDisposeRequest::DescribeEventDisposeRequest() DescribeEventDisposeRequest::~DescribeEventDisposeRequest() {} +long DescribeEventDisposeRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeEventDisposeRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeEventDisposeRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void DescribeEventDisposeRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeEventDisposeRequest::getRoleType() const { + return roleType_; +} + +void DescribeEventDisposeRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + int DescribeEventDisposeRequest::getCurrentPage() const { return currentPage_; } diff --git a/cloud-siem/src/model/DescribeImportedLogCountRequest.cc b/cloud-siem/src/model/DescribeImportedLogCountRequest.cc index f7f056c66..5af058a21 100644 --- a/cloud-siem/src/model/DescribeImportedLogCountRequest.cc +++ b/cloud-siem/src/model/DescribeImportedLogCountRequest.cc @@ -25,6 +25,15 @@ DescribeImportedLogCountRequest::DescribeImportedLogCountRequest() DescribeImportedLogCountRequest::~DescribeImportedLogCountRequest() {} +std::string DescribeImportedLogCountRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeImportedLogCountRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), roleFor); +} + std::string DescribeImportedLogCountRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeImportedLogCountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +std::string DescribeImportedLogCountRequest::getRoleType() const { + return roleType_; +} + +void DescribeImportedLogCountRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), roleType); +} + diff --git a/cloud-siem/src/model/DescribeJobStatusRequest.cc b/cloud-siem/src/model/DescribeJobStatusRequest.cc deleted file mode 100644 index eae38f829..000000000 --- a/cloud-siem/src/model/DescribeJobStatusRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DescribeJobStatusRequest; - -DescribeJobStatusRequest::DescribeJobStatusRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeJobStatus") { - setMethod(HttpRequest::Method::Post); -} - -DescribeJobStatusRequest::~DescribeJobStatusRequest() {} - -std::string DescribeJobStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeJobStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string DescribeJobStatusRequest::getSubmitId() const { - return submitId_; -} - -void DescribeJobStatusRequest::setSubmitId(const std::string &submitId) { - submitId_ = submitId; - setBodyParameter(std::string("SubmitId"), submitId); -} - diff --git a/cloud-siem/src/model/DescribeJobStatusResult.cc b/cloud-siem/src/model/DescribeJobStatusResult.cc deleted file mode 100644 index 3cf80a064..000000000 --- a/cloud-siem/src/model/DescribeJobStatusResult.cc +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DescribeJobStatusResult::DescribeJobStatusResult() : - ServiceResult() -{} - -DescribeJobStatusResult::DescribeJobStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeJobStatusResult::~DescribeJobStatusResult() -{} - -void DescribeJobStatusResult::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["TaskCount"].isNull()) - data_.taskCount = std::stoi(dataNode["TaskCount"].asString()); - if(!dataNode["FinishCount"].isNull()) - data_.finishCount = std::stoi(dataNode["FinishCount"].asString()); - if(!dataNode["FailedCount"].isNull()) - data_.failedCount = std::stoi(dataNode["FailedCount"].asString()); - if(!dataNode["TaskStatus"].isNull()) - data_.taskStatus = dataNode["TaskStatus"].asString(); - if(!dataNode["ConfigId"].isNull()) - data_.configId = dataNode["ConfigId"].asString(); - if(!dataNode["FolderId"].isNull()) - data_.folderId = dataNode["FolderId"].asString(); - auto allErrTaskListNode = dataNode["ErrTaskList"]["ErrTaskListItem"]; - for (auto dataNodeErrTaskListErrTaskListItem : allErrTaskListNode) - { - Data::ErrTaskListItem errTaskListItemObject; - if(!dataNodeErrTaskListErrTaskListItem["UserId"].isNull()) - errTaskListItemObject.userId = std::stol(dataNodeErrTaskListErrTaskListItem["UserId"].asString()); - auto allProductListNode = dataNodeErrTaskListErrTaskListItem["ProductList"]["ProductListItem"]; - for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItem : allProductListNode) - { - Data::ErrTaskListItem::ProductListItem productListObject; - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].isNull()) - productListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].asString(); - auto allLogListNode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["LogList"]["LogListItem"]; - for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem : allLogListNode) - { - Data::ErrTaskListItem::ProductListItem::LogListItem logListObject; - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].isNull()) - logListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].isNull()) - logListObject.logCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].isNull()) - logListObject.regionCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].isNull()) - logListObject.projectNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].isNull()) - logListObject.logStoreNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].asString(); - if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].isNull()) - logListObject.errorCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].asString(); - productListObject.logList.push_back(logListObject); - } - errTaskListItemObject.productList.push_back(productListObject); - } - data_.errTaskList.push_back(errTaskListItemObject); - } - 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(); - -} - -std::string DescribeJobStatusResult::getMessage()const -{ - return message_; -} - -DescribeJobStatusResult::Data DescribeJobStatusResult::getData()const -{ - return data_; -} - -int DescribeJobStatusResult::getCode()const -{ - return code_; -} - -bool DescribeJobStatusResult::getSuccess()const -{ - return success_; -} - -std::string DescribeJobStatusResult::getErrCode()const -{ - return errCode_; -} - diff --git a/cloud-siem/src/model/DescribeLogFieldsRequest.cc b/cloud-siem/src/model/DescribeLogFieldsRequest.cc index 31518ad2c..51060e728 100644 --- a/cloud-siem/src/model/DescribeLogFieldsRequest.cc +++ b/cloud-siem/src/model/DescribeLogFieldsRequest.cc @@ -25,6 +25,15 @@ DescribeLogFieldsRequest::DescribeLogFieldsRequest() DescribeLogFieldsRequest::~DescribeLogFieldsRequest() {} +long DescribeLogFieldsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeLogFieldsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeLogFieldsRequest::getLogType() const { return logType_; } @@ -43,6 +52,15 @@ void DescribeLogFieldsRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeLogFieldsRequest::getRoleType() const { + return roleType_; +} + +void DescribeLogFieldsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string DescribeLogFieldsRequest::getLogSource() const { return logSource_; } diff --git a/cloud-siem/src/model/DescribeLogSourceRequest.cc b/cloud-siem/src/model/DescribeLogSourceRequest.cc index e1ae3e53a..8e746d376 100644 --- a/cloud-siem/src/model/DescribeLogSourceRequest.cc +++ b/cloud-siem/src/model/DescribeLogSourceRequest.cc @@ -25,6 +25,15 @@ DescribeLogSourceRequest::DescribeLogSourceRequest() DescribeLogSourceRequest::~DescribeLogSourceRequest() {} +long DescribeLogSourceRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeLogSourceRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeLogSourceRequest::getLogType() const { return logType_; } @@ -43,3 +52,12 @@ void DescribeLogSourceRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeLogSourceRequest::getRoleType() const { + return roleType_; +} + +void DescribeLogSourceRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeLogStoreRequest.cc b/cloud-siem/src/model/DescribeLogStoreRequest.cc deleted file mode 100644 index b50357af1..000000000 --- a/cloud-siem/src/model/DescribeLogStoreRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DescribeLogStoreRequest; - -DescribeLogStoreRequest::DescribeLogStoreRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeLogStore") { - setMethod(HttpRequest::Method::Post); -} - -DescribeLogStoreRequest::~DescribeLogStoreRequest() {} - -std::string DescribeLogStoreRequest::getRegionId() const { - return regionId_; -} - -void DescribeLogStoreRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - diff --git a/cloud-siem/src/model/DescribeLogStoreResult.cc b/cloud-siem/src/model/DescribeLogStoreResult.cc deleted file mode 100644 index 6b6c58912..000000000 --- a/cloud-siem/src/model/DescribeLogStoreResult.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DescribeLogStoreResult::DescribeLogStoreResult() : - ServiceResult() -{} - -DescribeLogStoreResult::DescribeLogStoreResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLogStoreResult::~DescribeLogStoreResult() -{} - -void DescribeLogStoreResult::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["LogStoreName"].isNull()) - data_.logStoreName = dataNode["LogStoreName"].asString(); - if(!dataNode["Ttl"].isNull()) - data_.ttl = std::stoi(dataNode["Ttl"].asString()); - if(!dataNode["ShardCount"].isNull()) - data_.shardCount = std::stoi(dataNode["ShardCount"].asString()); - if(!dataNode["EnableTracking"].isNull()) - data_.enableTracking = dataNode["EnableTracking"].asString() == "true"; - if(!dataNode["AutoSplit"].isNull()) - data_.autoSplit = dataNode["AutoSplit"].asString() == "true"; - if(!dataNode["MaxSplitShard"].isNull()) - data_.maxSplitShard = std::stoi(dataNode["MaxSplitShard"].asString()); - if(!dataNode["AppendMeta"].isNull()) - data_.appendMeta = dataNode["AppendMeta"].asString() == "true"; - -} - -DescribeLogStoreResult::Data DescribeLogStoreResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/DescribeLogTypeRequest.cc b/cloud-siem/src/model/DescribeLogTypeRequest.cc index bfb4fe0f4..0f1a72039 100644 --- a/cloud-siem/src/model/DescribeLogTypeRequest.cc +++ b/cloud-siem/src/model/DescribeLogTypeRequest.cc @@ -25,6 +25,15 @@ DescribeLogTypeRequest::DescribeLogTypeRequest() DescribeLogTypeRequest::~DescribeLogTypeRequest() {} +long DescribeLogTypeRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeLogTypeRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeLogTypeRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeLogTypeRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeLogTypeRequest::getRoleType() const { + return roleType_; +} + +void DescribeLogTypeRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeOperatorsRequest.cc b/cloud-siem/src/model/DescribeOperatorsRequest.cc index b3c2e187e..8962ed365 100644 --- a/cloud-siem/src/model/DescribeOperatorsRequest.cc +++ b/cloud-siem/src/model/DescribeOperatorsRequest.cc @@ -25,13 +25,13 @@ DescribeOperatorsRequest::DescribeOperatorsRequest() DescribeOperatorsRequest::~DescribeOperatorsRequest() {} -std::string DescribeOperatorsRequest::getSceneType() const { - return sceneType_; +long DescribeOperatorsRequest::getRoleFor() const { + return roleFor_; } -void DescribeOperatorsRequest::setSceneType(const std::string &sceneType) { - sceneType_ = sceneType; - setBodyParameter(std::string("SceneType"), sceneType); +void DescribeOperatorsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); } std::string DescribeOperatorsRequest::getRegionId() const { @@ -43,3 +43,21 @@ void DescribeOperatorsRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeOperatorsRequest::getRoleType() const { + return roleType_; +} + +void DescribeOperatorsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + +std::string DescribeOperatorsRequest::getSceneType() const { + return sceneType_; +} + +void DescribeOperatorsRequest::setSceneType(const std::string &sceneType) { + sceneType_ = sceneType; + setBodyParameter(std::string("SceneType"), sceneType); +} + diff --git a/cloud-siem/src/model/DescribeProdCountRequest.cc b/cloud-siem/src/model/DescribeProdCountRequest.cc index 795a7f117..289fcb15d 100644 --- a/cloud-siem/src/model/DescribeProdCountRequest.cc +++ b/cloud-siem/src/model/DescribeProdCountRequest.cc @@ -25,6 +25,15 @@ DescribeProdCountRequest::DescribeProdCountRequest() DescribeProdCountRequest::~DescribeProdCountRequest() {} +long DescribeProdCountRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeProdCountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeProdCountRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeProdCountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeProdCountRequest::getRoleType() const { + return roleType_; +} + +void DescribeProdCountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeProdCountResult.cc b/cloud-siem/src/model/DescribeProdCountResult.cc index 05ef77685..81451e9be 100644 --- a/cloud-siem/src/model/DescribeProdCountResult.cc +++ b/cloud-siem/src/model/DescribeProdCountResult.cc @@ -46,6 +46,16 @@ void DescribeProdCountResult::parse(const std::string &payload) data_.hcloudProdCount = std::stoi(dataNode["HcloudProdCount"].asString()); if(!dataNode["QcloudProdCount"].isNull()) data_.qcloudProdCount = std::stoi(dataNode["QcloudProdCount"].asString()); + if(!dataNode["IdcProdCount"].isNull()) + data_.idcProdCount = std::stoi(dataNode["IdcProdCount"].asString()); + if(!dataNode["AliyunImportedCount"].isNull()) + data_.aliyunImportedCount = std::stoi(dataNode["AliyunImportedCount"].asString()); + if(!dataNode["HcloudImportedCount"].isNull()) + data_.hcloudImportedCount = std::stoi(dataNode["HcloudImportedCount"].asString()); + if(!dataNode["QcloudImportedCount"].isNull()) + data_.qcloudImportedCount = std::stoi(dataNode["QcloudImportedCount"].asString()); + if(!dataNode["IdcImportedCount"].isNull()) + data_.idcImportedCount = std::stoi(dataNode["IdcImportedCount"].asString()); } diff --git a/cloud-siem/src/model/DescribeScopeUsersRequest.cc b/cloud-siem/src/model/DescribeScopeUsersRequest.cc index f0ad7c27e..8b2df9c29 100644 --- a/cloud-siem/src/model/DescribeScopeUsersRequest.cc +++ b/cloud-siem/src/model/DescribeScopeUsersRequest.cc @@ -25,6 +25,15 @@ DescribeScopeUsersRequest::DescribeScopeUsersRequest() DescribeScopeUsersRequest::~DescribeScopeUsersRequest() {} +long DescribeScopeUsersRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeScopeUsersRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeScopeUsersRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeScopeUsersRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeScopeUsersRequest::getRoleType() const { + return roleType_; +} + +void DescribeScopeUsersRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeScopeUsersResult.cc b/cloud-siem/src/model/DescribeScopeUsersResult.cc index 23ed4d880..18f11306d 100644 --- a/cloud-siem/src/model/DescribeScopeUsersResult.cc +++ b/cloud-siem/src/model/DescribeScopeUsersResult.cc @@ -47,6 +47,10 @@ void DescribeScopeUsersResult::parse(const std::string &payload) dataObject.aliUid = std::stol(valueDataDataItem["AliUid"].asString()); if(!valueDataDataItem["UserName"].isNull()) dataObject.userName = valueDataDataItem["UserName"].asString(); + if(!valueDataDataItem["UserId"].isNull()) + dataObject.userId = valueDataDataItem["UserId"].asString(); + if(!valueDataDataItem["CloudCode"].isNull()) + dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); if(!valueDataDataItem["InstanceId"].isNull()) dataObject.instanceId = valueDataDataItem["InstanceId"].asString(); auto allDomains = value["Domains"]["Domain"]; diff --git a/cloud-siem/src/model/DescribeStorageRequest.cc b/cloud-siem/src/model/DescribeStorageRequest.cc index 6d2e723ec..9216fd0b1 100644 --- a/cloud-siem/src/model/DescribeStorageRequest.cc +++ b/cloud-siem/src/model/DescribeStorageRequest.cc @@ -25,6 +25,15 @@ DescribeStorageRequest::DescribeStorageRequest() DescribeStorageRequest::~DescribeStorageRequest() {} +long DescribeStorageRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeStorageRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeStorageRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void DescribeStorageRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeStorageRequest::getRoleType() const { + return roleType_; +} + +void DescribeStorageRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeUserBuyStatusResult.cc b/cloud-siem/src/model/DescribeUserBuyStatusResult.cc index ab9bf1a82..fcfc932fa 100644 --- a/cloud-siem/src/model/DescribeUserBuyStatusResult.cc +++ b/cloud-siem/src/model/DescribeUserBuyStatusResult.cc @@ -62,6 +62,8 @@ void DescribeUserBuyStatusResult::parse(const std::string &payload) data_.endTime = std::stol(dataNode["EndTime"].asString()); if(!dataNode["DurationDays"].isNull()) data_.durationDays = std::stol(dataNode["DurationDays"].asString()); + if(!dataNode["RdOrder"].isNull()) + data_.rdOrder = std::stoi(dataNode["RdOrder"].asString()); } diff --git a/cloud-siem/src/model/DescribeWafScopeRequest.cc b/cloud-siem/src/model/DescribeWafScopeRequest.cc index 15bb97d94..2e9934694 100644 --- a/cloud-siem/src/model/DescribeWafScopeRequest.cc +++ b/cloud-siem/src/model/DescribeWafScopeRequest.cc @@ -25,6 +25,15 @@ DescribeWafScopeRequest::DescribeWafScopeRequest() DescribeWafScopeRequest::~DescribeWafScopeRequest() {} +long DescribeWafScopeRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeWafScopeRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long DescribeWafScopeRequest::getEntityId() const { return entityId_; } @@ -43,3 +52,12 @@ void DescribeWafScopeRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int DescribeWafScopeRequest::getRoleType() const { + return roleType_; +} + +void DescribeWafScopeRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/DescribeWhiteRuleListRequest.cc b/cloud-siem/src/model/DescribeWhiteRuleListRequest.cc index 4b89a8b06..0e03f79f9 100644 --- a/cloud-siem/src/model/DescribeWhiteRuleListRequest.cc +++ b/cloud-siem/src/model/DescribeWhiteRuleListRequest.cc @@ -25,6 +25,15 @@ DescribeWhiteRuleListRequest::DescribeWhiteRuleListRequest() DescribeWhiteRuleListRequest::~DescribeWhiteRuleListRequest() {} +long DescribeWhiteRuleListRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeWhiteRuleListRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string DescribeWhiteRuleListRequest::getAlertName() const { return alertName_; } @@ -52,6 +61,15 @@ void DescribeWhiteRuleListRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeWhiteRuleListRequest::getRoleType() const { + return roleType_; +} + +void DescribeWhiteRuleListRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + int DescribeWhiteRuleListRequest::getCurrentPage() const { return currentPage_; } diff --git a/cloud-siem/src/model/DoQuickFieldRequest.cc b/cloud-siem/src/model/DoQuickFieldRequest.cc deleted file mode 100644 index b398c5d73..000000000 --- a/cloud-siem/src/model/DoQuickFieldRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DoQuickFieldRequest; - -DoQuickFieldRequest::DoQuickFieldRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DoQuickField") { - setMethod(HttpRequest::Method::Post); -} - -DoQuickFieldRequest::~DoQuickFieldRequest() {} - -std::string DoQuickFieldRequest::getRegionId() const { - return regionId_; -} - -void DoQuickFieldRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -int DoQuickFieldRequest::getFrom() const { - return from_; -} - -void DoQuickFieldRequest::setFrom(int from) { - from_ = from; - setBodyParameter(std::string("From"), std::to_string(from)); -} - -std::string DoQuickFieldRequest::getIndex() const { - return index_; -} - -void DoQuickFieldRequest::setIndex(const std::string &index) { - index_ = index; - setBodyParameter(std::string("Index"), index); -} - -bool DoQuickFieldRequest::getReverse() const { - return reverse_; -} - -void DoQuickFieldRequest::setReverse(bool reverse) { - reverse_ = reverse; - setBodyParameter(std::string("Reverse"), reverse ? "true" : "false"); -} - -int DoQuickFieldRequest::getSize() const { - return size_; -} - -void DoQuickFieldRequest::setSize(int size) { - size_ = size; - setBodyParameter(std::string("Size"), std::to_string(size)); -} - -int DoQuickFieldRequest::getTo() const { - return to_; -} - -void DoQuickFieldRequest::setTo(int to) { - to_ = to; - setBodyParameter(std::string("To"), std::to_string(to)); -} - -int DoQuickFieldRequest::getPage() const { - return page_; -} - -void DoQuickFieldRequest::setPage(int page) { - page_ = page; - setBodyParameter(std::string("Page"), std::to_string(page)); -} - diff --git a/cloud-siem/src/model/DoQuickFieldResult.cc b/cloud-siem/src/model/DoQuickFieldResult.cc deleted file mode 100644 index 96d7850e1..000000000 --- a/cloud-siem/src/model/DoQuickFieldResult.cc +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DoQuickFieldResult::DoQuickFieldResult() : - ServiceResult() -{} - -DoQuickFieldResult::DoQuickFieldResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DoQuickFieldResult::~DoQuickFieldResult() -{} - -void DoQuickFieldResult::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["QueryMode"].isNull()) - data_.queryMode = std::stoi(dataNode["QueryMode"].asString()); - if(!dataNode["Limited"].isNull()) - data_.limited = std::stol(dataNode["Limited"].asString()); - if(!dataNode["Count"].isNull()) - data_.count = std::stoi(dataNode["Count"].asString()); - if(!dataNode["HasSQL"].isNull()) - data_.hasSQL = dataNode["HasSQL"].asString() == "true"; - if(!dataNode["WhereQuery"].isNull()) - data_.whereQuery = dataNode["WhereQuery"].asString(); - if(!dataNode["PQuery"].isNull()) - data_.pQuery = dataNode["PQuery"].asString(); - if(!dataNode["ProcessedRows"].isNull()) - data_.processedRows = std::stol(dataNode["ProcessedRows"].asString()); - if(!dataNode["CompleteOrNot"].isNull()) - data_.completeOrNot = dataNode["CompleteOrNot"].asString() == "true"; - if(!dataNode["AggQueryd"].isNull()) - data_.aggQueryd = dataNode["AggQueryd"].asString(); - auto allKeys = dataNode["Keys"]["Key"]; - for (auto value : allKeys) - data_.keys.push_back(value.asString()); - auto allLogs = dataNode["Logs"]["Log"]; - for (auto value : allLogs) - data_.logs.push_back(value.asString()); - -} - -DoQuickFieldResult::Data DoQuickFieldResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/DoSelfDelegateRequest.cc b/cloud-siem/src/model/DoSelfDelegateRequest.cc deleted file mode 100644 index 682780158..000000000 --- a/cloud-siem/src/model/DoSelfDelegateRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::DoSelfDelegateRequest; - -DoSelfDelegateRequest::DoSelfDelegateRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "DoSelfDelegate") { - setMethod(HttpRequest::Method::Post); -} - -DoSelfDelegateRequest::~DoSelfDelegateRequest() {} - -std::string DoSelfDelegateRequest::getRegionId() const { - return regionId_; -} - -void DoSelfDelegateRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -long DoSelfDelegateRequest::getAliUid() const { - return aliUid_; -} - -void DoSelfDelegateRequest::setAliUid(long aliUid) { - aliUid_ = aliUid; - setBodyParameter(std::string("AliUid"), std::to_string(aliUid)); -} - -int DoSelfDelegateRequest::getDelegateOrNot() const { - return delegateOrNot_; -} - -void DoSelfDelegateRequest::setDelegateOrNot(int delegateOrNot) { - delegateOrNot_ = delegateOrNot; - setBodyParameter(std::string("DelegateOrNot"), std::to_string(delegateOrNot)); -} - diff --git a/cloud-siem/src/model/DoSelfDelegateResult.cc b/cloud-siem/src/model/DoSelfDelegateResult.cc deleted file mode 100644 index be258ad13..000000000 --- a/cloud-siem/src/model/DoSelfDelegateResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -DoSelfDelegateResult::DoSelfDelegateResult() : - ServiceResult() -{} - -DoSelfDelegateResult::DoSelfDelegateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DoSelfDelegateResult::~DoSelfDelegateResult() -{} - -void DoSelfDelegateResult::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 DoSelfDelegateResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc b/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc index a3347c94b..561b99e48 100644 --- a/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc +++ b/cloud-siem/src/model/EnableAccessForCloudSiemRequest.cc @@ -25,6 +25,24 @@ EnableAccessForCloudSiemRequest::EnableAccessForCloudSiemRequest() EnableAccessForCloudSiemRequest::~EnableAccessForCloudSiemRequest() {} +long EnableAccessForCloudSiemRequest::getRoleFor() const { + return roleFor_; +} + +void EnableAccessForCloudSiemRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +int EnableAccessForCloudSiemRequest::getAutoSubmit() const { + return autoSubmit_; +} + +void EnableAccessForCloudSiemRequest::setAutoSubmit(int autoSubmit) { + autoSubmit_ = autoSubmit; + setBodyParameter(std::string("AutoSubmit"), std::to_string(autoSubmit)); +} + std::string EnableAccessForCloudSiemRequest::getRegionId() const { return regionId_; } @@ -34,3 +52,12 @@ void EnableAccessForCloudSiemRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int EnableAccessForCloudSiemRequest::getRoleType() const { + return roleType_; +} + +void EnableAccessForCloudSiemRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/GetCapacityRequest.cc b/cloud-siem/src/model/GetCapacityRequest.cc index 294db4b81..3db77107f 100644 --- a/cloud-siem/src/model/GetCapacityRequest.cc +++ b/cloud-siem/src/model/GetCapacityRequest.cc @@ -25,6 +25,15 @@ GetCapacityRequest::GetCapacityRequest() GetCapacityRequest::~GetCapacityRequest() {} +long GetCapacityRequest::getRoleFor() const { + return roleFor_; +} + +void GetCapacityRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string GetCapacityRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void GetCapacityRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int GetCapacityRequest::getRoleType() const { + return roleType_; +} + +void GetCapacityRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/GetHistogramsRequest.cc b/cloud-siem/src/model/GetHistogramsRequest.cc deleted file mode 100644 index 9e1965cbb..000000000 --- a/cloud-siem/src/model/GetHistogramsRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::GetHistogramsRequest; - -GetHistogramsRequest::GetHistogramsRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "GetHistograms") { - setMethod(HttpRequest::Method::Post); -} - -GetHistogramsRequest::~GetHistogramsRequest() {} - -std::string GetHistogramsRequest::getRegionId() const { - return regionId_; -} - -void GetHistogramsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -int GetHistogramsRequest::getFrom() const { - return from_; -} - -void GetHistogramsRequest::setFrom(int from) { - from_ = from; - setBodyParameter(std::string("From"), std::to_string(from)); -} - -std::string GetHistogramsRequest::getQuery() const { - return query_; -} - -void GetHistogramsRequest::setQuery(const std::string &query) { - query_ = query; - setBodyParameter(std::string("Query"), query); -} - -int GetHistogramsRequest::getTo() const { - return to_; -} - -void GetHistogramsRequest::setTo(int to) { - to_ = to; - setBodyParameter(std::string("To"), std::to_string(to)); -} - diff --git a/cloud-siem/src/model/GetHistogramsResult.cc b/cloud-siem/src/model/GetHistogramsResult.cc deleted file mode 100644 index fe40ad54c..000000000 --- a/cloud-siem/src/model/GetHistogramsResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -GetHistogramsResult::GetHistogramsResult() : - ServiceResult() -{} - -GetHistogramsResult::GetHistogramsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetHistogramsResult::~GetHistogramsResult() -{} - -void GetHistogramsResult::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["Server"].isNull()) - data_.server = dataNode["Server"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stol(dataNode["TotalCount"].asString()); - auto allHistogramsNode = dataNode["Histograms"]["Histogram"]; - for (auto dataNodeHistogramsHistogram : allHistogramsNode) - { - Data::Histogram histogramObject; - if(!dataNodeHistogramsHistogram["From"].isNull()) - histogramObject.from = std::stoi(dataNodeHistogramsHistogram["From"].asString()); - if(!dataNodeHistogramsHistogram["To"].isNull()) - histogramObject.to = std::stoi(dataNodeHistogramsHistogram["To"].asString()); - if(!dataNodeHistogramsHistogram["Count"].isNull()) - histogramObject.count = std::stol(dataNodeHistogramsHistogram["Count"].asString()); - if(!dataNodeHistogramsHistogram["CompletedOrNot"].isNull()) - histogramObject.completedOrNot = dataNodeHistogramsHistogram["CompletedOrNot"].asString() == "true"; - data_.histograms.push_back(histogramObject); - } - -} - -GetHistogramsResult::Data GetHistogramsResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/GetLogsRequest.cc b/cloud-siem/src/model/GetLogsRequest.cc deleted file mode 100644 index 2dfe349d7..000000000 --- a/cloud-siem/src/model/GetLogsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::GetLogsRequest; - -GetLogsRequest::GetLogsRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "GetLogs") { - setMethod(HttpRequest::Method::Post); -} - -GetLogsRequest::~GetLogsRequest() {} - -long GetLogsRequest::getTotal() const { - return total_; -} - -void GetLogsRequest::setTotal(long total) { - total_ = total; - setBodyParameter(std::string("Total"), std::to_string(total)); -} - -std::string GetLogsRequest::getRegionId() const { - return regionId_; -} - -void GetLogsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -int GetLogsRequest::getPageSize() const { - return pageSize_; -} - -void GetLogsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -int GetLogsRequest::getFrom() const { - return from_; -} - -void GetLogsRequest::setFrom(int from) { - from_ = from; - setBodyParameter(std::string("From"), std::to_string(from)); -} - -int GetLogsRequest::getPageIndex() const { - return pageIndex_; -} - -void GetLogsRequest::setPageIndex(int pageIndex) { - pageIndex_ = pageIndex; - setBodyParameter(std::string("PageIndex"), std::to_string(pageIndex)); -} - -bool GetLogsRequest::getReverseOrNot() const { - return reverseOrNot_; -} - -void GetLogsRequest::setReverseOrNot(bool reverseOrNot) { - reverseOrNot_ = reverseOrNot; - setBodyParameter(std::string("ReverseOrNot"), reverseOrNot ? "true" : "false"); -} - -std::string GetLogsRequest::getQuery() const { - return query_; -} - -void GetLogsRequest::setQuery(const std::string &query) { - query_ = query; - setBodyParameter(std::string("Query"), query); -} - -int GetLogsRequest::getTo() const { - return to_; -} - -void GetLogsRequest::setTo(int to) { - to_ = to; - setBodyParameter(std::string("To"), std::to_string(to)); -} - diff --git a/cloud-siem/src/model/GetLogsResult.cc b/cloud-siem/src/model/GetLogsResult.cc deleted file mode 100644 index fdc12205e..000000000 --- a/cloud-siem/src/model/GetLogsResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -GetLogsResult::GetLogsResult() : - ServiceResult() -{} - -GetLogsResult::GetLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetLogsResult::~GetLogsResult() -{} - -void GetLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - 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()); - auto responseDataNode = dataNode["ResponseData"]; - if(!responseDataNode["CompleteOrNot"].isNull()) - data_.responseData.completeOrNot = responseDataNode["CompleteOrNot"].asString() == "true"; - if(!responseDataNode["Count"].isNull()) - data_.responseData.count = std::stoi(responseDataNode["Count"].asString()); - if(!responseDataNode["Cost"].isNull()) - data_.responseData.cost = std::stol(responseDataNode["Cost"].asString()); - if(!responseDataNode["HasSql"].isNull()) - data_.responseData.hasSql = responseDataNode["HasSql"].asString() == "true"; - auto allKeys = responseDataNode["Keys"]["Key"]; - for (auto value : allKeys) - data_.responseData.keys.push_back(value.asString()); - auto allLines = responseDataNode["Lines"]["Line"]; - for (auto value : allLines) - data_.responseData.lines.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(); - -} - -std::string GetLogsResult::getMessage()const -{ - return message_; -} - -GetLogsResult::Data GetLogsResult::getData()const -{ - return data_; -} - -int GetLogsResult::getCode()const -{ - return code_; -} - -bool GetLogsResult::getSuccess()const -{ - return success_; -} - diff --git a/cloud-siem/src/model/GetQuickQueryRequest.cc b/cloud-siem/src/model/GetQuickQueryRequest.cc deleted file mode 100644 index d68deca39..000000000 --- a/cloud-siem/src/model/GetQuickQueryRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::GetQuickQueryRequest; - -GetQuickQueryRequest::GetQuickQueryRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "GetQuickQuery") { - setMethod(HttpRequest::Method::Post); -} - -GetQuickQueryRequest::~GetQuickQueryRequest() {} - -std::string GetQuickQueryRequest::getSearchName() const { - return searchName_; -} - -void GetQuickQueryRequest::setSearchName(const std::string &searchName) { - searchName_ = searchName; - setBodyParameter(std::string("SearchName"), searchName); -} - -std::string GetQuickQueryRequest::getRegionId() const { - return regionId_; -} - -void GetQuickQueryRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - diff --git a/cloud-siem/src/model/GetQuickQueryResult.cc b/cloud-siem/src/model/GetQuickQueryResult.cc deleted file mode 100644 index 82c249a07..000000000 --- a/cloud-siem/src/model/GetQuickQueryResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -GetQuickQueryResult::GetQuickQueryResult() : - ServiceResult() -{} - -GetQuickQueryResult::GetQuickQueryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetQuickQueryResult::~GetQuickQueryResult() -{} - -void GetQuickQueryResult::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(); - -} - -std::string GetQuickQueryResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/GetStorageRequest.cc b/cloud-siem/src/model/GetStorageRequest.cc index c6bbe6a62..d82934455 100644 --- a/cloud-siem/src/model/GetStorageRequest.cc +++ b/cloud-siem/src/model/GetStorageRequest.cc @@ -25,6 +25,15 @@ GetStorageRequest::GetStorageRequest() GetStorageRequest::~GetStorageRequest() {} +long GetStorageRequest::getRoleFor() const { + return roleFor_; +} + +void GetStorageRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string GetStorageRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void GetStorageRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int GetStorageRequest::getRoleType() const { + return roleType_; +} + +void GetStorageRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/ListAccountAccessIdRequest.cc b/cloud-siem/src/model/ListAccountAccessIdRequest.cc index 9ad0d4a67..22d957292 100644 --- a/cloud-siem/src/model/ListAccountAccessIdRequest.cc +++ b/cloud-siem/src/model/ListAccountAccessIdRequest.cc @@ -34,6 +34,15 @@ void ListAccountAccessIdRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long ListAccountAccessIdRequest::getRoleFor() const { + return roleFor_; +} + +void ListAccountAccessIdRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListAccountAccessIdRequest::getRegionId() const { return regionId_; } @@ -43,3 +52,12 @@ void ListAccountAccessIdRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ListAccountAccessIdRequest::getRoleType() const { + return roleType_; +} + +void ListAccountAccessIdRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/ListAccountsByLogRequest.cc b/cloud-siem/src/model/ListAccountsByLogRequest.cc index 2da50f951..a7e2ce452 100644 --- a/cloud-siem/src/model/ListAccountsByLogRequest.cc +++ b/cloud-siem/src/model/ListAccountsByLogRequest.cc @@ -34,6 +34,15 @@ void ListAccountsByLogRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long ListAccountsByLogRequest::getRoleFor() const { + return roleFor_; +} + +void ListAccountsByLogRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListAccountsByLogRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void ListAccountsByLogRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ListAccountsByLogRequest::getRoleType() const { + return roleType_; +} + +void ListAccountsByLogRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::vector ListAccountsByLogRequest::getLogCodes() const { return logCodes_; } diff --git a/cloud-siem/src/model/ListAllProdsRequest.cc b/cloud-siem/src/model/ListAllProdsRequest.cc index 6a68e20cc..efc919136 100644 --- a/cloud-siem/src/model/ListAllProdsRequest.cc +++ b/cloud-siem/src/model/ListAllProdsRequest.cc @@ -25,6 +25,15 @@ ListAllProdsRequest::ListAllProdsRequest() ListAllProdsRequest::~ListAllProdsRequest() {} +long ListAllProdsRequest::getRoleFor() const { + return roleFor_; +} + +void ListAllProdsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListAllProdsRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void ListAllProdsRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ListAllProdsRequest::getRoleType() const { + return roleType_; +} + +void ListAllProdsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/ListAutomateResponseConfigsRequest.cc b/cloud-siem/src/model/ListAutomateResponseConfigsRequest.cc index 69d3befbe..1fc1ca612 100644 --- a/cloud-siem/src/model/ListAutomateResponseConfigsRequest.cc +++ b/cloud-siem/src/model/ListAutomateResponseConfigsRequest.cc @@ -34,6 +34,15 @@ void ListAutomateResponseConfigsRequest::setActionType(const std::string &action setBodyParameter(std::string("ActionType"), actionType); } +long ListAutomateResponseConfigsRequest::getRoleFor() const { + return roleFor_; +} + +void ListAutomateResponseConfigsRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListAutomateResponseConfigsRequest::getRuleName() const { return ruleName_; } @@ -79,6 +88,15 @@ void ListAutomateResponseConfigsRequest::setAutoResponseType(const std::string & setBodyParameter(std::string("AutoResponseType"), autoResponseType); } +int ListAutomateResponseConfigsRequest::getRoleType() const { + return roleType_; +} + +void ListAutomateResponseConfigsRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long ListAutomateResponseConfigsRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/ListAutomateResponseConfigsResult.cc b/cloud-siem/src/model/ListAutomateResponseConfigsResult.cc index 7a33c591e..31ae695fe 100644 --- a/cloud-siem/src/model/ListAutomateResponseConfigsResult.cc +++ b/cloud-siem/src/model/ListAutomateResponseConfigsResult.cc @@ -66,6 +66,8 @@ void ListAutomateResponseConfigsResult::parse(const std::string &payload) responseDataItemObject.actionConfig = dataNodeResponseDataResponseDataItem["ActionConfig"].asString(); if(!dataNodeResponseDataResponseDataItem["Status"].isNull()) responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString()); + if(!dataNodeResponseDataResponseDataItem["DataType"].isNull()) + responseDataItemObject.dataType = std::stoi(dataNodeResponseDataResponseDataItem["DataType"].asString()); data_.responseData.push_back(responseDataItemObject); } auto pageInfoNode = dataNode["PageInfo"]; diff --git a/cloud-siem/src/model/ListBindAccountRequest.cc b/cloud-siem/src/model/ListBindAccountRequest.cc index 122bc94c8..02a4838d8 100644 --- a/cloud-siem/src/model/ListBindAccountRequest.cc +++ b/cloud-siem/src/model/ListBindAccountRequest.cc @@ -34,6 +34,15 @@ void ListBindAccountRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long ListBindAccountRequest::getRoleFor() const { + return roleFor_; +} + +void ListBindAccountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListBindAccountRequest::getRegionId() const { return regionId_; } @@ -43,3 +52,12 @@ void ListBindAccountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ListBindAccountRequest::getRoleType() const { + return roleType_; +} + +void ListBindAccountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/ListCloudSiemCustomizeRulesRequest.cc b/cloud-siem/src/model/ListCloudSiemCustomizeRulesRequest.cc index 05ab096e4..205c50a96 100644 --- a/cloud-siem/src/model/ListCloudSiemCustomizeRulesRequest.cc +++ b/cloud-siem/src/model/ListCloudSiemCustomizeRulesRequest.cc @@ -25,6 +25,15 @@ ListCloudSiemCustomizeRulesRequest::ListCloudSiemCustomizeRulesRequest() ListCloudSiemCustomizeRulesRequest::~ListCloudSiemCustomizeRulesRequest() {} +long ListCloudSiemCustomizeRulesRequest::getRoleFor() const { + return roleFor_; +} + +void ListCloudSiemCustomizeRulesRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListCloudSiemCustomizeRulesRequest::getRuleName() const { return ruleName_; } @@ -61,6 +70,15 @@ void ListCloudSiemCustomizeRulesRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int ListCloudSiemCustomizeRulesRequest::getRoleType() const { + return roleType_; +} + +void ListCloudSiemCustomizeRulesRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string ListCloudSiemCustomizeRulesRequest::getId() const { return id_; } @@ -70,6 +88,24 @@ void ListCloudSiemCustomizeRulesRequest::setId(const std::string &id) { setBodyParameter(std::string("Id"), id); } +std::string ListCloudSiemCustomizeRulesRequest::getOrderField() const { + return orderField_; +} + +void ListCloudSiemCustomizeRulesRequest::setOrderField(const std::string &orderField) { + orderField_ = orderField; + setBodyParameter(std::string("OrderField"), orderField); +} + +std::string ListCloudSiemCustomizeRulesRequest::getOrder() const { + return order_; +} + +void ListCloudSiemCustomizeRulesRequest::setOrder(const std::string &order) { + order_ = order; + setBodyParameter(std::string("Order"), order); +} + std::string ListCloudSiemCustomizeRulesRequest::getRuleType() const { return ruleType_; } diff --git a/cloud-siem/src/model/ListCloudSiemCustomizeRulesResult.cc b/cloud-siem/src/model/ListCloudSiemCustomizeRulesResult.cc index e84f7d2a1..04dcba3e3 100644 --- a/cloud-siem/src/model/ListCloudSiemCustomizeRulesResult.cc +++ b/cloud-siem/src/model/ListCloudSiemCustomizeRulesResult.cc @@ -80,6 +80,8 @@ void ListCloudSiemCustomizeRulesResult::parse(const std::string &payload) responseDataItemObject.ruleThreshold = dataNodeResponseDataResponseDataItem["RuleThreshold"].asString(); if(!dataNodeResponseDataResponseDataItem["QueryCycle"].isNull()) responseDataItemObject.queryCycle = dataNodeResponseDataResponseDataItem["QueryCycle"].asString(); + if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) + responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); if(!dataNodeResponseDataResponseDataItem["EventTransferSwitch"].isNull()) responseDataItemObject.eventTransferSwitch = std::stoi(dataNodeResponseDataResponseDataItem["EventTransferSwitch"].asString()); if(!dataNodeResponseDataResponseDataItem["EventTransferType"].isNull()) @@ -88,6 +90,8 @@ void ListCloudSiemCustomizeRulesResult::parse(const std::string &payload) responseDataItemObject.eventTransferExt = dataNodeResponseDataResponseDataItem["EventTransferExt"].asString(); if(!dataNodeResponseDataResponseDataItem["Status"].isNull()) responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString()); + if(!dataNodeResponseDataResponseDataItem["DataType"].isNull()) + responseDataItemObject.dataType = std::stoi(dataNodeResponseDataResponseDataItem["DataType"].asString()); data_.responseData.push_back(responseDataItemObject); } auto pageInfoNode = dataNode["PageInfo"]; diff --git a/cloud-siem/src/model/ListCloudSiemPredefinedRulesRequest.cc b/cloud-siem/src/model/ListCloudSiemPredefinedRulesRequest.cc index 8436163be..dd3995ca6 100644 --- a/cloud-siem/src/model/ListCloudSiemPredefinedRulesRequest.cc +++ b/cloud-siem/src/model/ListCloudSiemPredefinedRulesRequest.cc @@ -25,6 +25,24 @@ ListCloudSiemPredefinedRulesRequest::ListCloudSiemPredefinedRulesRequest() ListCloudSiemPredefinedRulesRequest::~ListCloudSiemPredefinedRulesRequest() {} +long ListCloudSiemPredefinedRulesRequest::getRoleFor() const { + return roleFor_; +} + +void ListCloudSiemPredefinedRulesRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string ListCloudSiemPredefinedRulesRequest::getAttCk() const { + return attCk_; +} + +void ListCloudSiemPredefinedRulesRequest::setAttCk(const std::string &attCk) { + attCk_ = attCk; + setBodyParameter(std::string("AttCk"), attCk); +} + std::string ListCloudSiemPredefinedRulesRequest::getRuleName() const { return ruleName_; } @@ -61,6 +79,15 @@ void ListCloudSiemPredefinedRulesRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int ListCloudSiemPredefinedRulesRequest::getRoleType() const { + return roleType_; +} + +void ListCloudSiemPredefinedRulesRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string ListCloudSiemPredefinedRulesRequest::getId() const { return id_; } @@ -70,6 +97,24 @@ void ListCloudSiemPredefinedRulesRequest::setId(const std::string &id) { setBodyParameter(std::string("Id"), id); } +std::string ListCloudSiemPredefinedRulesRequest::getOrderField() const { + return orderField_; +} + +void ListCloudSiemPredefinedRulesRequest::setOrderField(const std::string &orderField) { + orderField_ = orderField; + setBodyParameter(std::string("OrderField"), orderField); +} + +std::string ListCloudSiemPredefinedRulesRequest::getOrder() const { + return order_; +} + +void ListCloudSiemPredefinedRulesRequest::setOrder(const std::string &order) { + order_ = order; + setBodyParameter(std::string("Order"), order); +} + std::string ListCloudSiemPredefinedRulesRequest::getRuleType() const { return ruleType_; } @@ -97,6 +142,15 @@ void ListCloudSiemPredefinedRulesRequest::setCurrentPage(int currentPage) { setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string ListCloudSiemPredefinedRulesRequest::getLogSource() const { + return logSource_; +} + +void ListCloudSiemPredefinedRulesRequest::setLogSource(const std::string &logSource) { + logSource_ = logSource; + setBodyParameter(std::string("LogSource"), logSource); +} + std::string ListCloudSiemPredefinedRulesRequest::getAlertType() const { return alertType_; } @@ -106,6 +160,15 @@ void ListCloudSiemPredefinedRulesRequest::setAlertType(const std::string &alertT setBodyParameter(std::string("AlertType"), alertType); } +std::string ListCloudSiemPredefinedRulesRequest::getEventTransferType() const { + return eventTransferType_; +} + +void ListCloudSiemPredefinedRulesRequest::setEventTransferType(const std::string &eventTransferType) { + eventTransferType_ = eventTransferType; + setBodyParameter(std::string("EventTransferType"), eventTransferType); +} + std::vector ListCloudSiemPredefinedRulesRequest::getThreatLevel() const { return threatLevel_; } diff --git a/cloud-siem/src/model/ListCloudSiemPredefinedRulesResult.cc b/cloud-siem/src/model/ListCloudSiemPredefinedRulesResult.cc index 2a9e75892..c6cf971d3 100644 --- a/cloud-siem/src/model/ListCloudSiemPredefinedRulesResult.cc +++ b/cloud-siem/src/model/ListCloudSiemPredefinedRulesResult.cc @@ -52,6 +52,10 @@ void ListCloudSiemPredefinedRulesResult::parse(const std::string &payload) responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString(); if(!dataNodeResponseDataResponseDataItem["RuleName"].isNull()) responseDataItemObject.ruleName = dataNodeResponseDataResponseDataItem["RuleName"].asString(); + if(!dataNodeResponseDataResponseDataItem["RuleNameCn"].isNull()) + responseDataItemObject.ruleNameCn = dataNodeResponseDataResponseDataItem["RuleNameCn"].asString(); + if(!dataNodeResponseDataResponseDataItem["RuleNameEn"].isNull()) + responseDataItemObject.ruleNameEn = dataNodeResponseDataResponseDataItem["RuleNameEn"].asString(); if(!dataNodeResponseDataResponseDataItem["RuleNameMds"].isNull()) responseDataItemObject.ruleNameMds = dataNodeResponseDataResponseDataItem["RuleNameMds"].asString(); if(!dataNodeResponseDataResponseDataItem["RuleDescMds"].isNull()) @@ -62,6 +66,10 @@ void ListCloudSiemPredefinedRulesResult::parse(const std::string &payload) responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString(); if(!dataNodeResponseDataResponseDataItem["Source"].isNull()) responseDataItemObject.source = dataNodeResponseDataResponseDataItem["Source"].asString(); + if(!dataNodeResponseDataResponseDataItem["EventTransferType"].isNull()) + responseDataItemObject.eventTransferType = dataNodeResponseDataResponseDataItem["EventTransferType"].asString(); + if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull()) + responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString(); if(!dataNodeResponseDataResponseDataItem["Status"].isNull()) responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString()); data_.responseData.push_back(responseDataItemObject); diff --git a/cloud-siem/src/model/ListCustomizeRuleTestResultRequest.cc b/cloud-siem/src/model/ListCustomizeRuleTestResultRequest.cc index c8ce4b184..25069e7c0 100644 --- a/cloud-siem/src/model/ListCustomizeRuleTestResultRequest.cc +++ b/cloud-siem/src/model/ListCustomizeRuleTestResultRequest.cc @@ -25,6 +25,33 @@ ListCustomizeRuleTestResultRequest::ListCustomizeRuleTestResultRequest() ListCustomizeRuleTestResultRequest::~ListCustomizeRuleTestResultRequest() {} +long ListCustomizeRuleTestResultRequest::getRoleFor() const { + return roleFor_; +} + +void ListCustomizeRuleTestResultRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +long ListCustomizeRuleTestResultRequest::getStartTime() const { + return startTime_; +} + +void ListCustomizeRuleTestResultRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string ListCustomizeRuleTestResultRequest::getVerifyType() const { + return verifyType_; +} + +void ListCustomizeRuleTestResultRequest::setVerifyType(const std::string &verifyType) { + verifyType_ = verifyType; + setBodyParameter(std::string("VerifyType"), verifyType); +} + std::string ListCustomizeRuleTestResultRequest::getRegionId() const { return regionId_; } @@ -43,6 +70,15 @@ void ListCustomizeRuleTestResultRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int ListCustomizeRuleTestResultRequest::getRoleType() const { + return roleType_; +} + +void ListCustomizeRuleTestResultRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long ListCustomizeRuleTestResultRequest::getId() const { return id_; } @@ -52,6 +88,15 @@ void ListCustomizeRuleTestResultRequest::setId(long id) { setBodyParameter(std::string("Id"), std::to_string(id)); } +long ListCustomizeRuleTestResultRequest::getEndTime() const { + return endTime_; +} + +void ListCustomizeRuleTestResultRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + int ListCustomizeRuleTestResultRequest::getCurrentPage() const { return currentPage_; } @@ -61,3 +106,12 @@ void ListCustomizeRuleTestResultRequest::setCurrentPage(int currentPage) { setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string ListCustomizeRuleTestResultRequest::getDetectionRuleId() const { + return detectionRuleId_; +} + +void ListCustomizeRuleTestResultRequest::setDetectionRuleId(const std::string &detectionRuleId) { + detectionRuleId_ = detectionRuleId; + setBodyParameter(std::string("DetectionRuleId"), detectionRuleId); +} + diff --git a/cloud-siem/src/model/ListCustomizeRuleTestResultResult.cc b/cloud-siem/src/model/ListCustomizeRuleTestResultResult.cc index 39fb7590d..c77979bac 100644 --- a/cloud-siem/src/model/ListCustomizeRuleTestResultResult.cc +++ b/cloud-siem/src/model/ListCustomizeRuleTestResultResult.cc @@ -74,6 +74,8 @@ void ListCustomizeRuleTestResultResult::parse(const std::string &payload) responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString(); if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull()) responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString(); + if(!dataNodeResponseDataResponseDataItem["VerifyType"].isNull()) + responseDataItemObject.verifyType = dataNodeResponseDataResponseDataItem["VerifyType"].asString(); data_.responseData.push_back(responseDataItemObject); } auto pageInfoNode = dataNode["PageInfo"]; @@ -83,6 +85,8 @@ void ListCustomizeRuleTestResultResult::parse(const std::string &payload) data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); if(!pageInfoNode["TotalCount"].isNull()) data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString()); + if(!pageInfoNode["VerifiedCount"].isNull()) + data_.pageInfo.verifiedCount = std::stol(pageInfoNode["VerifiedCount"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/cloud-siem/src/model/ListDeliveryRequest.cc b/cloud-siem/src/model/ListDeliveryRequest.cc index 53b1db53e..fd1d96aad 100644 --- a/cloud-siem/src/model/ListDeliveryRequest.cc +++ b/cloud-siem/src/model/ListDeliveryRequest.cc @@ -25,6 +25,15 @@ ListDeliveryRequest::ListDeliveryRequest() ListDeliveryRequest::~ListDeliveryRequest() {} +long ListDeliveryRequest::getRoleFor() const { + return roleFor_; +} + +void ListDeliveryRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListDeliveryRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void ListDeliveryRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ListDeliveryRequest::getRoleType() const { + return roleType_; +} + +void ListDeliveryRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/ListDisposeStrategyRequest.cc b/cloud-siem/src/model/ListDisposeStrategyRequest.cc index 855a41140..ddd947da5 100644 --- a/cloud-siem/src/model/ListDisposeStrategyRequest.cc +++ b/cloud-siem/src/model/ListDisposeStrategyRequest.cc @@ -52,6 +52,15 @@ void ListDisposeStrategyRequest::setPlaybookTypes(const std::string &playbookTyp setBodyParameter(std::string("PlaybookTypes"), playbookTypes); } +long ListDisposeStrategyRequest::getRoleFor() const { + return roleFor_; +} + +void ListDisposeStrategyRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + long ListDisposeStrategyRequest::getStartTime() const { return startTime_; } @@ -79,6 +88,15 @@ void ListDisposeStrategyRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } +int ListDisposeStrategyRequest::getRoleType() const { + return roleType_; +} + +void ListDisposeStrategyRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string ListDisposeStrategyRequest::getOrderField() const { return orderField_; } @@ -151,3 +169,12 @@ void ListDisposeStrategyRequest::setEntityType(const std::string &entityType) { setBodyParameter(std::string("EntityType"), entityType); } +std::string ListDisposeStrategyRequest::getIncidentUuid() const { + return incidentUuid_; +} + +void ListDisposeStrategyRequest::setIncidentUuid(const std::string &incidentUuid) { + incidentUuid_ = incidentUuid; + setBodyParameter(std::string("IncidentUuid"), incidentUuid); +} + diff --git a/cloud-siem/src/model/ListDisposeStrategyResult.cc b/cloud-siem/src/model/ListDisposeStrategyResult.cc index 54e09d689..c457f899e 100644 --- a/cloud-siem/src/model/ListDisposeStrategyResult.cc +++ b/cloud-siem/src/model/ListDisposeStrategyResult.cc @@ -68,6 +68,8 @@ void ListDisposeStrategyResult::parse(const std::string &payload) responseDataItemObject.playbookUuid = dataNodeResponseDataResponseDataItem["PlaybookUuid"].asString(); if(!dataNodeResponseDataResponseDataItem["PlaybookType"].isNull()) responseDataItemObject.playbookType = dataNodeResponseDataResponseDataItem["PlaybookType"].asString(); + if(!dataNodeResponseDataResponseDataItem["TaskUrl"].isNull()) + responseDataItemObject.taskUrl = dataNodeResponseDataResponseDataItem["TaskUrl"].asString(); if(!dataNodeResponseDataResponseDataItem["EntityId"].isNull()) responseDataItemObject.entityId = std::stol(dataNodeResponseDataResponseDataItem["EntityId"].asString()); if(!dataNodeResponseDataResponseDataItem["EntityType"].isNull()) diff --git a/cloud-siem/src/model/ListEntitiesRequest.cc b/cloud-siem/src/model/ListEntitiesRequest.cc new file mode 100644 index 000000000..1b6da9c53 --- /dev/null +++ b/cloud-siem/src/model/ListEntitiesRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ListEntitiesRequest; + +ListEntitiesRequest::ListEntitiesRequest() + : RpcServiceRequest("cloud-siem", "2022-06-16", "ListEntities") { + setMethod(HttpRequest::Method::Post); +} + +ListEntitiesRequest::~ListEntitiesRequest() {} + +long ListEntitiesRequest::getRoleFor() const { + return roleFor_; +} + +void ListEntitiesRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string ListEntitiesRequest::getMalwareType() const { + return malwareType_; +} + +void ListEntitiesRequest::setMalwareType(const std::string &malwareType) { + malwareType_ = malwareType; + setBodyParameter(std::string("MalwareType"), malwareType); +} + +std::string ListEntitiesRequest::getEntityName() const { + return entityName_; +} + +void ListEntitiesRequest::setEntityName(const std::string &entityName) { + entityName_ = entityName; + setBodyParameter(std::string("EntityName"), entityName); +} + +std::string ListEntitiesRequest::getAssetName() const { + return assetName_; +} + +void ListEntitiesRequest::setAssetName(const std::string &assetName) { + assetName_ = assetName; + setBodyParameter(std::string("AssetName"), assetName); +} + +std::string ListEntitiesRequest::getRegionId() const { + return regionId_; +} + +void ListEntitiesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int ListEntitiesRequest::getPageSize() const { + return pageSize_; +} + +void ListEntitiesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListEntitiesRequest::getRoleType() const { + return roleType_; +} + +void ListEntitiesRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + +std::string ListEntitiesRequest::getAssetUuid() const { + return assetUuid_; +} + +void ListEntitiesRequest::setAssetUuid(const std::string &assetUuid) { + assetUuid_ = assetUuid; + setBodyParameter(std::string("AssetUuid"), assetUuid); +} + +int ListEntitiesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListEntitiesRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListEntitiesRequest::getIsMalwareEntity() const { + return isMalwareEntity_; +} + +void ListEntitiesRequest::setIsMalwareEntity(const std::string &isMalwareEntity) { + isMalwareEntity_ = isMalwareEntity; + setBodyParameter(std::string("IsMalwareEntity"), isMalwareEntity); +} + +std::string ListEntitiesRequest::getEntityType() const { + return entityType_; +} + +void ListEntitiesRequest::setEntityType(const std::string &entityType) { + entityType_ = entityType; + setBodyParameter(std::string("EntityType"), entityType); +} + +std::string ListEntitiesRequest::getEntityUuid() const { + return entityUuid_; +} + +void ListEntitiesRequest::setEntityUuid(const std::string &entityUuid) { + entityUuid_ = entityUuid; + setBodyParameter(std::string("EntityUuid"), entityUuid); +} + +std::string ListEntitiesRequest::getIncidentUuid() const { + return incidentUuid_; +} + +void ListEntitiesRequest::setIncidentUuid(const std::string &incidentUuid) { + incidentUuid_ = incidentUuid; + setBodyParameter(std::string("IncidentUuid"), incidentUuid); +} + +std::string ListEntitiesRequest::getIsAsset() const { + return isAsset_; +} + +void ListEntitiesRequest::setIsAsset(const std::string &isAsset) { + isAsset_ = isAsset; + setBodyParameter(std::string("IsAsset"), isAsset); +} + diff --git a/cloud-siem/src/model/ListEntitiesResult.cc b/cloud-siem/src/model/ListEntitiesResult.cc new file mode 100644 index 000000000..4cbfe7b16 --- /dev/null +++ b/cloud-siem/src/model/ListEntitiesResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListEntitiesResult::ListEntitiesResult() : + ServiceResult() +{} + +ListEntitiesResult::ListEntitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEntitiesResult::~ListEntitiesResult() +{} + +void ListEntitiesResult::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["IncidentUuid"].isNull()) + responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull()) + responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["AlertNum"].isNull()) + responseDataItemObject.alertNum = std::stoi(dataNodeResponseDataResponseDataItem["AlertNum"].asString()); + if(!dataNodeResponseDataResponseDataItem["EventNum"].isNull()) + responseDataItemObject.eventNum = std::stoi(dataNodeResponseDataResponseDataItem["EventNum"].asString()); + if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull()) + responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityType"].isNull()) + responseDataItemObject.entityType = dataNodeResponseDataResponseDataItem["EntityType"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityName"].isNull()) + responseDataItemObject.entityName = dataNodeResponseDataResponseDataItem["EntityName"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityInfo"].isNull()) + responseDataItemObject.entityInfo = dataNodeResponseDataResponseDataItem["EntityInfo"].asString(); + if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull()) + responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString()); + if(!dataNodeResponseDataResponseDataItem["EntityId"].isNull()) + responseDataItemObject.entityId = dataNodeResponseDataResponseDataItem["EntityId"].asString(); + if(!dataNodeResponseDataResponseDataItem["EntityUuid"].isNull()) + responseDataItemObject.entityUuid = dataNodeResponseDataResponseDataItem["EntityUuid"].asString(); + if(!dataNodeResponseDataResponseDataItem["MalwareType"].isNull()) + responseDataItemObject.malwareType = dataNodeResponseDataResponseDataItem["MalwareType"].asString(); + 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 ListEntitiesResult::getMessage()const +{ + return message_; +} + +ListEntitiesResult::Data ListEntitiesResult::getData()const +{ + return data_; +} + +int ListEntitiesResult::getCode()const +{ + return code_; +} + +bool ListEntitiesResult::getSuccess()const +{ + return success_; +} + diff --git a/cloud-siem/src/model/ListImportedLogsByProdRequest.cc b/cloud-siem/src/model/ListImportedLogsByProdRequest.cc index 4fc58ea3c..f41a35049 100644 --- a/cloud-siem/src/model/ListImportedLogsByProdRequest.cc +++ b/cloud-siem/src/model/ListImportedLogsByProdRequest.cc @@ -34,6 +34,15 @@ void ListImportedLogsByProdRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long ListImportedLogsByProdRequest::getRoleFor() const { + return roleFor_; +} + +void ListImportedLogsByProdRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ListImportedLogsByProdRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void ListImportedLogsByProdRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ListImportedLogsByProdRequest::getRoleType() const { + return roleType_; +} + +void ListImportedLogsByProdRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string ListImportedLogsByProdRequest::getProdCode() const { return prodCode_; } diff --git a/cloud-siem/src/model/ListImportedLogsByProdResult.cc b/cloud-siem/src/model/ListImportedLogsByProdResult.cc index b971845b0..9b414ef55 100644 --- a/cloud-siem/src/model/ListImportedLogsByProdResult.cc +++ b/cloud-siem/src/model/ListImportedLogsByProdResult.cc @@ -61,6 +61,8 @@ void ListImportedLogsByProdResult::parse(const std::string &payload) dataObject.imported = std::stoi(valueDataDataItem["Imported"].asString()); if(!valueDataDataItem["AutoImported"].isNull()) dataObject.autoImported = std::stoi(valueDataDataItem["AutoImported"].asString()); + if(!valueDataDataItem["LogType"].isNull()) + dataObject.logType = std::stoi(valueDataDataItem["LogType"].asString()); if(!valueDataDataItem["CloudCode"].isNull()) dataObject.cloudCode = valueDataDataItem["CloudCode"].asString(); data_.push_back(dataObject); diff --git a/cloud-siem/src/model/ListOperationRequest.cc b/cloud-siem/src/model/ListOperationRequest.cc deleted file mode 100644 index 3012a9599..000000000 --- a/cloud-siem/src/model/ListOperationRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::ListOperationRequest; - -ListOperationRequest::ListOperationRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "ListOperation") { - setMethod(HttpRequest::Method::Post); -} - -ListOperationRequest::~ListOperationRequest() {} - -std::string ListOperationRequest::getRegionId() const { - return regionId_; -} - -void ListOperationRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - diff --git a/cloud-siem/src/model/ListOperationResult.cc b/cloud-siem/src/model/ListOperationResult.cc deleted file mode 100644 index ac39409bf..000000000 --- a/cloud-siem/src/model/ListOperationResult.cc +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -ListOperationResult::ListOperationResult() : - ServiceResult() -{} - -ListOperationResult::ListOperationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListOperationResult::~ListOperationResult() -{} - -void ListOperationResult::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["AdminOrNot"].isNull()) - data_.adminOrNot = dataNode["AdminOrNot"].asString() == "true"; - auto allOperationList = dataNode["OperationList"]["OperationList"]; - for (auto value : allOperationList) - data_.operationList.push_back(value.asString()); - -} - -ListOperationResult::Data ListOperationResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/ListQuickQueryRequest.cc b/cloud-siem/src/model/ListQuickQueryRequest.cc deleted file mode 100644 index fd0fd2975..000000000 --- a/cloud-siem/src/model/ListQuickQueryRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::ListQuickQueryRequest; - -ListQuickQueryRequest::ListQuickQueryRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "ListQuickQuery") { - setMethod(HttpRequest::Method::Post); -} - -ListQuickQueryRequest::~ListQuickQueryRequest() {} - -std::string ListQuickQueryRequest::getRegionId() const { - return regionId_; -} - -void ListQuickQueryRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -int ListQuickQueryRequest::getPageSize() const { - return pageSize_; -} - -void ListQuickQueryRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -int ListQuickQueryRequest::getOffset() const { - return offset_; -} - -void ListQuickQueryRequest::setOffset(int offset) { - offset_ = offset; - setBodyParameter(std::string("Offset"), std::to_string(offset)); -} - diff --git a/cloud-siem/src/model/ListQuickQueryResult.cc b/cloud-siem/src/model/ListQuickQueryResult.cc deleted file mode 100644 index c9499fb4b..000000000 --- a/cloud-siem/src/model/ListQuickQueryResult.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -ListQuickQueryResult::ListQuickQueryResult() : - ServiceResult() -{} - -ListQuickQueryResult::ListQuickQueryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListQuickQueryResult::~ListQuickQueryResult() -{} - -void ListQuickQueryResult::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["Total"].isNull()) - data_.total = std::stoi(dataNode["Total"].asString()); - if(!dataNode["Count"].isNull()) - data_.count = std::stoi(dataNode["Count"].asString()); - auto allQuickQueryListNode = dataNode["QuickQueryList"]["QuickQueryListItem"]; - for (auto dataNodeQuickQueryListQuickQueryListItem : allQuickQueryListNode) - { - Data::QuickQueryListItem quickQueryListItemObject; - if(!dataNodeQuickQueryListQuickQueryListItem["Query"].isNull()) - quickQueryListItemObject.query = dataNodeQuickQueryListQuickQueryListItem["Query"].asString(); - if(!dataNodeQuickQueryListQuickQueryListItem["SearchName"].isNull()) - quickQueryListItemObject.searchName = dataNodeQuickQueryListQuickQueryListItem["SearchName"].asString(); - if(!dataNodeQuickQueryListQuickQueryListItem["DisplayName"].isNull()) - quickQueryListItemObject.displayName = dataNodeQuickQueryListQuickQueryListItem["DisplayName"].asString(); - data_.quickQueryList.push_back(quickQueryListItemObject); - } - -} - -ListQuickQueryResult::Data ListQuickQueryResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/ListUserProdLogsRequest.cc b/cloud-siem/src/model/ListUserProdLogsRequest.cc deleted file mode 100644 index 491f19941..000000000 --- a/cloud-siem/src/model/ListUserProdLogsRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index aecbf253e..000000000 --- a/cloud-siem/src/model/ListUserProdLogsResult.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::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 deleted file mode 100644 index 4954498ab..000000000 --- a/cloud-siem/src/model/ListUsersByProdRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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 deleted file mode 100644 index 3bd0a9b67..000000000 --- a/cloud-siem/src/model/ListUsersByProdResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::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 index e3100fd60..dcdd64878 100644 --- a/cloud-siem/src/model/ModifyBindAccountRequest.cc +++ b/cloud-siem/src/model/ModifyBindAccountRequest.cc @@ -34,6 +34,15 @@ void ModifyBindAccountRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long ModifyBindAccountRequest::getRoleFor() const { + return roleFor_; +} + +void ModifyBindAccountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string ModifyBindAccountRequest::getAccountId() const { return accountId_; } @@ -61,6 +70,15 @@ void ModifyBindAccountRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int ModifyBindAccountRequest::getRoleType() const { + return roleType_; +} + +void ModifyBindAccountRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long ModifyBindAccountRequest::getBindId() const { return bindId_; } diff --git a/cloud-siem/src/model/OpenDeliveryRequest.cc b/cloud-siem/src/model/OpenDeliveryRequest.cc index 365561e3a..89d4d8a39 100644 --- a/cloud-siem/src/model/OpenDeliveryRequest.cc +++ b/cloud-siem/src/model/OpenDeliveryRequest.cc @@ -34,6 +34,15 @@ void OpenDeliveryRequest::setProductCode(const std::string &productCode) { setBodyParameter(std::string("ProductCode"), productCode); } +long OpenDeliveryRequest::getRoleFor() const { + return roleFor_; +} + +void OpenDeliveryRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string OpenDeliveryRequest::getLogCode() const { return logCode_; } @@ -52,3 +61,12 @@ void OpenDeliveryRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int OpenDeliveryRequest::getRoleType() const { + return roleType_; +} + +void OpenDeliveryRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/PostAutomateResponseConfigRequest.cc b/cloud-siem/src/model/PostAutomateResponseConfigRequest.cc index c88fd6e88..d4ca5c0ac 100644 --- a/cloud-siem/src/model/PostAutomateResponseConfigRequest.cc +++ b/cloud-siem/src/model/PostAutomateResponseConfigRequest.cc @@ -34,6 +34,15 @@ void PostAutomateResponseConfigRequest::setActionType(const std::string &actionT setBodyParameter(std::string("ActionType"), actionType); } +long PostAutomateResponseConfigRequest::getRoleFor() const { + return roleFor_; +} + +void PostAutomateResponseConfigRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string PostAutomateResponseConfigRequest::getRuleName() const { return ruleName_; } @@ -88,6 +97,15 @@ void PostAutomateResponseConfigRequest::setAutoResponseType(const std::string &a setBodyParameter(std::string("AutoResponseType"), autoResponseType); } +int PostAutomateResponseConfigRequest::getRoleType() const { + return roleType_; +} + +void PostAutomateResponseConfigRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long PostAutomateResponseConfigRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/PostAutomateResponseConfigResult.cc b/cloud-siem/src/model/PostAutomateResponseConfigResult.cc index b7c2fb915..22547438a 100644 --- a/cloud-siem/src/model/PostAutomateResponseConfigResult.cc +++ b/cloud-siem/src/model/PostAutomateResponseConfigResult.cc @@ -39,14 +39,14 @@ void PostAutomateResponseConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); 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["Data"].isNull()) - data_ = value["Data"].asString(); } diff --git a/cloud-siem/src/model/PostCustomizeRuleRequest.cc b/cloud-siem/src/model/PostCustomizeRuleRequest.cc index 685f47daf..8b1b57e4d 100644 --- a/cloud-siem/src/model/PostCustomizeRuleRequest.cc +++ b/cloud-siem/src/model/PostCustomizeRuleRequest.cc @@ -25,6 +25,24 @@ PostCustomizeRuleRequest::PostCustomizeRuleRequest() PostCustomizeRuleRequest::~PostCustomizeRuleRequest() {} +long PostCustomizeRuleRequest::getRoleFor() const { + return roleFor_; +} + +void PostCustomizeRuleRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string PostCustomizeRuleRequest::getAttCk() const { + return attCk_; +} + +void PostCustomizeRuleRequest::setAttCk(const std::string &attCk) { + attCk_ = attCk; + setBodyParameter(std::string("AttCk"), attCk); +} + std::string PostCustomizeRuleRequest::getRuleDesc() const { return ruleDesc_; } @@ -97,6 +115,15 @@ void PostCustomizeRuleRequest::setLogTypeMds(const std::string &logTypeMds) { setBodyParameter(std::string("LogTypeMds"), logTypeMds); } +int PostCustomizeRuleRequest::getRoleType() const { + return roleType_; +} + +void PostCustomizeRuleRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long PostCustomizeRuleRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/PostCustomizeRuleResult.cc b/cloud-siem/src/model/PostCustomizeRuleResult.cc index d4d51d5b4..36d4ee949 100644 --- a/cloud-siem/src/model/PostCustomizeRuleResult.cc +++ b/cloud-siem/src/model/PostCustomizeRuleResult.cc @@ -76,6 +76,8 @@ void PostCustomizeRuleResult::parse(const std::string &payload) data_.ruleThreshold = dataNode["RuleThreshold"].asString(); if(!dataNode["QueryCycle"].isNull()) data_.queryCycle = dataNode["QueryCycle"].asString(); + if(!dataNode["AttCk"].isNull()) + data_.attCk = dataNode["AttCk"].asString(); if(!dataNode["EventTransferSwitch"].isNull()) data_.eventTransferSwitch = std::stoi(dataNode["EventTransferSwitch"].asString()); if(!dataNode["EventTransferType"].isNull()) @@ -84,6 +86,8 @@ void PostCustomizeRuleResult::parse(const std::string &payload) data_.eventTransferExt = dataNode["EventTransferExt"].asString(); if(!dataNode["Status"].isNull()) data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["DataType"].isNull()) + data_.dataType = std::stoi(dataNode["DataType"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) diff --git a/cloud-siem/src/model/PostCustomizeRuleTestRequest.cc b/cloud-siem/src/model/PostCustomizeRuleTestRequest.cc index 4494b3c59..bf5cfb9ca 100644 --- a/cloud-siem/src/model/PostCustomizeRuleTestRequest.cc +++ b/cloud-siem/src/model/PostCustomizeRuleTestRequest.cc @@ -25,6 +25,15 @@ PostCustomizeRuleTestRequest::PostCustomizeRuleTestRequest() PostCustomizeRuleTestRequest::~PostCustomizeRuleTestRequest() {} +long PostCustomizeRuleTestRequest::getRoleFor() const { + return roleFor_; +} + +void PostCustomizeRuleTestRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string PostCustomizeRuleTestRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void PostCustomizeRuleTestRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int PostCustomizeRuleTestRequest::getRoleType() const { + return roleType_; +} + +void PostCustomizeRuleTestRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long PostCustomizeRuleTestRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/PostEventDisposeAndWhiteruleListRequest.cc b/cloud-siem/src/model/PostEventDisposeAndWhiteruleListRequest.cc index 2de1b2bcc..5f62bc239 100644 --- a/cloud-siem/src/model/PostEventDisposeAndWhiteruleListRequest.cc +++ b/cloud-siem/src/model/PostEventDisposeAndWhiteruleListRequest.cc @@ -25,6 +25,15 @@ PostEventDisposeAndWhiteruleListRequest::PostEventDisposeAndWhiteruleListRequest PostEventDisposeAndWhiteruleListRequest::~PostEventDisposeAndWhiteruleListRequest() {} +long PostEventDisposeAndWhiteruleListRequest::getRoleFor() const { + return roleFor_; +} + +void PostEventDisposeAndWhiteruleListRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string PostEventDisposeAndWhiteruleListRequest::getRemark() const { return remark_; } @@ -61,6 +70,24 @@ void PostEventDisposeAndWhiteruleListRequest::setRegionId(const std::string ® setBodyParameter(std::string("RegionId"), regionId); } +int PostEventDisposeAndWhiteruleListRequest::getRoleType() const { + return roleType_; +} + +void PostEventDisposeAndWhiteruleListRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + +std::string PostEventDisposeAndWhiteruleListRequest::getThreatLevel() const { + return threatLevel_; +} + +void PostEventDisposeAndWhiteruleListRequest::setThreatLevel(const std::string &threatLevel) { + threatLevel_ = threatLevel; + setBodyParameter(std::string("ThreatLevel"), threatLevel); +} + std::string PostEventDisposeAndWhiteruleListRequest::getIncidentUuid() const { return incidentUuid_; } diff --git a/cloud-siem/src/model/PostEventDisposeAndWhiteruleListResult.cc b/cloud-siem/src/model/PostEventDisposeAndWhiteruleListResult.cc index e87bb46bf..7a3faaefa 100644 --- a/cloud-siem/src/model/PostEventDisposeAndWhiteruleListResult.cc +++ b/cloud-siem/src/model/PostEventDisposeAndWhiteruleListResult.cc @@ -39,14 +39,14 @@ void PostEventDisposeAndWhiteruleListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); 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["Data"].isNull()) - data_ = value["Data"].asString(); } diff --git a/cloud-siem/src/model/PostEventWhiteruleListRequest.cc b/cloud-siem/src/model/PostEventWhiteruleListRequest.cc index 76ddf6b83..c7714a843 100644 --- a/cloud-siem/src/model/PostEventWhiteruleListRequest.cc +++ b/cloud-siem/src/model/PostEventWhiteruleListRequest.cc @@ -25,6 +25,15 @@ PostEventWhiteruleListRequest::PostEventWhiteruleListRequest() PostEventWhiteruleListRequest::~PostEventWhiteruleListRequest() {} +long PostEventWhiteruleListRequest::getRoleFor() const { + return roleFor_; +} + +void PostEventWhiteruleListRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string PostEventWhiteruleListRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void PostEventWhiteruleListRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int PostEventWhiteruleListRequest::getRoleType() const { + return roleType_; +} + +void PostEventWhiteruleListRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string PostEventWhiteruleListRequest::getWhiteruleList() const { return whiteruleList_; } diff --git a/cloud-siem/src/model/PostEventWhiteruleListResult.cc b/cloud-siem/src/model/PostEventWhiteruleListResult.cc index d2ad392e7..d00027313 100644 --- a/cloud-siem/src/model/PostEventWhiteruleListResult.cc +++ b/cloud-siem/src/model/PostEventWhiteruleListResult.cc @@ -39,14 +39,14 @@ void PostEventWhiteruleListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); 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["Data"].isNull()) - data_ = value["Data"].asString(); } diff --git a/cloud-siem/src/model/PostFinishCustomizeRuleTestRequest.cc b/cloud-siem/src/model/PostFinishCustomizeRuleTestRequest.cc index 9b161b9c5..196aeb77f 100644 --- a/cloud-siem/src/model/PostFinishCustomizeRuleTestRequest.cc +++ b/cloud-siem/src/model/PostFinishCustomizeRuleTestRequest.cc @@ -25,6 +25,15 @@ PostFinishCustomizeRuleTestRequest::PostFinishCustomizeRuleTestRequest() PostFinishCustomizeRuleTestRequest::~PostFinishCustomizeRuleTestRequest() {} +long PostFinishCustomizeRuleTestRequest::getRoleFor() const { + return roleFor_; +} + +void PostFinishCustomizeRuleTestRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string PostFinishCustomizeRuleTestRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void PostFinishCustomizeRuleTestRequest::setRegionId(const std::string ®ionId setBodyParameter(std::string("RegionId"), regionId); } +int PostFinishCustomizeRuleTestRequest::getRoleType() const { + return roleType_; +} + +void PostFinishCustomizeRuleTestRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + long PostFinishCustomizeRuleTestRequest::getId() const { return id_; } diff --git a/cloud-siem/src/model/PostRuleStatusChangeRequest.cc b/cloud-siem/src/model/PostRuleStatusChangeRequest.cc index 22128e869..9ad017543 100644 --- a/cloud-siem/src/model/PostRuleStatusChangeRequest.cc +++ b/cloud-siem/src/model/PostRuleStatusChangeRequest.cc @@ -25,6 +25,15 @@ PostRuleStatusChangeRequest::PostRuleStatusChangeRequest() PostRuleStatusChangeRequest::~PostRuleStatusChangeRequest() {} +long PostRuleStatusChangeRequest::getRoleFor() const { + return roleFor_; +} + +void PostRuleStatusChangeRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string PostRuleStatusChangeRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void PostRuleStatusChangeRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int PostRuleStatusChangeRequest::getRoleType() const { + return roleType_; +} + +void PostRuleStatusChangeRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string PostRuleStatusChangeRequest::getRuleType() const { return ruleType_; } diff --git a/cloud-siem/src/model/RestoreCapacityRequest.cc b/cloud-siem/src/model/RestoreCapacityRequest.cc index 1a149ad5d..92211a8ca 100644 --- a/cloud-siem/src/model/RestoreCapacityRequest.cc +++ b/cloud-siem/src/model/RestoreCapacityRequest.cc @@ -25,6 +25,15 @@ RestoreCapacityRequest::RestoreCapacityRequest() RestoreCapacityRequest::~RestoreCapacityRequest() {} +long RestoreCapacityRequest::getRoleFor() const { + return roleFor_; +} + +void RestoreCapacityRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string RestoreCapacityRequest::getRegionId() const { return regionId_; } @@ -34,3 +43,12 @@ void RestoreCapacityRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int RestoreCapacityRequest::getRoleType() const { + return roleType_; +} + +void RestoreCapacityRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + diff --git a/cloud-siem/src/model/SaveQuickQueryRequest.cc b/cloud-siem/src/model/SaveQuickQueryRequest.cc deleted file mode 100644 index a9dc18801..000000000 --- a/cloud-siem/src/model/SaveQuickQueryRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::SaveQuickQueryRequest; - -SaveQuickQueryRequest::SaveQuickQueryRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "SaveQuickQuery") { - setMethod(HttpRequest::Method::Post); -} - -SaveQuickQueryRequest::~SaveQuickQueryRequest() {} - -std::string SaveQuickQueryRequest::getRegionId() const { - return regionId_; -} - -void SaveQuickQueryRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string SaveQuickQueryRequest::getQuery() const { - return query_; -} - -void SaveQuickQueryRequest::setQuery(const std::string &query) { - query_ = query; - setBodyParameter(std::string("Query"), query); -} - -std::string SaveQuickQueryRequest::getDisplayName() const { - return displayName_; -} - -void SaveQuickQueryRequest::setDisplayName(const std::string &displayName) { - displayName_ = displayName; - setBodyParameter(std::string("DisplayName"), displayName); -} - diff --git a/cloud-siem/src/model/SaveQuickQueryResult.cc b/cloud-siem/src/model/SaveQuickQueryResult.cc deleted file mode 100644 index 3b91b231d..000000000 --- a/cloud-siem/src/model/SaveQuickQueryResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -SaveQuickQueryResult::SaveQuickQueryResult() : - ServiceResult() -{} - -SaveQuickQueryResult::SaveQuickQueryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SaveQuickQueryResult::~SaveQuickQueryResult() -{} - -void SaveQuickQueryResult::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 SaveQuickQueryResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/SetStorageRequest.cc b/cloud-siem/src/model/SetStorageRequest.cc index 4d2bdb994..b41dbad30 100644 --- a/cloud-siem/src/model/SetStorageRequest.cc +++ b/cloud-siem/src/model/SetStorageRequest.cc @@ -25,6 +25,15 @@ SetStorageRequest::SetStorageRequest() SetStorageRequest::~SetStorageRequest() {} +long SetStorageRequest::getRoleFor() const { + return roleFor_; +} + +void SetStorageRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string SetStorageRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void SetStorageRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int SetStorageRequest::getRoleType() const { + return roleType_; +} + +void SetStorageRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + int SetStorageRequest::getTtl() const { return ttl_; } diff --git a/cloud-siem/src/model/ShowQuickAnalysisRequest.cc b/cloud-siem/src/model/ShowQuickAnalysisRequest.cc deleted file mode 100644 index 477f4309c..000000000 --- a/cloud-siem/src/model/ShowQuickAnalysisRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloud_siem::Model::ShowQuickAnalysisRequest; - -ShowQuickAnalysisRequest::ShowQuickAnalysisRequest() - : RpcServiceRequest("cloud-siem", "2022-06-16", "ShowQuickAnalysis") { - setMethod(HttpRequest::Method::Post); -} - -ShowQuickAnalysisRequest::~ShowQuickAnalysisRequest() {} - -std::string ShowQuickAnalysisRequest::getRegionId() const { - return regionId_; -} - -void ShowQuickAnalysisRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - diff --git a/cloud-siem/src/model/ShowQuickAnalysisResult.cc b/cloud-siem/src/model/ShowQuickAnalysisResult.cc deleted file mode 100644 index 9cb34b7bb..000000000 --- a/cloud-siem/src/model/ShowQuickAnalysisResult.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloud_siem; -using namespace AlibabaCloud::Cloud_siem::Model; - -ShowQuickAnalysisResult::ShowQuickAnalysisResult() : - ServiceResult() -{} - -ShowQuickAnalysisResult::ShowQuickAnalysisResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ShowQuickAnalysisResult::~ShowQuickAnalysisResult() -{} - -void ShowQuickAnalysisResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allIndexList = dataNode["IndexList"]["IndexList"]; - for (auto value : allIndexList) - data_.indexList.push_back(value.asString()); - -} - -ShowQuickAnalysisResult::Data ShowQuickAnalysisResult::getData()const -{ - return data_; -} - diff --git a/cloud-siem/src/model/SubmitImportLogTasksRequest.cc b/cloud-siem/src/model/SubmitImportLogTasksRequest.cc index 70dcbc753..1f510f4df 100644 --- a/cloud-siem/src/model/SubmitImportLogTasksRequest.cc +++ b/cloud-siem/src/model/SubmitImportLogTasksRequest.cc @@ -34,6 +34,15 @@ void SubmitImportLogTasksRequest::setCloudCode(const std::string &cloudCode) { setBodyParameter(std::string("CloudCode"), cloudCode); } +long SubmitImportLogTasksRequest::getRoleFor() const { + return roleFor_; +} + +void SubmitImportLogTasksRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string SubmitImportLogTasksRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void SubmitImportLogTasksRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int SubmitImportLogTasksRequest::getRoleType() const { + return roleType_; +} + +void SubmitImportLogTasksRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string SubmitImportLogTasksRequest::getLogCodes() const { return logCodes_; } diff --git a/cloud-siem/src/model/SubmitJobsRequest.cc b/cloud-siem/src/model/SubmitJobsRequest.cc deleted file mode 100644 index b0f1f0401..000000000 --- a/cloud-siem/src/model/SubmitJobsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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 deleted file mode 100644 index 3c7bd81a6..000000000 --- a/cloud-siem/src/model/SubmitJobsResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::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_; -} - diff --git a/cloud-siem/src/model/UpdateAutomateResponseConfigStatusRequest.cc b/cloud-siem/src/model/UpdateAutomateResponseConfigStatusRequest.cc index a0591ed89..c48a3b684 100644 --- a/cloud-siem/src/model/UpdateAutomateResponseConfigStatusRequest.cc +++ b/cloud-siem/src/model/UpdateAutomateResponseConfigStatusRequest.cc @@ -25,6 +25,15 @@ UpdateAutomateResponseConfigStatusRequest::UpdateAutomateResponseConfigStatusReq UpdateAutomateResponseConfigStatusRequest::~UpdateAutomateResponseConfigStatusRequest() {} +long UpdateAutomateResponseConfigStatusRequest::getRoleFor() const { + return roleFor_; +} + +void UpdateAutomateResponseConfigStatusRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string UpdateAutomateResponseConfigStatusRequest::getRegionId() const { return regionId_; } @@ -34,6 +43,15 @@ void UpdateAutomateResponseConfigStatusRequest::setRegionId(const std::string &r setBodyParameter(std::string("RegionId"), regionId); } +int UpdateAutomateResponseConfigStatusRequest::getRoleType() const { + return roleType_; +} + +void UpdateAutomateResponseConfigStatusRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string UpdateAutomateResponseConfigStatusRequest::getIds() const { return ids_; } diff --git a/cloud-siem/src/model/UpdateAutomateResponseConfigStatusResult.cc b/cloud-siem/src/model/UpdateAutomateResponseConfigStatusResult.cc index 5a0d19dd6..05e9854e1 100644 --- a/cloud-siem/src/model/UpdateAutomateResponseConfigStatusResult.cc +++ b/cloud-siem/src/model/UpdateAutomateResponseConfigStatusResult.cc @@ -39,14 +39,14 @@ void UpdateAutomateResponseConfigStatusResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); 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["Data"].isNull()) - data_ = value["Data"].asString(); } diff --git a/cloud-siem/src/model/UpdateWhiteRuleListRequest.cc b/cloud-siem/src/model/UpdateWhiteRuleListRequest.cc index bc2293743..35f9ad3a9 100644 --- a/cloud-siem/src/model/UpdateWhiteRuleListRequest.cc +++ b/cloud-siem/src/model/UpdateWhiteRuleListRequest.cc @@ -34,6 +34,15 @@ void UpdateWhiteRuleListRequest::setWhiteRuleId(long whiteRuleId) { setBodyParameter(std::string("WhiteRuleId"), std::to_string(whiteRuleId)); } +long UpdateWhiteRuleListRequest::getRoleFor() const { + return roleFor_; +} + +void UpdateWhiteRuleListRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setBodyParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + std::string UpdateWhiteRuleListRequest::getRegionId() const { return regionId_; } @@ -43,6 +52,15 @@ void UpdateWhiteRuleListRequest::setRegionId(const std::string ®ionId) { setBodyParameter(std::string("RegionId"), regionId); } +int UpdateWhiteRuleListRequest::getRoleType() const { + return roleType_; +} + +void UpdateWhiteRuleListRequest::setRoleType(int roleType) { + roleType_ = roleType; + setBodyParameter(std::string("RoleType"), std::to_string(roleType)); +} + std::string UpdateWhiteRuleListRequest::getExpression() const { return expression_; }